X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FXDXRN502J.dts;h=34a29cc74b9d0126e25c74e47910a57a223f08b1;hb=a34f96d6cf80c7c3c425076714d9c4caa67e3670;hp=3df097cde71023362e2c7ab8a1057c1da859f11c;hpb=bc7b3109590eeb3182f9d50bf358370f4b7828c1;p=oweals%2Fopenwrt.git diff --git a/target/linux/ramips/dts/XDXRN502J.dts b/target/linux/ramips/dts/XDXRN502J.dts index 3df097cde7..34a29cc74b 100644 --- a/target/linux/ramips/dts/XDXRN502J.dts +++ b/target/linux/ramips/dts/XDXRN502J.dts @@ -1,28 +1,14 @@ /dts-v1/; -/include/ "rt3050.dtsi" +#include "rt3050.dtsi" / { compatible = "XDXRN502J", "ralink,rt3052-soc"; model = "XDX RN502J"; - 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>; @@ -52,21 +38,14 @@ }; }; - 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>; @@ -78,18 +57,36 @@ #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"; - }; +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; };