xref: /openbmc/u-boot/arch/arm/dts/zynq-zc702.dts (revision 169050e4f59000c5c169bbf3855d8c013b161a6b)
15ab502cbSMasahiro Yamada/*
25ab502cbSMasahiro Yamada * Xilinx ZC702 board DTS
35ab502cbSMasahiro Yamada *
4999667caSMichal Simek *  Copyright (C) 2011 - 2015 Xilinx
5999667caSMichal Simek *  Copyright (C) 2012 National Instruments Corp.
65ab502cbSMasahiro Yamada *
75ab502cbSMasahiro Yamada * SPDX-License-Identifier:	GPL-2.0+
85ab502cbSMasahiro Yamada */
95ab502cbSMasahiro Yamada/dts-v1/;
105ab502cbSMasahiro Yamada#include "zynq-7000.dtsi"
115ab502cbSMasahiro Yamada
125ab502cbSMasahiro Yamada/ {
13999667caSMichal Simek	model = "Zynq ZC702 Development Board";
145ab502cbSMasahiro Yamada	compatible = "xlnx,zynq-zc702", "xlnx,zynq-7000";
157d34c5deSMasahiro Yamada
169f9d41baSMasahiro Yamada	aliases {
17999667caSMichal Simek		ethernet0 = &gem0;
18999667caSMichal Simek		i2c0 = &i2c0;
199f9d41baSMasahiro Yamada		serial0 = &uart1;
20e9cf6ec5SJagan Teki		spi0 = &qspi;
21d9ae52c8SMichal Simek		mmc0 = &sdhci0;
229f9d41baSMasahiro Yamada	};
239f9d41baSMasahiro Yamada
247d34c5deSMasahiro Yamada	memory {
257d34c5deSMasahiro Yamada		device_type = "memory";
26999667caSMichal Simek		reg = <0x0 0x40000000>;
277d34c5deSMasahiro Yamada	};
28999667caSMichal Simek
29999667caSMichal Simek	chosen {
30936bbc5dSMichal Simek		bootargs = "";
31999667caSMichal Simek		stdout-path = "serial0:115200n8";
32999667caSMichal Simek	};
33999667caSMichal Simek
3491f9f172SMichal Simek	gpio-keys {
3591f9f172SMichal Simek		compatible = "gpio-keys";
3691f9f172SMichal Simek		#address-cells = <1>;
3791f9f172SMichal Simek		#size-cells = <0>;
3891f9f172SMichal Simek		autorepeat;
3991f9f172SMichal Simek		sw14 {
4091f9f172SMichal Simek			label = "sw14";
4191f9f172SMichal Simek			gpios = <&gpio0 12 0>;
4291f9f172SMichal Simek			linux,code = <108>; /* down */
4391f9f172SMichal Simek			gpio-key,wakeup;
4491f9f172SMichal Simek			autorepeat;
4591f9f172SMichal Simek		};
4691f9f172SMichal Simek		sw13 {
4791f9f172SMichal Simek			label = "sw13";
4891f9f172SMichal Simek			gpios = <&gpio0 14 0>;
4991f9f172SMichal Simek			linux,code = <103>; /* up */
5091f9f172SMichal Simek			gpio-key,wakeup;
5191f9f172SMichal Simek			autorepeat;
5291f9f172SMichal Simek		};
5391f9f172SMichal Simek	};
5491f9f172SMichal Simek
55999667caSMichal Simek	leds {
56999667caSMichal Simek		compatible = "gpio-leds";
57999667caSMichal Simek
58999667caSMichal Simek		ds23 {
59999667caSMichal Simek			label = "ds23";
60999667caSMichal Simek			gpios = <&gpio0 10 0>;
61999667caSMichal Simek			linux,default-trigger = "heartbeat";
62999667caSMichal Simek		};
63999667caSMichal Simek	};
64999667caSMichal Simek
65999667caSMichal Simek	usb_phy0: phy0 {
66999667caSMichal Simek		compatible = "usb-nop-xceiv";
67999667caSMichal Simek		#phy-cells = <0>;
68999667caSMichal Simek	};
69999667caSMichal Simek};
70999667caSMichal Simek
71999667caSMichal Simek&amba {
72999667caSMichal Simek	ocm: sram@fffc0000 {
73999667caSMichal Simek		compatible = "mmio-sram";
74999667caSMichal Simek		reg = <0xfffc0000 0x10000>;
75999667caSMichal Simek	};
76999667caSMichal Simek};
77999667caSMichal Simek
78999667caSMichal Simek&can0 {
79999667caSMichal Simek	status = "okay";
80999667caSMichal Simek	pinctrl-names = "default";
81999667caSMichal Simek	pinctrl-0 = <&pinctrl_can0_default>;
82999667caSMichal Simek};
83999667caSMichal Simek
84999667caSMichal Simek&clkc {
85999667caSMichal Simek	ps-clk-frequency = <33333333>;
86999667caSMichal Simek};
87999667caSMichal Simek
88999667caSMichal Simek&gem0 {
89999667caSMichal Simek	status = "okay";
90999667caSMichal Simek	phy-mode = "rgmii-id";
91999667caSMichal Simek	phy-handle = <&ethernet_phy>;
92999667caSMichal Simek	pinctrl-names = "default";
93999667caSMichal Simek	pinctrl-0 = <&pinctrl_gem0_default>;
94c9132b1eSPunnaiah Choudary Kalluri	phy-reset-gpio = <&gpio0 11 0>;
95c9132b1eSPunnaiah Choudary Kalluri	phy-reset-active-low;
96999667caSMichal Simek
97999667caSMichal Simek	ethernet_phy: ethernet-phy@7 {
98999667caSMichal Simek		reg = <7>;
99999667caSMichal Simek	};
100999667caSMichal Simek};
101999667caSMichal Simek
102999667caSMichal Simek&gpio0 {
103999667caSMichal Simek	pinctrl-names = "default";
104999667caSMichal Simek	pinctrl-0 = <&pinctrl_gpio0_default>;
105999667caSMichal Simek};
106999667caSMichal Simek
107999667caSMichal Simek&i2c0 {
108999667caSMichal Simek	status = "okay";
109999667caSMichal Simek	clock-frequency = <400000>;
110999667caSMichal Simek	pinctrl-names = "default";
111999667caSMichal Simek	pinctrl-0 = <&pinctrl_i2c0_default>;
112999667caSMichal Simek
113999667caSMichal Simek	i2cswitch@74 {
114999667caSMichal Simek		compatible = "nxp,pca9548";
115999667caSMichal Simek		#address-cells = <1>;
116999667caSMichal Simek		#size-cells = <0>;
117999667caSMichal Simek		reg = <0x74>;
118999667caSMichal Simek
119999667caSMichal Simek		i2c@0 {
120999667caSMichal Simek			#address-cells = <1>;
121999667caSMichal Simek			#size-cells = <0>;
122999667caSMichal Simek			reg = <0>;
123999667caSMichal Simek			si570: clock-generator@5d {
124999667caSMichal Simek				#clock-cells = <0>;
125999667caSMichal Simek				compatible = "silabs,si570";
126999667caSMichal Simek				temperature-stability = <50>;
127999667caSMichal Simek				reg = <0x5d>;
128999667caSMichal Simek				factory-fout = <156250000>;
129999667caSMichal Simek				clock-frequency = <148500000>;
130999667caSMichal Simek			};
131999667caSMichal Simek		};
132999667caSMichal Simek
133*169050e4SChristian Kohn		i2c@1 {
134*169050e4SChristian Kohn			#address-cells = <1>;
135*169050e4SChristian Kohn			#size-cells = <0>;
136*169050e4SChristian Kohn			reg = <1>;
137*169050e4SChristian Kohn			adv7511: hdmi-tx@39 {
138*169050e4SChristian Kohn				compatible = "adi,adv7511";
139*169050e4SChristian Kohn				reg = <0x39>;
140*169050e4SChristian Kohn				adi,input-depth = <8>;
141*169050e4SChristian Kohn				adi,input-colorspace = "yuv422";
142*169050e4SChristian Kohn				adi,input-clock = "1x";
143*169050e4SChristian Kohn				adi,input-style = <3>;
144*169050e4SChristian Kohn				adi,input-justification = "right";
145*169050e4SChristian Kohn			};
146*169050e4SChristian Kohn		};
147*169050e4SChristian Kohn
148999667caSMichal Simek		i2c@2 {
149999667caSMichal Simek			#address-cells = <1>;
150999667caSMichal Simek			#size-cells = <0>;
151999667caSMichal Simek			reg = <2>;
152999667caSMichal Simek			eeprom@54 {
153999667caSMichal Simek				compatible = "at,24c08";
154999667caSMichal Simek				reg = <0x54>;
155999667caSMichal Simek			};
156999667caSMichal Simek		};
157999667caSMichal Simek
158999667caSMichal Simek		i2c@3 {
159999667caSMichal Simek			#address-cells = <1>;
160999667caSMichal Simek			#size-cells = <0>;
161999667caSMichal Simek			reg = <3>;
162999667caSMichal Simek			gpio@21 {
163999667caSMichal Simek				compatible = "ti,tca6416";
164999667caSMichal Simek				reg = <0x21>;
165999667caSMichal Simek				gpio-controller;
166999667caSMichal Simek				#gpio-cells = <2>;
167999667caSMichal Simek			};
168999667caSMichal Simek		};
169999667caSMichal Simek
170999667caSMichal Simek		i2c@4 {
171999667caSMichal Simek			#address-cells = <1>;
172999667caSMichal Simek			#size-cells = <0>;
173999667caSMichal Simek			reg = <4>;
174999667caSMichal Simek			rtc@51 {
175999667caSMichal Simek				compatible = "nxp,pcf8563";
176999667caSMichal Simek				reg = <0x51>;
177999667caSMichal Simek			};
178999667caSMichal Simek		};
179999667caSMichal Simek
180999667caSMichal Simek		i2c@7 {
181999667caSMichal Simek			#address-cells = <1>;
182999667caSMichal Simek			#size-cells = <0>;
183999667caSMichal Simek			reg = <7>;
184999667caSMichal Simek			hwmon@52 {
185999667caSMichal Simek				compatible = "ti,ucd9248";
186999667caSMichal Simek				reg = <52>;
187999667caSMichal Simek			};
188999667caSMichal Simek			hwmon@53 {
189999667caSMichal Simek				compatible = "ti,ucd9248";
190999667caSMichal Simek				reg = <53>;
191999667caSMichal Simek			};
192999667caSMichal Simek			hwmon@54 {
193999667caSMichal Simek				compatible = "ti,ucd9248";
194999667caSMichal Simek				reg = <54>;
195999667caSMichal Simek			};
196999667caSMichal Simek		};
197999667caSMichal Simek	};
198999667caSMichal Simek};
199999667caSMichal Simek
200999667caSMichal Simek&pinctrl0 {
201999667caSMichal Simek	pinctrl_can0_default: can0-default {
202999667caSMichal Simek		mux {
203999667caSMichal Simek			function = "can0";
204999667caSMichal Simek			groups = "can0_9_grp";
205999667caSMichal Simek		};
206999667caSMichal Simek
207999667caSMichal Simek		conf {
208999667caSMichal Simek			groups = "can0_9_grp";
209999667caSMichal Simek			slew-rate = <0>;
210999667caSMichal Simek			io-standard = <1>;
211999667caSMichal Simek		};
212999667caSMichal Simek
213999667caSMichal Simek		conf-rx {
214999667caSMichal Simek			pins = "MIO46";
215999667caSMichal Simek			bias-high-impedance;
216999667caSMichal Simek		};
217999667caSMichal Simek
218999667caSMichal Simek		conf-tx {
219999667caSMichal Simek			pins = "MIO47";
220999667caSMichal Simek			bias-disable;
221999667caSMichal Simek		};
222999667caSMichal Simek	};
223999667caSMichal Simek
224999667caSMichal Simek	pinctrl_gem0_default: gem0-default {
225999667caSMichal Simek		mux {
226999667caSMichal Simek			function = "ethernet0";
227999667caSMichal Simek			groups = "ethernet0_0_grp";
228999667caSMichal Simek		};
229999667caSMichal Simek
230999667caSMichal Simek		conf {
231999667caSMichal Simek			groups = "ethernet0_0_grp";
232999667caSMichal Simek			slew-rate = <0>;
233999667caSMichal Simek			io-standard = <4>;
234999667caSMichal Simek		};
235999667caSMichal Simek
236999667caSMichal Simek		conf-rx {
237999667caSMichal Simek			pins = "MIO22", "MIO23", "MIO24", "MIO25", "MIO26", "MIO27";
238999667caSMichal Simek			bias-high-impedance;
239999667caSMichal Simek			low-power-disable;
240999667caSMichal Simek		};
241999667caSMichal Simek
242999667caSMichal Simek		conf-tx {
243999667caSMichal Simek			pins = "MIO16", "MIO17", "MIO18", "MIO19", "MIO20", "MIO21";
244999667caSMichal Simek			bias-disable;
245999667caSMichal Simek			low-power-enable;
246999667caSMichal Simek		};
247999667caSMichal Simek
248999667caSMichal Simek		mux-mdio {
249999667caSMichal Simek			function = "mdio0";
250999667caSMichal Simek			groups = "mdio0_0_grp";
251999667caSMichal Simek		};
252999667caSMichal Simek
253999667caSMichal Simek		conf-mdio {
254999667caSMichal Simek			groups = "mdio0_0_grp";
255999667caSMichal Simek			slew-rate = <0>;
256999667caSMichal Simek			io-standard = <1>;
257999667caSMichal Simek			bias-disable;
258999667caSMichal Simek		};
259999667caSMichal Simek	};
260999667caSMichal Simek
261999667caSMichal Simek	pinctrl_gpio0_default: gpio0-default {
262999667caSMichal Simek		mux {
263999667caSMichal Simek			function = "gpio0";
264999667caSMichal Simek			groups = "gpio0_7_grp", "gpio0_8_grp", "gpio0_9_grp",
265999667caSMichal Simek				 "gpio0_10_grp", "gpio0_11_grp", "gpio0_12_grp",
266999667caSMichal Simek				 "gpio0_13_grp", "gpio0_14_grp";
267999667caSMichal Simek		};
268999667caSMichal Simek
269999667caSMichal Simek		conf {
270999667caSMichal Simek			groups = "gpio0_7_grp", "gpio0_8_grp", "gpio0_9_grp",
271999667caSMichal Simek				 "gpio0_10_grp", "gpio0_11_grp", "gpio0_12_grp",
272999667caSMichal Simek				 "gpio0_13_grp", "gpio0_14_grp";
273999667caSMichal Simek			slew-rate = <0>;
274999667caSMichal Simek			io-standard = <1>;
275999667caSMichal Simek		};
276999667caSMichal Simek
277999667caSMichal Simek		conf-pull-up {
278999667caSMichal Simek			pins = "MIO9", "MIO10", "MIO11", "MIO12", "MIO13", "MIO14";
279999667caSMichal Simek			bias-pull-up;
280999667caSMichal Simek		};
281999667caSMichal Simek
282999667caSMichal Simek		conf-pull-none {
283999667caSMichal Simek			pins = "MIO7", "MIO8";
284999667caSMichal Simek			bias-disable;
285999667caSMichal Simek		};
286999667caSMichal Simek	};
287999667caSMichal Simek
288999667caSMichal Simek	pinctrl_i2c0_default: i2c0-default {
289999667caSMichal Simek		mux {
290999667caSMichal Simek			groups = "i2c0_10_grp";
291999667caSMichal Simek			function = "i2c0";
292999667caSMichal Simek		};
293999667caSMichal Simek
294999667caSMichal Simek		conf {
295999667caSMichal Simek			groups = "i2c0_10_grp";
296999667caSMichal Simek			bias-pull-up;
297999667caSMichal Simek			slew-rate = <0>;
298999667caSMichal Simek			io-standard = <1>;
299999667caSMichal Simek		};
300999667caSMichal Simek	};
301999667caSMichal Simek
302999667caSMichal Simek	pinctrl_sdhci0_default: sdhci0-default {
303999667caSMichal Simek		mux {
304999667caSMichal Simek			groups = "sdio0_2_grp";
305999667caSMichal Simek			function = "sdio0";
306999667caSMichal Simek		};
307999667caSMichal Simek
308999667caSMichal Simek		conf {
309999667caSMichal Simek			groups = "sdio0_2_grp";
310999667caSMichal Simek			slew-rate = <0>;
311999667caSMichal Simek			io-standard = <1>;
312999667caSMichal Simek			bias-disable;
313999667caSMichal Simek		};
314999667caSMichal Simek
315999667caSMichal Simek		mux-cd {
316999667caSMichal Simek			groups = "gpio0_0_grp";
317999667caSMichal Simek			function = "sdio0_cd";
318999667caSMichal Simek		};
319999667caSMichal Simek
320999667caSMichal Simek		conf-cd {
321999667caSMichal Simek			groups = "gpio0_0_grp";
322999667caSMichal Simek			bias-high-impedance;
323999667caSMichal Simek			bias-pull-up;
324999667caSMichal Simek			slew-rate = <0>;
325999667caSMichal Simek			io-standard = <1>;
326999667caSMichal Simek		};
327999667caSMichal Simek
328999667caSMichal Simek		mux-wp {
329999667caSMichal Simek			groups = "gpio0_15_grp";
330999667caSMichal Simek			function = "sdio0_wp";
331999667caSMichal Simek		};
332999667caSMichal Simek
333999667caSMichal Simek		conf-wp {
334999667caSMichal Simek			groups = "gpio0_15_grp";
335999667caSMichal Simek			bias-high-impedance;
336999667caSMichal Simek			bias-pull-up;
337999667caSMichal Simek			slew-rate = <0>;
338999667caSMichal Simek			io-standard = <1>;
339999667caSMichal Simek		};
340999667caSMichal Simek	};
341999667caSMichal Simek
342999667caSMichal Simek	pinctrl_uart1_default: uart1-default {
343999667caSMichal Simek		mux {
344999667caSMichal Simek			groups = "uart1_10_grp";
345999667caSMichal Simek			function = "uart1";
346999667caSMichal Simek		};
347999667caSMichal Simek
348999667caSMichal Simek		conf {
349999667caSMichal Simek			groups = "uart1_10_grp";
350999667caSMichal Simek			slew-rate = <0>;
351999667caSMichal Simek			io-standard = <1>;
352999667caSMichal Simek		};
353999667caSMichal Simek
354999667caSMichal Simek		conf-rx {
355999667caSMichal Simek			pins = "MIO49";
356999667caSMichal Simek			bias-high-impedance;
357999667caSMichal Simek		};
358999667caSMichal Simek
359999667caSMichal Simek		conf-tx {
360999667caSMichal Simek			pins = "MIO48";
361999667caSMichal Simek			bias-disable;
362999667caSMichal Simek		};
363999667caSMichal Simek	};
364999667caSMichal Simek
365999667caSMichal Simek	pinctrl_usb0_default: usb0-default {
366999667caSMichal Simek		mux {
367999667caSMichal Simek			groups = "usb0_0_grp";
368999667caSMichal Simek			function = "usb0";
369999667caSMichal Simek		};
370999667caSMichal Simek
371999667caSMichal Simek		conf {
372999667caSMichal Simek			groups = "usb0_0_grp";
373999667caSMichal Simek			slew-rate = <0>;
374999667caSMichal Simek			io-standard = <1>;
375999667caSMichal Simek		};
376999667caSMichal Simek
377999667caSMichal Simek		conf-rx {
378999667caSMichal Simek			pins = "MIO29", "MIO31", "MIO36";
379999667caSMichal Simek			bias-high-impedance;
380999667caSMichal Simek		};
381999667caSMichal Simek
382999667caSMichal Simek		conf-tx {
383999667caSMichal Simek			pins = "MIO28", "MIO30", "MIO32", "MIO33", "MIO34",
384999667caSMichal Simek			       "MIO35", "MIO37", "MIO38", "MIO39";
385999667caSMichal Simek			bias-disable;
386999667caSMichal Simek		};
387999667caSMichal Simek	};
388999667caSMichal Simek};
389999667caSMichal Simek
390999667caSMichal Simek&sdhci0 {
391d9ae52c8SMichal Simek	u-boot,dm-pre-reloc;
392999667caSMichal Simek	status = "okay";
393999667caSMichal Simek	pinctrl-names = "default";
394999667caSMichal Simek	pinctrl-0 = <&pinctrl_sdhci0_default>;
395999667caSMichal Simek};
396999667caSMichal Simek
397999667caSMichal Simek&uart1 {
398035c6b27SSimon Glass	u-boot,dm-pre-reloc;
399999667caSMichal Simek	status = "okay";
400999667caSMichal Simek	pinctrl-names = "default";
401999667caSMichal Simek	pinctrl-0 = <&pinctrl_uart1_default>;
402999667caSMichal Simek};
403999667caSMichal Simek
404e9cf6ec5SJagan Teki&qspi {
405d9ae52c8SMichal Simek	u-boot,dm-pre-reloc;
406e9cf6ec5SJagan Teki	status = "okay";
407e9cf6ec5SJagan Teki};
408e9cf6ec5SJagan Teki
409999667caSMichal Simek&usb0 {
410999667caSMichal Simek	status = "okay";
411999667caSMichal Simek	dr_mode = "host";
412999667caSMichal Simek	usb-phy = <&usb_phy0>;
413999667caSMichal Simek	pinctrl-names = "default";
414999667caSMichal Simek	pinctrl-0 = <&pinctrl_usb0_default>;
4155ab502cbSMasahiro Yamada};
416