Skip to content

Commit cb6f2fb

Browse files
qbisiamazingfate
authored andcommitted
hinlink-h88k: add 5g modem enable and reset pin
1 parent c3be0a4 commit cb6f2fb

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

patch/kernel/archive/rockchip64-6.12/dt/rk3588-hinlink-h88k.dts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,36 @@
126126
vin-supply = <&vcc12v_dcin>;
127127
};
128128

129+
/* it's modem reset pin */
130+
modem_enable: modem-enable {
131+
compatible = "regulator-fixed";
132+
enable-active-high;
133+
regulator-always-on;
134+
regulator-boot-on;
135+
gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
136+
regulator-min-microvolt = <3300000>;
137+
regulator-max-microvolt = <3300000>;
138+
regulator-name = "modem-enable";
139+
vin-supply = <&vcc_3v3_s3>;
140+
startup-delay-us = <500000>;
141+
pinctrl-names = "default";
142+
pintctrl-0 = <&modem_reset_en>;
143+
};
144+
145+
vcc3v3_modem: vcc3v3-modem {
146+
compatible = "regulator-fixed";
147+
enable-active-high;
148+
regulator-always-on;
149+
regulator-boot-on;
150+
gpios = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>;
151+
regulator-min-microvolt = <3300000>;
152+
regulator-max-microvolt = <3300000>;
153+
regulator-name = "vcc3v3_modem";
154+
pinctrl-names = "default";
155+
pintctrl-0 = <&modem_power_en>;
156+
vin-supply = <&vcc_3v3_s3>;
157+
};
158+
129159
vcc5v0_host: vcc5v0-host-regulator {
130160
compatible = "regulator-fixed";
131161
regulator-name = "vcc5v0_host";
@@ -413,6 +443,16 @@
413443
};
414444
};
415445

446+
modem {
447+
modem_power_en: modem-power-en {
448+
rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
449+
};
450+
451+
modem_reset_en: modem-reset-en {
452+
rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
453+
};
454+
};
455+
416456
rtl8211f {
417457
rtl8211f_rst: rtl8211f-rst {
418458
rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;

patch/kernel/archive/rockchip64-6.13/dt/rk3588-hinlink-h88k.dts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,36 @@
126126
vin-supply = <&vcc12v_dcin>;
127127
};
128128

129+
/* it's modem reset pin */
130+
modem_enable: modem-enable {
131+
compatible = "regulator-fixed";
132+
enable-active-high;
133+
regulator-always-on;
134+
regulator-boot-on;
135+
gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
136+
regulator-min-microvolt = <3300000>;
137+
regulator-max-microvolt = <3300000>;
138+
regulator-name = "modem-enable";
139+
vin-supply = <&vcc_3v3_s3>;
140+
startup-delay-us = <500000>;
141+
pinctrl-names = "default";
142+
pintctrl-0 = <&modem_reset_en>;
143+
};
144+
145+
vcc3v3_modem: vcc3v3-modem {
146+
compatible = "regulator-fixed";
147+
enable-active-high;
148+
regulator-always-on;
149+
regulator-boot-on;
150+
gpios = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>;
151+
regulator-min-microvolt = <3300000>;
152+
regulator-max-microvolt = <3300000>;
153+
regulator-name = "vcc3v3_modem";
154+
pinctrl-names = "default";
155+
pintctrl-0 = <&modem_power_en>;
156+
vin-supply = <&vcc_3v3_s3>;
157+
};
158+
129159
vcc5v0_host: vcc5v0-host-regulator {
130160
compatible = "regulator-fixed";
131161
regulator-name = "vcc5v0_host";
@@ -413,6 +443,16 @@
413443
};
414444
};
415445

446+
modem {
447+
modem_power_en: modem-power-en {
448+
rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
449+
};
450+
451+
modem_reset_en: modem-reset-en {
452+
rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
453+
};
454+
};
455+
416456
rtl8211f {
417457
rtl8211f_rst: rtl8211f-rst {
418458
rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;

0 commit comments

Comments
 (0)