From: Zelong Dong <zelong.dong@amlogic.com>
To: <p.zabel@pengutronix.de>, <robh+dt@kernel.org>,
<khilman@baylibre.com>, <narmstrong@baylibre.com>,
<martin.blumenstingl@googlemail.com>
Cc: <linux-amlogic@lists.infradead.org>,
<linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>, <jbrunet@baylibre.com>,
<devicetree@vger.kernel.org>,
Zelong Dong <zelong.dong@amlogic.com>
Subject: [PATCH 3/3] reset: reset-meson: add support for the Meson-S4 SoC Reset Controller
Date: Fri, 7 Jan 2022 10:39:31 +0800 [thread overview]
Message-ID: <20220107023931.13251-4-zelong.dong@amlogic.com> (raw)
In-Reply-To: <20220107023931.13251-1-zelong.dong@amlogic.com>
Compared to the A1 SoCs the number of RESET registers is different
and the offset for the level registers is the same. Add a new
compatible string and struct meson_reset_param to add support for the
reset controller on the S4 SoC.
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
---
drivers/reset/reset-meson.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c
index c9bc325ad65a..26dc54778615 100644
--- a/drivers/reset/reset-meson.c
+++ b/drivers/reset/reset-meson.c
@@ -98,11 +98,17 @@ static const struct meson_reset_param meson_a1_param = {
.level_offset = 0x40,
};
+static const struct meson_reset_param meson_s4_param = {
+ .reg_count = 6,
+ .level_offset = 0x40,
+};
+
static const struct of_device_id meson_reset_dt_ids[] = {
{ .compatible = "amlogic,meson8b-reset", .data = &meson8b_param},
{ .compatible = "amlogic,meson-gxbb-reset", .data = &meson8b_param},
{ .compatible = "amlogic,meson-axg-reset", .data = &meson8b_param},
{ .compatible = "amlogic,meson-a1-reset", .data = &meson_a1_param},
+ { .compatible = "amlogic,meson-s4-reset", .data = &meson_s4_param},
{ /* sentinel */ },
};
MODULE_DEVICE_TABLE(of, meson_reset_dt_ids);
--
2.34.1
next prev parent reply other threads:[~2022-01-07 2:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-07 2:39 [PATCH 0/3] reset: meson-s4: add reset driver Zelong Dong
2022-01-07 2:39 ` [PATCH 1/3] dt-bindings: reset: Add compatible for Meson-S4 Reset Controller Zelong Dong
2022-01-07 21:56 ` Martin Blumenstingl
2022-01-12 1:48 ` Rob Herring
2022-01-07 2:39 ` [PATCH 2/3] dt-bindings: reset: add bindings for the Meson-S4 SoC " Zelong Dong
2022-01-07 21:57 ` Martin Blumenstingl
2022-01-10 17:36 ` Rob Herring
2022-01-07 2:39 ` Zelong Dong [this message]
2022-01-07 21:58 ` [PATCH 3/3] reset: reset-meson: add support " Martin Blumenstingl
2022-04-04 10:17 ` [PATCH 0/3] reset: meson-s4: add reset driver Philipp Zabel
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=20220107023931.13251-4-zelong.dong@amlogic.com \
--to=zelong.dong@amlogic.com \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=narmstrong@baylibre.com \
--cc=p.zabel@pengutronix.de \
--cc=robh+dt@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).