From: Adam Wermuth <adam@wermuth.pl>
To: Heiko Stuebner <heiko@sntech.de>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
Adam Wermuth <adam@wermuth.pl>
Subject: [PATCH 2/3] arm64: dts: rockchip: Enable M.2 B-key WWAN slot on Radxa ROCK 3B
Date: Thu, 24 Sep 2026 09:14:44 +0200 [thread overview]
Message-ID: <20260924071445.441822-3-adam@wermuth.pl> (raw)
In-Reply-To: <20260924071445.441822-1-adam@wermuth.pl>
The M.2 B-key slot on the ROCK 3B is controlled by three GPIOs:
- GPIO0_C6 (4G_PWREN_H) enables the 3.3V supply of the slot, which
is generated from vcc5v0_sys by a dedicated buck converter,
- GPIO0_D6 (4G_RESET) drives the RESET# signal of the slot,
- GPIO1_B0 (4G_DISABLE) drives W_DISABLE1#.
Unless the supply is enabled and both active-low signals are
deasserted, the module never enumerates on USB. Describe the supply
as an always-on fixed regulator and hog RESET# and W_DISABLE1# in
their inactive state.
Tested with a SIMCom SIM7600G-H module.
Signed-off-by: Adam Wermuth <adam@wermuth.pl>
---
.../boot/dts/rockchip/rk3568-rock-3b.dts | 38 +++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3b.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3b.dts
index ad9a91c0d0d0..908bb4425e81 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3b.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3b.dts
@@ -98,6 +98,20 @@ vcc3v3_sys2: regulator-3v3-vcc-sys2 {
vin-supply = <&vcc5v0_sys>;
};
+ vcc3v3_wwan: regulator-3v3-vcc-wwan {
+ compatible = "regulator-fixed";
+ enable-active-high;
+ gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&wwan_pwren_h>;
+ regulator-name = "vcc3v3_wwan";
+ regulator-always-on;
+ regulator-boot-on;
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ vin-supply = <&vcc5v0_sys>;
+ };
+
vcc5v0_sys: regulator-5v0-vcc-sys {
compatible = "regulator-fixed";
regulator-name = "vcc5v0_sys";
@@ -220,6 +234,24 @@ &gmac1m1_rgmii_bus
status = "okay";
};
+&gpio0 {
+ wwan-reset-hog {
+ gpio-hog;
+ gpios = <RK_PD6 GPIO_ACTIVE_LOW>;
+ output-low;
+ line-name = "wwan-reset";
+ };
+};
+
+&gpio1 {
+ wwan-disable-hog {
+ gpio-hog;
+ gpios = <RK_PB0 GPIO_ACTIVE_LOW>;
+ output-low;
+ line-name = "wwan-w-disable";
+ };
+};
+
&gpu {
mali-supply = <&vdd_gpu>;
status = "okay";
@@ -655,6 +687,12 @@ wifi_wake_host_h: wifi-wake-host-h {
rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
+
+ wwan {
+ wwan_pwren_h: wwan-pwren-h {
+ rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
};
&pmu_io_domains {
--
2.43.0
next prev parent reply other threads:[~2026-09-24 7:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-24 7:14 [PATCH 0/3] Subject: [PATCH 0/3] arm64: dts: rockchip: Enable M.2 B-key slot and fan " Adam Wermuth
2026-09-24 7:14 ` [PATCH 1/3] arm64: dts: rockchip: Enable USB 2.0 host1 " Adam Wermuth
2026-09-24 16:12 ` Jonas Karlman
2026-09-24 19:03 ` Adam Wermuth
2026-09-25 13:25 ` Sebastian Reichel
2026-09-25 13:56 ` Adam Wermuth
2026-09-25 15:42 ` Alexey Charkov
2026-09-24 7:14 ` Adam Wermuth [this message]
2026-09-24 7:14 ` [PATCH 3/3] arm64: dts: rockchip: Add PWM fan to " Adam Wermuth
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=20260924071445.441822-3-adam@wermuth.pl \
--to=adam@wermuth.pl \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®