muele/red/misc/sun7i-a20-pwm.dts

37 lines
667 B
Plaintext
Raw Normal View History

2023-05-01 21:35:37 +00:00
/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";
};
};
};