]> www.infradead.org Git - linux.git/commitdiff
ARM: dts: omap: omap4-epson-embt2ws: define GPIO regulators
authorAndreas Kemnade <andreas@kemnade.info>
Thu, 10 Oct 2024 12:29:54 +0000 (14:29 +0200)
committerKevin Hilman <khilman@baylibre.com>
Tue, 29 Oct 2024 23:24:48 +0000 (16:24 -0700)
To properly have things running after cold boot, define
GPIO regulators. Naming is based on board file.

In the vendor kernel they are enabled in a function
called bt2ws_dcdc_init() if the system is not booted just
to charge the battery.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20241010122957.85164-2-andreas@kemnade.info
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts

index 339e52ba3614b63a0a65afb70a9c9d3966ba0ce1..4462747b5cf5b1ad7318ad97c84aa0229f9b1373 100644 (file)
                };
        };
 
+       cb_v18: regulator-cb-v18 {
+               pinctrl-names = "default";
+               pinctrl-0 = <&cb_v18_pins>;
+               compatible = "regulator-fixed";
+               regulator-name = "cb_v18";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+               regulator-always-on;
+               gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
+
+       cb_v33: regulator-cb-v33 {
+               pinctrl-names = "default";
+               pinctrl-0 = <&cb_v33_pins>;
+               compatible = "regulator-fixed";
+               regulator-name = "cb_v33";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-always-on;
+               gpio = <&gpio6 30 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
+
+       regulator-cb-v50 {
+               pinctrl-names = "default";
+               pinctrl-0 = <&cb_v50_pins>;
+               compatible = "regulator-fixed";
+               regulator-name = "cb_v50";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-always-on;
+               gpio = <&gpio6 31 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
+
+       lb_v50: regulator-lb-v50 {
+               /* required for many things at the head (probably indirectly) */
+               pinctrl-names = "default";
+               pinctrl-0 = <&lb_v50_pins>;
+               compatible = "regulator-fixed";
+               regulator-name = "lb_v50";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-always-on;
+               gpio = <&gpio1 27 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
+
        unknown_supply: unknown-supply {
                compatible = "regulator-fixed";
                regulator-name = "unknown";
                >;
        };
 
+       cb_v18_pins: pinmux-cb-v18-pins {
+               pinctrl-single,pins = <
+                       OMAP4_IOPAD(0x1d0, PIN_OUTPUT | MUX_MODE3) /* gpio28 */
+               >;
+       };
+
+       cb_v33_pins: pinmux-cb-v33-pins {
+               pinctrl-single,pins = <
+                       OMAP4_IOPAD(0x1d2, PIN_OUTPUT | MUX_MODE3) /* gpio190 */
+               >;
+       };
+
+       cb_v50_pins: pinmux-cb-v50-pins {
+               pinctrl-single,pins = <
+                       OMAP4_IOPAD(0x1d4, PIN_OUTPUT | MUX_MODE3) /* gpio191 */
+               >;
+       };
+
        gpio_keys_pins: pinmux-gpio-key-pins {
                pinctrl-single,pins = <
                        OMAP4_IOPAD(0x56, PIN_INPUT_PULLUP | MUX_MODE3) /* gpio35 */
                >;
        };
 
+       lb_v50_pins: pinmux-lb-v50-pins {
+               pinctrl-single,pins = <
+                       OMAP4_IOPAD(0x1ce, PIN_OUTPUT | MUX_MODE3) /* gpio27 */
+               >;
+       };
+
        mcbsp2_pins: pinmux-mcbsp2-pins {
                pinctrl-single,pins = <
                        OMAP4_IOPAD(0x0f6, PIN_INPUT | MUX_MODE0)       /* abe_mcbsp2_clkx */