1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2023 Marek Vasut <marex@denx.de>
5 * DHCOM iMX8MP variant:
6 * DHCM-iMX8ML8-C160-R409-F1638-SPI16-GE-CAN2-SD-RTC-WBTA-ADC-T-RGB-CSI2-HS-I-01D2
7 * DHCOM PCB number: 660-100 or newer
8 * PDK3 PCB number: 669-100 or newer
13 #include <dt-bindings/leds/common.h>
14 #include <dt-bindings/phy/phy-imx8-pcie.h>
15 #include "imx8mp-dhcom-som.dtsi"
18 model = "DH electronics i.MX8M Plus DHCOM Premium Developer Kit (3)";
19 compatible = "dh,imx8mp-dhcom-pdk3", "dh,imx8mp-dhcom-som",
26 clk_pcie: clock-pcie {
27 compatible = "fixed-clock";
29 clock-frequency = <100000000>;
33 compatible = "usb-c-connector";
44 usb_c_0_hs_ep: endpoint {
45 remote-endpoint = <&dwc3_0_hs_ep>;
52 usb_c_0_ss_ep: endpoint {
53 remote-endpoint = <&ptn5150_in_ep>;
60 compatible = "gpio-keys";
63 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; /* GPIO A */
66 pinctrl-0 = <&pinctrl_dhcom_a>;
67 pinctrl-names = "default";
72 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; /* GPIO B */
75 pinctrl-0 = <&pinctrl_dhcom_b>;
76 pinctrl-names = "default";
81 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; /* GPIO C */
84 pinctrl-0 = <&pinctrl_dhcom_c>;
85 pinctrl-names = "default";
90 gpios = <&gpio5 22 GPIO_ACTIVE_LOW>; /* GPIO E */
93 pinctrl-0 = <&pinctrl_dhcom_e>;
94 pinctrl-names = "default";
100 compatible = "gpio-leds";
103 color = <LED_COLOR_ID_GREEN>;
104 default-state = "off";
105 function = LED_FUNCTION_INDICATOR;
106 function-enumerator = <0>;
107 gpios = <&gpio4 27 GPIO_ACTIVE_HIGH>; /* GPIO D */
108 pinctrl-0 = <&pinctrl_dhcom_d>;
109 pinctrl-names = "default";
113 color = <LED_COLOR_ID_GREEN>;
114 default-state = "off";
115 function = LED_FUNCTION_INDICATOR;
116 function-enumerator = <1>;
117 gpios = <&gpio5 23 GPIO_ACTIVE_HIGH>; /* GPIO F */
118 pinctrl-0 = <&pinctrl_dhcom_f>;
119 pinctrl-names = "default";
123 color = <LED_COLOR_ID_GREEN>;
124 default-state = "off";
125 function = LED_FUNCTION_INDICATOR;
126 function-enumerator = <2>;
127 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; /* GPIO G */
128 pinctrl-0 = <&pinctrl_dhcom_g>;
129 pinctrl-names = "default";
133 color = <LED_COLOR_ID_GREEN>;
134 default-state = "off";
135 function = LED_FUNCTION_INDICATOR;
136 function-enumerator = <3>;
137 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; /* GPIO I */
138 pinctrl-0 = <&pinctrl_dhcom_i>;
139 pinctrl-names = "default";
143 reg_avdd: regulator-avdd { /* AUDIO_VDD */
144 compatible = "regulator-fixed";
146 regulator-min-microvolt = <3300000>;
147 regulator-max-microvolt = <3300000>;
148 regulator-name = "AUDIO_VDD";
154 compatible = "nxp,pca9540";
156 #address-cells = <1>;
160 #address-cells = <1>;
165 compatible = "nxp,ptn5150";
167 interrupt-parent = <&gpio4>;
168 interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
169 pinctrl-names = "default";
170 pinctrl-0 = <&pinctrl_ptn5150>;
173 #address-cells = <1>;
179 ptn5150_in_ep: endpoint {
180 remote-endpoint = <&usb_c_0_ss_ep>;
187 ptn5150_out_ep: endpoint {
188 remote-endpoint = <&dwc3_0_ss_ep>;
195 compatible = "ti,ina238";
197 shunt-resistor = <20000>; /* 0.02 R */
198 ti,shunt-gain = <1>; /* Drop cca. 40mV */
201 eeprom_board: eeprom@54 {
202 compatible = "atmel,24c04";
208 i2cmuxed1: i2c@1 { /* HDMI DDC I2C */
209 #address-cells = <1>;
220 &fec { /* Second ethernet */
221 pinctrl-0 = <&pinctrl_fec_rgmii>;
222 phy-handle = <ðphypdk>;
223 phy-mode = "rgmii-id";
226 ethphypdk: ethernet-phy@7 { /* Micrel KSZ9131RNXI */
227 compatible = "ethernet-phy-id0022.1642",
228 "ethernet-phy-ieee802.3-c22";
229 interrupt-parent = <&gpio4>;
230 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
231 pinctrl-0 = <&pinctrl_ethphy1>;
232 pinctrl-names = "default";
234 reset-assert-us = <1000>;
235 /* RESET_N signal rise time ~100ms */
236 reset-deassert-us = <120000>;
237 reset-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
247 clocks = <&clk_pcie>;
249 fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
254 fsl,max-link-speed = <3>;
255 reset-gpio = <&gpio1 6 GPIO_ACTIVE_LOW>;
263 #address-cells = <1>;
266 dwc3_0_hs_ep: endpoint@0 {
268 remote-endpoint = <&usb_c_0_hs_ep>;
271 dwc3_0_ss_ep: endpoint@1 {
273 remote-endpoint = <&ptn5150_out_ep>;
279 fsl,disable-port-power-control;
280 fsl,permanently-attached;
284 /* This port has USB5734 Hub connected to it, PWR/OC pins are unused */
285 /delete-property/ pinctrl-names;
286 /delete-property/ pinctrl-0;
291 * GPIO_A,B,C,E are connected to buttons.
292 * GPIO_D,F,G,I are connected to LEDs.
293 * GPIO_H is connected to USB Hub RESET_N.
294 * GPIO_M is connected to CLKOUT2.
296 pinctrl-0 = <&pinctrl_hog_base
297 &pinctrl_dhcom_h &pinctrl_dhcom_j &pinctrl_dhcom_k
301 pinctrl_ptn5150: ptn5150grp {
303 MX8MP_IOMUXC_SAI2_TXC__GPIO4_IO25 0x40000000