ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devices
[oweals/openwrt.git] / target / linux / ramips / dts / WHR-300HP2.dts
1 /dts-v1/;
2
3 /include/ "mt7620a.dtsi"
4
5 / {
6         compatible = "ralink,mt7620a-soc";
7         model = "Buffalo WHR-300HP2";
8
9         palmbus@10000000 {
10                 gpio2: gpio@660 {
11                         status = "okay";
12                 };
13
14                 spi@b00 {
15                         status = "okay";
16
17                         m25p80@0 {
18                                 #address-cells = <1>;
19                                 #size-cells = <1>;
20                                 compatible = "jedec,spi-nor";
21                                 reg = <0 0>;
22                                 linux,modalias = "m25p80", "s25fl064k";
23                                 spi-max-frequency = <10000000>;
24
25                                 partition@0 {
26                                         label = "u-boot";
27                                         reg = <0x0 0x30000>;
28                                         read-only;
29                                 };
30
31                                 partition@30000 {
32                                         label = "u-boot-env";
33                                         reg = <0x30000 0x10000>;
34                                         read-only;
35                                 };
36
37                                 factory: partition@40000 {
38                                         label = "factory";
39                                         reg = <0x40000 0x10000>;
40                                         read-only;
41                                 };
42
43                                 partition@50000 {
44                                         label = "firmware";
45                                         reg = <0x50000 0x7b0000>;
46                                 };
47                         };
48                 };
49         };
50
51         pinctrl {
52                 state_default: pinctrl0 {
53                         gpio {
54                                 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
55                                 ralink,function = "gpio";
56                         };
57
58                         pa {
59                                 ralink,group = "pa";
60                                 ralink,function = "pa";
61                         };
62                 };
63         };
64
65         ethernet@10100000 {
66                 pinctrl-names = "default";
67                 pinctrl-0 = <&ephy_pins>;
68                 mediatek,portmap = "llllw";
69         };
70
71         gsw@10110000 {
72                 mediatek,port4 = "ephy";
73         };
74
75         wmac@10180000 {
76                 ralink,mtd-eeprom = <&factory 0>;
77         };
78
79         gpio-leds {
80                 compatible = "gpio-leds";
81
82                 power {
83                         label = "whr-300hp2:red:power";
84                         gpios = <&gpio0 7 1>;
85                 };
86
87                 wifi {
88                         label = "whr-300hp2:green:wifi";
89                         gpios = <&gpio0 8 1>;
90                 };
91
92                 power2 {
93                         label = "whr-300hp2:green:power";
94                         gpios = <&gpio0 9 1>;
95                 };
96
97                 wifi2 {
98                         label = "whr-300hp2:orange:wifi";
99                         gpios = <&gpio0 10 1>;
100                 };
101
102                 internet {
103                         label = "whr-300hp2:green:internet";
104                         gpios = <&gpio2 17 1>;
105                 };
106
107                 router {
108                         label = "whr-300hp2:green:router";
109                         gpios = <&gpio2 18 1>;
110                 };
111
112                 router2 {
113                         label = "whr-300hp2:orange:router";
114                         gpios = <&gpio2 19 1>;
115                 };
116         };
117
118         gpio-keys-polled {
119                 compatible = "gpio-keys-polled";
120                 #address-cells = <1>;
121                 #size-cells = <0>;
122                 poll-interval = <20>;
123
124                 reset {
125                         label = "reset";
126                         gpios = <&gpio2 12 1>;
127                         linux,code = <0x198>;
128                 };
129
130                 aoss {
131                         label = "aoss";
132                         gpios = <&gpio2 13 1>;
133                         linux,code = <0x211>;
134                 };
135
136                 ap {
137                         label = "ap";
138                         gpios = <&gpio2 14 1>;
139                         linux,code = <0x100>;
140                         linux,input-type = <5>; /* EV_SW */
141                 };
142
143                 bridge {
144                         label = "bridge";
145                         gpios = <&gpio2 15 1>;
146                         linux,code = <0x100>;
147                         linux,input-type = <5>; /* EV_SW */
148                 };
149         };
150 };