Re: [PATCH v9 08/11] arm64: dts: qcom: ipq5210: Enable the PWM block

From: Konrad Dybcio

Date: Thu Dec 03 2026 - 09:04:52 EST


On 11/12/26 5:36 AM, Varadarajan Narayanan wrote:
> Describe and enable the PWM block on IPQ5210.
>
> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@xxxxxxxxxxxxxxxx>
> ---
> + pwm_default_state: pwm-default-state {
> + pins = "gpio11";
> + function = "pwm0";
> + drive-strength = <6>;
> + bias-pull-down;
> + };
This function definition can comfortably live in the SoC DTSI
and be assigned to the controller there


[...]
> + pwm: pwm@1941010 {
> + compatible = "qcom,ipq5210-pwm", "qcom,ipq6018-pwm";
> + reg = <0x0 0x01941010 0x0 0x20>;
> + clocks = <&gcc GCC_ADSS_PWM_CLK>;
> + assigned-clocks = <&gcc GCC_ADSS_PWM_CLK>;
> + assigned-clock-rates = <100000000>;
> + #pwm-cells = <3>;
> + status = "okay";

That's the default value. But because the pin has other, useful
mux states, we may want to disable the controller here, following
other IPQs

Konrad