ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devices
[oweals/openwrt.git] / target / linux / ramips / dts / WHR-G300N.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "WHR-G300N", "ralink,rt3052-soc";
7         model = "Buffalo WHR-G300N";
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 0x800000>;
21                 bank-width = <2>;
22                 device-width = <2>;
23                 #address-cells = <1>;
24                 #size-cells = <1>;
25         };
26
27         esw@10110000 {
28                 mediatek,portmap = <0x2f>;
29         };
30
31         /* FIXME: no partitions defined */
32 /*      wmac@10180000 {
33                 ralink,mtd-eeprom = <&factory 0>;
34         };
35 */
36         gpio-leds {
37                 compatible = "gpio-leds";
38
39                 diag {
40                         label = "whr-g300n:red:diag";
41                         gpios = <&gpio0 7 1>;
42                 };
43
44                 router {
45                         label = "whr-g300n:green:router";
46                         gpios = <&gpio0 9 1>;
47                 };
48
49                 security {
50                         label = "whr-g300n:amber:security";
51                         gpios = <&gpio0 14 1>;
52                 };
53         };
54
55         gpio-keys-polled {
56                 compatible = "gpio-keys-polled";
57                 #address-cells = <1>;
58                 #size-cells = <0>;
59                 poll-interval = <20>;
60
61                 reset {
62                         label = "reset";
63                         gpios = <&gpio0 10 1>;
64                         linux,code = <0x198>;
65                 };
66
67                 aoss {
68                         label = "aoss";
69                         gpios = <&gpio0 0 1>;
70                         linux,code = <0x211>;
71                 };
72
73                 router-off {
74                         label = "router-off";
75                         gpios = <&gpio0 11 1>;
76                         linux,code = <0x102>;
77                 };
78
79                 router-on {
80                         label = "router-on";
81                         gpios = <&gpio0 8 1>;
82                         linux,code = <0x103>;
83                 };
84         };
85 };