Skip to content

Commit d7ed698

Browse files
QSchulzmmind
authored andcommitted
arm64: dts: rockchip: add regulators for PCIe on RK3399 Puma Haikou
The PCIe PHY requires two regulators and are present on the SoM directly, while the PCIe connector also exposes 3V3 and 12V power rails which are available on the baseboard. Considering that 3/4 regulators are always-on on HW level and that the last one depends on a regulator from the PMIC that is specified as always on, this commit should be purely cosmetic and no change in behavior is expected. Let's add all regulators for PCIe on RK3399 Puma Haikou. Reviewed-by: Dragan Simic <dsimic@manjaro.org> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Link: https://lore.kernel.org/r/20240308-puma-diode-pu-v2-3-309f83da110a@theobroma-systems.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 945a7c8 commit d7ed698

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@
194194
num-lanes = <4>;
195195
pinctrl-names = "default";
196196
pinctrl-0 = <&pcie_clkreqn_cpm>;
197+
vpcie3v3-supply = <&vcc3v3_baseboard>;
198+
vpcie12v-supply = <&dc_12v>;
197199
status = "okay";
198200
};
199201

arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,26 @@
7979
regulator-max-microvolt = <5000000>;
8080
};
8181

82+
vcca_0v9: vcca-0v9-regulator {
83+
compatible = "regulator-fixed";
84+
regulator-name = "vcca_0v9";
85+
regulator-always-on;
86+
regulator-boot-on;
87+
regulator-min-microvolt = <900000>;
88+
regulator-max-microvolt = <900000>;
89+
vin-supply = <&vcc_1v8>;
90+
};
91+
92+
vcca_1v8: vcca-1v8-regulator {
93+
compatible = "regulator-fixed";
94+
regulator-name = "vcca_1v8";
95+
regulator-always-on;
96+
regulator-boot-on;
97+
regulator-min-microvolt = <1800000>;
98+
regulator-max-microvolt = <1800000>;
99+
vin-supply = <&vcc3v3_sys>;
100+
};
101+
82102
vdd_log: vdd-log {
83103
compatible = "pwm-regulator";
84104
pwms = <&pwm2 0 25000 1>;
@@ -416,6 +436,12 @@
416436
gpio1830-supply = <&vcc_1v8>;
417437
};
418438

439+
&pcie0 {
440+
/* PCIe PHY supplies */
441+
vpcie0v9-supply = <&vcca_0v9>;
442+
vpcie1v8-supply = <&vcca_1v8>;
443+
};
444+
419445
&pcie_clkreqn_cpm {
420446
rockchip,pins =
421447
<2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;

0 commit comments

Comments
 (0)