[PATCH 1/3] arm64: dts: rockchip: Add modem to the Pinephone Pro
Ondřej Jirman
megi at xff.cz
Tue Jan 13 12:47:25 PST 2026
Hello Rudraksha,
On Mon, Jan 12, 2026 at 10:42:24PM -0800, Rudraksha Gupta via B4 Relay wrote:
> From: Rudraksha Gupta <guptarud at gmail.com>
>
> This adds the Quectel EG25-G modem to the Pinephone Pro.
>
> Co-developed-by: Martijn Braam <martijn at brixit.nl>
> Signed-off-by: Martijn Braam <martijn at brixit.nl>
> Co-developed-by: Kamil Trzciński <ayufan at ayufan.eu>
> Signed-off-by: Kamil Trzciński <ayufan at ayufan.eu>
> Co-developed-by: Ondrej Jirman <megi at xff.cz>
> Signed-off-by: Ondrej Jirman <megi at xff.cz>
> Co-developed-by: Danct12 <danct12 at disroot.org>
> Signed-off-by: Danct12 <danct12 at disroot.org>
> Signed-off-by: Rudraksha Gupta <guptarud at gmail.com>
> ---
> .../boot/dts/rockchip/rk3399-pinephone-pro.dts | 83 ++++++++++++++++++++++
> 1 file changed, 83 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
> index 6b35f59cd58e..97d0bf455258 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
> +++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
> @@ -97,6 +97,46 @@ multi-led {
> leds = <&led_red>, <&led_green>, <&led_blue>;
> };
>
> + vcc_4g_5v: regulator-vcc-4g-5v {
> + compatible = "regulator-fixed";
> + enable-active-high;
> + gpio = <&gpio1 RK_PC7 GPIO_ACTIVE_HIGH>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&vcc_4g_5v_en>;
> + regulator-name = "vcc_4g_5v";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + vin-supply = <&vcc5v0_sys>;
> + regulator-always-on;
> + };
> +
> + vcc_4g: regulator-vcc-4g {
> + compatible = "regulator-fixed";
> + enable-active-high;
> + gpio = <&gpio4 RK_PC7 GPIO_ACTIVE_HIGH>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&vcc_4g_en>;
> + regulator-name = "vcc_4g";
> + regulator-min-microvolt = <3800000>;
> + regulator-max-microvolt = <3800000>;
> + vin-supply = <&vcc_sys>;
> + regulator-always-on;
> + };
> +
> + vcc5v0_sys: regulator-vcc5v0-host {
> + compatible = "regulator-fixed";
> + regulator-name = "vcc5v0_sys";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + regulator-always-on;
> + regulator-boot-on;
> + vin-supply = <&boost_otg>;
> +
> + regulator-state-mem {
> + regulator-on-in-suspend;
> + };
This does nothing for regulator-fixed. And in any case, there's no such
regulator in the schematic. vcc5v0_sys is just alias for boost output from
RK818.
See: https://xff.cz/dl/tmp/0864afaf8d21b1a5.png
So you can remove this completely and just add vcc5v0_sys alias to DCDC_BOOST.
Best regards,
o.
> + };
> +
> vcc_sys: regulator-vcc-sys {
> compatible = "regulator-fixed";
> regulator-name = "vcc_sys";
> @@ -274,6 +314,17 @@ rk818: pmic at 1c {
> vcc9-supply = <&vcc3v3_sys>;
>
> regulators {
> + boost_otg: DCDC_BOOST {
> + regulator-name = "boost_otg";
> + regulator-always-on;
> + regulator-boot-on;
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + regulator-state-mem {
> + regulator-on-in-suspend;
> + };
> + };
> +
> vdd_cpu_l: DCDC_REG1 {
> regulator-name = "vdd_cpu_l";
> regulator-always-on;
> @@ -702,6 +753,16 @@ blue_led_pin: blue-led-pin {
> };
> };
>
> + modem {
> + vcc_4g_5v_en: vcc-4g-5v-en-pin {
> + rockchip,pins = <1 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
> + };
> +
> + vcc_4g_en: vcc-4g-en-pin {
> + rockchip,pins = <4 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
> + };
> + };
> +
> pmic {
> pmic_int_l: pmic-int-l {
> rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
> @@ -827,6 +888,16 @@ &tsadc {
> status = "okay";
> };
>
> +
> +&u2phy1 {
> + status = "okay";
> +};
> +
> +&u2phy1_host {
> + status = "okay";
> + phy-supply = <&vcc5v0_sys>;
> +};
> +
> &uart0 {
> pinctrl-names = "default";
> pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
> @@ -852,6 +923,18 @@ &uart2 {
> status = "okay";
> };
>
> +&uart3 {
> + status = "okay";
> +};
> +
> +&usb_host1_ehci {
> + status = "okay";
> +};
> +
> +&usb_host1_ohci {
> + status = "okay";
> +};
> +
> &vopb {
> status = "okay";
> assigned-clocks = <&cru DCLK_VOP0_DIV>, <&cru DCLK_VOP0>,
>
> --
> 2.52.0
>
>
More information about the linux-arm-kernel
mailing list