From: Lee Jones <lee@kernel.org>
To: guptarud@gmail.com
Cc: "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Heiko Stuebner" <heiko@sntech.de>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
"Kamil Trzciński" <ayufan@ayufan.eu>,
"Martijn Braam" <martijn@brixit.nl>,
"Ondrej Jirman" <megi@xff.cz>
Subject: Re: [PATCH 2/3] mfd: rk8xx-core: Configure `rk808-clkout2` function
Date: Tue, 13 Jan 2026 11:04:44 +0000 [thread overview]
Message-ID: <20260113110444.GD1902656@google.com> (raw)
In-Reply-To: <20260112-ppp_connectivity-v1-2-284d6e83b212@gmail.com>
On Mon, 12 Jan 2026, Rudraksha Gupta via B4 Relay wrote:
> From: Kamil Trzciński <ayufan@ayufan.eu>
>
> While the Wifi and Bluetooth chip are defined in the Pinephone Pro's
> DTS, it actually isn't able to be used. Let's define rk808-clkout2 so
> that userspace can actually interact with Wifi and Bluetooth
>
> Co-developed-by: Martijn Braam <martijn@brixit.nl>
> Signed-off-by: Martijn Braam <martijn@brixit.nl>
> Signed-off-by: Kamil Trzciński <ayufan@ayufan.eu>
> Signed-off-by: Ondrej Jirman <megi@xff.cz>
> Signed-off-by: Rudraksha Gupta <guptarud@gmail.com>
This is a bonkers amount of SoBs for a 3-line change.
What on earth is going on here?
> ---
> drivers/mfd/rk8xx-core.c | 1 +
> include/linux/mfd/rk808.h | 2 ++
> 2 files changed, 3 insertions(+)
>
> diff --git a/drivers/mfd/rk8xx-core.c b/drivers/mfd/rk8xx-core.c
> index def4587fdfb8..602218694334 100644
> --- a/drivers/mfd/rk8xx-core.c
> +++ b/drivers/mfd/rk8xx-core.c
> @@ -282,6 +282,7 @@ static const struct rk808_reg_data rk818_pre_init_reg[] = {
> { RK818_H5V_EN_REG, BIT(0), RK818_H5V_EN },
> { RK808_VB_MON_REG, MASK_ALL, VB_LO_ACT |
> VB_LO_SEL_3500MV },
> + { RK808_CLK32OUT_REG, CLK32KOUT2_FUNC_MASK, CLK32KOUT2_FUNC },
> };
>
> static const struct regmap_irq rk805_irqs[] = {
> diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h
> index 28170ee08898..077fe2e15b78 100644
> --- a/include/linux/mfd/rk808.h
> +++ b/include/linux/mfd/rk808.h
> @@ -934,6 +934,8 @@ enum rk806_dvs_mode {
>
> #define VOUT_LO_INT BIT(0)
> #define CLK32KOUT2_EN BIT(0)
> +#define CLK32KOUT2_FUNC (0 << 1)
> +#define CLK32KOUT2_FUNC_MASK BIT(1)
>
> #define TEMP105C 0x08
> #define TEMP115C 0x0c
>
> --
> 2.52.0
>
>
--
Lee Jones [李琼斯]
WARNING: multiple messages have this Message-ID (diff)
From: Lee Jones <lee@kernel.org>
To: guptarud@gmail.com
Cc: "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Heiko Stuebner" <heiko@sntech.de>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
"Kamil Trzciński" <ayufan@ayufan.eu>,
"Martijn Braam" <martijn@brixit.nl>,
"Ondrej Jirman" <megi@xff.cz>
Subject: Re: [PATCH 2/3] mfd: rk8xx-core: Configure `rk808-clkout2` function
Date: Tue, 13 Jan 2026 11:04:44 +0000 [thread overview]
Message-ID: <20260113110444.GD1902656@google.com> (raw)
In-Reply-To: <20260112-ppp_connectivity-v1-2-284d6e83b212@gmail.com>
On Mon, 12 Jan 2026, Rudraksha Gupta via B4 Relay wrote:
> From: Kamil Trzciński <ayufan@ayufan.eu>
>
> While the Wifi and Bluetooth chip are defined in the Pinephone Pro's
> DTS, it actually isn't able to be used. Let's define rk808-clkout2 so
> that userspace can actually interact with Wifi and Bluetooth
>
> Co-developed-by: Martijn Braam <martijn@brixit.nl>
> Signed-off-by: Martijn Braam <martijn@brixit.nl>
> Signed-off-by: Kamil Trzciński <ayufan@ayufan.eu>
> Signed-off-by: Ondrej Jirman <megi@xff.cz>
> Signed-off-by: Rudraksha Gupta <guptarud@gmail.com>
This is a bonkers amount of SoBs for a 3-line change.
What on earth is going on here?
> ---
> drivers/mfd/rk8xx-core.c | 1 +
> include/linux/mfd/rk808.h | 2 ++
> 2 files changed, 3 insertions(+)
>
> diff --git a/drivers/mfd/rk8xx-core.c b/drivers/mfd/rk8xx-core.c
> index def4587fdfb8..602218694334 100644
> --- a/drivers/mfd/rk8xx-core.c
> +++ b/drivers/mfd/rk8xx-core.c
> @@ -282,6 +282,7 @@ static const struct rk808_reg_data rk818_pre_init_reg[] = {
> { RK818_H5V_EN_REG, BIT(0), RK818_H5V_EN },
> { RK808_VB_MON_REG, MASK_ALL, VB_LO_ACT |
> VB_LO_SEL_3500MV },
> + { RK808_CLK32OUT_REG, CLK32KOUT2_FUNC_MASK, CLK32KOUT2_FUNC },
> };
>
> static const struct regmap_irq rk805_irqs[] = {
> diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h
> index 28170ee08898..077fe2e15b78 100644
> --- a/include/linux/mfd/rk808.h
> +++ b/include/linux/mfd/rk808.h
> @@ -934,6 +934,8 @@ enum rk806_dvs_mode {
>
> #define VOUT_LO_INT BIT(0)
> #define CLK32KOUT2_EN BIT(0)
> +#define CLK32KOUT2_FUNC (0 << 1)
> +#define CLK32KOUT2_FUNC_MASK BIT(1)
>
> #define TEMP105C 0x08
> #define TEMP115C 0x0c
>
> --
> 2.52.0
>
>
--
Lee Jones [李琼斯]
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2026-01-13 11:04 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-13 6:42 [PATCH 0/3] Pinephone Pro Connectivity: Adding Modem, Bluetooth, and Wi-Fi Rudraksha Gupta
2026-01-13 6:42 ` Rudraksha Gupta via B4 Relay
2026-01-13 6:42 ` Rudraksha Gupta via B4 Relay
2026-01-13 6:42 ` [PATCH 1/3] arm64: dts: rockchip: Add modem to the Pinephone Pro Rudraksha Gupta
2026-01-13 6:42 ` Rudraksha Gupta via B4 Relay
2026-01-13 6:42 ` Rudraksha Gupta via B4 Relay
2026-01-13 7:22 ` Krzysztof Kozlowski
2026-01-13 7:22 ` Krzysztof Kozlowski
2026-01-14 5:57 ` Danct12
2026-01-14 5:57 ` Danct12
2026-01-13 20:47 ` Ondřej Jirman
2026-01-13 20:47 ` Ondřej Jirman
2026-01-13 6:42 ` [PATCH 2/3] mfd: rk8xx-core: Configure `rk808-clkout2` function Rudraksha Gupta
2026-01-13 6:42 ` Rudraksha Gupta via B4 Relay
2026-01-13 6:42 ` Rudraksha Gupta via B4 Relay
2026-01-13 10:23 ` Heiko Stübner
2026-01-13 10:23 ` Heiko Stübner
2026-01-13 11:04 ` Lee Jones [this message]
2026-01-13 11:04 ` Lee Jones
2026-01-13 20:20 ` Ondřej Jirman
2026-01-13 20:20 ` Ondřej Jirman
2026-01-13 6:42 ` [PATCH 3/3] arm64: dts: rockchip: Remove interrupt GPIO for WiFi for the Pinephone Pro Rudraksha Gupta
2026-01-13 6:42 ` Rudraksha Gupta via B4 Relay
2026-01-13 6:42 ` Rudraksha Gupta via B4 Relay
2026-01-13 7:23 ` Krzysztof Kozlowski
2026-01-13 7:23 ` Krzysztof Kozlowski
2026-01-13 10:26 ` Heiko Stübner
2026-01-13 10:26 ` Heiko Stübner
2026-01-13 21:22 ` Ondřej Jirman
2026-01-13 21:22 ` Ondřej Jirman
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=20260113110444.GD1902656@google.com \
--to=lee@kernel.org \
--cc=ayufan@ayufan.eu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=guptarud@gmail.com \
--cc=heiko@sntech.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=martijn@brixit.nl \
--cc=megi@xff.cz \
--cc=robh@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 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.