1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2022 Marek Vasut <marex@denx.de>
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot/ {
7*f126890aSEmmanuel Vadot	aliases {
8*f126890aSEmmanuel Vadot		ethernet0 = &ethernet0;
9*f126890aSEmmanuel Vadot		mmc0 = &sdmmc1;
10*f126890aSEmmanuel Vadot		mmc1 = &sdmmc2;
11*f126890aSEmmanuel Vadot		serial0 = &uart4;
12*f126890aSEmmanuel Vadot		serial1 = &uart7;
13*f126890aSEmmanuel Vadot		spi0 = &qspi;
14*f126890aSEmmanuel Vadot	};
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot	chosen {
17*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
18*f126890aSEmmanuel Vadot	};
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot	sd_switch: regulator-sd_switch {
21*f126890aSEmmanuel Vadot		compatible = "regulator-gpio";
22*f126890aSEmmanuel Vadot		regulator-name = "sd_switch";
23*f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
24*f126890aSEmmanuel Vadot		regulator-max-microvolt = <2900000>;
25*f126890aSEmmanuel Vadot		regulator-type = "voltage";
26*f126890aSEmmanuel Vadot		regulator-always-on;
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot		gpios = <&gpioi 5 GPIO_ACTIVE_HIGH>;
29*f126890aSEmmanuel Vadot		gpios-states = <0>;
30*f126890aSEmmanuel Vadot		states = <1800000 0x1>,
31*f126890aSEmmanuel Vadot			 <2900000 0x0>;
32*f126890aSEmmanuel Vadot	};
33*f126890aSEmmanuel Vadot};
34*f126890aSEmmanuel Vadot
35*f126890aSEmmanuel Vadot&adc {
36*f126890aSEmmanuel Vadot	pinctrl-names = "default";
37*f126890aSEmmanuel Vadot	pinctrl-0 = <&adc12_ain_pins_b>;
38*f126890aSEmmanuel Vadot	vdd-supply = <&vdd>;
39*f126890aSEmmanuel Vadot	vdda-supply = <&vdda>;
40*f126890aSEmmanuel Vadot	vref-supply = <&vdda>;
41*f126890aSEmmanuel Vadot	status = "okay";
42*f126890aSEmmanuel Vadot
43*f126890aSEmmanuel Vadot	adc1: adc@0 {
44*f126890aSEmmanuel Vadot		status = "okay";
45*f126890aSEmmanuel Vadot		channel@0 {
46*f126890aSEmmanuel Vadot			reg = <0>;
47*f126890aSEmmanuel Vadot			st,min-sample-time-ns = <5000>;
48*f126890aSEmmanuel Vadot		};
49*f126890aSEmmanuel Vadot		channel@1 {
50*f126890aSEmmanuel Vadot			reg = <1>;
51*f126890aSEmmanuel Vadot			st,min-sample-time-ns = <5000>;
52*f126890aSEmmanuel Vadot		};
53*f126890aSEmmanuel Vadot		channel@6 {
54*f126890aSEmmanuel Vadot			reg = <6>;
55*f126890aSEmmanuel Vadot			st,min-sample-time-ns = <5000>;
56*f126890aSEmmanuel Vadot		};
57*f126890aSEmmanuel Vadot	};
58*f126890aSEmmanuel Vadot
59*f126890aSEmmanuel Vadot	adc2: adc@100 {
60*f126890aSEmmanuel Vadot		status = "okay";
61*f126890aSEmmanuel Vadot		channel@0 {
62*f126890aSEmmanuel Vadot			reg = <0>;
63*f126890aSEmmanuel Vadot			st,min-sample-time-ns = <5000>;
64*f126890aSEmmanuel Vadot		};
65*f126890aSEmmanuel Vadot		channel@1 {
66*f126890aSEmmanuel Vadot			reg = <1>;
67*f126890aSEmmanuel Vadot			st,min-sample-time-ns = <5000>;
68*f126890aSEmmanuel Vadot		};
69*f126890aSEmmanuel Vadot		channel@2 {
70*f126890aSEmmanuel Vadot			reg = <2>;
71*f126890aSEmmanuel Vadot			st,min-sample-time-ns = <5000>;
72*f126890aSEmmanuel Vadot		};
73*f126890aSEmmanuel Vadot	};
74*f126890aSEmmanuel Vadot};
75*f126890aSEmmanuel Vadot
76*f126890aSEmmanuel Vadot&ethernet0 {
77*f126890aSEmmanuel Vadot	status = "okay";
78*f126890aSEmmanuel Vadot	pinctrl-0 = <&ethernet0_rgmii_pins_c>;
79*f126890aSEmmanuel Vadot	pinctrl-1 = <&ethernet0_rgmii_sleep_pins_c>;
80*f126890aSEmmanuel Vadot	pinctrl-names = "default", "sleep";
81*f126890aSEmmanuel Vadot	phy-mode = "rgmii";
82*f126890aSEmmanuel Vadot	max-speed = <1000>;
83*f126890aSEmmanuel Vadot	phy-handle = <&phy0>;
84*f126890aSEmmanuel Vadot
85*f126890aSEmmanuel Vadot	mdio {
86*f126890aSEmmanuel Vadot		#address-cells = <1>;
87*f126890aSEmmanuel Vadot		#size-cells = <0>;
88*f126890aSEmmanuel Vadot		compatible = "snps,dwmac-mdio";
89*f126890aSEmmanuel Vadot		reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>;
90*f126890aSEmmanuel Vadot		reset-delay-us = <1000>;
91*f126890aSEmmanuel Vadot		reset-post-delay-us = <1000>;
92*f126890aSEmmanuel Vadot
93*f126890aSEmmanuel Vadot		phy0: ethernet-phy@7 {
94*f126890aSEmmanuel Vadot			reg = <7>;
95*f126890aSEmmanuel Vadot
96*f126890aSEmmanuel Vadot			rxc-skew-ps = <1500>;
97*f126890aSEmmanuel Vadot			rxdv-skew-ps = <540>;
98*f126890aSEmmanuel Vadot			rxd0-skew-ps = <420>;
99*f126890aSEmmanuel Vadot			rxd1-skew-ps = <420>;
100*f126890aSEmmanuel Vadot			rxd2-skew-ps = <420>;
101*f126890aSEmmanuel Vadot			rxd3-skew-ps = <420>;
102*f126890aSEmmanuel Vadot
103*f126890aSEmmanuel Vadot			txc-skew-ps = <1440>;
104*f126890aSEmmanuel Vadot			txen-skew-ps = <540>;
105*f126890aSEmmanuel Vadot			txd0-skew-ps = <420>;
106*f126890aSEmmanuel Vadot			txd1-skew-ps = <420>;
107*f126890aSEmmanuel Vadot			txd2-skew-ps = <420>;
108*f126890aSEmmanuel Vadot			txd3-skew-ps = <420>;
109*f126890aSEmmanuel Vadot		};
110*f126890aSEmmanuel Vadot	};
111*f126890aSEmmanuel Vadot};
112*f126890aSEmmanuel Vadot
113*f126890aSEmmanuel Vadot&i2c4 {
114*f126890aSEmmanuel Vadot	dh_mac_eeprom: eeprom@53 {
115*f126890aSEmmanuel Vadot		compatible = "atmel,24c02";
116*f126890aSEmmanuel Vadot		reg = <0x53>;
117*f126890aSEmmanuel Vadot		pagesize = <16>;
118*f126890aSEmmanuel Vadot	};
119*f126890aSEmmanuel Vadot};
120*f126890aSEmmanuel Vadot
121*f126890aSEmmanuel Vadot&sdmmc1 {
122*f126890aSEmmanuel Vadot	pinctrl-names = "default", "opendrain", "sleep";
123*f126890aSEmmanuel Vadot	pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_b>;
124*f126890aSEmmanuel Vadot	pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_b>;
125*f126890aSEmmanuel Vadot	pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_b>;
126*f126890aSEmmanuel Vadot	cd-gpios = <&gpioi 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
127*f126890aSEmmanuel Vadot	disable-wp;
128*f126890aSEmmanuel Vadot	st,sig-dir;
129*f126890aSEmmanuel Vadot	st,neg-edge;
130*f126890aSEmmanuel Vadot	st,use-ckin;
131*f126890aSEmmanuel Vadot	bus-width = <4>;
132*f126890aSEmmanuel Vadot	vmmc-supply = <&vdd_sd>;
133*f126890aSEmmanuel Vadot	vqmmc-supply = <&sd_switch>;
134*f126890aSEmmanuel Vadot	status = "okay";
135*f126890aSEmmanuel Vadot};
136*f126890aSEmmanuel Vadot
137*f126890aSEmmanuel Vadot&sdmmc2 {
138*f126890aSEmmanuel Vadot	pinctrl-names = "default", "opendrain", "sleep";
139*f126890aSEmmanuel Vadot	pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_c>;
140*f126890aSEmmanuel Vadot	pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_c>;
141*f126890aSEmmanuel Vadot	pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_c>;
142*f126890aSEmmanuel Vadot	bus-width = <8>;
143*f126890aSEmmanuel Vadot	mmc-ddr-1_8v;
144*f126890aSEmmanuel Vadot	no-sd;
145*f126890aSEmmanuel Vadot	no-sdio;
146*f126890aSEmmanuel Vadot	non-removable;
147*f126890aSEmmanuel Vadot	st,neg-edge;
148*f126890aSEmmanuel Vadot	vmmc-supply = <&v3v3>;
149*f126890aSEmmanuel Vadot	vqmmc-supply = <&v3v3>;
150*f126890aSEmmanuel Vadot	status = "okay";
151*f126890aSEmmanuel Vadot};
152*f126890aSEmmanuel Vadot
153*f126890aSEmmanuel Vadot&uart4 {
154*f126890aSEmmanuel Vadot	pinctrl-names = "default";
155*f126890aSEmmanuel Vadot	pinctrl-0 = <&uart4_pins_b>;
156*f126890aSEmmanuel Vadot	/delete-property/dmas;
157*f126890aSEmmanuel Vadot	/delete-property/dma-names;
158*f126890aSEmmanuel Vadot	status = "okay";
159*f126890aSEmmanuel Vadot};
160*f126890aSEmmanuel Vadot
161*f126890aSEmmanuel Vadot&uart7 {
162*f126890aSEmmanuel Vadot	pinctrl-names = "default";
163*f126890aSEmmanuel Vadot	pinctrl-0 = <&uart7_pins_a>;
164*f126890aSEmmanuel Vadot	uart-has-rtscts;
165*f126890aSEmmanuel Vadot	/delete-property/dmas;
166*f126890aSEmmanuel Vadot	/delete-property/dma-names;
167*f126890aSEmmanuel Vadot	status = "okay";
168*f126890aSEmmanuel Vadot};
169*f126890aSEmmanuel Vadot
170*f126890aSEmmanuel Vadot&usbh_ehci {
171*f126890aSEmmanuel Vadot	status = "okay";
172*f126890aSEmmanuel Vadot};
173*f126890aSEmmanuel Vadot
174*f126890aSEmmanuel Vadot&usbh_ohci {
175*f126890aSEmmanuel Vadot	status = "okay";
176*f126890aSEmmanuel Vadot};
177*f126890aSEmmanuel Vadot
178*f126890aSEmmanuel Vadot&usbotg_hs {
179*f126890aSEmmanuel Vadot	pinctrl-0 = <&usbotg_hs_pins_a>;
180*f126890aSEmmanuel Vadot	pinctrl-names = "default";
181*f126890aSEmmanuel Vadot	phy-names = "usb2-phy";
182*f126890aSEmmanuel Vadot	phys = <&usbphyc_port1 0>;
183*f126890aSEmmanuel Vadot	status = "okay";
184*f126890aSEmmanuel Vadot	vbus-supply = <&vbus_otg>;
185*f126890aSEmmanuel Vadot};
186*f126890aSEmmanuel Vadot
187*f126890aSEmmanuel Vadot&usbphyc {
188*f126890aSEmmanuel Vadot	status = "okay";
189*f126890aSEmmanuel Vadot};
190*f126890aSEmmanuel Vadot
191*f126890aSEmmanuel Vadot&usbphyc_port0 {
192*f126890aSEmmanuel Vadot	phy-supply = <&vdd_usb>;
193*f126890aSEmmanuel Vadot};
194*f126890aSEmmanuel Vadot
195*f126890aSEmmanuel Vadot&usbphyc_port1 {
196*f126890aSEmmanuel Vadot	phy-supply = <&vdd_usb>;
197*f126890aSEmmanuel Vadot};
198