1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
3 * Copyright (C) Linaro Ltd 2019 - All Rights Reserved
4 * Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
5 * Copyright (C) 2020 Marek Vasut <marex@denx.de>
8 /* Avenger96 uses DHCOR SoM configured for 1V8 IO operation */
9 #include "stm32mp15xx-dhcor-io1v8.dtsi"
13 ethernet0 = ðernet0;
22 cec_clock: clk-cec-fixed {
24 compatible = "fixed-clock";
25 clock-frequency = <24000000>;
29 stdout-path = "serial0:115200n8";
33 compatible = "hdmi-connector";
38 remote-endpoint = <&adv7513_out>;
44 compatible = "gpio-leds";
46 label = "green:user0";
47 gpios = <&gpioz 7 GPIO_ACTIVE_HIGH>;
48 linux,default-trigger = "heartbeat";
49 default-state = "off";
53 label = "green:user1";
54 gpios = <&gpiof 3 GPIO_ACTIVE_HIGH>;
55 linux,default-trigger = "mmc0";
56 default-state = "off";
60 label = "green:user2";
61 gpios = <&gpiog 0 GPIO_ACTIVE_HIGH>;
62 linux,default-trigger = "mmc1";
63 default-state = "off";
67 label = "green:user3";
68 gpios = <&gpiog 1 GPIO_ACTIVE_HIGH>;
69 linux,default-trigger = "none";
70 default-state = "off";
75 sd_switch: regulator-sd_switch {
76 compatible = "regulator-gpio";
77 regulator-name = "sd_switch";
78 regulator-min-microvolt = <1800000>;
79 regulator-max-microvolt = <2900000>;
80 regulator-type = "voltage";
83 gpios = <&gpioi 5 GPIO_ACTIVE_HIGH>;
85 states = <1800000 0x1>,
90 compatible = "audio-graph-card";
91 label = "STM32MP1-AV96-HDMI";
96 wlan_pwr: regulator-wlan {
97 compatible = "regulator-fixed";
99 regulator-name = "wl-reg";
100 regulator-min-microvolt = <3300000>;
101 regulator-max-microvolt = <3300000>;
103 gpios = <&gpioz 3 GPIO_ACTIVE_HIGH>;
109 pinctrl-names = "default";
110 pinctrl-0 = <&adc12_ain_pins_b>;
112 vdda-supply = <&vdda>;
113 vref-supply = <&vdda>;
117 st,adc-channels = <0 1 6>;
118 st,min-sample-time-nsecs = <5000>;
123 st,adc-channels = <0 1 2>;
124 st,min-sample-time-nsecs = <5000>;
131 pinctrl-0 = <ðernet0_rgmii_pins_c>;
132 pinctrl-1 = <ðernet0_rgmii_sleep_pins_c>;
133 pinctrl-names = "default", "sleep";
136 phy-handle = <&phy0>;
139 #address-cells = <1>;
141 compatible = "snps,dwmac-mdio";
142 reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>;
143 reset-delay-us = <1000>;
145 phy0: ethernet-phy@7 {
148 rxc-skew-ps = <1500>;
149 rxdv-skew-ps = <540>;
150 rxd0-skew-ps = <420>;
151 rxd1-skew-ps = <420>;
152 rxd2-skew-ps = <420>;
153 rxd3-skew-ps = <420>;
155 txc-skew-ps = <1440>;
156 txen-skew-ps = <540>;
157 txd0-skew-ps = <420>;
158 txd1-skew-ps = <420>;
159 txd2-skew-ps = <420>;
160 txd3-skew-ps = <420>;
166 gpio-line-names = "", "", "", "",
168 "", "", "", "AV96-K",
169 "AV96-I", "", "AV96-A", "";
173 gpio-line-names = "", "", "", "",
174 "", "AV96-J", "", "",
175 "", "", "", "AV96-B",
176 "", "AV96-L", "", "";
180 gpio-line-names = "", "", "", "AV96-C",
187 gpio-line-names = "", "", "", "",
189 "AV96-D", "", "", "",
190 "", "", "AV96-E", "AV96-F";
194 gpio-line-names = "", "", "", "",
197 "AV96-G", "AV96-H", "", "";
200 &i2c1 { /* X6 I2C1 */
201 pinctrl-names = "default";
202 pinctrl-0 = <&i2c1_pins_b>;
203 i2c-scl-rising-time-ns = <185>;
204 i2c-scl-falling-time-ns = <20>;
206 /delete-property/dmas;
207 /delete-property/dma-names;
210 &i2c2 { /* X6 I2C2 */
211 pinctrl-names = "default";
212 pinctrl-0 = <&i2c2_pins_c>;
213 i2c-scl-rising-time-ns = <185>;
214 i2c-scl-falling-time-ns = <20>;
216 /delete-property/dmas;
217 /delete-property/dma-names;
221 hdmi-transmitter@3d {
222 compatible = "adi,adv7513";
223 reg = <0x3d>, <0x4d>, <0x2d>, <0x5d>;
224 reg-names = "main", "edid", "cec", "packet";
225 clocks = <&cec_clock>;
228 avdd-supply = <&v3v3>;
229 dvdd-supply = <&v3v3>;
230 pvdd-supply = <&v3v3>;
231 dvdd-3v-supply = <&v3v3>;
232 bgvdd-supply = <&v3v3>;
234 interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
235 interrupt-parent = <&gpiog>;
239 adi,input-depth = <8>;
240 adi,input-colorspace = "rgb";
241 adi,input-clock = "1x";
244 #address-cells = <1>;
249 adv7513_in: endpoint {
250 remote-endpoint = <<dc_ep0_out>;
256 adv7513_out: endpoint {
257 remote-endpoint = <&hdmi_con>;
263 adv7513_i2s0: endpoint {
264 remote-endpoint = <&sai2a_endpoint>;
272 pinctrl-names = "default", "sleep";
273 pinctrl-0 = <<dc_pins_d>;
274 pinctrl-1 = <<dc_sleep_pins_d>;
278 #address-cells = <1>;
281 ltdc_ep0_out: endpoint@0 {
283 remote-endpoint = <&adv7513_in>;
289 clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
290 pinctrl-names = "default", "sleep";
291 pinctrl-0 = <&sai2a_pins_c>;
292 pinctrl-1 = <&sai2a_sleep_pins_c>;
293 clock-names = "pclk", "x8k", "x11k";
296 sai2a: audio-controller@4400b004 {
299 clocks = <&rcc SAI2_K>;
300 clock-names = "sai_ck";
304 sai2a_endpoint: endpoint {
305 remote-endpoint = <&adv7513_i2s0>;
314 pinctrl-names = "default", "opendrain", "sleep";
315 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_b>;
316 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_b>;
317 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_b>;
318 cd-gpios = <&gpioi 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
324 vmmc-supply = <&vdd_sd>;
325 vqmmc-supply = <&sd_switch>;
330 pinctrl-names = "default", "opendrain", "sleep";
331 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_c>;
332 pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_c>;
333 pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_c>;
340 vmmc-supply = <&v3v3>;
341 vqmmc-supply = <&vdd_io>;
346 pinctrl-names = "default", "opendrain", "sleep";
347 pinctrl-0 = <&sdmmc3_b4_pins_b>;
348 pinctrl-1 = <&sdmmc3_b4_od_pins_b>;
349 pinctrl-2 = <&sdmmc3_b4_sleep_pins_b>;
354 vmmc-supply = <&wlan_pwr>;
357 #address-cells = <1>;
361 compatible = "brcm,bcm4329-fmac";
366 pinctrl-names = "default";
367 pinctrl-0 = <&spi2_pins_a>;
368 cs-gpios = <&gpioi 0 0>;
370 /delete-property/dmas;
371 /delete-property/dma-names;
375 /* On Low speed expansion header */
377 pinctrl-names = "default";
378 pinctrl-0 = <&uart4_pins_b>;
383 /* On Low speed expansion header */
385 pinctrl-names = "default";
386 pinctrl-0 = <&uart7_pins_a>;
393 pinctrl-names = "default", "sleep";
394 pinctrl-0 = <&usart2_pins_a>;
395 pinctrl-1 = <&usart2_sleep_pins_a>;
400 compatible = "brcm,bcm43438-bt";
401 max-speed = <3000000>;
402 shutdown-gpios = <&gpioz 6 GPIO_ACTIVE_HIGH>;
407 phys = <&usbphyc_port0>;
413 pinctrl-0 = <&usbotg_hs_pins_a>;
414 pinctrl-names = "default";
415 phy-names = "usb2-phy";
416 phys = <&usbphyc_port1 0>;
418 vbus-supply = <&vbus_otg>;
426 phy-supply = <&vdd_usb>;
430 phy-supply = <&vdd_usb>;