Re: [RFC PATCH v2 09/17] ARM: dts: tegra20: harmony: Setup voltage regulators for DVFS
From: Dmitry Osipenko
Date: Mon Oct 22 2018 - 18:59:58 EST
On 10/22/18 6:33 PM, Stephen Warren wrote:
> On 10/21/18 2:54 PM, Dmitry Osipenko wrote:
>> Set min/max regulators voltage and add CPU node that hooks up CPU with
>> voltage regulators.
>
>> diff --git a/arch/arm/boot/dts/tegra20-harmony.dts b/arch/arm/boot/dts/tegra20-harmony.dts
>
>> -ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ sm0 {
>> +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ core_vdd_reg: sm0 {
>> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ regulator-name = "vdd_sm0,vdd_core";
>> -ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ regulator-min-microvolt = <1200000>;
>> -ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ regulator-max-microvolt = <1200000>;
>> +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ regulator-min-microvolt = <1000000>;
>> +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ regulator-max-microvolt = <1300000>;
>> +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ regulator-coupled-with = <&rtc_vdd_reg>;
>> +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ regulator-coupled-max-spread = <150000>;
>> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ regulator-always-on;
>> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ };
>
> How do you know for sure that these increased ranges are safe (high end) and stable (low end) for this particular board? IIRC the safe/legal range depends on the chip SKU, and to be honest I have no idea which SKU is present on Harmony... For public boards like Colibri I imagine there's enough information out there to tell what will work, but maybe not our internal boards like Harmony, unless you checked our ancient downstream kernels?
Yes, the ranges could be inaccurate in these DT patches. But it shouldn't matter much because only OPP's that match actual HW SKU will be used for DVFS. Though certainly it will be nice if we could specify exactly correct ranges.
Looks like downstream doesn't specify safe ranges for any of the boards and it is relying on the SKU-VOLTAGE DVFS table values only.
For now there are quite few obstacles that need to be resolved in order to get a properly working system-wide DVFS, but things are getting a bit closer. Thank you very much for your input!