Skip to content

Commit d235e65

Browse files
sigmarismmind
authored andcommitted
arm64: dts: rockchip: enable NanoPC-T6 MiniPCIe power
The NanoPC-T6 has a Mini PCIe slot intended to be used for a 4G or LTE modem. This slot has no PCIe functionality, only USB 2.0 pins are wired to the SoC, and USIM pins are wired to a SIM card slot on the board. Define the 3.3v supply for the slot so it can be used. Signed-off-by: Hugh Cole-Baker <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 9b606d2 commit d235e65

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,18 @@
159159
regulator-max-microvolt = <3300000>;
160160
vin-supply = <&vcc5v0_sys>;
161161
};
162+
163+
vdd_4g_3v3: vdd-4g-3v3-regulator {
164+
compatible = "regulator-fixed";
165+
enable-active-high;
166+
gpio = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
167+
pinctrl-names = "default";
168+
pinctrl-0 = <&pin_4g_lte_pwren>;
169+
regulator-name = "vdd_4g_3v3";
170+
regulator-min-microvolt = <3300000>;
171+
regulator-max-microvolt = <3300000>;
172+
vin-supply = <&vcc5v0_sys>;
173+
};
162174
};
163175

164176
&combphy0_ps {
@@ -504,6 +516,10 @@
504516
};
505517

506518
usb {
519+
pin_4g_lte_pwren: 4g-lte-pwren {
520+
rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
521+
};
522+
507523
typec5v_pwren: typec5v-pwren {
508524
rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
509525
};
@@ -884,6 +900,7 @@
884900
};
885901

886902
&u2phy2_host {
903+
phy-supply = <&vdd_4g_3v3>;
887904
status = "okay";
888905
};
889906

0 commit comments

Comments
 (0)