OSDN Git Service

dt-bindings: mfd: axp20x: Add "self-working" mode for AXP806
authorChen-Yu Tsai <wens@csie.org>
Thu, 12 Jul 2018 16:04:48 +0000 (00:04 +0800)
committerLee Jones <lee.jones@linaro.org>
Fri, 27 Jul 2018 07:13:26 +0000 (08:13 +0100)
commitc26b633ee3dd295996006a47543af3759ca677ec
tree91dd4b04fe8fc05cff553c982dea7c63fedad978
parent4d3e55bc7690b289eeae0c7e994db965cb2a993d
dt-bindings: mfd: axp20x: Add "self-working" mode for AXP806

The AXP806 has three operation modes:

  - master mode: The PMIC is the first or only AXP PMIC in the system,
 but is not in charge of power management, i.e. only
 provides regulator functions.

  - slave mode: The PMIC is the second AXP PMIC in the system, chained
to the first, or master, one.

  - self-working mode: The PMIC is the only AXP PMIC in the system, and
       is in charge of power sequencing.

The functional differences between these modes can be found in the
"Control and Operation" chapter of the AXP806 (in Chinese) and AXP805
(in English) datasheets. These include how the PMIC responds to external
signals, whether it takes an external voltage reference or uses its own,
and whether the EN/PWRON pin functions as an enable switch or power button.

We already support both slave and master mode. This patch adds a property
for describing the self-working mode, and reworks the description for
the mode properties.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Icenowy Zheng <icenowy@aosc.io>
Tested-by: Icenowy Zheng <icenowy@aosc.io>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Documentation/devicetree/bindings/mfd/axp20x.txt