From: Rask Ingemann Lambertsen <rask-SivP7zSAdNDZaaYASwVUlg@public.gmane.org>
To: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>,
Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH v2 0/2] mfd: axp20x: Restore master mode support on AXP806
Date: Wed, 22 Feb 2017 20:40:02 +0100 (CET) [thread overview]
Message-ID: <cover.1487791328.git.rask@formelder.dk> (raw)
The AXP806 (and very similar AXP808) PMICs can be wired to either master
mode or slave mode on a board-by-board basis. A register on the PMIC needs
to be set accordingly for the PMIC to respond to other register accesses.
The "xpowers,master-mode" property introduced in this patch series lets a
board's device tree specify the correct operating mode to use.
Known boards with the Allwinner A80 SoC include an AXP806 or AXP808.
The AXP806 support used to rely on the vendor boot loader to set the
operating mode, but nowadays, mainline U-Boot (since V2016.11) is usable
on boards using the A80 SoC, but doesn't yet have any support for the
AXP806 PMIC. So for kernel 4.11, a patch went in to always set the
AXP806 to slave mode to keep those two boards working (see below). That,
however, broke support for boards where the PMIC is wired for master mode.
There are so far three boards using the AXP806 PMIC support:
- Merrii A80 Optimus and Cubieboard4 developer boards with an AXP809
paired with an AXP806 in slave mode. A device tree for each of these
boards have been in the tree for a while now.
- Sunchip CX-A99 which uses just an AXP808 in master mode. An
out-of-tree device tree works with the 4.9.9 and 4.10-rc7 kernels.
A device tree will be submitted along with support for *-supply
properties taking a regulator list.
The default needs to be slave mode for compatibility with the two boards'
device trees that are using the "xpowers,axp806" compatible since kernel
4.9 when the AXP806 support was added.
Patch 1 adds the "xpowers,master-mode" property to the AXP806 binding.
Patch 2 adds support for it to the axp20x driver.
Rask Ingemann Lambertsen (2):
dts: mfd: axp20x: Add "xpowers,master-mode" property for AXP806 PMICs
mfd: axp20x: Add support for dts property "xpowers,master-mode"
Documentation/devicetree/bindings/mfd/axp20x.txt | 3 +++
drivers/mfd/axp20x.c | 21 +++++++++++++--------
2 files changed, 16 insertions(+), 8 deletions(-)
--
2.10.2
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2017-02-22 19:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-22 19:40 Rask Ingemann Lambertsen [this message]
[not found] ` <cover.1487791328.git.rask-SivP7zSAdNDZaaYASwVUlg@public.gmane.org>
2017-02-22 19:41 ` [PATCH v2 1/2] dts: mfd: axp20x: Add "xpowers,master-mode" property for AXP806 PMICs Rask Ingemann Lambertsen
2017-02-27 23:00 ` Rob Herring
[not found] ` <396866a490b6056c60e93d862656bb90daedab98.1487791328.git.rask-SivP7zSAdNDZaaYASwVUlg@public.gmane.org>
2017-03-14 16:19 ` Lee Jones
2017-02-22 19:42 ` [PATCH v2 2/2] mfd: axp20x: Add support for dts property "xpowers,master-mode" Rask Ingemann Lambertsen
[not found] ` <ef82cd5bbea5a5eedcafd3f57e7b7409dd9b4b5e.1487791329.git.rask-SivP7zSAdNDZaaYASwVUlg@public.gmane.org>
2017-02-23 3:57 ` Chen-Yu Tsai
2017-03-14 16:19 ` Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1487791328.git.rask@formelder.dk \
--to=rask-sivp7zsadndzaayaswvulg@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=wens-jdAy2FN1RRM@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).