]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: dts: rockchip: add PCIe supply regulator to Qnap-TS433
authorHeiko Stuebner <heiko@sntech.de>
Mon, 28 Oct 2024 19:00:17 +0000 (20:00 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 8 Nov 2024 09:05:35 +0000 (17:05 +0800)
Add the vcc3v3-supply regulator and its link to the pcie controllers.

Tested-by: Uwe Kleine-König <ukleinek@debian.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20240723195538.1133436-2-heiko@sntech.de
[ upstream commit: e0ec6d48226fb3d4df18895b56f0b7a94c0fe474 ]

(cherry picked from commit 59939b4343db08fa08098238160007e6ded72be9)
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
dts/upstream/src/arm64/rockchip/rk3568-qnap-ts433.dts

index 6a998166003c9eb2131f387224aef64347d4eb7f..07b4f095d766ac09ab85c74a586d88782f314250 100644 (file)
 / {
        model = "Qnap TS-433-4G NAS System 4-Bay";
        compatible = "qnap,ts433", "rockchip,rk3568";
+
+       dc_12v: regulator-dc-12v {
+               compatible = "regulator-fixed";
+               regulator-name = "dc_12v";
+               regulator-always-on;
+               regulator-boot-on;
+               regulator-min-microvolt = <12000000>;
+               regulator-max-microvolt = <12000000>;
+       };
+
+       vcc3v3_pcie: regulator-vcc3v3-pcie {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc3v3_pcie";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               enable-active-high;
+               gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
+               vin-supply = <&dc_12v>;
+       };
 };
 
 &gmac0 {
        status = "okay";
 };
 
+/* Connected to a JMicron AHCI SATA controller */
 &pcie3x1 {
        /* The downstream dts has: rockchip,bifurcation, XXX: find out what this is about */
        reset-gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
+       vpcie3v3-supply = <&vcc3v3_pcie>;
        status = "okay";
 };