]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: stm32: phycore-stm32mp15: Disable optional SoM peripherals
authorChristophe Parant <c.parant@phytec.fr>
Wed, 10 Dec 2025 10:16:09 +0000 (11:16 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Fri, 6 Mar 2026 09:39:36 +0000 (10:39 +0100)
Following peripherals are optional on phyCORE-STM32MP15x following
PHYTEC standard SoM variants: external RTC, EEPROM, SPI NOR.
Also NAND (fmc) can be populated instead of eMMC (sdmmc2).

So disable those peripherals on SoM dtsi file and enable them on board
dts file.
Additionally, enable by default the "DTS" SoC IP on common SoM dtsi file
as it is not an optional IP in STM32MP15x SoC.

Signed-off-by: Christophe Parant <c.parant@phytec.fr>
Link: https://lore.kernel.org/r/20251210101611.27008-10-c.parant@phytec.fr
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/st/stm32mp157c-phyboard-sargas-rdk.dts
arch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi

index f7c02a3813049bc83f1f0dd3bc61e59dd21af524..c90b12a479c95eac44547b9609a3dbcb01efce8a 100644 (file)
        status = "okay";
 };
 
-&dts {
-       status = "okay";
-};
-
-&fmc {
-       status = "disabled";
-};
-
 &gpu {
        status = "okay";
 };
index ce859b94ae26ba55476738f512d91ca513dc1c4e..3f60f184978c184a63f826052ddab64cc5b4b1fc 100644 (file)
                compatible = "microchip,24c32",
                             "atmel,24c32";
                reg = <0x50>;
+               status = "disabled";
        };
 
        i2c4_rtc: rtc@52 {
                compatible = "microcrystal,rv3028";
                reg = <0x52>;
+               status = "disabled";
        };
 };
 
                     &qspi_cs1_sleep_pins_a>;
        reg = <0x58003000 0x1000>,
              <0x70000000 0x1000000>;
-       status = "okay";
+       status = "disabled";
 
        flash0: flash@0 {
                compatible = "winbond,w25q128", "jedec,spi-nor";
        status = "okay";
 };
 
+&dts {
+       status = "okay";
+};
+
 &sdmmc2 {
        pinctrl-names = "default", "opendrain", "sleep";
        pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_e>;
        vmmc-supply = <&v3v3>;
        vqmmc-supply = <&v3v3>;
        mmc-ddr-3_3v;
+       status = "disabled";
 };