X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FV22RW-2X2.dts;h=ca3d5126576ee6e5b1b2559904aa9c667b102b53;hb=8f4dfadd5a4370e455f08967bfe9b7c9125576e8;hp=e8fc4fe4c791cad73c91a0670552b225f9ea7a4f;hpb=553fea9f195aaefa8533b99e0d0c9ff9a27fc4f5;p=openwrt%2Fstaging%2Fmkresin.git diff --git a/target/linux/ramips/dts/V22RW-2X2.dts b/target/linux/ramips/dts/V22RW-2X2.dts index e8fc4fe4c7..ca3d512657 100644 --- a/target/linux/ramips/dts/V22RW-2X2.dts +++ b/target/linux/ramips/dts/V22RW-2X2.dts @@ -1,18 +1,19 @@ /dts-v1/; -/include/ "rt3050.dtsi" +#include "rt3050.dtsi" + +#include +#include / { - compatible = "V22RW-2X2", "ralink,rt3052-soc"; + compatible = "ralink,v22rw-2x2", "ralink,rt3052-soc"; model = "Ralink AP-RT3052-V22RW-2X2"; - pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; + aliases { + led-boot = &led_security; + led-failsafe = &led_security; + led-running = &led_security; + led-upgrade = &led_security; }; cfi@1f000000 { @@ -20,75 +21,86 @@ reg = <0x1f000000 0x800000>; bank-width = <2>; device-width = <2>; - #address-cells = <1>; - #size-cells = <1>; - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; - partition@50000 { - label = "firmware"; - reg = <0x50000 0x3b0000>; - }; - }; + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; - esw@10110000 { - ralink,portmap = <0x2f>; - }; + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; - wmac@10180000 { - ralink,mtd-eeprom = <&factory 0>; + partition@50000 { + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; + }; }; gpio-leds { compatible = "gpio-leds"; - security { + led_security: security { label = "v22rw-2x2:green:security"; - gpios = <&gpio0 13 1>; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; wps { label = "v22rw-2x2:red:wps"; - gpios = <&gpio0 14 1>; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; gpio-keys-polled { compatible = "gpio-keys-polled"; - #address-cells = <1>; - #size-cells = <0>; poll-interval = <20>; reset { label = "reset"; - gpios = <&gpio0 10 1>; - linux,code = <0x198>; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; }; wps { label = "wps"; - gpios = <&gpio0 0 1>; - linux,code = <0x211>; + gpios = <&gpio0 0 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"; + }; }; }; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +};