2013-07-22 23:36:39 +08:00
|
|
|
/dts-v1/;
|
|
|
|
|
2016-05-09 14:32:52 +08:00
|
|
|
#include "rt3050.dtsi"
|
2013-07-22 23:36:39 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "HG255D", "ralink,rt3052-soc";
|
|
|
|
model = "HuaWei HG255D";
|
|
|
|
|
|
|
|
cfi@1f000000 {
|
|
|
|
compatible = "cfi-flash";
|
|
|
|
reg = <0x1f000000 0x1000000>;
|
|
|
|
bank-width = <2>;
|
|
|
|
device-width = <2>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x0 0x40000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@30000 {
|
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x40000 0x20000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
factory: partition@60000 {
|
|
|
|
label = "factory";
|
|
|
|
reg = <0x60000 0x20000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@80000 {
|
|
|
|
label = "firmware";
|
2013-07-26 00:01:58 +08:00
|
|
|
reg = <0x80000 0xf60000>;
|
|
|
|
};
|
2013-10-30 15:06:22 +08:00
|
|
|
|
2013-07-26 00:01:58 +08:00
|
|
|
partition@fa0000 {
|
|
|
|
label = "factory-orig";
|
|
|
|
reg = <0xfa0000 0x20000>;
|
|
|
|
read-only;
|
2013-07-22 23:36:39 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-07-22 23:36:39 +08:00
|
|
|
power {
|
2015-08-17 14:24:34 +08:00
|
|
|
label = "hg255d:green:power";
|
2013-07-22 23:36:39 +08:00
|
|
|
gpios = <&gpio0 8 1>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-07-22 23:36:39 +08:00
|
|
|
internet {
|
2015-08-17 14:24:34 +08:00
|
|
|
label = "hg255d:green:internet";
|
2013-07-22 23:36:39 +08:00
|
|
|
gpios = <&gpio0 13 1>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-07-22 23:36:39 +08:00
|
|
|
wifi {
|
2015-08-17 14:24:34 +08:00
|
|
|
label = "hg255d:green:wlan";
|
2013-07-22 23:36:39 +08:00
|
|
|
gpios = <&gpio0 14 1>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-07-22 23:36:39 +08:00
|
|
|
usb {
|
2015-08-17 14:24:34 +08:00
|
|
|
label = "hg255d:green:usb";
|
2013-07-22 23:36:39 +08:00
|
|
|
gpios = <&gpio0 9 1>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-07-22 23:36:39 +08:00
|
|
|
wps {
|
2015-08-17 14:24:34 +08:00
|
|
|
label = "hg255d:green:wps";
|
2013-07-22 23:36:39 +08:00
|
|
|
gpios = <&gpio0 12 1>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-07-22 23:36:39 +08:00
|
|
|
voice {
|
2015-08-17 14:24:34 +08:00
|
|
|
label = "hg255d:green:voice";
|
2013-07-22 23:36:39 +08:00
|
|
|
gpios = <&gpio0 5 1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
poll-interval = <10>;
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-07-22 23:36:39 +08:00
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
gpios = <&gpio0 4 1>;
|
|
|
|
linux,code = <0x198>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-07-22 23:36:39 +08:00
|
|
|
wps {
|
|
|
|
label = "wps";
|
|
|
|
gpios = <&gpio0 10 1>;
|
|
|
|
linux,code = <0x211>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-07-22 23:36:39 +08:00
|
|
|
rfkill {
|
|
|
|
label = "rfkill";
|
|
|
|
gpios = <&gpio0 0 1>;
|
|
|
|
linux,code = <0xf7>;
|
|
|
|
};
|
|
|
|
};
|
2016-05-10 18:41:46 +08:00
|
|
|
};
|
2013-07-22 23:36:39 +08:00
|
|
|
|
2016-05-10 18:41:46 +08:00
|
|
|
&pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
gpio {
|
|
|
|
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
2013-11-25 16:33:42 +08:00
|
|
|
};
|
2016-05-10 18:41:46 +08:00
|
|
|
};
|
2013-11-25 16:33:42 +08:00
|
|
|
|
2016-05-10 18:41:46 +08:00
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&factory 0x28>;
|
|
|
|
};
|
2013-07-22 23:36:39 +08:00
|
|
|
|
2016-05-10 18:41:46 +08:00
|
|
|
&esw {
|
|
|
|
mediatek,portmap = <0x2f>;
|
|
|
|
};
|
2014-07-17 18:55:31 +08:00
|
|
|
|
2016-05-10 18:41:46 +08:00
|
|
|
&wmac {
|
|
|
|
ralink,mtd-eeprom = <&factory 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&otg {
|
|
|
|
status = "okay";
|
2013-07-22 23:36:39 +08:00
|
|
|
};
|