X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FDIR-600-B1.dts;h=1fa4203ad4b24d3189749ba2cfb905ed26e59b44;hb=53624c1702e6aad5b3e5e442c064dd30f81db2e4;hp=ea3d3ebecd40e7e916b7f24101d7d048dac45865;hpb=651e620de5b0e0a8da4787771f0b65d8af0426f0;p=openwrt%2Fstaging%2Fmkresin.git diff --git a/target/linux/ramips/dts/DIR-600-B1.dts b/target/linux/ramips/dts/DIR-600-B1.dts index ea3d3ebecd..1fa4203ad4 100644 --- a/target/linux/ramips/dts/DIR-600-B1.dts +++ b/target/linux/ramips/dts/DIR-600-B1.dts @@ -1,18 +1,16 @@ /dts-v1/; -/include/ "rt3050.dtsi" +#include "rt3050.dtsi" + +#include +#include / { - compatible = "DIR-600-B1", "ralink,rt3050-soc"; + compatible = "dlink,dir-600-b1", "ralink,rt3050-soc"; model = "D-Link DIR-600 B1"; - pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; - }; - }; + aliases { + led-status = &led_status_green; }; cfi@1f000000 { @@ -47,34 +45,20 @@ }; }; - ethernet@10100000 { - mtd-mac-address = <&devdata 0x4004>; - }; - - esw@10110000 { - mediatek,portmap = <0x2f>; - }; - - wmac@10180000 { - ralink,mtd-eeprom = <&devdata 0x4000>; - }; - 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 = ; }; }; @@ -83,27 +67,48 @@ status { label = "dir-600-b1:amber:status"; - gpios = <&gpio0 8 1>; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; - status2 { + led_status_green: status2 { label = "dir-600-b1:green:status"; - gpios = <&gpio0 9 1>; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wan { label = "dir-600-b1:amber:wan"; - gpios = <&gpio0 14 1>; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wan2 { label = "dir-600-b1:green:wan"; - gpios = <&gpio0 12 1>; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wps { label = "dir-600-b1:blue:wps"; - gpios = <&gpio0 13 1>; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; }; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&devdata 0x4004>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&devdata 0x4000>; +};