mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

STM32MP157F-DK2 board embeds a STM32MP157F SoC. This SoC contains the same level of feature than a STM32MP157C SOC but A7 clock frequency can reach 800MHz, hence the inclusion of the newly introduced stm32mp15xf.dtsi. As for other latest STM32 MPU families, STM32MP157F-DK2 relies on OP-TEE SCMI services for SoC clock and reset controllers resources, and for PMIC, now under OP-TEE control. That's why stm32mp157f-dk2-scmi.dtsi is introduced, to move all clocks, resets and regulators to SCMI-based ones. To "disable" SCMI, just need to comment stm32mp157f-dk2-scmi.dtsi inclusion and to replace &scmi_v3v3 with &v3v3, then to disable arm_wdt and to enable i2c4 and its subnodes for PMIC support by Linux. Reconfigure usbotg for dual role with type-C support if needed. Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com> Link: https://lore.kernel.org/r/20250603-stm32mp157f-dk2-v2-7-5be0854a9299@foss.st.com Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
179 lines
3.5 KiB
Text
179 lines
3.5 KiB
Text
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
|
|
/*
|
|
* Copyright (C) STMicroelectronics 2025 - All Rights Reserved
|
|
* Author: Amelie Delaunay <amelie.delaunay@foss.st.com> for STMicroelectronics.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include "stm32mp157.dtsi"
|
|
#include "stm32mp15xf.dtsi"
|
|
#include "stm32mp15-pinctrl.dtsi"
|
|
#include "stm32mp15xxac-pinctrl.dtsi"
|
|
#include "stm32mp15xx-dkx.dtsi"
|
|
#include "stm32mp157f-dk2-scmi.dtsi"
|
|
|
|
/ {
|
|
model = "STMicroelectronics STM32MP157F-DK2 Discovery Board";
|
|
compatible = "st,stm32mp157f-dk2", "st,stm32mp157";
|
|
|
|
aliases {
|
|
ethernet0 = ðernet0;
|
|
serial3 = &usart2;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
wifi_pwrseq: wifi-pwrseq {
|
|
compatible = "mmc-pwrseq-simple";
|
|
reset-gpios = <&gpioh 4 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
&arm_wdt {
|
|
timeout-sec = <32>;
|
|
status = "okay";
|
|
};
|
|
|
|
&cryp1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&dsi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
status = "okay";
|
|
|
|
panel@0 {
|
|
compatible = "orisetech,otm8009a";
|
|
reg = <0>;
|
|
reset-gpios = <&gpioe 4 GPIO_ACTIVE_LOW>;
|
|
power-supply = <&scmi_v3v3>;
|
|
status = "okay";
|
|
|
|
port {
|
|
panel_in: endpoint {
|
|
remote-endpoint = <&dsi_out>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&dsi_in {
|
|
remote-endpoint = <<dc_ep1_out>;
|
|
};
|
|
|
|
&dsi_out {
|
|
remote-endpoint = <&panel_in>;
|
|
};
|
|
|
|
&i2c1 {
|
|
touchscreen@38 {
|
|
compatible = "focaltech,ft6236";
|
|
reg = <0x38>;
|
|
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
|
|
interrupt-parent = <&gpiof>;
|
|
touchscreen-size-x = <480>;
|
|
touchscreen-size-y = <800>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
/* I2C4 is managed by OP-TEE */
|
|
&i2c4 {
|
|
status = "disabled";
|
|
|
|
/* i2c4 subnodes, which won't be managed by Linux */
|
|
typec@28 {
|
|
status = "disabled";
|
|
connector {
|
|
status = "disabled";
|
|
};
|
|
};
|
|
|
|
stpmic@33 {
|
|
status = "disabled";
|
|
};
|
|
};
|
|
|
|
<dc {
|
|
status = "okay";
|
|
|
|
port {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
ltdc_ep1_out: endpoint@1 {
|
|
reg = <1>;
|
|
remote-endpoint = <&dsi_in>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&rtc {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&rtc_rsvd_pins_a>;
|
|
|
|
rtc_lsco_pins_a: rtc-lsco-0 {
|
|
pins = "out2_rmp";
|
|
function = "lsco";
|
|
};
|
|
};
|
|
|
|
/* Wifi */
|
|
&sdmmc2 {
|
|
pinctrl-names = "default", "opendrain", "sleep";
|
|
pinctrl-0 = <&sdmmc2_b4_pins_a>;
|
|
pinctrl-1 = <&sdmmc2_b4_od_pins_a>;
|
|
pinctrl-2 = <&sdmmc2_b4_sleep_pins_a>;
|
|
non-removable;
|
|
cap-sdio-irq;
|
|
st,neg-edge;
|
|
bus-width = <4>;
|
|
vmmc-supply = <&scmi_v3v3>;
|
|
mmc-pwrseq = <&wifi_pwrseq>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
status = "okay";
|
|
|
|
brcmf: wifi@1 {
|
|
reg = <1>;
|
|
compatible = "brcm,bcm4329-fmac";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&rtc_lsco_pins_a>;
|
|
};
|
|
};
|
|
|
|
/* Bluetooth */
|
|
&usart2 {
|
|
pinctrl-names = "default", "sleep", "idle";
|
|
pinctrl-0 = <&usart2_pins_c>;
|
|
pinctrl-1 = <&usart2_sleep_pins_c>;
|
|
pinctrl-2 = <&usart2_idle_pins_c>;
|
|
uart-has-rtscts;
|
|
status = "okay";
|
|
|
|
bluetooth {
|
|
shutdown-gpios = <&gpioz 6 GPIO_ACTIVE_HIGH>;
|
|
compatible = "brcm,bcm43438-bt";
|
|
max-speed = <3000000>;
|
|
vbat-supply = <&scmi_v3v3>;
|
|
vddio-supply = <&scmi_v3v3>;
|
|
};
|
|
};
|
|
|
|
/* Since I2C4 is disabled, STUSB1600 is also disabled so there is no Type-C support */
|
|
&usbotg_hs {
|
|
dr_mode = "peripheral";
|
|
role-switch-default-mode = "peripheral";
|
|
/*
|
|
* Forcing dr_mode = "peripheral"/"role-switch-default-mode = "peripheral";
|
|
* will cause the pull-up on D+/D- to be raised as soon as the OTG is configured at runtime,
|
|
* regardless of the presence of VBUS. Notice that on self-powered devices like
|
|
* stm32mp157f-dk2, this isn't compliant with the USB standard. That's why usbotg_hs is kept
|
|
* disabled here.
|
|
*/
|
|
status = "disabled";
|
|
};
|