From a5ce1499055c98b003e20d2c48bf7a7be536c11d Mon Sep 17 00:00:00 2001 From: Lucio Tarantino Date: Thu, 19 Nov 2020 00:22:33 +0100 Subject: [PATCH 1/2] Create sun50i-h6-pwm.dts --- sun50i-h6/sun50i-h6-pwm.dts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 sun50i-h6/sun50i-h6-pwm.dts diff --git a/sun50i-h6/sun50i-h6-pwm.dts b/sun50i-h6/sun50i-h6-pwm.dts new file mode 100644 index 0000000..fa914be --- /dev/null +++ b/sun50i-h6/sun50i-h6-pwm.dts @@ -0,0 +1,28 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun50i-h6-pwm"; + + + fragment@0 { + target = <&pio>; + __overlay__ { + pwm0_pin: pwm0_pin { + pins = "PD22"; + function = "pwm"; + }; + }; + }; + + + fragment@1 { + target = <&pwm>; + __overlay__ { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pin>; + status = "okay"; + }; + }; + +}; From 52a08ae7b74aa235f1354fca49579d7e5401aa92 Mon Sep 17 00:00:00 2001 From: Lucio Tarantino Date: Thu, 19 Nov 2020 00:35:17 +0100 Subject: [PATCH 2/2] Create README.sun50i-h6-overlays Added documentation. --- sun50i-h6/README.sun50i-h6-overlays | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 sun50i-h6/README.sun50i-h6-overlays diff --git a/sun50i-h6/README.sun50i-h6-overlays b/sun50i-h6/README.sun50i-h6-overlays new file mode 100644 index 0000000..aa08dd9 --- /dev/null +++ b/sun50i-h6/README.sun50i-h6-overlays @@ -0,0 +1,27 @@ +This document describes overlays provided in the kernel packages +For generic Armbian overlays documentation please see +https://docs.armbian.com/User-Guide_Allwinner_overlays/ + +### Platform: + +sun50i-h6 (Allwinner H6) + +### Platform details: + +Please refer to h5 documentation for all missing. + + +### Provided overlays: + +- pwm + +### Overlay details: + +### pwm + +Activates hardware PWM controller + +PWM pin: PD22 + +Attention: On some board as "OrangePi Lite 2" there is an exposed pin marked as PWM1. + This is NOT the PWM1 pin. As datasheet the only PWM pin available is PD22 (ALT2).