svn commit: r342005 - in head/sys: dts/arm64/overlays modules/dtb/allwinner
Emmanuel Vadot
manu at FreeBSD.org
Wed Dec 12 21:02:23 UTC 2018
Author: manu
Date: Wed Dec 12 21:02:22 2018
New Revision: 342005
URL: https://svnweb.freebsd.org/changeset/base/342005
Log:
arm64: allwinner: Add DTSO for pwm and r_pwm
Those are both dtso (overlays) for the two pwm controllers found on the A64.
Added:
head/sys/dts/arm64/overlays/sun50i-a64-pwm.dtso (contents, props changed)
head/sys/dts/arm64/overlays/sun50i-a64-rpwm.dtso (contents, props changed)
Modified:
head/sys/modules/dtb/allwinner/Makefile
Added: head/sys/dts/arm64/overlays/sun50i-a64-pwm.dtso
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sys/dts/arm64/overlays/sun50i-a64-pwm.dtso Wed Dec 12 21:02:22 2018 (r342005)
@@ -0,0 +1,52 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "allwinner,sun50i-a64";
+};
+
+&{/soc} {
+ pwm: pwm at 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 at 1c20800} {
+ pwm_pin: pwm_pin {
+ pins = "PD22";
+ function = "pwm";
+ };
+};
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "allwinner,sun50i-a64";
+};
+
+&{/soc} {
+ pwm: pwm at 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 at 1c20800} {
+ pwm_pin: pwm_pin {
+ pins = "PD22";
+ function = "pwm";
+ };
+};
Added: head/sys/dts/arm64/overlays/sun50i-a64-rpwm.dtso
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sys/dts/arm64/overlays/sun50i-a64-rpwm.dtso Wed Dec 12 21:02:22 2018 (r342005)
@@ -0,0 +1,52 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "allwinner,sun50i-a64";
+};
+
+&{/soc} {
+ r_pwm: pwm at 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 at 1f02c00} {
+ r_pwm_pin: pwm {
+ pins = "PL10";
+ function = "s_pwm";
+ };
+};
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "allwinner,sun50i-a64";
+};
+
+&{/soc} {
+ r_pwm: pwm at 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 at 1f02c00} {
+ r_pwm_pin: pwm {
+ pins = "PL10";
+ function = "s_pwm";
+ };
+};
Modified: head/sys/modules/dtb/allwinner/Makefile
==============================================================================
--- head/sys/modules/dtb/allwinner/Makefile Wed Dec 12 20:58:43 2018 (r342004)
+++ head/sys/modules/dtb/allwinner/Makefile Wed Dec 12 21:02:22 2018 (r342005)
@@ -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
More information about the svn-src-all
mailing list