ramips: important patch for HG255D
[openwrt/openwrt.git] / target / linux / ramips / dts / HG255D.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "HG255D", "ralink,rt3052-soc";
7 model = "HuaWei HG255D";
8
9 palmbus@10000000 {
10 sysc@0 {
11 ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
12 ralink,uartmux = "gpio";
13 ralink,wdtmux = <1>;
14 };
15
16 gpio0: gpio@600 {
17 status = "okay";
18 };
19 };
20
21 cfi@1f000000 {
22 compatible = "cfi-flash";
23 reg = <0x1f000000 0x1000000>;
24
25 bank-width = <2>;
26 device-width = <2>;
27 #address-cells = <1>;
28 #size-cells = <1>;
29
30 partition@0 {
31 label = "u-boot";
32 reg = <0x0 0x40000>;
33 read-only;
34 };
35
36 partition@30000 {
37 label = "u-boot-env";
38 reg = <0x40000 0x20000>;
39 read-only;
40 };
41
42 factory: partition@60000 {
43 label = "factory";
44 reg = <0x60000 0x20000>;
45 read-only;
46 };
47
48 partition@80000 {
49 label = "firmware";
50 reg = <0x80000 0xf60000>;
51 };
52
53 partition@fa0000 {
54 label = "factory-orig";
55 reg = <0xfa0000 0x20000>;
56 read-only;
57 };
58 };
59
60 gpio-leds {
61 compatible = "gpio-leds";
62 power {
63 label = "hg255d:power";
64 gpios = <&gpio0 8 1>;
65 };
66 internet {
67 label = "hg255d:internet";
68 gpios = <&gpio0 13 1>;
69 };
70 wifi {
71 label = "hg255d:wlan";
72 gpios = <&gpio0 14 1>;
73 };
74 usb {
75 label = "hg255d:usb";
76 gpios = <&gpio0 9 1>;
77 };
78 wps {
79 label = "hg255d:wps";
80 gpios = <&gpio0 12 1>;
81 };
82 voice {
83 label = "hg255d:voice";
84 gpios = <&gpio0 5 1>;
85 };
86 };
87
88 gpio-keys-polled {
89 compatible = "gpio-keys-polled";
90 #address-cells = <1>;
91 #size-cells = <0>;
92 poll-interval = <10>;
93 reset {
94 label = "reset";
95 gpios = <&gpio0 4 1>;
96 linux,code = <0x198>;
97 };
98 wps {
99 label = "wps";
100 gpios = <&gpio0 10 1>;
101 linux,code = <0x211>;
102 };
103 rfkill {
104 label = "rfkill";
105 gpios = <&gpio0 0 1>;
106 linux,code = <0xf7>;
107 };
108 };
109
110 ethernet@10100000 {
111 status = "okay";
112 };
113
114 esw@10110000 {
115 status = "okay";
116 ralink,portmap = <0x2f>;
117 };
118
119 wmac@10180000 {
120 status = "okay";
121 };
122
123 otg@101c0000 {
124 status = "okay";
125 };
126 };