]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: ti: omap: am335x-baltos: add a regulator for the mPCIe slot
authorYegor Yefremov <yegorslists@googlemail.com>
Tue, 7 Oct 2025 08:50:37 +0000 (10:50 +0200)
committerKevin Hilman <khilman@baylibre.com>
Tue, 4 Nov 2025 22:47:00 +0000 (14:47 -0800)
Baltos device provide a mPCIe slot that can be power cycled via a GPIO.

Add a userspace consumer mpcie-power-switch that references a fixed
regulator attached to the GPIO3_4.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Link: https://lore.kernel.org/r/20251007085037.3605676-1-yegorslists@googlemail.com
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/boot/dts/ti/omap/am335x-baltos.dtsi

index ea47f9960c356623cc2a4920c4f6d4160ed81b2f..afb38f023b837a54b045deec13b5c3f386db3552 100644 (file)
                startup-delay-us = <70000>;
                enable-active-high;
        };
+
+       mpcie_regulator: mpcie-regulator {
+               compatible = "regulator-fixed";
+               regulator-name = "mpcie-regulator";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               gpio = <&gpio3 4 0>;
+               enable-active-high;
+               regulator-boot-on;
+       };
+
+       mpcie_power_switch: mpcie-power-switch {
+               compatible = "regulator-output";
+               regulator-name = "mpcie-power-switch";
+               regulator-supplies = "vcc";
+               vout-supply = <&mpcie_regulator>;
+       };
 };
 
 &am33xx_pinmux {