mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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:
parent
277a038d0d
commit
c3c78b0aeb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342005
52
sys/dts/arm64/overlays/sun50i-a64-pwm.dtso
Normal file
52
sys/dts/arm64/overlays/sun50i-a64-pwm.dtso
Normal 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";
|
||||
};
|
||||
};
|
52
sys/dts/arm64/overlays/sun50i-a64-rpwm.dtso
Normal file
52
sys/dts/arm64/overlays/sun50i-a64-rpwm.dtso
Normal 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";
|
||||
};
|
||||
};
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue