]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: dts: spacemit: Define fixed regulators for Milk-V Jupiter
authorJavier Martinez Canillas <javierm@redhat.com>
Sat, 6 Dec 2025 13:44:54 +0000 (14:44 +0100)
committerYixun Lan <dlan@gentoo.org>
Fri, 19 Dec 2025 14:43:40 +0000 (22:43 +0800)
Define the DC power input and the 4v power as fixed regulator supplies.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Yixun Lan <dlan@gentoo.org>
Link: https://lore.kernel.org/r/20251206134532.1741648-3-javierm@redhat.com
Signed-off-by: Yixun Lan <dlan@gentoo.org>
arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts

index aa425f02c1f4620be7c001fdca88ea5556e4cbf8..5babed4d7094421a73c0835454c224551bbb753e 100644 (file)
        chosen {
                stdout-path = "serial0";
        };
+
+       reg_dc_in: dc-in-12v {
+               compatible = "regulator-fixed";
+               regulator-name = "dc_in_12v";
+               regulator-min-microvolt = <12000000>;
+               regulator-max-microvolt = <12000000>;
+               regulator-boot-on;
+               regulator-always-on;
+       };
+
+       reg_vcc_4v: vcc-4v {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc_4v";
+               regulator-min-microvolt = <4000000>;
+               regulator-max-microvolt = <4000000>;
+               regulator-boot-on;
+               regulator-always-on;
+               vin-supply = <&reg_dc_in>;
+       };
 };
 
 &eth0 {