arm64: dts: st: add i2c2/i2c8 pins for stm32mp25
authorAlain Volmat <alain.volmat@foss.st.com>
Fri, 15 Dec 2023 17:06:12 +0000 (18:06 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Thu, 25 Apr 2024 13:00:30 +0000 (15:00 +0200)
Add the i2c2 and i2c8 pins used on STM32MP257F-EV1 board.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi

index 66791a974f8f29b03f020a01d238eef795bf9522..4194807606ce71f020646e9e94a61148edce9036 100644 (file)
@@ -6,6 +6,23 @@
 #include <dt-bindings/pinctrl/stm32-pinfunc.h>
 
 &pinctrl {
+       i2c2_pins_a: i2c2-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('B', 5, AF9)>, /* I2C2_SCL */
+                                <STM32_PINMUX('B', 4, AF9)>; /* I2C2_SDA */
+                       bias-disable;
+                       drive-open-drain;
+                       slew-rate = <0>;
+               };
+       };
+
+       i2c2_sleep_pins_a: i2c2-sleep-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('B', 5, ANALOG)>, /* I2C2_SCL */
+                                <STM32_PINMUX('B', 4, ANALOG)>; /* I2C2_SDA */
+               };
+       };
+
        sdmmc1_b4_pins_a: sdmmc1-b4-0 {
                pins1 {
                        pinmux = <STM32_PINMUX('E', 4, AF10)>, /* SDMMC1_D0 */
                };
        };
 };
+
+&pinctrl_z {
+       i2c8_pins_a: i2c8-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('Z', 4, AF8)>, /* I2C8_SCL */
+                                <STM32_PINMUX('Z', 3, AF8)>; /* I2C8_SDA */
+                       bias-disable;
+                       drive-open-drain;
+                       slew-rate = <0>;
+               };
+       };
+
+       i2c8_sleep_pins_a: i2c8-sleep-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('Z', 4, ANALOG)>, /* I2C8_SCL */
+                                <STM32_PINMUX('Z', 3, ANALOG)>; /* I2C8_SDA */
+               };
+       };
+};