xref: /linux/scripts/dtc/include-prefixes/arm/nuvoton/nuvoton-npcm750-evb.dts (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring// Copyright (c) 2018 Nuvoton Technology tomer.maimon@nuvoton.com
3724ba675SRob Herring// Copyright 2018 Google, Inc.
4724ba675SRob Herring
5724ba675SRob Herring/dts-v1/;
6724ba675SRob Herring#include "nuvoton-npcm750.dtsi"
7724ba675SRob Herring#include "dt-bindings/gpio/gpio.h"
8724ba675SRob Herring#include "nuvoton-npcm750-pincfg-evb.dtsi"
9724ba675SRob Herring
10724ba675SRob Herring/ {
11724ba675SRob Herring	model = "Nuvoton npcm750 Development Board (Device Tree)";
12724ba675SRob Herring	compatible = "nuvoton,npcm750-evb", "nuvoton,npcm750";
13724ba675SRob Herring
14724ba675SRob Herring	aliases {
15724ba675SRob Herring		ethernet2 = &gmac0;
16724ba675SRob Herring		ethernet3 = &gmac1;
17724ba675SRob Herring		serial0 = &serial0;
18724ba675SRob Herring		serial1 = &serial1;
19724ba675SRob Herring		serial2 = &serial2;
20724ba675SRob Herring		serial3 = &serial3;
21724ba675SRob Herring		i2c0 = &i2c0;
22724ba675SRob Herring		i2c1 = &i2c1;
23724ba675SRob Herring		i2c2 = &i2c2;
24724ba675SRob Herring		i2c3 = &i2c3;
25724ba675SRob Herring		i2c4 = &i2c4;
26724ba675SRob Herring		i2c5 = &i2c5;
27724ba675SRob Herring		i2c6 = &i2c6;
28724ba675SRob Herring		i2c7 = &i2c7;
29724ba675SRob Herring		i2c8 = &i2c8;
30724ba675SRob Herring		i2c9 = &i2c9;
31724ba675SRob Herring		i2c10 = &i2c10;
32724ba675SRob Herring		i2c11 = &i2c11;
33724ba675SRob Herring		i2c12 = &i2c12;
34724ba675SRob Herring		i2c13 = &i2c13;
35724ba675SRob Herring		i2c14 = &i2c14;
36724ba675SRob Herring		i2c15 = &i2c15;
37724ba675SRob Herring		spi0 = &spi0;
38724ba675SRob Herring		spi1 = &spi1;
39724ba675SRob Herring		fiu0 = &fiu0;
40724ba675SRob Herring		fiu1 = &fiu3;
41724ba675SRob Herring		fiu2 = &fiux;
42724ba675SRob Herring	};
43724ba675SRob Herring
44724ba675SRob Herring	chosen {
45724ba675SRob Herring		stdout-path = &serial3;
46724ba675SRob Herring	};
47724ba675SRob Herring
48724ba675SRob Herring	memory {
49724ba675SRob Herring		device_type = "memory";
50724ba675SRob Herring		reg = <0x0 0x20000000>;
51724ba675SRob Herring	};
52724ba675SRob Herring};
53724ba675SRob Herring
54724ba675SRob Herring&gmac0 {
55724ba675SRob Herring	phy-mode = "rgmii-id";
56724ba675SRob Herring	status = "okay";
57724ba675SRob Herring};
58724ba675SRob Herring
59724ba675SRob Herring&gmac1 {
60724ba675SRob Herring	phy-mode = "rgmii-id";
61724ba675SRob Herring	status = "okay";
62724ba675SRob Herring};
63724ba675SRob Herring
64724ba675SRob Herring&ehci1 {
65724ba675SRob Herring	status = "okay";
66724ba675SRob Herring};
67724ba675SRob Herring
68724ba675SRob Herring&fiu0 {
69724ba675SRob Herring	status = "okay";
70724ba675SRob Herring	flash@0 {
71724ba675SRob Herring		compatible = "jedec,spi-nor";
72724ba675SRob Herring		#address-cells = <1>;
73724ba675SRob Herring		#size-cells = <1>;
74724ba675SRob Herring		spi-rx-bus-width = <2>;
75724ba675SRob Herring		reg = <0>;
76724ba675SRob Herring		spi-max-frequency = <5000000>;
77724ba675SRob Herring		partitions {
78724ba675SRob Herring			compatible = "fixed-partitions";
79724ba675SRob Herring			#address-cells = <1>;
80724ba675SRob Herring			#size-cells = <1>;
81724ba675SRob Herring			bbuboot1@0 {
82724ba675SRob Herring				label = "bb-uboot-1";
83724ba675SRob Herring				reg = <0x0000000 0x80000>;
84724ba675SRob Herring				read-only;
85724ba675SRob Herring				};
86724ba675SRob Herring			bbuboot2@80000 {
87724ba675SRob Herring				label = "bb-uboot-2";
88724ba675SRob Herring				reg = <0x0080000 0x80000>;
89724ba675SRob Herring				read-only;
90724ba675SRob Herring				};
91724ba675SRob Herring			envparam@100000 {
92724ba675SRob Herring				label = "env-param";
93724ba675SRob Herring				reg = <0x0100000 0x40000>;
94724ba675SRob Herring				read-only;
95724ba675SRob Herring				};
96724ba675SRob Herring			spare@140000 {
97724ba675SRob Herring				label = "spare";
98724ba675SRob Herring				reg = <0x0140000 0xC0000>;
99724ba675SRob Herring				};
100724ba675SRob Herring			kernel@200000 {
101724ba675SRob Herring				label = "kernel";
102724ba675SRob Herring				reg = <0x0200000 0x400000>;
103724ba675SRob Herring				};
104724ba675SRob Herring			rootfs@600000 {
105724ba675SRob Herring				label = "rootfs";
106724ba675SRob Herring				reg = <0x0600000 0x700000>;
107724ba675SRob Herring				};
108724ba675SRob Herring			spare1@d00000 {
109724ba675SRob Herring				label = "spare1";
110724ba675SRob Herring				reg = <0x0D00000 0x200000>;
111724ba675SRob Herring				};
112724ba675SRob Herring			spare2@f00000 {
113724ba675SRob Herring				label = "spare2";
114724ba675SRob Herring				reg = <0x0F00000 0x200000>;
115724ba675SRob Herring				};
116724ba675SRob Herring			spare3@1100000 {
117724ba675SRob Herring				label = "spare3";
118724ba675SRob Herring				reg = <0x1100000 0x200000>;
119724ba675SRob Herring				};
120724ba675SRob Herring			spare4@1300000 {
121724ba675SRob Herring				label = "spare4";
122724ba675SRob Herring				reg = <0x1300000 0x0>;
123724ba675SRob Herring			};
124724ba675SRob Herring		};
125724ba675SRob Herring	};
126724ba675SRob Herring};
127724ba675SRob Herring
128724ba675SRob Herring&fiu3 {
129724ba675SRob Herring	pinctrl-0 = <&spi3_pins>, <&spi3quad_pins>;
130724ba675SRob Herring	status = "okay";
131724ba675SRob Herring	flash@0 {
132724ba675SRob Herring		compatible = "jedec,spi-nor";
133724ba675SRob Herring		#address-cells = <1>;
134724ba675SRob Herring		#size-cells = <1>;
135724ba675SRob Herring		spi-rx-bus-width = <2>;
136724ba675SRob Herring		reg = <0>;
137724ba675SRob Herring		spi-max-frequency = <5000000>;
138724ba675SRob Herring		partitions {
139724ba675SRob Herring			compatible = "fixed-partitions";
140724ba675SRob Herring			#address-cells = <1>;
141724ba675SRob Herring			#size-cells = <1>;
142724ba675SRob Herring			system1@0 {
143724ba675SRob Herring				label = "spi3-system1";
144724ba675SRob Herring				reg = <0x0 0x0>;
145724ba675SRob Herring			};
146724ba675SRob Herring		};
147724ba675SRob Herring	};
148724ba675SRob Herring};
149724ba675SRob Herring
150724ba675SRob Herring&fiux {
151724ba675SRob Herring	spix-mode;
152724ba675SRob Herring};
153724ba675SRob Herring
154724ba675SRob Herring&watchdog1 {
155724ba675SRob Herring	status = "okay";
156724ba675SRob Herring};
157724ba675SRob Herring
158724ba675SRob Herring&rng {
159724ba675SRob Herring	status = "okay";
160724ba675SRob Herring};
161724ba675SRob Herring
162724ba675SRob Herring&serial0 {
163724ba675SRob Herring	status = "okay";
164724ba675SRob Herring};
165724ba675SRob Herring
166724ba675SRob Herring&serial1 {
167724ba675SRob Herring	status = "okay";
168724ba675SRob Herring};
169724ba675SRob Herring
170724ba675SRob Herring&serial2 {
171724ba675SRob Herring	status = "okay";
172724ba675SRob Herring};
173724ba675SRob Herring
174724ba675SRob Herring&serial3 {
175724ba675SRob Herring	status = "okay";
176724ba675SRob Herring};
177724ba675SRob Herring
178724ba675SRob Herring&adc {
179724ba675SRob Herring	status = "okay";
180724ba675SRob Herring};
181724ba675SRob Herring
182724ba675SRob Herring&lpc_kcs {
183724ba675SRob Herring	kcs1: kcs1@0 {
184724ba675SRob Herring		status = "okay";
185724ba675SRob Herring	};
186724ba675SRob Herring
187724ba675SRob Herring	kcs2: kcs2@0 {
188724ba675SRob Herring		status = "okay";
189724ba675SRob Herring	};
190724ba675SRob Herring
191724ba675SRob Herring	kcs3: kcs3@0 {
192724ba675SRob Herring		status = "okay";
193724ba675SRob Herring	};
194724ba675SRob Herring};
195724ba675SRob Herring
196724ba675SRob Herring/* lm75 on SVB */
197724ba675SRob Herring&i2c0 {
198724ba675SRob Herring	clock-frequency = <100000>;
199724ba675SRob Herring	status = "okay";
200724ba675SRob Herring	lm75@48 {
201*ef1e32cbSRob Herring		compatible = "national,lm75";
202724ba675SRob Herring		reg = <0x48>;
203724ba675SRob Herring		status = "okay";
204724ba675SRob Herring	};
205724ba675SRob Herring};
206724ba675SRob Herring
207724ba675SRob Herring/* lm75 on EB */
208724ba675SRob Herring&i2c1 {
209724ba675SRob Herring	clock-frequency = <100000>;
210724ba675SRob Herring	status = "okay";
211*ef1e32cbSRob Herring	temperature-sensor@48 {
212*ef1e32cbSRob Herring		compatible = "national,lm75";
213724ba675SRob Herring		reg = <0x48>;
214724ba675SRob Herring		status = "okay";
215724ba675SRob Herring	};
216724ba675SRob Herring};
217724ba675SRob Herring
218724ba675SRob Herring/* tmp100 on EB */
219724ba675SRob Herring&i2c2 {
220724ba675SRob Herring	clock-frequency = <100000>;
221724ba675SRob Herring	status = "okay";
222724ba675SRob Herring	tmp100@48 {
223724ba675SRob Herring		compatible = "tmp100";
224724ba675SRob Herring		reg = <0x48>;
225724ba675SRob Herring		status = "okay";
226724ba675SRob Herring	};
227724ba675SRob Herring};
228724ba675SRob Herring
229724ba675SRob Herring&i2c3 {
230724ba675SRob Herring	clock-frequency = <100000>;
231724ba675SRob Herring	status = "okay";
232724ba675SRob Herring};
233724ba675SRob Herring
234724ba675SRob Herring&i2c5 {
235724ba675SRob Herring	clock-frequency = <100000>;
236724ba675SRob Herring	status = "okay";
237724ba675SRob Herring};
238724ba675SRob Herring
239724ba675SRob Herring/* tmp100 on SVB */
240724ba675SRob Herring&i2c6 {
241724ba675SRob Herring	clock-frequency = <100000>;
242724ba675SRob Herring	status = "okay";
243724ba675SRob Herring	tmp100@48 {
244724ba675SRob Herring		compatible = "tmp100";
245724ba675SRob Herring		reg = <0x48>;
246724ba675SRob Herring		status = "okay";
247724ba675SRob Herring	};
248724ba675SRob Herring};
249724ba675SRob Herring
250724ba675SRob Herring&i2c7 {
251724ba675SRob Herring	clock-frequency = <100000>;
252724ba675SRob Herring	status = "okay";
253724ba675SRob Herring};
254724ba675SRob Herring
255724ba675SRob Herring&i2c8 {
256724ba675SRob Herring	clock-frequency = <100000>;
257724ba675SRob Herring	status = "okay";
258724ba675SRob Herring};
259724ba675SRob Herring
260724ba675SRob Herring&i2c9 {
261724ba675SRob Herring	clock-frequency = <100000>;
262724ba675SRob Herring	status = "okay";
263724ba675SRob Herring};
264724ba675SRob Herring
265724ba675SRob Herring&i2c10 {
266724ba675SRob Herring	clock-frequency = <100000>;
267724ba675SRob Herring	status = "okay";
268724ba675SRob Herring};
269724ba675SRob Herring
270724ba675SRob Herring&i2c11 {
271724ba675SRob Herring	clock-frequency = <100000>;
272724ba675SRob Herring	status = "okay";
273724ba675SRob Herring};
274724ba675SRob Herring
275724ba675SRob Herring&i2c14 {
276724ba675SRob Herring	clock-frequency = <100000>;
277724ba675SRob Herring	status = "okay";
278724ba675SRob Herring};
279724ba675SRob Herring
280724ba675SRob Herring&pwm_fan {
281724ba675SRob Herring	status = "okay";
282724ba675SRob Herring	fan@0 {
283724ba675SRob Herring		reg = <0x00>;
284724ba675SRob Herring		fan-tach-ch = /bits/ 8 <0x00 0x01>;
285724ba675SRob Herring		cooling-levels = <127 255>;
286724ba675SRob Herring	};
287724ba675SRob Herring	fan@1 {
288724ba675SRob Herring		reg = <0x01>;
289724ba675SRob Herring		fan-tach-ch = /bits/ 8 <0x02 0x03>;
290724ba675SRob Herring		cooling-levels = /bits/ 8 <127 255>;
291724ba675SRob Herring	};
292724ba675SRob Herring	fan@2 {
293724ba675SRob Herring		reg = <0x02>;
294724ba675SRob Herring		fan-tach-ch = /bits/ 8 <0x04 0x05>;
295724ba675SRob Herring		cooling-levels = /bits/ 8 <127 255>;
296724ba675SRob Herring	};
297724ba675SRob Herring	fan@3 {
298724ba675SRob Herring		reg = <0x03>;
299724ba675SRob Herring		fan-tach-ch = /bits/ 8 <0x06 0x07>;
300724ba675SRob Herring		cooling-levels = /bits/ 8 <127 255>;
301724ba675SRob Herring	};
302724ba675SRob Herring	fan@4 {
303724ba675SRob Herring		reg = <0x04>;
304724ba675SRob Herring		fan-tach-ch = /bits/ 8 <0x08 0x09>;
305724ba675SRob Herring		cooling-levels = /bits/ 8 <127 255>;
306724ba675SRob Herring	};
307724ba675SRob Herring	fan@5 {
308724ba675SRob Herring		reg = <0x05>;
309724ba675SRob Herring		fan-tach-ch = /bits/ 8 <0x0A 0x0B>;
310724ba675SRob Herring		cooling-levels = /bits/ 8 <127 255>;
311724ba675SRob Herring	};
312724ba675SRob Herring	fan@6 {
313724ba675SRob Herring		reg = <0x06>;
314724ba675SRob Herring		fan-tach-ch = /bits/ 8 <0x0C 0x0D>;
315724ba675SRob Herring		cooling-levels = /bits/ 8 <127 255>;
316724ba675SRob Herring	};
317724ba675SRob Herring	fan@7 {
318724ba675SRob Herring		reg = <0x07>;
319724ba675SRob Herring		fan-tach-ch = /bits/ 8 <0x0E 0x0F>;
320724ba675SRob Herring		cooling-levels = /bits/ 8 <127 255>;
321724ba675SRob Herring	};
322724ba675SRob Herring};
323724ba675SRob Herring
324724ba675SRob Herring&spi0 {
325724ba675SRob Herring	cs-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
326724ba675SRob Herring	status = "okay";
327724ba675SRob Herring	flash@0 {
328724ba675SRob Herring		compatible = "winbond,w25q128",
329724ba675SRob Herring		"jedec,spi-nor";
330724ba675SRob Herring		reg = <0x0>;
331724ba675SRob Herring		#address-cells = <1>;
332724ba675SRob Herring		#size-cells = <1>;
333724ba675SRob Herring		spi-max-frequency = <5000000>;
334724ba675SRob Herring		partition@0 {
335724ba675SRob Herring			label = "spi0_spare1";
336724ba675SRob Herring			reg = <0x0000000 0x800000>;
337724ba675SRob Herring		};
338724ba675SRob Herring		partition@1 {
339724ba675SRob Herring			label = "spi0_spare2";
340724ba675SRob Herring			reg = <0x800000 0x0>;
341724ba675SRob Herring		};
342724ba675SRob Herring	};
343724ba675SRob Herring};
344724ba675SRob Herring
345724ba675SRob Herring&spi1 {
346724ba675SRob Herring	cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
347724ba675SRob Herring	status = "okay";
348724ba675SRob Herring	flash@0 {
349724ba675SRob Herring		compatible = "winbond,w25q128fw",
350724ba675SRob Herring		"jedec,spi-nor";
351724ba675SRob Herring		reg = <0x0>;
352724ba675SRob Herring		#address-cells = <1>;
353724ba675SRob Herring		#size-cells = <1>;
354724ba675SRob Herring		spi-max-frequency = <5000000>;
355724ba675SRob Herring		partition@0 {
356724ba675SRob Herring			label = "spi1_spare1";
357724ba675SRob Herring			reg = <0x0000000 0x800000>;
358724ba675SRob Herring		};
359724ba675SRob Herring		partition@1 {
360724ba675SRob Herring			label = "spi1_spare2";
361724ba675SRob Herring			reg = <0x800000 0x0>;
362724ba675SRob Herring		};
363724ba675SRob Herring	};
364724ba675SRob Herring};
365724ba675SRob Herring
366724ba675SRob Herring&pinctrl {
367724ba675SRob Herring	pinctrl-names = "default";
368724ba675SRob Herring	pinctrl-0 = <	&iox1_pins
369724ba675SRob Herring			&pin8_input
370724ba675SRob Herring			&pin9_output_high
371724ba675SRob Herring			&pin10_input
372724ba675SRob Herring			&pin11_output_high
373724ba675SRob Herring			&pin16_input
374724ba675SRob Herring			&pin24_output_high
375724ba675SRob Herring			&pin25_output_low
376724ba675SRob Herring			&pin32_output_high
377724ba675SRob Herring			&jtag2_pins
378724ba675SRob Herring			&pin61_output_high
379724ba675SRob Herring			&pin62_output_high
380724ba675SRob Herring			&pin63_output_high
381724ba675SRob Herring			&lpc_pins
382724ba675SRob Herring			&pin160_input
383724ba675SRob Herring			&pin162_input
384724ba675SRob Herring			&pin168_input
385724ba675SRob Herring			&pin169_input
386724ba675SRob Herring			&pin170_input
387724ba675SRob Herring			&pin187_output_high
388724ba675SRob Herring			&pin190_input
389724ba675SRob Herring			&pin191_output_high
390724ba675SRob Herring			&pin192_output_high
391724ba675SRob Herring			&pin197_output_low
392724ba675SRob Herring			&ddc_pins
393724ba675SRob Herring			&pin218_input
394724ba675SRob Herring			&pin219_output_low
395724ba675SRob Herring			&pin220_output_low
396724ba675SRob Herring			&pin221_output_high
397724ba675SRob Herring			&pin222_input
398724ba675SRob Herring			&pin223_output_low
399724ba675SRob Herring			&spix_pins
400724ba675SRob Herring			&pin228_output_low
401724ba675SRob Herring			&pin231_output_high
402724ba675SRob Herring			&pin255_input>;
403724ba675SRob Herring};
404724ba675SRob Herring
405