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