]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: stm32: add alternate pinmux for HDP pin and add HDP pinctrl node
authorClément Le Goffic <clement.legoffic@foss.st.com>
Fri, 11 Jul 2025 07:41:25 +0000 (09:41 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Mon, 15 Sep 2025 15:51:30 +0000 (17:51 +0200)
Introduce hdp node to output a user defined value on port hdp2.
Add pinctrl nodes to be able to output this signal on one SoC pin.

Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250711-hdp-upstream-v7-7-faeecf7aaee1@foss.st.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/st/stm32mp15-pinctrl.dtsi

index 835b034d0aa7eb6375cc35f775492b94ab26d5fe..8613a6a17ee985c376a3991df21088ace1582c43 100644 (file)
@@ -5,6 +5,14 @@
  */
 #include <dt-bindings/pinctrl/stm32-pinfunc.h>
 
+&hdp {
+       /omit-if-no-ref/
+       hdp2_gpo: hdp2-pins {
+               function = "gpoval2";
+               pins = "HDP2";
+       };
+};
+
 &pinctrl {
        /omit-if-no-ref/
        adc1_ain_pins_a: adc1-ain-0 {
                };
        };
 
+       /omit-if-no-ref/
+       hdp2_pins_a: hdp2-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('E', 13, AF0)>; /* HDP2 */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <2>;
+               };
+       };
+
+       /omit-if-no-ref/
+       hdp2_sleep_pins_a: hdp2-sleep-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('E', 13, ANALOG)>; /* HDP2 */
+               };
+       };
+
        /omit-if-no-ref/
        i2c1_pins_a: i2c1-0 {
                pins {