Skip to contentSkip to conversation

ARM: dts: dra7: Add ti-opp-supply nodes and enable 1.5 GHz

PATCH New Dave Gerlach 2 participants 12 messages Dec 19, 2017 – Dec 21, 2017 Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover ARM: dts: dra7: Add ti-opp-supply nodes and enable 1.5 GHz

Hi,
This series adds the additional regulators and ti-opp-supply nodes to enable ABB regulator scaling and AVS Class0 for dra7 and am57 platforms. In addition to this the 1.5 GHz OPP is enabled for any platforms in the dra7 and am57 family that support it based on the detection done by the ti-cpufreq driver.

Regards,
Dave

Dave Gerlach (8):
ARM: dts: dra7: Add vbb-supply to cpu and additional voltages
ARM: dts: dra7: Add MPU OPP supply node
ARM: dts: dra7: Enable 1.5 GHz operation for the CPU
ARM: dts: am57xx-beagle-x15-common: Add cpu0 vdd supply
ARM: dts: dra7-evm: Add cpu0 vdd supply
ARM: dts: dra72-evm-tps65917: Add cpu0 vdd supply
ARM: dts: am571x-idk: Add cpu0 vdd supply
ARM: dts: am572x-idk: Add cpu0 vdd supply

 arch/arm/boot/dts/am571x-idk.dts                |  4 ++++
 arch/arm/boot/dts/am572x-idk.dts                |  4 ++++
 arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi |  2 +-
 arch/arm/boot/dts/dra7-evm.dts                  |  2 +-
 arch/arm/boot/dts/dra7.dtsi                     | 29 +++++++++++++++++++++++--
 arch/arm/boot/dts/dra72-evm-tps65917.dtsi       |  4 ++++
 6 files changed, 41 insertions(+), 4 deletions(-)
Signature · 1 line
2.15.1
#1 lore raw

PATCH 1/8 ARM: dts: dra7: Add vbb-supply to cpu and additional voltages

Add a vbb-supply phandle to the cpus node and also add an additional triplet of voltages for each OPP in the operating-points-v2 table to make use of the multi regulator support in the OPP core and provide the vbb regulator for use by the ti-opp-supply driver.

---
 arch/arm/boot/dts/dra7.dtsi | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
arch/arm/boot/dts/dra7.dtsi +7 -2
index ac9216293b7c..d9f60144793b 100644
@@ -92,6 +92,8 @@
 			cooling-min-level = <0>;
 			cooling-max-level = <2>;
 			#cooling-cells = <2>; /* min followed by max */
+
+			vbb-supply = <&abb_mpu>;
 		};
 	};
 
@@ -101,14 +103,17 @@
 
 		opp_nom-1000000000 {
 			opp-hz = /bits/ 64 <1000000000>;
-			opp-microvolt = <1060000 850000 1150000>;
+			opp-microvolt = <1060000 850000 1150000>,
+					<1060000 850000 1150000>;
 			opp-supported-hw = <0xFF 0x01>;
 			opp-suspend;
 		};
 
 		opp_od-1176000000 {
 			opp-hz = /bits/ 64 <1176000000>;
-			opp-microvolt = <1160000 885000 1160000>;
+			opp-microvolt = <1160000 885000 1160000>,
+					<1160000 885000 1160000>;
+
 			opp-supported-hw = <0xFF 0x02>;
 		};
 	};
Signature · 1 line
2.15.1
#2 lore raw

PATCH 1/8 ARM: dts: dra7: Add vbb-supply to cpu and additional voltages

Quoted 4 lines · Dave Gerlach

Add a vbb-supply phandle to the cpus node and also add an additional triplet of voltages for each OPP in the operating-points-v2 table to make use of the multi regulator support in the OPP core and provide the vbb regulator for use by the ti-opp-supply driver.

Sounds like these depend on the ti-opp-supply being available first?

Regards,

Tony

#3 lore raw

PATCH 1/8 ARM: dts: dra7: Add vbb-supply to cpu and additional voltages

Quoted 8 lines · Tony Lindgren
Quoted 4 lines · Dave Gerlach

Add a vbb-supply phandle to the cpus node and also add an additional triplet of voltages for each OPP in the operating-points-v2 table to make use of the multi regulator support in the OPP core and provide the vbb regulator for use by the ti-opp-supply driver.

Sounds like these depend on the ti-opp-supply being available first?

Yes that would be best, but the ti-opp-supply patches are already in linux-next.

Regards,
Dave

Quoted 4 lines

Regards,

Tony

#4 lore raw

PATCH 1/8 ARM: dts: dra7: Add vbb-supply to cpu and additional voltages

Quoted 11 lines · Dave Gerlach
Quoted 8 lines · Tony Lindgren
Quoted 4 lines · Dave Gerlach

Add a vbb-supply phandle to the cpus node and also add an additional triplet of voltages for each OPP in the operating-points-v2 table to make use of the multi regulator support in the OPP core and provide the vbb regulator for use by the ti-opp-supply driver.

Sounds like these depend on the ti-opp-supply being available first?

Yes that would be best, but the ti-opp-supply patches are already in linux-next.

OK applying into omap-for-v4.16/dt then thanks.

Regards,

Tony

#5 lore raw

PATCH 2/8 ARM: dts: dra7: Add MPU OPP supply node

In reply to Dave Gerlach

Add the OPP supply node for the MPU voltage rail to provide the information needed by the ti-opp-supply driver to enable AVS Class 0.

---
 arch/arm/boot/dts/dra7.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm/boot/dts/dra7.dtsi +13 -0
index d9f60144793b..33004e7f1ee9 100644
@@ -2057,6 +2057,19 @@
 			clocks = <&l3_iclk_div>;
 			clock-names = "fck";
 		};
+
+		opp_supply_mpu: opp-supply at 4a003b20 {
+			compatible = "ti,omap5-opp-supply";
+			reg = <0x4a003b20 0xc>;
+			ti,efuse-settings = <
+			/* uV   offset */
+			1060000 0x0
+			1160000 0x4
+			1210000 0x8
+			>;
+			ti,absolute-max-voltage-uv = <1500000>;
+		};
+
 	};
 
 	thermal_zones: thermal-zones {
Signature · 1 line
2.15.1
#6 lore raw

PATCH 3/8 ARM: dts: dra7: Enable 1.5 GHz operation for the CPU

In reply to Dave Gerlach

After ti-opp-supply driver is in place to provide AVS Class0 and abb regulator scaling support let's enable 1.5GHz for the cpu.

---
 arch/arm/boot/dts/dra7.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/dra7.dtsi +7 -0
index 33004e7f1ee9..eb68da74f777 100644
@@ -116,6 +116,13 @@
 
 			opp-supported-hw = <0xFF 0x02>;
 		};
+
+		opp_high at 1500000000 {
+			opp-hz = /bits/ 64 <1500000000>;
+			opp-microvolt = <1210000 950000 1250000>,
+					<1210000 950000 1250000>;
+			opp-supported-hw = <0xFF 0x04>;
+		};
 	};
 
 	/*
Signature · 1 line
2.15.1
#7 lore raw

PATCH 4/8 ARM: dts: am57xx-beagle-x15-common: Add cpu0 vdd supply

In reply to Dave Gerlach

Add vdd-supply as smps12_reg for cpu0.

---
 arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi +1 -1
index 49aeecd312b4..441c25677679 100644
@@ -388,7 +388,7 @@
 };
 
 &cpu0 {
-	cpu0-supply = <&smps12_reg>;
+	vdd-supply = <&smps12_reg>;
 	voltage-tolerance = <1>;
 };
 
Signature · 1 line
2.15.1
#8 lore raw

PATCH 5/8 ARM: dts: dra7-evm: Add cpu0 vdd supply

In reply to Dave Gerlach

Add vdd-supply as smps123_reg for cpu0.

---
 arch/arm/boot/dts/dra7-evm.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/dra7-evm.dts +1 -1
index ef9c90daa74b..a7385c338ee9 100644
@@ -361,7 +361,7 @@
 };
 
 &cpu0 {
-	cpu0-supply = <&smps123_reg>;
+	vdd-supply = <&smps123_reg>;
 };
 
 &omap_dwc3_2 {
Signature · 1 line
2.15.1
#9 lore raw

PATCH 6/8 ARM: dts: dra72-evm-tps65917: Add cpu0 vdd supply

In reply to Dave Gerlach

Add vdd-supply as smps12_reg for cpu0.

---
 arch/arm/boot/dts/dra72-evm-tps65917.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/dra72-evm-tps65917.dtsi +4 -0
index 57bfe5caf5e4..47bb90f41f3f 100644
@@ -148,3 +148,7 @@
 &mmc1 {
 	vqmmc-supply = <&ldo1_reg>;
 };
+
+&cpu0 {
+	vdd-supply = <&smps1_reg>;
+};
Signature · 1 line
2.15.1
#10 lore raw

PATCH 7/8 ARM: dts: am571x-idk: Add cpu0 vdd supply

In reply to Dave Gerlach

Add vdd-supply as smps12_reg for cpu0.

---
 arch/arm/boot/dts/am571x-idk.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/am571x-idk.dts +4 -0
index debf9464403e..6d3c83743156 100644
@@ -117,3 +117,7 @@
 	pinctrl-1 = <&mmc2_pins_hs>;
 	pinctrl-2 = <&mmc2_pins_ddr_rev20 &mmc2_iodelay_ddr_conf>;
 };
+
+&cpu0 {
+	vdd-supply = <&smps12_reg>;
+};
Signature · 1 line
2.15.1
#11 lore raw

PATCH 8/8 ARM: dts: am572x-idk: Add cpu0 vdd supply

In reply to Dave Gerlach

Add vdd-supply as smps12_reg for cpu0.

---
 arch/arm/boot/dts/am572x-idk.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/am572x-idk.dts +4 -0
index a578fe97ba3b..d0daf48346ab 100644
@@ -127,3 +127,7 @@
 		status = "okay";
 	};
 };
+
+&cpu0 {
+	vdd-supply = <&smps12_reg>;
+};
Signature · 1 line
2.15.1