[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAGb2v67ka=7n0BHw_UDY4AH+PmvEJDTrr8JZUB2e5jCXdgSq3Q@mail.gmail.com>
Date: Thu, 27 Feb 2020 11:03:02 +0800
From: Chen-Yu Tsai <wens@...e.org>
To: Mans Rullgard <mans@...sr.com>
Cc: Maxime Ripard <mripard@...nel.org>,
Mark Rutland <mark.rutland@....com>,
devicetree <devicetree@...r.kernel.org>,
Rob Herring <robh+dt@...nel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH] ARM: dts: sunxi: h3/h5: add r_pwm node
On Thu, Feb 27, 2020 at 2:33 AM Mans Rullgard <mans@...sr.com> wrote:
>
> There is a second PWM unit available in the PL I/O block.
> Add a node and pinmux definition for it.
>
> Signed-off-by: Mans Rullgard <mans@...sr.com>
> ---
> arch/arm/boot/dts/sunxi-h3-h5.dtsi | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
> index 107eeafad20a..1842c9f12c36 100644
> --- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi
> +++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
> @@ -871,6 +871,19 @@
> pins = "PL0", "PL1";
> function = "s_i2c";
> };
> +
> + r_pwm_pins: r-pwm-pins {
Since it's just one pin, you could use the singular form instead.
And also set it as the default.
With that,
Reviewed-by: Chen-Yu Tsai <wens@...e.org>
> + pins = "PL10";
> + function = "s_pwm";
> + };
> + };
> +
> + r_pwm: pwm@...3800 {
> + compatible = "allwinner,sun8i-h3-pwm";
> + reg = <0x01f03800 0x8>;
> + clocks = <&osc24M>;
> + #pwm-cells = <3>;
> + status = "disabled";
> };
> };
> };
> --
> 2.25.0
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@...ts.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Powered by blists - more mailing lists