1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
3 * Copyright (C) 2019 Marek Vasut <marex@denx.de>
6 #include "stm32mp157c-dhcom-som.dtsi"
7 #include <dt-bindings/pwm/pwm.h>
10 model = "STMicroelectronics STM32MP157C DHCOM Premium Developer Kit (2)";
11 compatible = "dh,stm32mp157c-dhcom-pdk2", "st,stm32mp157";
17 ethernet0 = ðernet0;
21 stdout-path = "serial0:115200n8";
24 clk_ext_audio_codec: clock-codec {
25 compatible = "fixed-clock";
27 clock-frequency = <24000000>;
30 display_bl: display-bl {
31 compatible = "pwm-backlight";
32 pwms = <&pwm2 0 500000 PWM_POLARITY_INVERTED>;
33 brightness-levels = <0 16 22 30 40 55 75 102 138 188 255>;
34 default-brightness-level = <8>;
35 enable-gpios = <&gpioi 0 GPIO_ACTIVE_HIGH>;
39 ethernet_vio: vioregulator {
40 compatible = "regulator-fixed";
41 regulator-name = "vio";
42 regulator-min-microvolt = <3300000>;
43 regulator-max-microvolt = <3300000>;
44 gpio = <&gpiog 3 GPIO_ACTIVE_LOW>;
50 compatible = "edt,etm0700g0edh6";
51 backlight = <&display_bl>;
54 lcd_panel_in: endpoint {
55 remote-endpoint = <&lcd_display_out>;
61 compatible = "audio-graph-card";
64 "Capture", "Mic Bias",
66 dais = <&sai2a_port &sai2b_port>;
72 pinctrl-names = "default";
73 pinctrl-0 = <&cec_pins_a>;
79 pinctrl-0 = <ðernet0_rmii_pins_a>;
80 pinctrl-1 = <ðernet0_rmii_pins_sleep_a>;
81 pinctrl-names = "default", "sleep";
86 phy-reset-gpios = <&gpioh 15 GPIO_ACTIVE_LOW>;
91 compatible = "snps,dwmac-mdio";
93 phy0: ethernet-phy@1 {
100 pinctrl-names = "default";
101 pinctrl-0 = <&i2c5_pins_a>;
102 i2c-scl-rising-time-ns = <185>;
103 i2c-scl-falling-time-ns = <20>;
105 /* spare dmas for other usage */
106 /delete-property/dmas;
107 /delete-property/dma-names;
110 compatible = "fsl,sgtl5000";
112 #sound-dai-cells = <0>;
113 clocks = <&clk_ext_audio_codec>;
114 VDDA-supply = <&v3v3>;
115 VDDIO-supply = <&vdd>;
117 sgtl5000_port: port {
118 #address-cells = <1>;
121 sgtl5000_tx_endpoint: endpoint@0 {
123 remote-endpoint = <&sai2a_endpoint>;
128 sgtl5000_rx_endpoint: endpoint@1 {
130 remote-endpoint = <&sai2b_endpoint>;
139 compatible = "edt,edt-ft5x06";
141 interrupt-parent = <&gpiog>;
142 interrupts = <2 IRQ_TYPE_EDGE_FALLING>; /* GPIO E */
148 pinctrl-names = "default", "sleep";
149 pinctrl-0 = <<dc_pins_b>;
150 pinctrl-1 = <<dc_pins_sleep_b>;
154 lcd_display_out: endpoint {
155 remote-endpoint = <&lcd_panel_in>;
161 pinctrl-names = "default", "sleep";
162 pinctrl-0 = <&m_can1_pins_a>;
163 pinctrl-1 = <&m_can1_sleep_pins_a>;
168 clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
169 clock-names = "pclk", "x8k", "x11k";
170 pinctrl-names = "default", "sleep";
171 pinctrl-0 = <&sai2a_pins_b &sai2b_pins_b>;
172 pinctrl-1 = <&sai2a_sleep_pins_b &sai2b_sleep_pins_b>;
175 sai2a: audio-controller@4400b004 {
178 clocks = <&rcc SAI2_K>;
179 clock-names = "sai_ck";
183 sai2a_endpoint: endpoint {
184 remote-endpoint = <&sgtl5000_tx_endpoint>;
187 dai-tdm-slot-num = <2>;
188 dai-tdm-slot-width = <16>;
193 sai2b: audio-controller@4400b024 {
195 st,sync = <&sai2a 2>;
196 clocks = <&rcc SAI2_K>, <&sai2a>;
197 clock-names = "sai_ck", "MCLK";
201 sai2b_endpoint: endpoint {
202 remote-endpoint = <&sgtl5000_rx_endpoint>;
205 dai-tdm-slot-num = <2>;
206 dai-tdm-slot-width = <16>;
213 /* spare dmas for other usage (un-delete to enable pwm capture) */
214 /delete-property/dmas;
215 /delete-property/dma-names;
218 pinctrl-0 = <&pwm2_pins_a>;
219 pinctrl-names = "default";
228 pinctrl-names = "default";
229 pinctrl-0 = <&usart3_pins_a>;
234 pinctrl-names = "default";
235 pinctrl-0 = <&uart8_pins_a>;
240 phys = <&usbphyc_port0>;
245 dr_mode = "peripheral";
246 phys = <&usbphyc_port1 0>;
247 phy-names = "usb2-phy";
256 phy-supply = <&vdd_usb>;
257 vdda1v1-supply = <®11>;
258 vdda1v8-supply = <®18>;
262 phy-supply = <&vdd_usb>;
263 vdda1v1-supply = <®11>;
264 vdda1v8-supply = <®18>;