ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devices
[oweals/openwrt.git] / target / linux / ramips / dts / ZTE-Q7.dts
1 /dts-v1/;
2
3 /include/ "mt7620a.dtsi"
4
5 / {
6         compatible = "ZTE-Q7", "ralink,mt7620a-soc";
7         model = "ZTE Q7";
8
9         palmbus@10000000 {
10                 gpio0: gpio@600 {
11                         status = "okay";
12                 };
13
14                 gpio1: gpio@638 {
15                         status = "okay";
16                 };
17
18                 spi@b00 {
19                         status = "okay";
20
21                         m25p80@0 {
22                                 #address-cells = <1>;
23                                 #size-cells = <1>;
24                                 compatible = "jedec,spi-nor";
25                                 reg = <0 0>;
26                                 linux,modalias = "m25p80", "en25q64";
27                                 spi-max-frequency = <10000000>;
28
29                                 partition@0 {
30                                         label = "u-boot";
31                                         reg = <0x0 0x30000>;
32                                         read-only;
33                                 };
34
35                                 partition@30000 {
36                                         label = "u-boot-env";
37                                         reg = <0x30000 0x10000>;
38                                         read-only;
39                                 };
40
41                                 factory: partition@40000 {
42                                         label = "factory";
43                                         reg = <0x40000 0x10000>;
44                                         read-only;
45                                 };
46
47                                 partition@50000 {
48                                         label = "firmware";
49                                         reg = <0x50000 0x7b0000>;
50                                 };
51                         };
52                 };
53         };
54
55         pinctrl {
56                 state_default: pinctrl0 {
57                         gpio {
58                                 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";
59                                 ralink,function = "gpio";
60                         };
61                 };
62         };
63
64         ethernet@10100000 {
65                 pinctrl-names = "default";
66                 pinctrl-0 = <&ephy_pins>;
67                 mtd-mac-address = <&factory 0x4>;
68                 mediatek,portmap = "wllll";
69         };
70
71         wmac@10180000 {
72                 ralink,mtd-eeprom = <&factory 0>;
73         };
74
75         sdhci@10130000 {
76                 status = "okay";
77         };
78
79         ehci@101c0000 {
80                 status = "okay";
81         };
82
83         ohci@101c1000 {
84                 status = "okay";
85         };
86
87         gpio-leds {
88                 compatible = "gpio-leds";
89
90                 statred {
91                         label = "zte-q7:red:status";
92                         gpios = <&gpio0 13 1>;
93                 };
94
95                 statblue {
96                         label = "zte-q7:blue:status";
97                         gpios = <&gpio0 9 1>;
98                 };
99         };
100
101         gpio-keys-polled {
102                 compatible = "gpio-keys-polled";
103                 #address-cells = <1>;
104                 #size-cells = <0>;
105                 poll-interval = <20>;
106
107                 reset {
108                         label = "reset";
109                         gpios = <&gpio1 2 1>;
110                         linux,code = <0x198>;
111                 };
112         };
113 };