1// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
2/*
3 * Copyright (C) 2020 Marek Vasut <marex@denx.de>
4 */
5
6#include <dt-bindings/input/input.h>
7#include <dt-bindings/pwm/pwm.h>
8
9/ {
10	aliases {
11		serial0 = &uart4;
12		serial1 = &usart3;
13		serial2 = &uart8;
14	};
15
16	chosen {
17		stdout-path = "serial0:115200n8";
18	};
19
20	led {
21		compatible = "gpio-leds";
22
23		led-0 {
24			label = "yellow:led";
25			gpios = <&gpioi 3 GPIO_ACTIVE_HIGH>;
26			default-state = "off";
27		};
28	};
29};
30
31&adc {
32	status = "disabled";
33};
34
35&dac {
36	status = "disabled";
37};
38
39&fmc {
40	status = "disabled";
41};
42
43&gpioa {
44	/*
45	 * NOTE: The USB Port on the PicoITX needs a PWR_EN signal to enable
46	 * port power. This signal should be handled by USB power sequencing
47	 * in order to turn on port power when USB bus is powered up, but so
48	 * far there is no such functionality.
49	 */
50	usb-port-power-hog {
51		gpio-hog;
52		gpios = <13 0>;
53		output-low;
54		line-name = "usb-port-power";
55	};
56};
57
58&gpioc {
59	gpio-line-names = "", "", "", "",
60			  "", "", "PicoITX-In1", "",
61			  "", "", "", "",
62			  "", "", "", "";
63};
64
65&gpiod {
66	gpio-line-names = "", "", "", "",
67			  "", "", "DHCOM-B", "",
68			  "", "", "", "PicoITX-Out1",
69			  "PicoITX-Out2", "", "", "";
70};
71
72&gpiog {
73	gpio-line-names = "PicoITX-In2", "", "", "",
74			  "", "", "", "",
75			  "DHCOM-L", "", "", "",
76			  "", "", "", "";
77};
78
79&i2c2 {	/* On board-to-board connector (optional) */
80	pinctrl-names = "default";
81	pinctrl-0 = <&i2c2_pins_a>;
82	i2c-scl-rising-time-ns = <185>;
83	i2c-scl-falling-time-ns = <20>;
84	status = "okay";
85	/* spare dmas for other usage */
86	/delete-property/dmas;
87	/delete-property/dma-names;
88};
89
90&i2c5 {	/* On board-to-board connector */
91	pinctrl-names = "default";
92	pinctrl-0 = <&i2c5_pins_a>;
93	i2c-scl-rising-time-ns = <185>;
94	i2c-scl-falling-time-ns = <20>;
95	status = "okay";
96	/* spare dmas for other usage */
97	/delete-property/dmas;
98	/delete-property/dma-names;
99};
100
101&ksz8851 {
102	status = "disabled";
103};
104
105&usart3 {
106	pinctrl-names = "default";
107	pinctrl-0 = <&usart3_pins_a>;
108	status = "okay";
109};
110
111&uart8 {
112	pinctrl-names = "default";
113	pinctrl-0 = <&uart8_pins_a &uart8_rtscts_pins_a>;
114	status = "okay";
115};
116
117&usbh_ehci {
118	phys = <&usbphyc_port0>;
119	status = "okay";
120};
121
122&usbh_ohci {
123	phys = <&usbphyc_port0>;
124	status = "okay";
125};
126
127&usbotg_hs {
128	dr_mode = "otg";
129	pinctrl-0 = <&usbotg_hs_pins_a>;
130	pinctrl-names = "default";
131	phy-names = "usb2-phy";
132	phys = <&usbphyc_port1 0>;
133	vbus-supply = <&vbus_otg>;
134	status = "okay";
135};
136
137&usbphyc {
138	status = "okay";
139};
140
141&usbphyc_port0 {
142	phy-supply = <&vdd_usb>;
143};
144
145&usbphyc_port1 {
146	phy-supply = <&vdd_usb>;
147};
148