rt2880 DT fixes
authorJohn Crispin <john@openwrt.org>
Sat, 12 Apr 2014 21:22:00 +0000 (21:22 +0000)
committerJohn Crispin <john@openwrt.org>
Sat, 12 Apr 2014 21:22:00 +0000 (21:22 +0000)
* add pinctrl
* fix ethernet port
* make wifi available by default

Signed-off-by: Roman Yeryomin <roman@advem.lv>
SVN-Revision: 40493

target/linux/ramips/dts/rt2880.dtsi

index b51314856d4790a63e921379a0adda5ecb55db10..646cb6a99143abdc340e0092a2b2aaa22888cefa 100644 (file)
                };
        };
 
+       pinctrl {
+               compatible = "ralink,rt2880-pinmux";
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&state_default>;
+
+               state_default: pinctrl0 {
+                       sdram {
+                               ralink,group = "sdram";
+                               ralink,function = "sdram";
+                       };
+               };
+
+               spi_pins: spi {
+                       spi {
+                               ralink,group = "spi";
+                               ralink,function = "spi";
+                       };
+               };
+
+               uartlite_pins: uartlite {
+                       uart {
+                               ralink,group = "uartlite";
+                               ralink,function = "uartlite";
+                       };
+               };
+       };
+
        ethernet@400000 {
                compatible = "ralink,rt2880-eth";
                reg = <0x00400000 10000>;
 
+               #address-cells = <1>;
+               #size-cells = <0>;
+
                interrupt-parent = <&cpuintc>;
                interrupts = <5>;
 
                status = "disabled";
 
+               port@0 {
+                       compatible = "ralink,rt2880-port", "ralink,eth-port";
+                       reg = <0>;
+               };
+
                mdio-bus {
                        #address-cells = <1>;
                        #size-cells = <0>;
                interrupts = <6>;
 
                ralink,eeprom = "soc_wmac.eeprom";
-
-               status = "disabled";
        };
 
 };