]> Gentwo Git Trees - linux/.git/commitdiff
arm64: dts: mediatek: mt8390-genio-common: Configure touch vreg pins
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 20 Feb 2025 11:09:48 +0000 (12:09 +0100)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 24 Feb 2025 12:07:21 +0000 (13:07 +0100)
Add a pinctrl configuration for the Touchscreen IC's power line
to make sure that the pin is configured as GPIO and to stop
relying on correct pin configuration from bootloader.

Link: https://lore.kernel.org/r/20250220110948.45596-5-angelogioacchino.delregno@collabora.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi

index ceade69742a9106f52c493dd711ea7daa3fc4cb9..8bfbe2a8db2fc4b9fd3648aa3cfd04a3b6ec2257 100644 (file)
@@ -187,6 +187,8 @@ touch0_fixed_3v3: regulator-5 {
                gpio = <&pio 119 GPIO_ACTIVE_HIGH>;
                enable-active-high;
                vin-supply = <&reg_vsys>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&touch_vreg_pins>;
        };
 
        usb_hub_fixed_3v3: regulator-6 {
@@ -1021,6 +1023,13 @@ pins-spi {
                };
        };
 
+       touch_vreg_pins: touch-avdd-pins {
+               pins-power {
+                       pinmux = <PINMUX_GPIO120__FUNC_B_GPIO120>;
+                       output-high;
+               };
+       };
+
        touch_pins: touch-pins {
                pins-irq {
                        pinmux = <PINMUX_GPIO6__FUNC_B_GPIO6>;