X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FXDXRN502J.dts;h=cba8f08812a038d63ea5f3820044fc4ddb319177;hb=e2aa0c3f8b49f62fc83ec90f0bc5a67560fffa73;hp=28670055fd380e120398bb46ff21738038c0a152;hpb=8cd1c997079246942680893adbd21d884e131b84;p=oweals%2Fopenwrt.git diff --git a/target/linux/ramips/dts/XDXRN502J.dts b/target/linux/ramips/dts/XDXRN502J.dts index 28670055fd..cba8f08812 100644 --- a/target/linux/ramips/dts/XDXRN502J.dts +++ b/target/linux/ramips/dts/XDXRN502J.dts @@ -1,24 +1,17 @@ /dts-v1/; -/include/ "rt3050.dtsi" +#include "rt3050.dtsi" + +#include +#include / { - compatible = "XDXRN502J", "ralink,rt3052-soc"; + compatible = "unbranded,xdxrn502j", "ralink,rt3052-soc"; model = "XDX RN502J"; - pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; - }; - cfi@1f000000 { compatible = "cfi-flash"; reg = <0x1f000000 0x800000>; - bank-width = <2>; device-width = <2>; #address-cells = <1>; @@ -48,19 +41,17 @@ }; }; - esw@10110000 { - ralink,portmap = <0x3e>; - }; - gpio-leds { compatible = "gpio-leds"; + wifi { label = "xdxrn502j:green:wifi"; - gpios = <&gpio0 7 1>; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; + power { label = "xdxrn502j:green:power"; - gpios = <&gpio0 9 1>; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; @@ -69,14 +60,36 @@ #address-cells = <1>; #size-cells = <0>; poll-interval = <20>; + reset { label = "reset"; - gpios = <&gpio0 12 1>; - linux,code = <0x198>; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; }; }; +}; - otg@101c0000 { - status = "okay"; +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; }; }; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +};