Add dts file for PWM
This commit is contained in:
parent
cf2bf37ed8
commit
6245c2f9fa
36
red/misc/sun7i-a20-pwm.dts
Normal file
36
red/misc/sun7i-a20-pwm.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue