xref: /freebsd-11-stable/sys/gnu/dts/mips/WIZFI630A.dts (revision 4e5f11e0b96f602e41be941d612e582b5657944f)
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	gpio-export {
14		compatible = "gpio-export";
15		#size-cells = <0>;
16	};
17
18	gpio-leds {
19		compatible = "gpio-leds";
20
21		run {
22			label = "wizfi630a::run";
23			gpios = <&gpio0 1 1>;
24		};
25
26		wps {
27			label = "wizfi630a::wps";
28			gpios = <&gpio0 20 1>;
29		};
30
31		uart1 {
32			label = "wizfi630a::uart1";
33			gpios = <&gpio0 18 1>;
34		};
35
36		uart2 {
37			label = "wizfi630a::uart2";
38			gpios = <&gpio0 21 1>;
39		};
40	};
41
42	gpio-keys-polled {
43		compatible = "gpio-keys-polled";
44		#address-cells = <1>;
45		#size-cells = <0>;
46		poll-interval = <20>;
47
48		reset {
49			label = "reset";
50			gpios = <&gpio0 17 1>;
51			linux,code = <0x198>;
52		};
53
54		wps {
55			label = "wps";
56			gpios = <&gpio0 0 1>;
57			linux,code = <0x211>;
58		};
59
60		scm1 {
61			label = "SCM1";
62			gpios = <&gpio0 19 1>;
63			linux,code = <0x100>;
64		};
65
66		scm2 {
67			label = "SCM2";
68			gpios = <&gpio0 2 1>;
69			linux,code = <0x101>;
70		};
71	};
72};
73
74&gpio1 {
75	status = "okay";
76};
77
78&spi0 {
79	status = "okay";
80
81	m25p80@0 {
82		#address-cells = <1>;
83		#size-cells = <1>;
84		compatible = "jedec,spi-nor";
85		reg = <0>;
86		linux,modalias = "m25p80", "w25q128";
87		spi-max-frequency = <10000000>;
88
89		partition@0 {
90			#size-cells = <1>;
91			label = "uboot";
92			reg = <0x0 0x30000>;
93			read-only;
94		};
95
96		partition@30000 {
97			#size-cells = <1>;
98			label = "uboot-env";
99			reg = <0x30000 0x10000>;
100			read-only;
101		};
102
103		factory: partition@40000 {
104			#size-cells = <1>;
105			label = "factory";
106			reg = <0x40000 0x10000>;
107			read-only;
108		};
109
110		partition@50000 {
111			#size-cells = <1>;
112			label = "firmware";
113			reg = <0x50000 0xfb0000>;
114		};
115	};
116};
117
118&uart {
119	compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
120	reg = <0x500 0x100>;
121	resets = <&rstctrl 12>;
122	reset-names = "uart";
123	interrupt-parent = <&intc>;
124	interrupts = <5>;
125	reg-shift = <2>;
126	pinctrl-names = "default";
127	pinctrl-0 = <&uartf_pins>;
128	status = "okay";
129};
130
131&uartlite {
132	compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
133	reg = <0xc00 0x100>;
134	resets = <&rstctrl 19>;
135	reset-names = "uartl";
136	interrupt-parent = <&intc>;
137	interrupts = <12>;
138	reg-shift = <2>;
139	pinctrl-names = "default";
140	pinctrl-0 = <&uartlite_pins>;
141};
142
143&pinctrl {
144	state_default: pinctrl0 {
145		gpio {
146			ralink,group = "i2c", "jtag" ;
147			ralink,function = "gpio";
148		};
149	};
150
151	uartf_gpio_pins: uartf_gpio {
152		uartf_gpio {
153			ralink,group = "uartf";
154			ralink,function = "uartf";
155		};
156	};
157
158	uartlite_pins: uartlite {
159		uart {
160			ralink,group = "uartlite";
161			ralink,function = "uartlite";
162		};
163	};
164};
165
166&ethernet {
167	mtd-mac-address = <&factory 0x4>;
168};
169
170&esw {
171	mediatek,portmap = <0x17>;
172};
173
174&wmac {
175	ralink,mtd-eeprom = <&factory 0>;
176};
177
178&ehci {
179	status = "okay";
180};
181
182&ohci {
183	status = "okay";
184};
185