diff options
author | Matthijs van Duin <matthijsvanduin@gmail.com> | 2015-06-01 15:33:28 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-06-01 15:48:23 -0400 |
commit | 7a6cb0abe1aa63334f3ded6d2b6c8eca80e72302 (patch) | |
tree | 6b0058a162fdff8d329b212fb1ff82b22968a2e5 | |
parent | b33558c906bf330336b16dc4598fecee66e48a57 (diff) |
ARM: dts: am335x-boneblack: disable RTC-only sleep to avoid hardware damage
Avoid entering "RTC-only mode" at poweroff. It is unsupported by most
versions of BeagleBone, and risks hardware damage.
The damaging configuration is having system-power-controller
without ti,pmic-shutdown-controller.
Reported-by: Matthijs van Duin <matthijsvanduin@gmail.com>
Tested-by: Matthijs van Duin <matthijsvanduin@gmail.com>
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Johan Hovold <johan@kernel.org>
[Matthijs van Duin: added explanatory comments]
Signed-off-by: Matthijs van Duin <matthijsvanduin@gmail.com>
Fixes: http://bugs.elinux.org/issues/143
Cc: stable@vger.kernel.org # v3.12+
[tony@atomide.com: updated comments with the hardware breaking info]
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/boot/dts/am335x-bone-common.dtsi | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi index c3255e0c90aa..dbb3f4d2bf84 100644 --- a/arch/arm/boot/dts/am335x-bone-common.dtsi +++ b/arch/arm/boot/dts/am335x-bone-common.dtsi | |||
@@ -223,6 +223,25 @@ | |||
223 | /include/ "tps65217.dtsi" | 223 | /include/ "tps65217.dtsi" |
224 | 224 | ||
225 | &tps { | 225 | &tps { |
226 | /* | ||
227 | * Configure pmic to enter OFF-state instead of SLEEP-state ("RTC-only | ||
228 | * mode") at poweroff. Most BeagleBone versions do not support RTC-only | ||
229 | * mode and risk hardware damage if this mode is entered. | ||
230 | * | ||
231 | * For details, see linux-omap mailing list May 2015 thread | ||
232 | * [PATCH] ARM: dts: am335x-bone* enable pmic-shutdown-controller | ||
233 | * In particular, messages: | ||
234 | * http://www.spinics.net/lists/linux-omap/msg118585.html | ||
235 | * http://www.spinics.net/lists/linux-omap/msg118615.html | ||
236 | * | ||
237 | * You can override this later with | ||
238 | * &tps { /delete-property/ ti,pmic-shutdown-controller; } | ||
239 | * if you want to use RTC-only mode and made sure you are not affected | ||
240 | * by the hardware problems. (Tip: double-check by performing a current | ||
241 | * measurement after shutdown: it should be less than 1 mA.) | ||
242 | */ | ||
243 | ti,pmic-shutdown-controller; | ||
244 | |||
226 | regulators { | 245 | regulators { |
227 | dcdc1_reg: regulator@0 { | 246 | dcdc1_reg: regulator@0 { |
228 | regulator-name = "vdds_dpr"; | 247 | regulator-name = "vdds_dpr"; |