X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FHG255D.dts;h=bed5977ac13946783c0a4118c02a81bacf155f36;hb=39b5218434d38715a85b7bd6dd8d279c3e1e905d;hp=41b7ddd34e1626eec5583b941b8599f4662e104b;hpb=f44d3f99803be7ba5c38b26a2d8cbda1c301e893;p=openwrt%2Fstaging%2Fmkresin.git diff --git a/target/linux/ramips/dts/HG255D.dts b/target/linux/ramips/dts/HG255D.dts index 41b7ddd34e..bed5977ac1 100644 --- a/target/linux/ramips/dts/HG255D.dts +++ b/target/linux/ramips/dts/HG255D.dts @@ -1,24 +1,17 @@ /dts-v1/; -/include/ "rt3050.dtsi" +#include "rt3050.dtsi" + +#include +#include / { - compatible = "HG255D", "ralink,rt3052-soc"; + compatible = "huawei,hg255d", "ralink,rt3052-soc"; model = "HuaWei HG255D"; - pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; - }; - cfi@1f000000 { compatible = "cfi-flash"; reg = <0x1f000000 0x1000000>; - bank-width = <2>; device-width = <2>; #address-cells = <1>; @@ -56,29 +49,35 @@ gpio-leds { compatible = "gpio-leds"; + power { - label = "hg255d:power"; - gpios = <&gpio0 8 1>; + label = "hg255d:green:power"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; + internet { - label = "hg255d:internet"; - gpios = <&gpio0 13 1>; + label = "hg255d:green:internet"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; + wifi { - label = "hg255d:wlan"; - gpios = <&gpio0 14 1>; + label = "hg255d:green:wlan"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; + usb { - label = "hg255d:usb"; - gpios = <&gpio0 9 1>; + label = "hg255d:green:usb"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; + wps { - label = "hg255d:wps"; - gpios = <&gpio0 12 1>; + label = "hg255d:green:wps"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; + voice { - label = "hg255d:voice"; - gpios = <&gpio0 5 1>; + label = "hg255d:green:voice"; + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; }; }; @@ -87,36 +86,48 @@ #address-cells = <1>; #size-cells = <0>; poll-interval = <10>; + reset { label = "reset"; - gpios = <&gpio0 4 1>; - linux,code = <0x198>; + gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + linux,code = ; }; + wps { label = "wps"; - gpios = <&gpio0 10 1>; - linux,code = <0x211>; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; }; + rfkill { label = "rfkill"; - gpios = <&gpio0 0 1>; - linux,code = <0xf7>; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; }; }; +}; - ethernet@10100000 { - mtd-mac-address = <&factory 0x28>; +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; }; +}; - esw@10110000 { - ralink,portmap = <0x2f>; - }; +ðernet { + mtd-mac-address = <&factory 0x28>; +}; - wmac@10180000 { - ralink,mtd-eeprom = <&factory 0>; - }; +&esw { + mediatek,portmap = <0x2f>; +}; - otg@101c0000 { - status = "okay"; - }; +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; };