ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devices
[oweals/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         pinctrl {
10                 state_default: pinctrl0 {
11                         gpio {
12                                 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
13                                 ralink,function = "gpio";
14                         };
15                 };
16         };
17
18         cfi@1f000000 {
19                 compatible = "cfi-flash";
20                 reg = <0x1f000000 0x1000000>;
21                 bank-width = <2>;
22                 device-width = <2>;
23                 #address-cells = <1>;
24                 #size-cells = <1>;
25
26                 partition@0 {
27                         label = "u-boot";
28                         reg = <0x0 0x40000>;
29                         read-only;
30                 };
31
32                 partition@30000 {
33                         label = "u-boot-env";
34                         reg = <0x40000 0x20000>;
35                         read-only;
36                 };
37
38                 factory: partition@60000 {
39                         label = "factory";
40                         reg = <0x60000 0x20000>;
41                         read-only;
42                 };
43
44                 partition@80000 {
45                         label = "firmware";
46                         reg = <0x80000 0xf60000>;
47                 };
48
49                 partition@fa0000 {
50                         label = "factory-orig";
51                         reg = <0xfa0000 0x20000>;
52                         read-only;
53                 };
54         };
55
56         gpio-leds {
57                 compatible = "gpio-leds";
58
59                 power {
60                         label = "hg255d:green:power";
61                         gpios = <&gpio0 8 1>;
62                 };
63
64                 internet {
65                         label = "hg255d:green:internet";
66                         gpios = <&gpio0 13 1>;
67                 };
68
69                 wifi {
70                         label = "hg255d:green:wlan";
71                         gpios = <&gpio0 14 1>;
72                 };
73
74                 usb {
75                         label = "hg255d:green:usb";
76                         gpios = <&gpio0 9 1>;
77                 };
78
79                 wps {
80                         label = "hg255d:green:wps";
81                         gpios = <&gpio0 12 1>;
82                 };
83
84                 voice {
85                         label = "hg255d:green:voice";
86                         gpios = <&gpio0 5 1>;
87                 };
88         };
89
90         gpio-keys-polled {
91                 compatible = "gpio-keys-polled";
92                 #address-cells = <1>;
93                 #size-cells = <0>;
94                 poll-interval = <10>;
95
96                 reset {
97                         label = "reset";
98                         gpios = <&gpio0 4 1>;
99                         linux,code = <0x198>;
100                 };
101
102                 wps {
103                         label = "wps";
104                         gpios = <&gpio0 10 1>;
105                         linux,code = <0x211>;
106                 };
107
108                 rfkill {
109                         label = "rfkill";
110                         gpios = <&gpio0 0 1>;
111                         linux,code = <0xf7>;
112                 };
113         };
114
115         ethernet@10100000 {
116                 mtd-mac-address = <&factory 0x28>;
117         };
118
119         esw@10110000 {
120                 mediatek,portmap = <0x2f>;
121         };
122
123         wmac@10180000 {
124                 ralink,mtd-eeprom = <&factory 0>;
125         };
126
127         otg@101c0000 {
128                 status = "okay";
129         };
130 };