ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devices
[oweals/openwrt.git] / target / linux / ramips / dts / WIZFI630A.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6         compatible = "wizfi630a", "ralink,rt5350-soc";
7         model = "WIZnet WizFi630A";
8
9         chosen {
10                 bootargs = "console=ttyS1,115200";
11         };
12
13         palmbus@10000000 {
14                 gpio1: gpio@660 {
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>;
26                                 linux,modalias = "m25p80", "w25q128";
27                                 spi-max-frequency = <10000000>;
28
29                                 partition@0 {
30                                         label = "uboot";
31                                         reg = <0x0 0x30000>;
32                                         read-only;
33                                 };
34
35                                 partition@30000 {
36                                         label = "uboot-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 0xfb0000>;
50                                 };
51                         };
52                 };
53
54                 uart@500 {
55                         compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
56                         reg = <0x500 0x100>;
57                         resets = <&rstctrl 12>;
58                         reset-names = "uart";
59                         interrupt-parent = <&intc>;
60                         interrupts = <5>;
61                         reg-shift = <2>;
62                         status = "okay";
63                 };
64
65                 uartlite@c00 {
66                         compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
67                         reg = <0xc00 0x100>;
68                         resets = <&rstctrl 19>;
69                         reset-names = "uartl";
70                         interrupt-parent = <&intc>;
71                         interrupts = <12>;
72                         reg-shift = <2>;
73                         pinctrl-names = "default";
74                         pinctrl-0 = <&uartlite_pins>;
75                 };
76         };
77
78         pinctrl {
79                 state_default: pinctrl0 {
80                         gpio {
81                                 ralink,group = "i2c", "jtag" ;
82                                 ralink,function = "gpio";
83                         };
84                 };
85
86                 uartf_gpio_pins: uartf_gpio {
87                         uartf_gpio {
88                                 ralink,group = "uartf";
89                                 ralink,function = "uartf";
90                         };
91                 };
92
93                 uartlite_pins: uartlite {
94                         uart {
95                                 ralink,group = "uartlite";
96                                 ralink,function = "uartlite";
97                         };
98                 };
99         };
100
101         ethernet@10100000 {
102                 mtd-mac-address = <&factory 0x4>;
103         };
104
105         esw@10110000 {
106                 mediatek,portmap = <0x17>;
107         };
108
109         wmac@10180000 {
110                 ralink,mtd-eeprom = <&factory 0>;
111         };
112
113         ehci@101c0000 {
114                 status = "okay";
115         };
116
117         ohci@101c1000 {
118                 status = "okay";
119         };
120
121         gpio-export {
122                 compatible = "gpio-export";
123                 #size-cells = <0>;
124         };
125
126         gpio-leds {
127                 compatible = "gpio-leds";
128
129                 run {
130                         label = "wizfi630a::run";
131                         gpios = <&gpio0 1 1>;
132                 };
133
134                 wps {
135                         label = "wizfi630a::wps";
136                         gpios = <&gpio0 20 1>;
137                 };
138
139                 uart1 {
140                         label = "wizfi630a::uart1";
141                         gpios = <&gpio0 18 1>;
142                 };
143
144                 uart2 {
145                         label = "wizfi630a::uart2";
146                         gpios = <&gpio0 21 1>;
147                 };
148         };
149
150         gpio-keys-polled {
151                 compatible = "gpio-keys-polled";
152                 #address-cells = <1>;
153                 #size-cells = <0>;
154                 poll-interval = <20>;
155
156                 reset {
157                         label = "reset";
158                         gpios = <&gpio0 17 1>;
159                         linux,code = <0x198>;
160                 };
161
162                 wps {
163                         label = "wps";
164                         gpios = <&gpio0 0 1>;
165                         linux,code = <0x211>;
166                 };
167                 
168                 scm1 {
169                         label = "SCM1";
170                         gpios = <&gpio0 19 1>;
171                         linux,code = <0x100>;
172                 };
173
174                 scm2 {
175                         label = "SCM2";
176                         gpios = <&gpio0 2 1>;
177                         linux,code = <0x101>;
178                 };
179         };
180 };