ARM: dt: tegra: paz00: configure power off
Subsystems (2)
PATCH 1/1 ARM: dt: tegra: paz00: configure power off
Add DT property to tell the regulator that it should provide the pm_power_off() implementation. This fix "shutdown" issue on this device.
---
Tested on current mainline version, ac100 models 116 and 117, successful rate of "shutdown" increased from 10% to 90%.
arch/arm/boot/dts/tegra20-paz00.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/boot/dts/tegra20-paz00.dts +2 -0
@@ -316,6 +316,8 @@ #gpio-cells = <2>; gpio-controller; + ti,system-power-controller; + sys-supply = <&p5valw_reg>; vin-sm0-supply = <&sys_reg>; vin-sm1-supply = <&sys_reg>;
Signature · 1 line
1.8.4.5
Hi Micha,
Am Samstag, 12. März 2016, 00:00:00 CET schrieb Misha Komarovskiy:
Quoted 18 lines
Add DT property to tell the regulator that it should provide the
pm_power_off()implementation. This fix "shutdown" issue on this device.Signed-off-by Misha Komarovskiy <[email protected]>---
Tested on current mainline version, ac100 models 116 and 117, successful rate of "shutdown" increased from 10% to 90%.
arch/arm/boot/dts/tegra20-paz00.dts | 2 ++ 1 file changed, 2 insertions(+)(quoted diff) +0
-0
b/arch/arm/boot/dts/tegra20-paz00.dtsindex ed7e100..c82e3ae 100644
arch/arm/boot/dts/tegra20-paz00.dts line 323
Quoted 8 lines
arch/arm/boot/dts/tegra20-paz00.dts +2
-0@@ -316,6 +316,8 @@ #gpio-cells = <2>; gpio-controller; + ti,system-power-controller; + sys-supply = <&p5valw_reg>; vin-sm0-supply = <&sys_reg>; vin-sm1-supply = <&sys_reg>;
I think this is the wrong fix. The power_off hook is already occupied by nvec. So either the tps or nvec is responsible for shutting down the system. AFAIR, nvec has some hard wired connection to the tps for doing this, so in the end, it will shut down (but I can't find it now in the schematics). See paz00- diag.c in the original sources on how the system is beeing shut down.
In any case, we can only have one power_off handler. Either via tps or nvec, not both.
Marc
Hello Marc,
Quoted 36 lines · Marc Dietrich
Hi Micha,
Am Samstag, 12. März 2016, 00:00:00 CET schrieb Misha Komarovskiy:
Quoted 18 lines
Add DT property to tell the regulator that it should provide the
pm_power_off()implementation. This fix "shutdown" issue on this device.Signed-off-by Misha Komarovskiy <[email protected]>---
Tested on current mainline version, ac100 models 116 and 117, successful rate of "shutdown" increased from 10% to 90%.
arch/arm/boot/dts/tegra20-paz00.dts | 2 ++ 1 file changed, 2 insertions(+)(quoted diff) +0
-0
b/arch/arm/boot/dts/tegra20-paz00.dtsindex ed7e100..c82e3ae 100644arch/arm/boot/dts/tegra20-paz00.dts line 323
Quoted 8 lines
arch/arm/boot/dts/tegra20-paz00.dts +2
-0@@ -316,6 +316,8 @@ #gpio-cells = <2>; gpio-controller; + ti,system-power-controller; + sys-supply = <&p5valw_reg>; vin-sm0-supply = <&sys_reg>; vin-sm1-supply = <&sys_reg>;I think this is the wrong fix. The
power_offhook is already occupied by nvec. So either the tps or nvec is responsible for shutting down the system. AFAIR, nvec has some hard wired connection to the tps for doing this, so in the end, it will shut down (but I can't find it now in the schematics). See paz00-diag.cin the original sources on how the system is beeing shut down.
Quoted 2 lines
In any case, we can only have one
power_offhandler. Either via tps or nvec, not both.
Currently shutdown work very poor, lucky if i have one clean shutdown of ten tries. With power_off handler by tps driver i have eight clean shutdowns of ten tries.
Now it is possible to boot paz00 without nvec at all, in comparison to downstream
kernels.
If such solution acceptable, i can test with disabled nvec power_off hadler and compare results.
Quoted 2 lines
Marc
Signature · 3 lines
Best Regards, Misha Komarovskiy zombahatgmaildotcom