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 "stm32mp15xx-dhcom.dtsi"
7
8/ {
9	model = "DH Electronics STM32MP15xx DHCOM PicoITX";
10	compatible = "dh,stm32mp15xx-dhcom-picoitx", "st,stm32mp1xx";
11
12	aliases {
13		serial0 = &uart4;
14		serial1 = &usart3;
15		serial2 = &uart8;
16	};
17
18	chosen {
19		stdout-path = "serial0:115200n8";
20	};
21};
22
23&adc {
24	status = "disabled";
25};
26
27&dac {
28	status = "disabled";
29};
30
31&gpioa {
32	/*
33	 * NOTE: The USB Port on the PicoITX needs a PWR_EN signal to enable
34	 * port power. This signal should be handled by USB power sequencing
35	 * in order to turn on port power when USB bus is powered up, but so
36	 * far there is no such functionality.
37	 */
38	usb-port-power {
39		gpio-hog;
40		gpios = <13 0>;
41		output-low;
42		line-name = "usb-port-power";
43	};
44};
45
46&i2c2 {	/* On board-to-board connector (optional) */
47	pinctrl-names = "default";
48	pinctrl-0 = <&i2c2_pins_a>;
49	i2c-scl-rising-time-ns = <185>;
50	i2c-scl-falling-time-ns = <20>;
51	status = "okay";
52	/* spare dmas for other usage */
53	/delete-property/dmas;
54	/delete-property/dma-names;
55};
56
57&i2c5 {	/* On board-to-board connector */
58	pinctrl-names = "default";
59	pinctrl-0 = <&i2c5_pins_a>;
60	i2c-scl-rising-time-ns = <185>;
61	i2c-scl-falling-time-ns = <20>;
62	status = "okay";
63	/* spare dmas for other usage */
64	/delete-property/dmas;
65	/delete-property/dma-names;
66};
67
68&usart3 {
69	pinctrl-names = "default";
70	pinctrl-0 = <&usart3_pins_a>;
71	status = "okay";
72};
73
74&uart8 {
75	pinctrl-names = "default";
76	pinctrl-0 = <&uart8_pins_a>;
77	status = "okay";
78};
79
80&usbh_ehci {
81	phys = <&usbphyc_port0>;
82	status = "okay";
83};
84
85&usbphyc {
86	status = "okay";
87};
88
89&usbphyc_port0 {
90	phy-supply = <&vdd_usb>;
91	vdda1v1-supply = <&reg11>;
92	vdda1v8-supply = <&reg18>;
93};
94