arm64: allwinner: Add DTSO for pwm and r_pwm

Those are both dtso (overlays) for the two pwm controllers found on the A64.
This commit is contained in:
Emmanuel Vadot 2018-12-12 21:02:22 +00:00
parent 277a038d0d
commit c3c78b0aeb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342005
3 changed files with 106 additions and 0 deletions

View file

@ -0,0 +1,52 @@
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun50i-a64";
};
&{/soc} {
pwm: pwm@1c21400 {
compatible = "allwinner,sun50i-a64-pwm",
"allwinner,sun5i-a13-pwm";
reg = <0x01c21400 0x400>;
clocks = <&osc24M>;
pinctrl-names = "default";
pinctrl-0 = <&pwm_pin>;
#pwm-cells = <3>;
status = "disabled";
};
};
&{/soc/pinctrl@1c20800} {
pwm_pin: pwm_pin {
pins = "PD22";
function = "pwm";
};
};
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun50i-a64";
};
&{/soc} {
pwm: pwm@1c21400 {
compatible = "allwinner,sun50i-a64-pwm",
"allwinner,sun5i-a13-pwm";
reg = <0x01c21400 0x400>;
clocks = <&osc24M>;
pinctrl-names = "default";
pinctrl-0 = <&pwm_pin>;
#pwm-cells = <3>;
status = "disabled";
};
};
&{/soc/pinctrl@1c20800} {
pwm_pin: pwm_pin {
pins = "PD22";
function = "pwm";
};
};

View file

@ -0,0 +1,52 @@
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun50i-a64";
};
&{/soc} {
r_pwm: pwm@1f03800 {
compatible = "allwinner,sun50i-a64-pwm",
"allwinner,sun5i-a13-pwm";
reg = <0x01f03800 0x400>;
clocks = <&osc24M>;
pinctrl-names = "default";
pinctrl-0 = <&r_pwm_pin>;
#pwm-cells = <3>;
status = "okay";
};
};
&{/soc/pinctrl@1f02c00} {
r_pwm_pin: pwm {
pins = "PL10";
function = "s_pwm";
};
};
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun50i-a64";
};
&{/soc} {
r_pwm: pwm@1f03800 {
compatible = "allwinner,sun50i-a64-pwm",
"allwinner,sun5i-a13-pwm";
reg = <0x01f03800 0x400>;
clocks = <&osc24M>;
pinctrl-names = "default";
pinctrl-0 = <&r_pwm_pin>;
#pwm-cells = <3>;
status = "okay";
};
};
&{/soc/pinctrl@1f02c00} {
r_pwm_pin: pwm {
pins = "PL10";
function = "s_pwm";
};
};

View file

@ -45,6 +45,8 @@ DTS= \
allwinner/sun50i-h5-orangepi-pc2.dts
DTSO= sun50i-a64-opp.dtso \
sun50i-a64-pwm.dtso \
sun50i-a64-rpwm.dtso \
sun50i-a64-sid.dtso \
sun50i-a64-ths.dtso \
sun50i-a64-timer.dtso