]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: stm32: phyboard-sargas and phycore: Add optional interfaces
authorChristophe Parant <c.parant@phytec.fr>
Fri, 6 Mar 2026 09:13:07 +0000 (10:13 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Fri, 6 Mar 2026 09:40:03 +0000 (10:40 +0100)
- stm32mp15xx-phycore-som: add NAND device on FMC interface to support
the SoM version equipped with NAND flash instead of eMMC.

- stm32mp15xx-phyboard-sargas: define pinctrl for PWM5, LTDC and DCMI
interfaces used on phyBOARD-Sargas. Those interfaces are not enabled by
default as PHYTEC displays and PHYTEC cameras are enabled and configured
throught device tree overlays.
PWM5 is used for LCD backlight command.

Signed-off-by: Christophe Parant <c.parant@phytec.fr>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/st/stm32mp15xx-phyboard-sargas.dtsi
arch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi

index 20684b497c998e8ac17583182a67001f817a17fe..f7e7aa9b916a1016868e4cf913ceebbfddefcab1 100644 (file)
        };
 };
 
+&dcmi {
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&dcmi_pins_d>;
+       pinctrl-1 = <&dcmi_sleep_pins_d>;
+};
+
 &i2c1 {
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&i2c1_pins_b>;
        };
 };
 
+&ltdc {
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&ltdc_pins_f>;
+       pinctrl-1 = <&ltdc_sleep_pins_f>;
+};
+
 &m_can2 {
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&m_can2_pins_a>;
        status = "okay";
 };
 
+&timers5 {
+       /* spare dmas for other usage */
+       /delete-property/dmas;
+       /delete-property/dma-names;
+       pwm5: pwm {
+               pinctrl-names = "default", "sleep";
+               pinctrl-0 = <&pwm5_pins_c>;
+               pinctrl-1 = <&pwm5_sleep_pins_c>;
+       };
+};
+
 &uart4 {
        pinctrl-names = "default", "sleep", "idle";
        pinctrl-0 = <&uart4_pins_f>;
index aafbd83f6cae24eb209c1c3a717a19ac6e571885..126446c4198f23c11d4c6a20d2b88a6082a4fb85 100644 (file)
        };
 };
 
+&fmc {
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&fmc_pins_a>;
+       pinctrl-1 = <&fmc_sleep_pins_a>;
+       status = "disabled";
+
+       nand-controller@4,0 {
+               nand0: nand@0 {
+                       reg = <0>;
+                       nand-on-flash-bbt;
+                       nand-ecc-strength = <4>;
+                       nand-ecc-step-size = <512>;
+               };
+       };
+};
+
 &i2c4 {
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&i2c4_pins_a>;