ramips: fix pinctrl regression
[openwrt/openwrt.git] / target / linux / ramips / dts / XDXRN502J.dts
index 791596d1b5e8f899b3ab33cffeeb0fc218699131..34a29cc74b9d0126e25c74e47910a57a223f08b1 100644 (file)
@@ -1,32 +1,14 @@
 /dts-v1/;
 
-/include/ "rt3050.dtsi"
+#include "rt3050.dtsi"
 
 / {
        compatible = "XDXRN502J", "ralink,rt3052-soc";
        model = "XDX RN502J";
 
-       memorydetect {
-               ralink,memory = <0x0 0x200000 0x4000000>;
-       };
-
-       palmbus@10000000 {
-               sysc@0 {
-                       ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "sdram", "rgmii";
-                       ralink,gpiomux = "mdio";
-                       ralink,uartmux = "gpio";
-                       ralink,wdtmux = <1>;
-               };
-
-               gpio0: gpio@600 {
-                       status = "okay";
-               };
-       };
-
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
-
                bank-width = <2>;
                device-width = <2>;
                #address-cells = <1>;
                };
        };
 
-       ethernet@10100000 {
-               status = "okay";
-       };
-
-       esw@10110000 {
-               status = "okay";
-               ralink,portmap = <0x3e>;
-       };
-
        gpio-leds {
                compatible = "gpio-leds";
+
                wifi {
                        label = "xdxrn502j:green:wifi";
                        gpios = <&gpio0 7 1>;
                };
+
                power {
                        label = "xdxrn502j:green:power";
                        gpios = <&gpio0 9 1>;
                #address-cells = <1>;
                #size-cells = <0>;
                poll-interval = <20>;
+
                reset {
                        label = "reset";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 10 1>;
                        linux,code = <0x198>;
                };
        };
+};
 
-       wmac@10180000 {
-               status = "okay";
+&pinctrl {
+       state_default: pinctrl0 {
+               gpio {
+                       ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
+                       ralink,function = "gpio";
+               };
        };
+};
 
-       otg@101c0000 {
-               status = "okay";
-       };
+&ethernet {
+       mtd-mac-address = <&factory 0x28>;
+};
+
+&esw {
+       mediatek,portmap = <0x3e>;
+};
+
+&wmac {
+       ralink,mtd-eeprom = <&factory 0>;
+};
+
+&otg {
+       status = "okay";
 };