xref: /linux/arch/arm64/boot/dts/freescale/imx8mp-dhcom-picoitx.dts (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (C) 2023-2024 Marek Vasut <marex@denx.de>
4 *
5 * DHCOM iMX8MP variant:
6 * DHCM-iMX8ML8-C160-R204-F1638-SPI16-E-SD-RTC-T-RGB-I-01D2
7 * DHCOM PCB number: 660-200 or newer
8 * PicoITX PCB number: 487-600 or newer
9 */
10
11/dts-v1/;
12
13#include <dt-bindings/leds/common.h>
14#include "imx8mp-dhcom-som.dtsi"
15
16/ {
17	model = "DH electronics i.MX8M Plus DHCOM PicoITX";
18	compatible = "dh,imx8mp-dhcom-picoitx", "dh,imx8mp-dhcom-som",
19		     "fsl,imx8mp";
20
21	chosen {
22		stdout-path = &uart1;
23	};
24
25	led {
26		compatible = "gpio-leds";
27
28		led-0 {
29			color = <LED_COLOR_ID_YELLOW>;
30			default-state = "off";
31			function = LED_FUNCTION_INDICATOR;
32			gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; /* GPIO I */
33			pinctrl-0 = <&pinctrl_dhcom_i>;
34			pinctrl-names = "default";
35		};
36	};
37};
38
39&eqos {	/* First ethernet */
40	pinctrl-0 = <&pinctrl_eqos_rmii>;
41	phy-handle = <&ethphy0f>;
42	phy-mode = "rmii";
43
44	assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_266M>,
45				 <&clk IMX8MP_SYS_PLL2_100M>,
46				 <&clk IMX8MP_SYS_PLL2_50M>;
47	assigned-clock-rates = <0>, <100000000>, <50000000>;
48};
49
50&ethphy0g {	/* Micrel KSZ9131RNXI */
51	status = "disabled";
52};
53
54&ethphy0f {	/* SMSC LAN8740Ai */
55	status = "okay";
56};
57
58&fec {
59	status = "disabled";
60};
61
62&flexcan1 {
63	status = "okay";
64};
65
66&gpio1 {
67	gpio-line-names =
68		"DHCOM-G", "", "", "",
69		"", "DHCOM-I", "PicoITX-HW0", "PicoITX-HW2",
70		"DHCOM-B", "DHCOM-A", "", "DHCOM-H", "", "", "", "",
71		"", "", "", "", "", "", "", "",
72		"", "", "", "", "", "", "", "";
73};
74
75&gpio2 {
76	gpio-line-names =
77		"", "", "", "", "", "", "", "",
78		"", "", "", "PicoITX-HW1", "", "", "", "",
79		"", "", "", "", "DHCOM-INT", "", "", "",
80		"", "", "", "", "", "", "", "";
81};
82
83&gpio4 {
84	gpio-line-names =
85		"", "", "", "", "", "", "", "",
86		"", "", "", "", "", "", "", "",
87		"", "", "", "SOM-HW1", "", "", "", "",
88		"", "", "", "PicoITX-Out2", "", "", "", "";
89};
90
91&gpio5 {
92	gpio-line-names =
93		"", "", "PicoITX-In2", "", "", "", "", "",
94		"", "", "", "", "", "", "", "",
95		"", "", "", "",
96		"", "", "PicoITX-In1", "PicoITX-Out1",
97		"", "", "", "", "", "", "", "";
98};
99
100/* No HS connector on this SoM variant, so no HDMI, PCIe and only USB HS. */
101&hdmi_blk_ctrl {
102	status = "disabled";
103};
104
105&hdmi_pvi {
106	status = "disabled";
107};
108
109&hdmi_tx {
110	status = "disabled";
111};
112
113&hdmi_tx_phy {
114	status = "disabled";
115};
116
117&irqsteer_hdmi {
118	status = "disabled";
119};
120
121&lcdif3 {
122	status = "disabled";
123};
124
125&pcie_phy {
126	status = "disabled";
127};
128
129&pcie {
130	status = "disabled";
131};
132
133/* No WiFi/BT chipset on this SoM variant. */
134&uart2 {
135	bluetooth {
136		status = "disabled";
137	};
138};
139
140/* USB_OTG port is not routed out on PicoITX. */
141&usb3_0 {
142	status = "disabled";
143};
144
145&usb_dwc3_0 {
146	status = "disabled";
147};
148
149&usb3_1 {
150	fsl,over-current-active-low;
151};
152
153&usb_dwc3_1 {
154	dr_mode = "host";
155	maximum-speed = "high-speed";
156};
157
158/* No WiFi/BT chipset on this SoM variant. */
159&usdhc1 {
160	status = "disabled";
161};
162
163&iomuxc {
164	/*
165	 * The following DHCOM GPIOs are used on this board.
166	 * Therefore, they have been removed from the list below.
167	 * I: yellow led
168	 */
169	pinctrl-0 = <&pinctrl_dhcom_a &pinctrl_dhcom_b &pinctrl_dhcom_c
170		     &pinctrl_dhcom_d &pinctrl_dhcom_e &pinctrl_dhcom_f
171		     &pinctrl_dhcom_g &pinctrl_dhcom_h &pinctrl_dhcom_j
172		     &pinctrl_dhcom_k &pinctrl_dhcom_l &pinctrl_dhcom_m
173		     &pinctrl_dhcom_n &pinctrl_dhcom_o &pinctrl_dhcom_p
174		     &pinctrl_dhcom_q &pinctrl_dhcom_r &pinctrl_dhcom_s
175		     &pinctrl_dhcom_int>;
176};
177