X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fwigyori.git;a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FW306R_V20.dts;h=abf61f67f482bf3cffc514a66303b4cee15a0995;hp=79ae23dd632969f5103243cb17315361945b75bc;hb=e8eaf794ec4105cd59f170371991ff90c5b2ca3b;hpb=9195d8da355d0d141ac02c9a5269452dc64ffd2d diff --git a/target/linux/ramips/dts/W306R_V20.dts b/target/linux/ramips/dts/W306R_V20.dts index 79ae23dd63..abf61f67f4 100644 --- a/target/linux/ramips/dts/W306R_V20.dts +++ b/target/linux/ramips/dts/W306R_V20.dts @@ -2,66 +2,79 @@ #include "rt3050.dtsi" +#include +#include + / { - compatible = "W306R_V20", "ralink,rt3052-soc"; + compatible = "tenda,w306r-v2", "ralink,rt3052-soc"; model = "Tenda W306R V2.0"; + aliases { + led-boot = &led_sys; + led-failsafe = &led_sys; + led-running = &led_sys; + led-upgrade = &led_sys; + }; + cfi@1f000000 { compatible = "cfi-flash"; 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; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - partition@50000 { - label = "firmware"; - reg = <0x50000 0x3b0000>; + partitions { + compatible = "fixed-partitions"; + #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; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; }; }; gpio-leds { compatible = "gpio-leds"; - sys { + led_sys: sys { label = "w306r-v20:green:sys"; - gpios = <&gpio0 9 1>; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { label = "w306r-v20:green:wps"; - gpios = <&gpio0 13 1>; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; - gpio-keys-polled { + keys { compatible = "gpio-keys-polled"; - #address-cells = <1>; - #size-cells = <0>; poll-interval = <20>; reset { label = "RESET/WPS"; - gpios = <&gpio0 10 1>; - linux,code = <0x198>; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; }; }; };