1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2/* 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> 6 * Copyright (C) 2022 DH electronics GmbH 7 */ 8 9/* Avenger96 uses DHCOR SoM configured for 1V8 IO operation */ 10#include "stm32mp15xx-dhcor-io1v8.dtsi" 11 12/ { 13 aliases { 14 serial0 = &uart4; 15 serial1 = &uart7; 16 }; 17 18 chosen { 19 stdout-path = "serial0:115200n8"; 20 }; 21 22 sd_switch: regulator-sd_switch { 23 compatible = "regulator-gpio"; 24 regulator-name = "sd_switch"; 25 regulator-min-microvolt = <1800000>; 26 regulator-max-microvolt = <2900000>; 27 regulator-type = "voltage"; 28 regulator-always-on; 29 30 gpios = <&gpioi 5 0>; 31 gpios-states = <0>; 32 states = <1800000 0x1>, 33 <2900000 0x0>; 34 }; 35}; 36 37&sdmmc1 { 38 pinctrl-names = "default"; 39 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_b>; 40 disable-wp; 41 st,sig-dir; 42 st,neg-edge; 43 st,use-ckin; 44 bus-width = <4>; 45 vmmc-supply = <&vdd_sd>; 46 vqmmc-supply = <&sd_switch>; 47 status = "okay"; 48}; 49 50&sdmmc2 { 51 pinctrl-names = "default"; 52 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_c>; 53 bus-width = <8>; 54 mmc-ddr-1_8v; 55 no-sd; 56 no-sdio; 57 non-removable; 58 st,neg-edge; 59 vmmc-supply = <&v3v3>; 60 vqmmc-supply = <&vdd_io>; 61 status = "okay"; 62}; 63 64&uart4 { 65 /* On Low speed expansion header */ 66 label = "LS-UART1"; 67 pinctrl-names = "default"; 68 pinctrl-0 = <&uart4_pins_b>; 69 status = "okay"; 70}; 71 72&uart7 { 73 /* On Low speed expansion header */ 74 label = "LS-UART0"; 75 pinctrl-names = "default"; 76 pinctrl-0 = <&uart7_pins_a>; 77 uart-has-rtscts; 78 status = "okay"; 79}; 80 81&usbotg_hs { 82 pinctrl-0 = <&usbotg_hs_pins_a>; 83 pinctrl-names = "default"; 84 phy-names = "usb2-phy"; 85 phys = <&usbphyc_port1 0>; 86 status = "okay"; 87 vbus-supply = <&vbus_otg>; 88}; 89 90&usbphyc { 91 status = "okay"; 92}; 93 94&usbphyc_port0 { 95 phy-supply = <&vdd_usb>; 96}; 97 98&usbphyc_port1 { 99 phy-supply = <&vdd_usb>; 100}; 101