[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190414175939.12368-1-digetx@gmail.com>
Date: Sun, 14 Apr 2019 20:59:33 +0300
From: Dmitry Osipenko <digetx@...il.com>
To: Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Thierry Reding <thierry.reding@...il.com>,
Jonathan Hunter <jonathanh@...dia.com>,
Peter De Schrijver <pdeschrijver@...dia.com>
Cc: linux-tegra@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [RFC PATCH v1 0/6] Introduce machine-specific regulators coupling API
Hello,
I was looking into how to properly implement regulators coupling for
NVIDIA Tegra SoC's and ended up with this patchset that introduces
machine-specific regulators coupling. Upstream kernel now has support
for a simple variants of regulators coupling in a form of limiting
maximum voltage spreading between two regulators, but that's not enough
for the case of Tegra SoC's. It's a bit difficult to support universally
all possible coupling restrictions in a form of device-tree description,
so here comes the machine-specific coupling API which allow platforms
to customize coupling algorithms.
Dmitry Osipenko (6):
regulator: core: Introduce API for machine-specific regulators
coupling
regulator: core: Parse max-spread value per regulator couple
regulator: core: Expose some of core functions
regulator: core Bump MAX_COUPLED to 3
soc/tegra: regulators: Add regulators coupler for Tegra20
soc/tegra: regulators: Add regulators coupler for Tegra30
drivers/regulator/core.c | 89 +++++---
drivers/regulator/of_regulator.c | 49 ++--
drivers/soc/tegra/Kconfig | 12 +
drivers/soc/tegra/Makefile | 2 +
drivers/soc/tegra/regulators-tegra20.c | 304 +++++++++++++++++++++++++
drivers/soc/tegra/regulators-tegra30.c | 256 +++++++++++++++++++++
include/linux/regulator/driver.h | 14 +-
include/linux/regulator/machine.h | 22 +-
8 files changed, 694 insertions(+), 54 deletions(-)
create mode 100644 drivers/soc/tegra/regulators-tegra20.c
create mode 100644 drivers/soc/tegra/regulators-tegra30.c
--
2.21.0
Powered by blists - more mailing lists