ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devices
[oweals/openwrt.git] / target / linux / ramips / dts / HC5XXX.dtsi
1 /include/ "mt7620a.dtsi"
2
3 / {
4         chosen {
5                 bootargs = "console=ttyS0,115200";
6         };
7
8         palmbus@10000000 {
9                 sysc@0 {
10                         ralink,gpiomux = "i2c", "jtag";
11                         ralink,uartmux = "gpio";
12                         ralink,wdtmux = <1>;
13                 };
14
15                 gpio0: gpio@600 {
16                         status = "okay";
17                 };
18
19                 gpio2: gpio@660 {
20                         status = "okay";
21                 };
22
23                 gpio3: gpio@688 {
24                         status = "okay";
25                 };
26
27                 spi@b00 {
28                         status = "okay";
29
30                         m25p80@0 {
31                                 #address-cells = <1>;
32                                 #size-cells = <1>;
33                                 compatible = "jedec,spi-nor";
34                                 reg = <0 0>;
35                                 linux,modalias = "m25p80", "w25q128";
36                                 spi-max-frequency = <10000000>;
37
38                                 partition@0 {
39                                         label = "u-boot";
40                                         reg = <0x0 0x30000>;
41                                 };
42
43                                 partition@30000 {
44                                         label = "u-boot-env";
45                                         reg = <0x30000 0x10000>;
46                                         read-only;
47                                 };
48
49                                 factory: partition@40000 {
50                                         label = "factory";
51                                         reg = <0x40000 0x10000>;
52                                 };
53
54                                 partition@50000 {
55                                         label = "firmware";
56                                         reg = <0x50000 0xf80000>;
57                                 };
58
59                                 partition@fd0000 {
60                                         label = "hwf_config";
61                                         reg = <0xfd0000 0x10000>;
62                                 };
63
64                                 bdinfo: partition@fe0000 {
65                                         label = "bdinfo";
66                                         reg = <0xfe0000 0x10000>;
67                                 };
68
69                                 partition@ff0000 {
70                                         label = "backup";
71                                         reg = <0xff0000 0x10000>;
72                                 };
73                         };
74                 };
75         };
76
77         ehci@101c0000 {
78                 status = "okay";
79         };
80
81         ohci@101c1000 {
82                 status = "okay";
83         };
84
85         ethernet@10100000 {
86                 pinctrl-names = "default";
87                 pinctrl-0 = <&ephy_pins>;
88                 mtd-mac-address = <&factory 0x4>;
89                 mediatek,portmap = "wllll";
90         };
91
92         sdhci@10130000 {
93                 status = "okay";
94         };
95
96         wmac@10180000 {
97                 ralink,mtd-eeprom = <&factory 0>;
98         };
99
100         pcie@10140000 {
101                 status = "okay";
102         };
103
104         pinctrl {
105                 state_default: pinctrl0 {
106                         gpio {
107                                 ralink,group = "uartf", "wled", "nd_sd";
108                                 ralink,function = "gpio";
109                         };
110
111                         pa {
112                                 ralink,group = "pa";
113                                 ralink,function = "pa";
114                         };
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 = <&gpio0 12 1>;
127                         linux,code = <0x198>;
128                 };
129         };
130
131         gpio_export {
132                 compatible = "gpio-export";
133                 #size-cells = <0>;
134
135                 usbpower {
136                         gpio-export,name = "usbpower";
137                         gpio-export,output = <1>;
138                         gpios = <&gpio0 13 0>;
139                 };
140         };
141 };