Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sun50i h6 pwm #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions sun50i-h6/README.sun50i-h6-overlays
Original file line number Diff line number Diff line change
@@ -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).
28 changes: 28 additions & 0 deletions sun50i-h6/sun50i-h6-pwm.dts
Original file line number Diff line number Diff line change
@@ -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";
};
};

};