X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FDB-WRT01.dts;h=27dce66e1a607e87fe1c19e2768b6a0da15c4e62;hb=55101877d3c0aea567e60fb3f7cafcb1a041698e;hp=c4a32ea9e9a29117b43bd42c41cc194ba42bf8aa;hpb=05b1fcc70b4cd65f069ce0640b5130484c58c227;p=openwrt%2Fstaging%2Fjogo.git diff --git a/target/linux/ramips/dts/DB-WRT01.dts b/target/linux/ramips/dts/DB-WRT01.dts index c4a32ea9e9..27dce66e1a 100644 --- a/target/linux/ramips/dts/DB-WRT01.dts +++ b/target/linux/ramips/dts/DB-WRT01.dts @@ -2,30 +2,36 @@ #include "mt7620a.dtsi" +#include #include / { - compatible = "ralink,mt7620a-soc"; + compatible = "planex,db-wrt01", "ralink,mt7620a-soc"; model = "Planex DB-WRT01"; + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + gpio-leds { compatible = "gpio-leds"; - power { + led_power: power { label = "db-wrt01:orange:power"; - gpios = <&gpio1 1 1>; + gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; }; }; gpio-keys-polled { compatible = "gpio-keys-polled"; - #address-cells = <1>; - #size-cells = <0>; poll-interval = <20>; s1 { label = "wps"; - gpios = <&gpio0 2 1>; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -39,33 +45,38 @@ status = "okay"; m25p80@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <10000000>; - 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>; + }; }; }; }; @@ -93,7 +104,3 @@ &wmac { ralink,mtd-eeprom = <&factory 0>; }; - -&pcie { - status = "okay"; -};