xref: /freebsd-src/sys/contrib/device-tree/src/arm/allwinner/sun4i-a10-inet9f-rev03.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot/*
2*f126890aSEmmanuel Vadot * Copyright 2015 Hans de Goede <hdegoede@redhat.com>
3*f126890aSEmmanuel Vadot *
4*f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms
5*f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual
6*f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a
7*f126890aSEmmanuel Vadot * whole.
8*f126890aSEmmanuel Vadot *
9*f126890aSEmmanuel Vadot *  a) This file is free software; you can redistribute it and/or
10*f126890aSEmmanuel Vadot *     modify it under the terms of the GNU General Public License as
11*f126890aSEmmanuel Vadot *     published by the Free Software Foundation; either version 2 of the
12*f126890aSEmmanuel Vadot *     License, or (at your option) any later version.
13*f126890aSEmmanuel Vadot *
14*f126890aSEmmanuel Vadot *     This file is distributed in the hope that it will be useful,
15*f126890aSEmmanuel Vadot *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16*f126890aSEmmanuel Vadot *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*f126890aSEmmanuel Vadot *     GNU General Public License for more details.
18*f126890aSEmmanuel Vadot *
19*f126890aSEmmanuel Vadot * Or, alternatively,
20*f126890aSEmmanuel Vadot *
21*f126890aSEmmanuel Vadot *  b) Permission is hereby granted, free of charge, to any person
22*f126890aSEmmanuel Vadot *     obtaining a copy of this software and associated documentation
23*f126890aSEmmanuel Vadot *     files (the "Software"), to deal in the Software without
24*f126890aSEmmanuel Vadot *     restriction, including without limitation the rights to use,
25*f126890aSEmmanuel Vadot *     copy, modify, merge, publish, distribute, sublicense, and/or
26*f126890aSEmmanuel Vadot *     sell copies of the Software, and to permit persons to whom the
27*f126890aSEmmanuel Vadot *     Software is furnished to do so, subject to the following
28*f126890aSEmmanuel Vadot *     conditions:
29*f126890aSEmmanuel Vadot *
30*f126890aSEmmanuel Vadot *     The above copyright notice and this permission notice shall be
31*f126890aSEmmanuel Vadot *     included in all copies or substantial portions of the Software.
32*f126890aSEmmanuel Vadot *
33*f126890aSEmmanuel Vadot *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34*f126890aSEmmanuel Vadot *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35*f126890aSEmmanuel Vadot *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36*f126890aSEmmanuel Vadot *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37*f126890aSEmmanuel Vadot *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38*f126890aSEmmanuel Vadot *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39*f126890aSEmmanuel Vadot *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40*f126890aSEmmanuel Vadot *     OTHER DEALINGS IN THE SOFTWARE.
41*f126890aSEmmanuel Vadot */
42*f126890aSEmmanuel Vadot
43*f126890aSEmmanuel Vadot/dts-v1/;
44*f126890aSEmmanuel Vadot#include "sun4i-a10.dtsi"
45*f126890aSEmmanuel Vadot#include "sunxi-common-regulators.dtsi"
46*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
47*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
48*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
49*f126890aSEmmanuel Vadot
50*f126890aSEmmanuel Vadot/ {
51*f126890aSEmmanuel Vadot	model = "iNet-9F Rev 03";
52*f126890aSEmmanuel Vadot	compatible = "inet-tek,inet9f-rev03", "allwinner,sun4i-a10";
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot	aliases {
55*f126890aSEmmanuel Vadot		serial0 = &uart0;
56*f126890aSEmmanuel Vadot	};
57*f126890aSEmmanuel Vadot
58*f126890aSEmmanuel Vadot	chosen {
59*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
60*f126890aSEmmanuel Vadot	};
61*f126890aSEmmanuel Vadot
62*f126890aSEmmanuel Vadot	gpio-keys {
63*f126890aSEmmanuel Vadot		compatible = "gpio-keys-polled";
64*f126890aSEmmanuel Vadot		poll-interval = <20>;
65*f126890aSEmmanuel Vadot
66*f126890aSEmmanuel Vadot		event-left-joystick-left {
67*f126890aSEmmanuel Vadot			label = "Left Joystick Left";
68*f126890aSEmmanuel Vadot			linux,code = <ABS_X>;
69*f126890aSEmmanuel Vadot			linux,input-type = <EV_ABS>;
70*f126890aSEmmanuel Vadot			linux,input-value = <0xffffffff>; /* -1 */
71*f126890aSEmmanuel Vadot			gpios = <&pio 0 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA6 */
72*f126890aSEmmanuel Vadot		};
73*f126890aSEmmanuel Vadot
74*f126890aSEmmanuel Vadot		event-left-joystick-right {
75*f126890aSEmmanuel Vadot			label = "Left Joystick Right";
76*f126890aSEmmanuel Vadot			linux,code = <ABS_X>;
77*f126890aSEmmanuel Vadot			linux,input-type = <EV_ABS>;
78*f126890aSEmmanuel Vadot			linux,input-value = <1>;
79*f126890aSEmmanuel Vadot			gpios = <&pio 0 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA5 */
80*f126890aSEmmanuel Vadot		};
81*f126890aSEmmanuel Vadot
82*f126890aSEmmanuel Vadot		event-left-joystick-up {
83*f126890aSEmmanuel Vadot			label = "Left Joystick Up";
84*f126890aSEmmanuel Vadot			linux,code = <ABS_Y>;
85*f126890aSEmmanuel Vadot			linux,input-type = <EV_ABS>;
86*f126890aSEmmanuel Vadot			linux,input-value = <0xffffffff>; /* -1 */
87*f126890aSEmmanuel Vadot			gpios = <&pio 0 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA8 */
88*f126890aSEmmanuel Vadot		};
89*f126890aSEmmanuel Vadot
90*f126890aSEmmanuel Vadot		event-left-joystick-down {
91*f126890aSEmmanuel Vadot			label = "Left Joystick Down";
92*f126890aSEmmanuel Vadot			linux,code = <ABS_Y>;
93*f126890aSEmmanuel Vadot			linux,input-type = <EV_ABS>;
94*f126890aSEmmanuel Vadot			linux,input-value = <1>;
95*f126890aSEmmanuel Vadot			gpios = <&pio 0 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA9 */
96*f126890aSEmmanuel Vadot		};
97*f126890aSEmmanuel Vadot
98*f126890aSEmmanuel Vadot		event-right-joystick-left {
99*f126890aSEmmanuel Vadot			label = "Right Joystick Left";
100*f126890aSEmmanuel Vadot			linux,code = <ABS_Z>;
101*f126890aSEmmanuel Vadot			linux,input-type = <EV_ABS>;
102*f126890aSEmmanuel Vadot			linux,input-value = <0xffffffff>; /* -1 */
103*f126890aSEmmanuel Vadot			gpios = <&pio 0 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA1 */
104*f126890aSEmmanuel Vadot		};
105*f126890aSEmmanuel Vadot
106*f126890aSEmmanuel Vadot		event-right-joystick-right {
107*f126890aSEmmanuel Vadot			label = "Right Joystick Right";
108*f126890aSEmmanuel Vadot			linux,code = <ABS_Z>;
109*f126890aSEmmanuel Vadot			linux,input-type = <EV_ABS>;
110*f126890aSEmmanuel Vadot			linux,input-value = <1>;
111*f126890aSEmmanuel Vadot			gpios = <&pio 0 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA0 */
112*f126890aSEmmanuel Vadot		};
113*f126890aSEmmanuel Vadot
114*f126890aSEmmanuel Vadot		event-right-joystick-up {
115*f126890aSEmmanuel Vadot			label = "Right Joystick Up";
116*f126890aSEmmanuel Vadot			linux,code = <ABS_RZ>;
117*f126890aSEmmanuel Vadot			linux,input-type = <EV_ABS>;
118*f126890aSEmmanuel Vadot			linux,input-value = <0xffffffff>; /* -1 */
119*f126890aSEmmanuel Vadot			gpios = <&pio 0 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA3 */
120*f126890aSEmmanuel Vadot		};
121*f126890aSEmmanuel Vadot
122*f126890aSEmmanuel Vadot		event-right-joystick-down {
123*f126890aSEmmanuel Vadot			label = "Right Joystick Down";
124*f126890aSEmmanuel Vadot			linux,code = <ABS_RZ>;
125*f126890aSEmmanuel Vadot			linux,input-type = <EV_ABS>;
126*f126890aSEmmanuel Vadot			linux,input-value = <1>;
127*f126890aSEmmanuel Vadot			gpios = <&pio 0 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA4 */
128*f126890aSEmmanuel Vadot		};
129*f126890aSEmmanuel Vadot
130*f126890aSEmmanuel Vadot		event-dpad-left {
131*f126890aSEmmanuel Vadot			label = "DPad Left";
132*f126890aSEmmanuel Vadot			linux,code = <ABS_HAT0X>;
133*f126890aSEmmanuel Vadot			linux,input-type = <EV_ABS>;
134*f126890aSEmmanuel Vadot			linux,input-value = <0xffffffff>; /* -1 */
135*f126890aSEmmanuel Vadot			gpios = <&pio 7 23 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PH23 */
136*f126890aSEmmanuel Vadot		};
137*f126890aSEmmanuel Vadot
138*f126890aSEmmanuel Vadot		event-dpad-right {
139*f126890aSEmmanuel Vadot			label = "DPad Right";
140*f126890aSEmmanuel Vadot			linux,code = <ABS_HAT0X>;
141*f126890aSEmmanuel Vadot			linux,input-type = <EV_ABS>;
142*f126890aSEmmanuel Vadot			linux,input-value = <1>;
143*f126890aSEmmanuel Vadot			gpios = <&pio 7 24 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PH24 */
144*f126890aSEmmanuel Vadot		};
145*f126890aSEmmanuel Vadot
146*f126890aSEmmanuel Vadot		event-dpad-up {
147*f126890aSEmmanuel Vadot			label = "DPad Up";
148*f126890aSEmmanuel Vadot			linux,code = <ABS_HAT0Y>;
149*f126890aSEmmanuel Vadot			linux,input-type = <EV_ABS>;
150*f126890aSEmmanuel Vadot			linux,input-value = <0xffffffff>; /* -1 */
151*f126890aSEmmanuel Vadot			gpios = <&pio 7 25 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PH25 */
152*f126890aSEmmanuel Vadot		};
153*f126890aSEmmanuel Vadot
154*f126890aSEmmanuel Vadot		event-dpad-down {
155*f126890aSEmmanuel Vadot			label = "DPad Down";
156*f126890aSEmmanuel Vadot			linux,code = <ABS_HAT0Y>;
157*f126890aSEmmanuel Vadot			linux,input-type = <EV_ABS>;
158*f126890aSEmmanuel Vadot			linux,input-value = <1>;
159*f126890aSEmmanuel Vadot			gpios = <&pio 7 26 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PH26 */
160*f126890aSEmmanuel Vadot		};
161*f126890aSEmmanuel Vadot
162*f126890aSEmmanuel Vadot		event-x {
163*f126890aSEmmanuel Vadot			label = "Button X";
164*f126890aSEmmanuel Vadot			linux,code = <BTN_X>;
165*f126890aSEmmanuel Vadot			gpios = <&pio 0 16 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA16 */
166*f126890aSEmmanuel Vadot		};
167*f126890aSEmmanuel Vadot
168*f126890aSEmmanuel Vadot		event-y {
169*f126890aSEmmanuel Vadot			label = "Button Y";
170*f126890aSEmmanuel Vadot			linux,code = <BTN_Y>;
171*f126890aSEmmanuel Vadot			gpios = <&pio 0 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA14 */
172*f126890aSEmmanuel Vadot		};
173*f126890aSEmmanuel Vadot
174*f126890aSEmmanuel Vadot		event-a {
175*f126890aSEmmanuel Vadot			label = "Button A";
176*f126890aSEmmanuel Vadot			linux,code = <BTN_A>;
177*f126890aSEmmanuel Vadot			gpios = <&pio 0 17 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA17 */
178*f126890aSEmmanuel Vadot		};
179*f126890aSEmmanuel Vadot
180*f126890aSEmmanuel Vadot		event-b {
181*f126890aSEmmanuel Vadot			label = "Button B";
182*f126890aSEmmanuel Vadot			linux,code = <BTN_B>;
183*f126890aSEmmanuel Vadot			gpios = <&pio 0 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA15 */
184*f126890aSEmmanuel Vadot		};
185*f126890aSEmmanuel Vadot
186*f126890aSEmmanuel Vadot		event-select {
187*f126890aSEmmanuel Vadot			label = "Select Button";
188*f126890aSEmmanuel Vadot			linux,code = <BTN_SELECT>;
189*f126890aSEmmanuel Vadot			gpios = <&pio 0 11 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA11 */
190*f126890aSEmmanuel Vadot		};
191*f126890aSEmmanuel Vadot
192*f126890aSEmmanuel Vadot		event-start {
193*f126890aSEmmanuel Vadot			label = "Start Button";
194*f126890aSEmmanuel Vadot			linux,code = <BTN_START>;
195*f126890aSEmmanuel Vadot			gpios = <&pio 0 12 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA12 */
196*f126890aSEmmanuel Vadot		};
197*f126890aSEmmanuel Vadot
198*f126890aSEmmanuel Vadot		event-top-left {
199*f126890aSEmmanuel Vadot			label = "Top Left Button";
200*f126890aSEmmanuel Vadot			linux,code = <BTN_TL>;
201*f126890aSEmmanuel Vadot			gpios = <&pio 7 22 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PH22 */
202*f126890aSEmmanuel Vadot		};
203*f126890aSEmmanuel Vadot
204*f126890aSEmmanuel Vadot		event-top-right {
205*f126890aSEmmanuel Vadot			label = "Top Right Button";
206*f126890aSEmmanuel Vadot			linux,code = <BTN_TR>;
207*f126890aSEmmanuel Vadot			gpios = <&pio 0 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA13 */
208*f126890aSEmmanuel Vadot		};
209*f126890aSEmmanuel Vadot	};
210*f126890aSEmmanuel Vadot};
211*f126890aSEmmanuel Vadot
212*f126890aSEmmanuel Vadot&cpu0 {
213*f126890aSEmmanuel Vadot	cpu-supply = <&reg_dcdc2>;
214*f126890aSEmmanuel Vadot};
215*f126890aSEmmanuel Vadot
216*f126890aSEmmanuel Vadot&ehci1 {
217*f126890aSEmmanuel Vadot	status = "okay";
218*f126890aSEmmanuel Vadot};
219*f126890aSEmmanuel Vadot
220*f126890aSEmmanuel Vadot&i2c0 {
221*f126890aSEmmanuel Vadot	status = "okay";
222*f126890aSEmmanuel Vadot
223*f126890aSEmmanuel Vadot	axp209: pmic@34 {
224*f126890aSEmmanuel Vadot		reg = <0x34>;
225*f126890aSEmmanuel Vadot		interrupts = <0>;
226*f126890aSEmmanuel Vadot	};
227*f126890aSEmmanuel Vadot};
228*f126890aSEmmanuel Vadot
229*f126890aSEmmanuel Vadot#include "axp209.dtsi"
230*f126890aSEmmanuel Vadot
231*f126890aSEmmanuel Vadot&i2c1 {
232*f126890aSEmmanuel Vadot	status = "okay";
233*f126890aSEmmanuel Vadot
234*f126890aSEmmanuel Vadot	/* Accelerometer */
235*f126890aSEmmanuel Vadot	bma250@18 {
236*f126890aSEmmanuel Vadot		compatible = "bosch,bma250";
237*f126890aSEmmanuel Vadot		reg = <0x18>;
238*f126890aSEmmanuel Vadot		interrupt-parent = <&pio>;
239*f126890aSEmmanuel Vadot		interrupts = <7 0 IRQ_TYPE_EDGE_RISING>; /* PH0 / EINT0 */
240*f126890aSEmmanuel Vadot	};
241*f126890aSEmmanuel Vadot};
242*f126890aSEmmanuel Vadot
243*f126890aSEmmanuel Vadot&i2c2 {
244*f126890aSEmmanuel Vadot	status = "okay";
245*f126890aSEmmanuel Vadot
246*f126890aSEmmanuel Vadot	ft5406ee8: touchscreen@38 {
247*f126890aSEmmanuel Vadot		compatible = "edt,edt-ft5406";
248*f126890aSEmmanuel Vadot		reg = <0x38>;
249*f126890aSEmmanuel Vadot		interrupt-parent = <&pio>;
250*f126890aSEmmanuel Vadot		interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>;
251*f126890aSEmmanuel Vadot		touchscreen-size-x = <800>;
252*f126890aSEmmanuel Vadot		touchscreen-size-y = <480>;
253*f126890aSEmmanuel Vadot	};
254*f126890aSEmmanuel Vadot};
255*f126890aSEmmanuel Vadot
256*f126890aSEmmanuel Vadot&lradc {
257*f126890aSEmmanuel Vadot	vref-supply = <&reg_ldo2>;
258*f126890aSEmmanuel Vadot	status = "okay";
259*f126890aSEmmanuel Vadot
260*f126890aSEmmanuel Vadot	button-200 {
261*f126890aSEmmanuel Vadot		label = "Menu";
262*f126890aSEmmanuel Vadot		linux,code = <KEY_MENU>;
263*f126890aSEmmanuel Vadot		channel = <0>;
264*f126890aSEmmanuel Vadot		voltage = <200000>;
265*f126890aSEmmanuel Vadot	};
266*f126890aSEmmanuel Vadot
267*f126890aSEmmanuel Vadot	button-600 {
268*f126890aSEmmanuel Vadot		label = "Volume Up";
269*f126890aSEmmanuel Vadot		linux,code = <KEY_VOLUMEUP>;
270*f126890aSEmmanuel Vadot		channel = <0>;
271*f126890aSEmmanuel Vadot		voltage = <600000>;
272*f126890aSEmmanuel Vadot	};
273*f126890aSEmmanuel Vadot
274*f126890aSEmmanuel Vadot	button-800 {
275*f126890aSEmmanuel Vadot		label = "Volume Down";
276*f126890aSEmmanuel Vadot		linux,code = <KEY_VOLUMEDOWN>;
277*f126890aSEmmanuel Vadot		channel = <0>;
278*f126890aSEmmanuel Vadot		voltage = <800000>;
279*f126890aSEmmanuel Vadot	};
280*f126890aSEmmanuel Vadot
281*f126890aSEmmanuel Vadot	button-1000 {
282*f126890aSEmmanuel Vadot		label = "Home";
283*f126890aSEmmanuel Vadot		linux,code = <KEY_HOMEPAGE>;
284*f126890aSEmmanuel Vadot		channel = <0>;
285*f126890aSEmmanuel Vadot		voltage = <1000000>;
286*f126890aSEmmanuel Vadot	};
287*f126890aSEmmanuel Vadot
288*f126890aSEmmanuel Vadot	button-1200 {
289*f126890aSEmmanuel Vadot		label = "Esc";
290*f126890aSEmmanuel Vadot		linux,code = <KEY_ESC>;
291*f126890aSEmmanuel Vadot		channel = <0>;
292*f126890aSEmmanuel Vadot		voltage = <1200000>;
293*f126890aSEmmanuel Vadot	};
294*f126890aSEmmanuel Vadot};
295*f126890aSEmmanuel Vadot
296*f126890aSEmmanuel Vadot&mmc0 {
297*f126890aSEmmanuel Vadot	vmmc-supply = <&reg_vcc3v3>;
298*f126890aSEmmanuel Vadot	bus-width = <4>;
299*f126890aSEmmanuel Vadot	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */
300*f126890aSEmmanuel Vadot	status = "okay";
301*f126890aSEmmanuel Vadot};
302*f126890aSEmmanuel Vadot
303*f126890aSEmmanuel Vadot&otg_sram {
304*f126890aSEmmanuel Vadot	status = "okay";
305*f126890aSEmmanuel Vadot};
306*f126890aSEmmanuel Vadot
307*f126890aSEmmanuel Vadot&reg_dcdc2 {
308*f126890aSEmmanuel Vadot	regulator-always-on;
309*f126890aSEmmanuel Vadot	regulator-min-microvolt = <1000000>;
310*f126890aSEmmanuel Vadot	regulator-max-microvolt = <1400000>;
311*f126890aSEmmanuel Vadot	regulator-name = "vdd-cpu";
312*f126890aSEmmanuel Vadot};
313*f126890aSEmmanuel Vadot
314*f126890aSEmmanuel Vadot&reg_dcdc3 {
315*f126890aSEmmanuel Vadot	regulator-always-on;
316*f126890aSEmmanuel Vadot	regulator-min-microvolt = <1250000>;
317*f126890aSEmmanuel Vadot	regulator-max-microvolt = <1250000>;
318*f126890aSEmmanuel Vadot	regulator-name = "vdd-int-dll";
319*f126890aSEmmanuel Vadot};
320*f126890aSEmmanuel Vadot
321*f126890aSEmmanuel Vadot&reg_ldo1 {
322*f126890aSEmmanuel Vadot	regulator-name = "vdd-rtc";
323*f126890aSEmmanuel Vadot};
324*f126890aSEmmanuel Vadot
325*f126890aSEmmanuel Vadot&reg_ldo2 {
326*f126890aSEmmanuel Vadot	regulator-always-on;
327*f126890aSEmmanuel Vadot	regulator-min-microvolt = <3000000>;
328*f126890aSEmmanuel Vadot	regulator-max-microvolt = <3000000>;
329*f126890aSEmmanuel Vadot	regulator-name = "avcc";
330*f126890aSEmmanuel Vadot};
331*f126890aSEmmanuel Vadot
332*f126890aSEmmanuel Vadot&reg_usb0_vbus {
333*f126890aSEmmanuel Vadot	status = "okay";
334*f126890aSEmmanuel Vadot};
335*f126890aSEmmanuel Vadot
336*f126890aSEmmanuel Vadot&reg_usb2_vbus {
337*f126890aSEmmanuel Vadot	status = "okay";
338*f126890aSEmmanuel Vadot};
339*f126890aSEmmanuel Vadot
340*f126890aSEmmanuel Vadot&uart0 {
341*f126890aSEmmanuel Vadot	pinctrl-names = "default";
342*f126890aSEmmanuel Vadot	pinctrl-0 = <&uart0_pb_pins>;
343*f126890aSEmmanuel Vadot	status = "okay";
344*f126890aSEmmanuel Vadot};
345*f126890aSEmmanuel Vadot
346*f126890aSEmmanuel Vadot&usb_otg {
347*f126890aSEmmanuel Vadot	dr_mode = "otg";
348*f126890aSEmmanuel Vadot	status = "okay";
349*f126890aSEmmanuel Vadot};
350*f126890aSEmmanuel Vadot
351*f126890aSEmmanuel Vadot&usbphy {
352*f126890aSEmmanuel Vadot	usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
353*f126890aSEmmanuel Vadot	usb0_vbus_det-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PH5 */
354*f126890aSEmmanuel Vadot	usb0_vbus-supply = <&reg_usb0_vbus>;
355*f126890aSEmmanuel Vadot	usb2_vbus-supply = <&reg_usb2_vbus>;
356*f126890aSEmmanuel Vadot	status = "okay";
357*f126890aSEmmanuel Vadot};
358