ARM: dts: sun8i-v3s: Add PWM controller and pins definitions
Subsystems (2)
PATCH 1/1 ARM: dts: sun8i-v3s: Add PWM controller and pins definitions
This introduces definitions for the PWM controller found in the V3s, as well as associated pins. This fashion of the controller has two PWM outputs and is register-compatible with the A20.
Both PWM outputs were tested on a Lichee Pi Zero with a simple transistor-LED setup.
--- arch/arm/boot/dts/sun8i-v3s.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
arch/arm/boot/dts/sun8i-v3s.dtsi +18 -0
@@ -398,6 +398,16 @@ spi0_pins: spi0-pins { pins = "PC0", "PC1", "PC2", "PC3"; function = "spi0"; }; + + pwm0_pin: pwm0-pin { + pins = "PB4"; + function = "pwm0"; + }; + + pwm1_pin: pwm1-pin { + pins = "PB5"; + function = "pwm1"; + }; }; timer@1c20c00 {
@@ -416,6 +426,14 @@ wdt0: watchdog@1c20ca0 { clocks = <&osc24M>; }; + pwm: pwm@1c21400 { + compatible = "allwinner,sun7i-a20-pwm"; + reg = <0x01c21400 0xc>; + clocks = <&osc24M>; + #pwm-cells = <3>; + status = "disabled"; + }; + lradc: lradc@1c22800 { compatible = "allwinner,sun4i-a10-lradc-keys"; reg = <0x01c22800 0x400>;
Signature · 1 line
2.29.2
Hi,
Quoted 34 lines · Paul Kocialkowski
This introduces definitions for the PWM controller found in the V3s, as well as associated pins. This fashion of the controller has two PWM outputs and is register-compatible with the A20.
Both PWM outputs were tested on a Lichee Pi Zero with a simple transistor-LED setup.
Signed-off-by Paul Kocialkowski <[email protected]>--- arch/arm/boot/dts/sun8i-v3s.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)arch/arm/boot/dts/sun8i-v3s.dtsi +10
-0@@ -398,6 +398,16 @@ spi0_pins: spi0-pins { pins = "PC0", "PC1", "PC2", "PC3"; function = "spi0"; }; + + pwm0_pin: pwm0-pin { + pins = "PB4"; + function = "pwm0"; + }; + + pwm1_pin: pwm1-pin { + pins = "PB5"; + function = "pwm1"; + }; }; timer@1c20c00 {
arch/arm/boot/dts/sun8i-v3s.dtsi wdt0: watchdog@1c20ca0 { · line 430
Quoted 5 lines
arch/arm/boot/dts/sun8i-v3s.dtsi +2
-0@@ -416,6 +426,14 @@ wdt0: watchdog@1c20ca0 { clocks = <&osc24M>; }; + pwm: pwm@1c21400 { + compatible = "allwinner,sun7i-a20-pwm";
We should have a (documented) v3s compatible there along with the A20
Thanks!
Maxime