Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2018 21:02:22 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r342005 - in head/sys: dts/arm64/overlays modules/dtb/allwinner
Message-ID:  <201812122102.wBCL2MGt078130@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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";
+	};
+};

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@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";
+	};
+};

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812122102.wBCL2MGt078130>