On 3/6/25 15:15, Patrice CHOTARD wrote:
> 
> 
> On 3/6/25 11:56, Cheick Traore wrote:
>> The pwm source TIM1_CH3N channel (on PE12) in inverted polarity mode
>> will be used to manage the brightness of the panel backlight on
>> STM32MP135F-DK.
>>
>> Signed-off-by: Cheick Traore <cheick.tra...@foss.st.com>
>> ---
>>
>>  arch/arm/dts/stm32mp13-pinctrl.dtsi | 15 +++++++++++++++
>>  arch/arm/dts/stm32mp135f-dk.dts     | 14 ++++++++++++++
>>  2 files changed, 29 insertions(+)
>>
>> diff --git a/arch/arm/dts/stm32mp13-pinctrl.dtsi 
>> b/arch/arm/dts/stm32mp13-pinctrl.dtsi
>> index c01d39f03ea..52c2a9f24d7 100644
>> --- a/arch/arm/dts/stm32mp13-pinctrl.dtsi
>> +++ b/arch/arm/dts/stm32mp13-pinctrl.dtsi
>> @@ -215,6 +215,21 @@
>>              };
>>      };
>>  
>> +    pwm1_ch3n_pins_a: pwm1-ch3n-0 {
>> +            pins {
>> +                    pinmux = <STM32_PINMUX('E', 12, AF1)>; /* TIM1_CH3N */
>> +                    bias-pull-down;
>> +                    drive-push-pull;
>> +                    slew-rate = <0>;
>> +            };
>> +    };
>> +
>> +    pwm1_ch3n_sleep_pins_a: pwm1-ch3n-sleep-0 {
>> +            pins {
>> +                    pinmux = <STM32_PINMUX('E', 12, ANALOG)>; /* TIM1_CH3N 
>> */
>> +            };
>> +    };
>> +
>>      pwm3_pins_a: pwm3-0 {
>>              pins {
>>                      pinmux = <STM32_PINMUX('B', 1, AF2)>; /* TIM3_CH4 */
>> diff --git a/arch/arm/dts/stm32mp135f-dk.dts 
>> b/arch/arm/dts/stm32mp135f-dk.dts
>> index eea740d097c..275823da3c6 100644
>> --- a/arch/arm/dts/stm32mp135f-dk.dts
>> +++ b/arch/arm/dts/stm32mp135f-dk.dts
>> @@ -9,6 +9,7 @@
>>  #include <dt-bindings/gpio/gpio.h>
>>  #include <dt-bindings/input/input.h>
>>  #include <dt-bindings/leds/common.h>
>> +#include <dt-bindings/pwm/pwm.h>
>>  #include <dt-bindings/regulator/st,stm32mp13-regulator.h>
>>  #include "stm32mp135.dtsi"
>>  #include "stm32mp13xf.dtsi"
>> @@ -207,6 +208,19 @@
>>      status = "disabled";
>>  };
>>  
>> +&timers1 {
>> +    /* spare dmas for other usage */
>> +    /delete-property/dmas;
>> +    /delete-property/dma-names;
>> +    status = "okay";
>> +    pwm1: pwm {
>> +            pinctrl-0 = <&pwm1_ch3n_pins_a>;
>> +            pinctrl-1 = <&pwm1_ch3n_sleep_pins_a>;
>> +            pinctrl-names = "default", "sleep";
>> +            status = "okay";
>> +    };
>> +};
>> +
>>  &timers3 {
>>      /delete-property/dmas;
>>      /delete-property/dma-names;
> 
> 
> Reviewed-by: Patrice Chotard <patrice.chot...@foss.st.com>
> 
> Thanks
> Patrice

Applied to u-boot-stm32/next

Thanks
Patrice

Reply via email to