X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FZBT-WE1226.dts;h=aace0042e4d659a15e9b5d0f9d1a02de69316ec1;hb=be2b61e4f1ec1e351733bebb7105629599034639;hp=5ece7567f354d4e033db5cb5e15210451808a61e;hpb=32f120b783f1a0467993cdfd15efdef06cad56d8;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/dts/ZBT-WE1226.dts b/target/linux/ramips/dts/ZBT-WE1226.dts index 5ece7567f3..aace0042e4 100644 --- a/target/linux/ramips/dts/ZBT-WE1226.dts +++ b/target/linux/ramips/dts/ZBT-WE1226.dts @@ -8,6 +8,13 @@ compatible = "zbtlink,zbt-we1226", "mediatek,mt7628an-soc"; model = "Zbtlink ZBT-WE1226"; + aliases { + led-boot = &led_wlan; + led-failsafe = &led_wlan; + led-running = &led_wlan; + led-upgrade = &led_wlan; + }; + chosen { bootargs = "console=ttyS0,115200"; }; @@ -17,10 +24,8 @@ reg = <0x0 0x4000000>; }; - gpio-keys-polled { + keys { compatible = "gpio-keys-polled"; - #address-cells = <1>; - #size-cells = <0>; poll-interval = <20>; reset { @@ -30,7 +35,7 @@ }; }; - gpio-leds { + leds { compatible = "gpio-leds"; wan { @@ -48,7 +53,7 @@ gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; }; - wlan { + led_wlan: wlan { label = "zbt-we1226:green:wlan"; gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; }; @@ -68,34 +73,38 @@ status = "okay"; m25p80@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <10000000>; - m25p,chunked-io = <32>; - - 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 0x7b0000>; + 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 0x7b0000>; + }; }; }; };