[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220613090604.9975-1-jneanne@baylibre.com>
Date: Mon, 13 Jun 2022 11:05:59 +0200
From: Jerome NEANNE <jneanne@...libre.com>
To: lgirdwood@...il.com, broonie@...nel.org, robh+dt@...nel.org,
nm@...com, kristo@...nel.org, will@...nel.org,
lee.jones@...aro.org, jneanne@...libre.com
Cc: khilman@...libre.com, narmstrong@...libre.com, msp@...libre.com,
j-keerthy@...com, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: [RFC PATCH 0/5] Add TI TPS65219 PMIC support for AM642 SK board.
1-Regulators: full implementation
Visual check: cat /sys/kernel/debug/regulator/regulator_summary
Validation: userspace-consumer and virtual-regulator required
to test further
enable/disable:
cat /sys/devices/platform/userspace-consumer-VDDSHV_SD_IO_PMIC/state
echo disabled > /sys/devices/platform/userspace-consumer-VDDSHV_SD_IO_PMIC/state
echo enabled > /sys/devices/platform/userspace-consumer-VDDSHV_SD_IO_PMIC/state
change voltage:
cat /sys/devices/platform/regulator-virtual-ldo1/min_microvolts
echo 1000000 > /sys/devices/platform/regulator-virtual-ldo1/min_microvolts
echo 3000000 > /sys/devices/platform/regulator-virtual-ldo1/max_microvolts
Voltage changes monitored on LDO1 output on TP84 for k3-am642-sk board
2-Low power Mode (STBY)
A regulator set_mode with a standby mode is implemented (not tested)
3-Reset WARM/COLD
implemented not tested
4-SD Card VSEL_SD
Implemented, appears in summary as: tps65219-LDO1-SEL-SD GPIO control
not tested
5-Interrupt Pin (nINT)
Not implemented
6-SW Shutdown
Implemented not tested
Note: enters in competition with other source during probe
7-PB Startup and Shutdown
Can be derived from 65217/8 implementation but postponed,
interrupt support required first.
Jerome NEANNE (5):
regulator: dt-bindings: Add TI TPS65219 PMIC bindings
mfd: drivers: Add TI TPS65219 PMIC support
regulator: drivers: Add TI TPS65219 PMIC regulators support
arm64: Kconfig: Introduce CONFIG_MFD_TPS65219 and
CONFIG_REGULATOR_TPS65219
arm64: dts: ti: Add TI TPS65219 PMIC support for AM642 SK board.
.../bindings/regulator/ti,tps65219.yaml | 146 ++++++++
arch/arm64/boot/dts/ti/k3-am642-sk.dts | 102 ++++++
arch/arm64/configs/defconfig | 2 +
drivers/mfd/Kconfig | 15 +
drivers/mfd/Makefile | 1 +
drivers/mfd/tps65219.c | 296 ++++++++++++++++
drivers/regulator/Kconfig | 9 +
drivers/regulator/Makefile | 1 +
drivers/regulator/tps65219-regulator.c | 334 ++++++++++++++++++
include/linux/mfd/tps65219.h | 245 +++++++++++++
10 files changed, 1151 insertions(+)
create mode 100644 Documentation/devicetree/bindings/regulator/ti,tps65219.yaml
create mode 100644 drivers/mfd/tps65219.c
create mode 100644 drivers/regulator/tps65219-regulator.c
create mode 100644 include/linux/mfd/tps65219.h
--
2.17.1
Powered by blists - more mailing lists