2020-02-27 11:55:48

by Måns Rullgård

[permalink] [raw]
Subject: [PATCH v2] ARM: dts: sunxi: h3/h5: add r_pwm node

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 <[email protected]>
---
Changed in v2:
- use singular name (pin vs pins) for pinmux group
- set pinmux in device node as there is only one choice
---
arch/arm/boot/dts/sunxi-h3-h5.dtsi | 15 +++++++++++++++
1 file changed, 15 insertions(+)

diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
index 107eeafad20a..54b32537d6ae 100644
--- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi
+++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
@@ -871,6 +871,21 @@
pins = "PL0", "PL1";
function = "s_i2c";
};
+
+ r_pwm_pin: r-pwm-pin {
+ pins = "PL10";
+ function = "s_pwm";
+ };
+ };
+
+ r_pwm: pwm@1f03800 {
+ compatible = "allwinner,sun8i-h3-pwm";
+ reg = <0x01f03800 0x8>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&r_pwm_pin>;
+ clocks = <&osc24M>;
+ #pwm-cells = <3>;
+ status = "disabled";
};
};
};
--
2.25.0


2020-02-27 12:56:14

by Maxime Ripard

[permalink] [raw]
Subject: Re: [PATCH v2] ARM: dts: sunxi: h3/h5: add r_pwm node

On Thu, Feb 27, 2020 at 11:55:26AM +0000, Mans Rullgard 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 <[email protected]>

Applied, thanks!
Maxime


Attachments:
(No filename) (249.00 B)
signature.asc (235.00 B)
Download all attachments