From: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
To: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>,
Maxime Ripard
<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org>,
Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
Ian Campbell
<ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>,
Kumar Gala <galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
Cc: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org,
Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
Subject: [PATCH v2 0/4] i2c: sunxi: Add Reduced Serial Bus (RSB) support
Date: Mon, 2 Mar 2015 16:24:42 +0800 [thread overview]
Message-ID: <1425284686-5116-1-git-send-email-wens@csie.org> (raw)
Hi everyone,
This is v2 of my Allwinner Reduced Serial Bus series. v2
addresses comments raised by Arnd:
- #address-cells and #size-cells added to DT bindings
- DT bindings commit message expanded to include explanation
of hardware/runtime addresses and why the runtime address
is used for the slave devices' "reg" property.
This series adds support for the Reduced Serial Bus (RSB)
controller found on newer Allwinner SoCs, such as the A23
or A80. The RSB is used to communicate with companion ICs,
notably the bundled PMIC.
RSB is an improvement over P2WI that was found on the A31
SoC. The main new feature is support for multiple slave
devices on the same bus, using addresses that are configured
at runtime. The slave devices also have a hardware address,
which is only used when setting the runtime address.
Like the P2WI, the RSB is an SMBus like interface, supporting
byte, word and double-word transfers only. However, the wire
protocol is different so only RSB compatible devices can be
used. This class currently consists of the AXP223, AXP806,
AXP809 PMICs, and the AC100 audio codec, all from X-Powers.
Following the P2WI driver, we hope this driver can be integrated
into the I2C subsystem as well.
Patch 1 adds the driver supporting RSB.
Patch 2 documents the device tree bindings for the driver.
Patch 3 adds a device node for RSB to the A23 dtsi.
Patch 4 enables the RSB for the only supported A23 device.
Only the A23 is enabled at the moment. The A80 uses the same
IP block with no differences, but the related clock/reset/pinctrl
drivers are still WIP.
Regards,
ChenYu
Chen-Yu Tsai (4):
i2c: sunxi: Add Reduced Serial Bus (RSB) support
i2c: sunxi: Add Reduced Serial Bus (RSB) DT bindings documentation
ARM: dts: sun8i: Add Reduced Serial Bus controller device node to A23
dtsi
ARM: dts: sun8i: ippo-q8h-v5: Enable Reduced Serial Bus controller
.../devicetree/bindings/i2c/i2c-sunxi-rsb.txt | 54 +++
arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts | 4 +
arch/arm/boot/dts/sun8i-a23.dtsi | 21 +
drivers/i2c/busses/Kconfig | 12 +
drivers/i2c/busses/Makefile | 1 +
drivers/i2c/busses/i2c-sunxi-rsb.c | 458 +++++++++++++++++++++
6 files changed, 550 insertions(+)
create mode 100644 Documentation/devicetree/bindings/i2c/i2c-sunxi-rsb.txt
create mode 100644 drivers/i2c/busses/i2c-sunxi-rsb.c
--
2.1.4
next reply other threads:[~2015-03-02 8:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-02 8:24 Chen-Yu Tsai [this message]
[not found] ` <1425284686-5116-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2015-03-02 8:24 ` [PATCH v2 1/4] i2c: sunxi: Add Reduced Serial Bus (RSB) support Chen-Yu Tsai
[not found] ` <1425284686-5116-2-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2015-03-04 16:53 ` Maxime Ripard
2015-03-04 17:27 ` Wolfram Sang
2015-03-05 18:28 ` Maxime Ripard
2015-03-05 18:40 ` Wolfram Sang
2015-03-05 22:08 ` Maxime Ripard
2015-03-06 6:36 ` Wolfram Sang
2015-03-02 8:24 ` [PATCH v2 2/4] i2c: sunxi: Add Reduced Serial Bus (RSB) DT bindings documentation Chen-Yu Tsai
[not found] ` <1425284686-5116-3-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2015-03-04 16:39 ` Maxime Ripard
2015-03-02 8:24 ` [PATCH v2 3/4] ARM: dts: sun8i: Add Reduced Serial Bus controller device node to A23 dtsi Chen-Yu Tsai
2015-03-02 8:24 ` [PATCH v2 4/4] ARM: dts: sun8i: ippo-q8h-v5: Enable Reduced Serial Bus controller Chen-Yu Tsai
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=1425284686-5116-1-git-send-email-wens@csie.org \
--to=wens-jday2fn1rrm@public.gmane.org \
--cc=arnd-r2nGTMty4D4@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
--cc=pawel.moll-5wv7dgnIgG8@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=wsa-z923LK4zBo2bacvFa/9K2g@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).