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