From: Dragan Simic <dsimic@manjaro.org>
To: Detlev Casanova <detlev.casanova@collabora.com>
Cc: linux-kernel@vger.kernel.org, Rob Herring <robh@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>,
Linus Walleij <linus.walleij@linaro.org>,
Sebastian Reichel <sebastian.reichel@collabora.com>,
Shresth Prasad <shresthprasad7@gmail.com>,
devicetree@vger.kernel.org, linux-gpio@vger.kernel.org,
linux-rockchip@lists.infradead.org,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
kernel@collabora.com, Sascha Hauer <s.hauer@pengutronix.de>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v4 2/4] grf: rk3576: Add default GRF values
Date: Fri, 23 Aug 2024 07:20:13 +0200 [thread overview]
Message-ID: <b310ade62af0ade2c157177dc5b205e8@manjaro.org> (raw)
In-Reply-To: <20240822195706.920567-3-detlev.casanova@collabora.com>
Hello Detlev,
On 2024-08-22 21:53, Detlev Casanova wrote:
> Set SW controlled i3c weak pull up and disable JTAG function on SDMMC
> IO.
>
> The i3c weak pull up is activated to let all gpio banks be controlled
> by the pinctrl driver.
>
> Disabling the JTAG function lets the SDMMC core use its full IO width.
>
> Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
Thanks for the patch. I had a rather detailed look at the patch,
while focusing on having no regressions introduced, and I found none.
So, please feel free to include:
Acked-by: Dragan Simic <dsimic@manjaro.org>
> ---
> drivers/soc/rockchip/grf.c | 30 +++++++++++++++++++++++++++++-
> 1 file changed, 29 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/soc/rockchip/grf.c b/drivers/soc/rockchip/grf.c
> index 5fd62046b28a..4607fc0779e7 100644
> --- a/drivers/soc/rockchip/grf.c
> +++ b/drivers/soc/rockchip/grf.c
> @@ -121,6 +121,29 @@ static const struct rockchip_grf_info
> rk3566_pipegrf __initconst = {
> .num_values = ARRAY_SIZE(rk3566_defaults),
> };
>
> +#define RK3576_SYSGRF_SOC_CON1 0x0004
> +
> +static const struct rockchip_grf_value rk3576_defaults_sys_grf[]
> __initconst = {
> + { "i3c0 weakpull", RK3576_SYSGRF_SOC_CON1, HIWORD_UPDATE(3, 3, 6) },
> + { "i3c1 weakpull", RK3576_SYSGRF_SOC_CON1, HIWORD_UPDATE(3, 3, 8) },
> +};
> +
> +static const struct rockchip_grf_info rk3576_sysgrf __initconst = {
> + .values = rk3576_defaults_sys_grf,
> + .num_values = ARRAY_SIZE(rk3576_defaults_sys_grf),
> +};
> +
> +#define RK3576_IOCGRF_MISC_CON 0x04F0
> +
> +static const struct rockchip_grf_value rk3576_defaults_ioc_grf[]
> __initconst = {
> + { "jtag switching", RK3576_IOCGRF_MISC_CON, HIWORD_UPDATE(0, 1, 1) },
> +};
> +
> +static const struct rockchip_grf_info rk3576_iocgrf __initconst = {
> + .values = rk3576_defaults_ioc_grf,
> + .num_values = ARRAY_SIZE(rk3576_defaults_ioc_grf),
> +};
> +
> #define RK3588_GRF_SOC_CON6 0x0318
>
> static const struct rockchip_grf_value rk3588_defaults[] __initconst =
> {
> @@ -132,7 +155,6 @@ static const struct rockchip_grf_info
> rk3588_sysgrf __initconst = {
> .num_values = ARRAY_SIZE(rk3588_defaults),
> };
>
> -
> static const struct of_device_id rockchip_grf_dt_match[] __initconst =
> {
> {
> .compatible = "rockchip,rk3036-grf",
> @@ -158,6 +180,12 @@ static const struct of_device_id
> rockchip_grf_dt_match[] __initconst = {
> }, {
> .compatible = "rockchip,rk3566-pipe-grf",
> .data = (void *)&rk3566_pipegrf,
> + }, {
> + .compatible = "rockchip,rk3576-sys-grf",
> + .data = (void *)&rk3576_sysgrf,
> + }, {
> + .compatible = "rockchip,rk3576-ioc-grf",
> + .data = (void *)&rk3576_iocgrf,
> }, {
> .compatible = "rockchip,rk3588-sys-grf",
> .data = (void *)&rk3588_sysgrf,
WARNING: multiple messages have this Message-ID (diff)
From: Dragan Simic <dsimic@manjaro.org>
To: Detlev Casanova <detlev.casanova@collabora.com>
Cc: linux-kernel@vger.kernel.org, Rob Herring <robh@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>,
Linus Walleij <linus.walleij@linaro.org>,
Sebastian Reichel <sebastian.reichel@collabora.com>,
Shresth Prasad <shresthprasad7@gmail.com>,
devicetree@vger.kernel.org, linux-gpio@vger.kernel.org,
linux-rockchip@lists.infradead.org,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
kernel@collabora.com, Sascha Hauer <s.hauer@pengutronix.de>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v4 2/4] grf: rk3576: Add default GRF values
Date: Fri, 23 Aug 2024 07:20:13 +0200 [thread overview]
Message-ID: <b310ade62af0ade2c157177dc5b205e8@manjaro.org> (raw)
In-Reply-To: <20240822195706.920567-3-detlev.casanova@collabora.com>
Hello Detlev,
On 2024-08-22 21:53, Detlev Casanova wrote:
> Set SW controlled i3c weak pull up and disable JTAG function on SDMMC
> IO.
>
> The i3c weak pull up is activated to let all gpio banks be controlled
> by the pinctrl driver.
>
> Disabling the JTAG function lets the SDMMC core use its full IO width.
>
> Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
Thanks for the patch. I had a rather detailed look at the patch,
while focusing on having no regressions introduced, and I found none.
So, please feel free to include:
Acked-by: Dragan Simic <dsimic@manjaro.org>
> ---
> drivers/soc/rockchip/grf.c | 30 +++++++++++++++++++++++++++++-
> 1 file changed, 29 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/soc/rockchip/grf.c b/drivers/soc/rockchip/grf.c
> index 5fd62046b28a..4607fc0779e7 100644
> --- a/drivers/soc/rockchip/grf.c
> +++ b/drivers/soc/rockchip/grf.c
> @@ -121,6 +121,29 @@ static const struct rockchip_grf_info
> rk3566_pipegrf __initconst = {
> .num_values = ARRAY_SIZE(rk3566_defaults),
> };
>
> +#define RK3576_SYSGRF_SOC_CON1 0x0004
> +
> +static const struct rockchip_grf_value rk3576_defaults_sys_grf[]
> __initconst = {
> + { "i3c0 weakpull", RK3576_SYSGRF_SOC_CON1, HIWORD_UPDATE(3, 3, 6) },
> + { "i3c1 weakpull", RK3576_SYSGRF_SOC_CON1, HIWORD_UPDATE(3, 3, 8) },
> +};
> +
> +static const struct rockchip_grf_info rk3576_sysgrf __initconst = {
> + .values = rk3576_defaults_sys_grf,
> + .num_values = ARRAY_SIZE(rk3576_defaults_sys_grf),
> +};
> +
> +#define RK3576_IOCGRF_MISC_CON 0x04F0
> +
> +static const struct rockchip_grf_value rk3576_defaults_ioc_grf[]
> __initconst = {
> + { "jtag switching", RK3576_IOCGRF_MISC_CON, HIWORD_UPDATE(0, 1, 1) },
> +};
> +
> +static const struct rockchip_grf_info rk3576_iocgrf __initconst = {
> + .values = rk3576_defaults_ioc_grf,
> + .num_values = ARRAY_SIZE(rk3576_defaults_ioc_grf),
> +};
> +
> #define RK3588_GRF_SOC_CON6 0x0318
>
> static const struct rockchip_grf_value rk3588_defaults[] __initconst =
> {
> @@ -132,7 +155,6 @@ static const struct rockchip_grf_info
> rk3588_sysgrf __initconst = {
> .num_values = ARRAY_SIZE(rk3588_defaults),
> };
>
> -
> static const struct of_device_id rockchip_grf_dt_match[] __initconst =
> {
> {
> .compatible = "rockchip,rk3036-grf",
> @@ -158,6 +180,12 @@ static const struct of_device_id
> rockchip_grf_dt_match[] __initconst = {
> }, {
> .compatible = "rockchip,rk3566-pipe-grf",
> .data = (void *)&rk3566_pipegrf,
> + }, {
> + .compatible = "rockchip,rk3576-sys-grf",
> + .data = (void *)&rk3576_sysgrf,
> + }, {
> + .compatible = "rockchip,rk3576-ioc-grf",
> + .data = (void *)&rk3576_iocgrf,
> }, {
> .compatible = "rockchip,rk3588-sys-grf",
> .data = (void *)&rk3588_sysgrf,
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2024-08-23 5:20 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-22 19:53 [PATCH v4 0/4] Add pinctrl support for rk3576 Detlev Casanova
2024-08-22 19:53 ` Detlev Casanova
2024-08-22 19:53 ` [PATCH v4 1/4] dt-bindings: soc: rockchip: Add rk3576 syscon compatibles Detlev Casanova
2024-08-22 19:53 ` Detlev Casanova
2024-08-23 7:34 ` Krzysztof Kozlowski
2024-08-23 7:34 ` Krzysztof Kozlowski
2024-08-22 19:53 ` [PATCH v4 2/4] grf: rk3576: Add default GRF values Detlev Casanova
2024-08-22 19:53 ` Detlev Casanova
2024-08-23 5:20 ` Dragan Simic [this message]
2024-08-23 5:20 ` Dragan Simic
2024-08-22 19:53 ` [PATCH v4 3/4] dt-bindings: pinctrl: Add rk3576 pinctrl support Detlev Casanova
2024-08-22 19:53 ` Detlev Casanova
2024-08-23 7:35 ` Krzysztof Kozlowski
2024-08-23 7:35 ` Krzysztof Kozlowski
2024-08-23 9:49 ` Heiko Stübner
2024-08-23 9:49 ` Heiko Stübner
2024-08-22 19:53 ` [PATCH v4 4/4] pinctrl: rockchip: " Detlev Casanova
2024-08-22 19:53 ` Detlev Casanova
2024-08-23 5:21 ` Dragan Simic
2024-08-23 5:21 ` Dragan Simic
2024-08-23 9:51 ` Heiko Stübner
2024-08-23 9:51 ` Heiko Stübner
2024-08-23 12:34 ` (subset) [PATCH v4 0/4] Add pinctrl support for rk3576 Heiko Stuebner
2024-08-23 12:34 ` Heiko Stuebner
2024-08-23 15:47 ` Linus Walleij
2024-08-23 15:47 ` Linus Walleij
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=b310ade62af0ade2c157177dc5b205e8@manjaro.org \
--to=dsimic@manjaro.org \
--cc=conor+dt@kernel.org \
--cc=detlev.casanova@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=kernel@collabora.com \
--cc=krzk+dt@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=sebastian.reichel@collabora.com \
--cc=shresthprasad7@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.