[RFC,1/5] ARM: dts: stm32: Add alternate pinmux for i2s pins

Message ID 20230606145555.2155664-1-sean@geanix.com
State New
Headers
Series [RFC,1/5] ARM: dts: stm32: Add alternate pinmux for i2s pins |

Commit Message

Sean Nyekjaer June 6, 2023, 2:55 p.m. UTC
  Add another mux option for i2s pins, this is used on Octavo OSD32MP1-RED board.

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
---
 arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
  

Comments

Olivier MOYSAN June 9, 2023, 8:48 a.m. UTC | #1
Hi Sean,

You can add my:
Reviewed-by: Olivier Moysan <olivier.moysan@foss.st.com>

Thanks
Olivier

On 6/6/23 16:55, Sean Nyekjaer wrote:
> Add another mux option for i2s pins, this is used on Octavo OSD32MP1-RED board.
> 
> Signed-off-by: Sean Nyekjaer <sean@geanix.com>
> ---
>   arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 19 +++++++++++++++++++
>   1 file changed, 19 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi
> index e86d989dd351..d79f89f37bc7 100644
> --- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi
> +++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi
> @@ -686,6 +686,25 @@ pins {
>   		};
>   	};
>   
> +	i2s2_pins_b: i2s2-1 {
> +		pins {
> +			pinmux = <STM32_PINMUX('C',  3, AF5)>, /* I2S2_SDO */
> +				 <STM32_PINMUX('B', 12, AF5)>, /* I2S2_WS */
> +				 <STM32_PINMUX('B', 13, AF5)>; /* I2S2_CK */
> +			bias-disable;
> +			drive-push-pull;
> +			slew-rate = <1>;
> +		};
> +	};
> +
> +	i2s2_sleep_pins_b: i2s2-sleep-1 {
> +		pins {
> +			pinmux = <STM32_PINMUX('C', 3, ANALOG)>, /* I2S2_SDO */
> +				 <STM32_PINMUX('B', 12, ANALOG)>, /* I2S2_WS */
> +				 <STM32_PINMUX('B', 13, ANALOG)>; /* I2S2_CK */
> +		};
> +	};
> +
>   	ltdc_pins_a: ltdc-0 {
>   		pins {
>   			pinmux = <STM32_PINMUX('G',  7, AF14)>, /* LCD_CLK */
  

Patch

diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi
index e86d989dd351..d79f89f37bc7 100644
--- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi
+++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi
@@ -686,6 +686,25 @@  pins {
 		};
 	};
 
+	i2s2_pins_b: i2s2-1 {
+		pins {
+			pinmux = <STM32_PINMUX('C',  3, AF5)>, /* I2S2_SDO */
+				 <STM32_PINMUX('B', 12, AF5)>, /* I2S2_WS */
+				 <STM32_PINMUX('B', 13, AF5)>; /* I2S2_CK */
+			bias-disable;
+			drive-push-pull;
+			slew-rate = <1>;
+		};
+	};
+
+	i2s2_sleep_pins_b: i2s2-sleep-1 {
+		pins {
+			pinmux = <STM32_PINMUX('C', 3, ANALOG)>, /* I2S2_SDO */
+				 <STM32_PINMUX('B', 12, ANALOG)>, /* I2S2_WS */
+				 <STM32_PINMUX('B', 13, ANALOG)>; /* I2S2_CK */
+		};
+	};
+
 	ltdc_pins_a: ltdc-0 {
 		pins {
 			pinmux = <STM32_PINMUX('G',  7, AF14)>, /* LCD_CLK */