From: Phil Edworthy <phil.edworthy@renesas.com>
To: Philipp Zabel <p.zabel@pengutronix.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>
Cc: Phil Edworthy <phil.edworthy@renesas.com>,
Wolfram Sang <wsa@kernel.org>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Jarkko Nikula <jarkko.nikula@linux.intel.com>,
Sam Protsenko <semen.protsenko@linaro.org>,
Sven Peter <sven@svenpeter.dev>, Jan Dabros <jsd@semihalf.com>,
Lukas Bulwahn <lukas.bulwahn@gmail.com>,
Tyrone Ting <kfting@nuvoton.com>, Arnd Bergmann <arnd@arndb.de>,
Olof Johansson <olof@lixom.net>,
Biju Das <biju.das.jz@bp.renesas.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
devicetree@vger.kernel.org, linux-i2c@vger.kernel.org,
linux-renesas-soc@vger.kernel.org
Subject: [PATCH v4 0/2] i2c: Add new driver for Renesas RZ/V2M controller
Date: Fri, 8 Jul 2022 11:03:48 +0100 [thread overview]
Message-ID: <20220708100350.12523-1-phil.edworthy@renesas.com> (raw)
Hi,
The Renesas RZ/V2M SoC (r9a09g011) has a new i2c controller. This series
add the driver. One annoying problem is that the SoC uses a single reset
line for two i2c controllers, and unfortunately one of the controllers
is managed by some firmware, not by Linux. Therefore, the driver just
deasserts the reset.
v4:
- Multiline comment fix
- Use GENMASK
- Fix too many parentheses
- Better use of sizeof()
- Move MODULE_DEVICE_TABLE close to use
- Use pm_runtime_resume_and_get() and check return val
- Replace NOIRQ_SYSTEM_SLEEP_PM_OPS with SYSTEM_SLEEP_PM_OPS
so we can use runtime PM in suspend and resume.
v3:
- dt-binding: Fix example indentation
driver:
- Lots of small fixes based on Andy Shevchenko's review
- Use devm_reset_control_get_shared() instead of devm_reset_control_get()
v2:
dt-binding:
- Use an enum and set the default for clock-frequency
- Add resets property
driver:
- Use the new NOIRQ_SYSTEM_SLEEP_PM_OPS() as suggested by Arnd
- Lots of small fixes based on Geert's review
Phil Edworthy (2):
dt-bindings: i2c: Document RZ/V2M I2C controller
i2c: Add Renesas RZ/V2M controller
.../bindings/i2c/renesas,rzv2m.yaml | 80 +++
drivers/i2c/busses/Kconfig | 10 +
drivers/i2c/busses/Makefile | 1 +
drivers/i2c/busses/i2c-rzv2m.c | 533 ++++++++++++++++++
4 files changed, 624 insertions(+)
create mode 100644 Documentation/devicetree/bindings/i2c/renesas,rzv2m.yaml
create mode 100644 drivers/i2c/busses/i2c-rzv2m.c
--
2.34.1
next reply other threads:[~2022-07-08 10:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-08 10:03 Phil Edworthy [this message]
2022-07-08 10:03 ` [PATCH v4 1/2] dt-bindings: i2c: Document RZ/V2M I2C controller Phil Edworthy
2022-07-22 16:44 ` Wolfram Sang
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=20220708100350.12523-1-phil.edworthy@renesas.com \
--to=phil.edworthy@renesas.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=arnd@arndb.de \
--cc=biju.das.jz@bp.renesas.com \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=jarkko.nikula@linux.intel.com \
--cc=jsd@semihalf.com \
--cc=kfting@nuvoton.com \
--cc=krzk@kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=lukas.bulwahn@gmail.com \
--cc=olof@lixom.net \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=semen.protsenko@linaro.org \
--cc=sven@svenpeter.dev \
--cc=wsa@kernel.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).