ARM: dts: dra7: Add ti-opp-supply nodes and enable 1.5 GHz
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
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
@@ -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
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
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
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
PATCH 2/8 ARM: dts: dra7: Add MPU OPP supply node
In reply to Dave GerlachAdd 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
@@ -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
PATCH 3/8 ARM: dts: dra7: Enable 1.5 GHz operation for the CPU
In reply to Dave GerlachAfter 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
@@ -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
PATCH 4/8 ARM: dts: am57xx-beagle-x15-common: Add cpu0 vdd supply
In reply to Dave GerlachAdd 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
@@ -388,7 +388,7 @@ }; &cpu0 { - cpu0-supply = <&smps12_reg>; + vdd-supply = <&smps12_reg>; voltage-tolerance = <1>; };
Signature · 1 line
2.15.1
PATCH 5/8 ARM: dts: dra7-evm: Add cpu0 vdd supply
In reply to Dave GerlachAdd 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
@@ -361,7 +361,7 @@ }; &cpu0 { - cpu0-supply = <&smps123_reg>; + vdd-supply = <&smps123_reg>; }; &omap_dwc3_2 {
Signature · 1 line
2.15.1
PATCH 6/8 ARM: dts: dra72-evm-tps65917: Add cpu0 vdd supply
In reply to Dave GerlachAdd 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
@@ -148,3 +148,7 @@ &mmc1 { vqmmc-supply = <&ldo1_reg>; }; + +&cpu0 { + vdd-supply = <&smps1_reg>; +};
Signature · 1 line
2.15.1
PATCH 7/8 ARM: dts: am571x-idk: Add cpu0 vdd supply
In reply to Dave GerlachAdd 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
@@ -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
PATCH 8/8 ARM: dts: am572x-idk: Add cpu0 vdd supply
In reply to Dave GerlachAdd 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
@@ -127,3 +127,7 @@ status = "okay"; }; }; + +&cpu0 { + vdd-supply = <&smps12_reg>; +};
Signature · 1 line
2.15.1