[RFC PATCH v2 1/6] ARM: dts: OMAP36xx: add device tree for ABB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Andrii.Tseglytskyi" <andrii.tseglytskyi@xxxxxx>

Add DT ABB data for OMAP36xx family of devices.
Data is based on OMAP36XX TRM document.

Signed-off-by: Andrii.Tseglytskyi <andrii.tseglytskyi@xxxxxx>
---
 Documentation/devicetree/bindings/power/abb.txt |   38 +++++++++++++++++++++++
 arch/arm/boot/dts/omap36xx.dtsi                 |   20 ++++++++++++
 2 files changed, 58 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/abb.txt

diff --git a/Documentation/devicetree/bindings/power/abb.txt b/Documentation/devicetree/bindings/power/abb.txt
new file mode 100644
index 0000000..3f6c17c
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/abb.txt
@@ -0,0 +1,38 @@
+ABB regulator for OMAP platforms
+
+Required properties :
+- compatible:
+  - "ti,omap36xx-abb" for OMAP36XX
+  - "ti,omap4-abb" for OMAP4
+  - "ti,omap5-abb" for OMAP5
+
+- regulator-min-microvolt: lowest OPP voltage
+- regulator-max-microvolt: highest OPP voltage
+- regulator-always-on: ABB should be always on
+- reg: addres range defined in TRM
+- ti,tranxdone_status_mask: ABB transition state mask
+- operating-points: An array of 2-tuples items, and each item consists
+  of voltage and ABB opp_sel, like <volt-uV opp_sel>.
+	volt: voltage in uV
+	opp_sel: 0-bypass, 1-FBB, 2-RBB
+
+Examples :
+abb_mpu_iva: regulator-abb1 {
+	compatible = "ti,omap36xx-abb";
+	regulator-name = "abb_mpu_iva";
+	regulator-min-microvolt = <1012500>;
+	regulator-max-microvolt = <1375000>;
+	regulator-always-on;
+	#address-cells = <1>;
+	#size-cells = <1>;
+	reg = <0x483072f0 0x8>,
+	      <0x48306818 0x4>;
+	ti,tranxdone_status_mask = <0x4000000>;
+	operating-points = <
+		/* uV   ABB */
+		1012500 0
+		1200000 0
+		1325000 0
+		1375000 1
+	>;
+};
diff --git a/arch/arm/boot/dts/omap36xx.dtsi b/arch/arm/boot/dts/omap36xx.dtsi
index b89233e..5e917ca 100644
--- a/arch/arm/boot/dts/omap36xx.dtsi
+++ b/arch/arm/boot/dts/omap36xx.dtsi
@@ -28,6 +28,26 @@
 		};
 	};
 
+	abb_mpu_iva: regulator-abb1 {
+		compatible = "ti,omap36xx-abb";
+		regulator-name = "abb_mpu_iva";
+		regulator-min-microvolt = <1012500>;
+		regulator-max-microvolt = <1375000>;
+		regulator-always-on;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0x483072f0 0x8>,
+		      <0x48306818 0x4>;
+		ti,tranxdone_status_mask = <0x4000000>;
+		operating-points = <
+			/* uV   ABB */
+			1012500	0
+			1200000	0
+			1325000	0
+			1375000	1
+		>;
+	};
+
 	ocp {
 		uart4: serial@49042000 {
 			compatible = "ti,omap3-uart";
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux