mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-07 21:33:54 +00:00

This should replace the stm32mp157a-avenger96.dts with the new device tree files split into the STM32MP15 DHCOR SoM definition and the Avenger96 baseboard like it's done in Linux and U-Boot. Differences to stm32mp157a-avenger96.dts: - Enable sdmmc2 for booting from eMMC - improved clock settings like in U-Boot commit b6055945 "ARM: dts: stm32: Adjust PLL4 settings on AV96 again" - improved DDR settings for DHSOMs like in U-Boot commit 92ca0f74 "ARM: dts: stm32: Synchronize DDR setttings on DH SoMs" TF-A with this new dts(i) files on this board was fully tested with the latest OP-TEE developer setup. Change-Id: I85ce8eca7747965af3555fc19fd7b192dc3e5740 Signed-off-by: Johann Neuhauser <jneuhauser@dh-electronics.com>
100 lines
1.9 KiB
Text
100 lines
1.9 KiB
Text
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
|
|
/*
|
|
* Copyright (C) Linaro Ltd 2019 - All Rights Reserved
|
|
* Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
|
|
* Copyright (C) 2020 Marek Vasut <marex@denx.de>
|
|
* Copyright (C) 2022 DH electronics GmbH
|
|
*/
|
|
|
|
/* Avenger96 uses DHCOR SoM configured for 1V8 IO operation */
|
|
#include "stm32mp15xx-dhcor-io1v8.dtsi"
|
|
|
|
/ {
|
|
aliases {
|
|
serial0 = &uart4;
|
|
serial1 = &uart7;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
sd_switch: regulator-sd_switch {
|
|
compatible = "regulator-gpio";
|
|
regulator-name = "sd_switch";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <2900000>;
|
|
regulator-type = "voltage";
|
|
regulator-always-on;
|
|
|
|
gpios = <&gpioi 5 0>;
|
|
gpios-states = <0>;
|
|
states = <1800000 0x1>,
|
|
<2900000 0x0>;
|
|
};
|
|
};
|
|
|
|
&sdmmc1 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_b>;
|
|
disable-wp;
|
|
st,sig-dir;
|
|
st,neg-edge;
|
|
st,use-ckin;
|
|
bus-width = <4>;
|
|
vmmc-supply = <&vdd_sd>;
|
|
vqmmc-supply = <&sd_switch>;
|
|
status = "okay";
|
|
};
|
|
|
|
&sdmmc2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_c>;
|
|
bus-width = <8>;
|
|
mmc-ddr-1_8v;
|
|
no-sd;
|
|
no-sdio;
|
|
non-removable;
|
|
st,neg-edge;
|
|
vmmc-supply = <&v3v3>;
|
|
vqmmc-supply = <&vdd_io>;
|
|
status = "okay";
|
|
};
|
|
|
|
&uart4 {
|
|
/* On Low speed expansion header */
|
|
label = "LS-UART1";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart4_pins_b>;
|
|
status = "okay";
|
|
};
|
|
|
|
&uart7 {
|
|
/* On Low speed expansion header */
|
|
label = "LS-UART0";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart7_pins_a>;
|
|
uart-has-rtscts;
|
|
status = "okay";
|
|
};
|
|
|
|
&usbotg_hs {
|
|
pinctrl-0 = <&usbotg_hs_pins_a>;
|
|
pinctrl-names = "default";
|
|
phy-names = "usb2-phy";
|
|
phys = <&usbphyc_port1 0>;
|
|
status = "okay";
|
|
vbus-supply = <&vbus_otg>;
|
|
};
|
|
|
|
&usbphyc {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbphyc_port0 {
|
|
phy-supply = <&vdd_usb>;
|
|
};
|
|
|
|
&usbphyc_port1 {
|
|
phy-supply = <&vdd_usb>;
|
|
};
|