e2a51ecf1b0ac0a0a5b20cd5eca9868f37682bb9
[openwrt/svn-archive/archive.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 pinctrl-names = "default";
63 pinctrl-0 = <&uartf_pins>;
64 status = "okay";
65 };
66
67 uartlite@c00 {
68 compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
69 reg = <0xc00 0x100>;
70 resets = <&rstctrl 19>;
71 reset-names = "uartl";
72 interrupt-parent = <&intc>;
73 interrupts = <12>;
74 reg-shift = <2>;
75 pinctrl-names = "default";
76 pinctrl-0 = <&uartlite_pins>;
77 };
78 };
79
80 pinctrl {
81 state_default: pinctrl0 {
82 gpio {
83 ralink,group = "i2c", "jtag" ;
84 ralink,function = "gpio";
85 };
86 };
87
88 uartf_gpio_pins: uartf_gpio {
89 uartf_gpio {
90 ralink,group = "uartf";
91 ralink,function = "uartf";
92 };
93 };
94
95 uartlite_pins: uartlite {
96 uart {
97 ralink,group = "uartlite";
98 ralink,function = "uartlite";
99 };
100 };
101 };
102
103 ethernet@10100000 {
104 mtd-mac-address = <&factory 0x4>;
105 };
106
107 esw@10110000 {
108 mediatek,portmap = <0x17>;
109 };
110
111 wmac@10180000 {
112 ralink,mtd-eeprom = <&factory 0>;
113 };
114
115 ehci@101c0000 {
116 status = "okay";
117 };
118
119 ohci@101c1000 {
120 status = "okay";
121 };
122
123 gpio-export {
124 compatible = "gpio-export";
125 #size-cells = <0>;
126 };
127
128 gpio-leds {
129 compatible = "gpio-leds";
130
131 run {
132 label = "wizfi630a::run";
133 gpios = <&gpio0 1 1>;
134 };
135
136 wps {
137 label = "wizfi630a::wps";
138 gpios = <&gpio0 20 1>;
139 };
140
141 uart1 {
142 label = "wizfi630a::uart1";
143 gpios = <&gpio0 18 1>;
144 };
145
146 uart2 {
147 label = "wizfi630a::uart2";
148 gpios = <&gpio0 21 1>;
149 };
150 };
151
152 gpio-keys-polled {
153 compatible = "gpio-keys-polled";
154 #address-cells = <1>;
155 #size-cells = <0>;
156 poll-interval = <20>;
157
158 reset {
159 label = "reset";
160 gpios = <&gpio0 17 1>;
161 linux,code = <0x198>;
162 };
163
164 wps {
165 label = "wps";
166 gpios = <&gpio0 0 1>;
167 linux,code = <0x211>;
168 };
169
170 scm1 {
171 label = "SCM1";
172 gpios = <&gpio0 19 1>;
173 linux,code = <0x100>;
174 };
175
176 scm2 {
177 label = "SCM2";
178 gpios = <&gpio0 2 1>;
179 linux,code = <0x101>;
180 };
181 };
182 };