freebsd-dev/sys/arm/ti
Emmanuel Vadot d0c51fc4ac 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
2020-04-11 15:52:07 +00:00
..
am335x arm: am335x: Honor pmic option ti,pmic-shutdown-controller 2020-04-11 15:52:07 +00:00
cpsw Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
omap4
twl Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
usb
aintc.c
files.ti
std.ti
ti_adc.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
ti_adcreg.h
ti_adcvar.h
ti_cpuid.c
ti_cpuid.h
ti_edma3.c
ti_edma3.h
ti_gpio_if.m
ti_gpio.c
ti_gpio.h
ti_hwmods.c
ti_hwmods.h
ti_i2c.c
ti_i2c.h
ti_machdep.c
ti_mbox.c
ti_mbox.h
ti_pinmux.c
ti_pinmux.h
ti_prcm.c
ti_prcm.h
ti_pruss.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
ti_pruss.h
ti_scm.c
ti_scm.h
ti_sdhci.c
ti_sdma.c
ti_sdma.h
ti_sdmareg.h
ti_smc.h
ti_smc.S
ti_spi.c
ti_spireg.h
ti_spivar.h
ti_sysc.c
ti_wdt.c
ti_wdt.h
tivar.h