]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm: am335x: Honor pmic option ti,pmic-shutdown-controller
authormanu <manu@FreeBSD.org>
Sat, 11 Apr 2020 15:52:07 +0000 (15:52 +0000)
committermanu <manu@FreeBSD.org>
Sat, 11 Apr 2020 15:52:07 +0000 (15:52 +0000)
commitca12b7e9534b10af022fed60c043984dbaf4003d
treefbe98e73af07813369a0953d83f265ee1cd58557
parent04ea61f97362c756473a310fa82d608b0baae3d4
arm: am335x: Honor pmic option ti,pmic-shutdown-controller

Honor ti,pmic-shutdown-controller option in DTS

Tested on stable r359316 @ Sleep mode on custom hw, Power off on BBB and PB

OFF bit [1] in status register control the pmic behaviour when PWR_EN pin
is pulled low.
On most AM335x hardware [beaglebone *] the desired behaviour are in fact
power off due to some hardware designs - read more in the comments around
pmic in sys/gnu/dts/arm/am335x-bone-common.dtsi

This patch let the device-tree decide with ti,pmic-shutdown-controller[2]
the state of off bit in status register.

[1] 8.6.12 table 12 http://www.ti.com/lit/ds/symlink/tps65217.pdf

[2] Documentation/devicetree/bindings/regulator/tps65217.txt

PR: 245159
Submitted by: Oskar Holmlund <oskar.holmlund@ohdata.se>
MFC after: 2 weeks
sys/arm/ti/am335x/am335x_pmic.c