Add dts file for PWM

This commit is contained in:
Frederik Menke 2023-05-01 23:35:37 +02:00
parent cf2bf37ed8
commit 6245c2f9fa

View file

@ -0,0 +1,36 @@
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun7i-a20";
description = "Enable PWM controller";
fragment@0 {
target = <&pio>;
__overlay__ {
pwm0_pin: pwm0-pin {
pins = "PB2";
function = "pwm";
};
};
};
fragment@1 {
target = <&pio>;
__overlay__ {
pwm1_pin: pwm1-pin {
pins = "PI3";
function = "pwm";
};
};
};
fragment@2 {
target = <&pwm>;
__overlay__ {
pinctrl-names = "default";
pinctrl-0 = <&pwm0_pin>, <&pwm1_pin>;
status = "okay";
};
};
};