X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Flantiq%2Fdts%2FWBMR.dts;h=9711a31cb2f9c1715a13dccb19bcdf6cff521ae8;hb=7bab49fd7a6a870d4b7f67edce5a9b74c5edb7d0;hp=ba48dd13ec3ea4771099e1cf3e43699583743e9c;hpb=91d5067091b56fa757d08ef3e42c53f2f7294ec4;p=openwrt%2Fopenwrt.git diff --git a/target/linux/lantiq/dts/WBMR.dts b/target/linux/lantiq/dts/WBMR.dts index ba48dd13ec..9711a31cb2 100644 --- a/target/linux/lantiq/dts/WBMR.dts +++ b/target/linux/lantiq/dts/WBMR.dts @@ -1,23 +1,26 @@ /dts-v1/; -/include/ "ar9.dtsi" +#include "ar9.dtsi" + +#include / { + compatible = "buffalo,wbmr-hp-g300h", "lantiq,xway", "lantiq,ar9"; model = "WBMR - Buffalo WBMR-HP-G300H"; chosen { - bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + bootargs = "console=ttyLTQ0,115200"; + }; - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_green; - dsl = &dsl; - internet = &online_green; - usb = &usb; - wifi = &wifi; - }; + led-dsl = &dsl; + led-internet = &online_green; + led-usb = &usb; + led-wifi = &wifi; }; memory@0 { @@ -101,7 +104,7 @@ ifxhcd@E101000 { status = "okay"; - gpios = <&gpio 36 0>; + gpios = <&gpio 36 GPIO_ACTIVE_HIGH>; }; pci@E105400 { @@ -117,23 +120,23 @@ wps { label = "wps"; - gpios = <&gpio 0 1>; - linux,code = <0x211>; + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; + linux,code = ; }; reset { label = "reset"; - gpios = <&gpio 37 1>; - linux,code = <0x198>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; + linux,code = ; }; eject { label = "eject"; - gpios = <&gpio 34 1>; - linux,code = <0xf7>; + gpios = <&gpio 34 GPIO_ACTIVE_LOW>; + linux,code = ; }; movie { label = "movie"; - gpios = <&gpio 22 1>; - linux,code = <0x109>; + gpios = <&gpio 22 GPIO_ACTIVE_LOW>; + linux,code = ; }; }; @@ -142,40 +145,40 @@ power_green: power { label = "wbmr:green:power"; - gpios = <&gpio 1 1>; + gpios = <&gpio 1 GPIO_ACTIVE_LOW>; default-state = "keep"; }; power_red: power2 { label = "wbmr:red:power"; - gpios = <&gpio 5 1>; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; security { label = "wbmr:yellow:security"; - gpios = <&gpio 14 1>; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; wifi: wifi { label = "wbmr:green:wireless"; - gpios = <&gpio 15 1>; + gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; dsl: dsl { label = "wbmr:green:dsl"; - gpios = <&gpio 16 1>; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; online_green: online { label = "wbmr:green:internet"; - gpios = <&gpio 17 1>; + gpios = <&gpio 17 GPIO_ACTIVE_LOW>; }; online2 { label = "wbmr:red:internet"; - gpios = <&gpio 18 1>; + gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; movie { label = "wbmr:blue:movie"; - gpios = <&gpio 20 1>; + gpios = <&gpio 20 GPIO_ACTIVE_LOW>; }; usb: usb { label = "wbmr:green:usb"; - gpios = <&gpio 28 1>; + gpios = <&gpio 28 GPIO_ACTIVE_LOW>; default-state = "on"; }; };