From a4610227a0e7d35417dbd49a31fc98bb51e07cc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Ren=C3=A9?= <17342133+angelrenefm@users.noreply.github.com> Date: Fri, 6 Nov 2026 19:13:14 +0100 Subject: [PATCH] arm64: dts: exynos: google: gs201-panther: describe the fingerprint sensor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Pixel 7 has the Pixel 7 Pro's Goodix optical under-display sensor. The stock dtbo for board 0x30406 (the one ABL picks on this phone) has the same goodixfp node as cheetah's 0x30306: compatible "goodix,fingerprint", interrupt gpa9-2, reset gpp1-1 (output, no pull, active low), and the same S2MPG13 LDO15S "L15S_UDFPS_AVDD" with a 2.5-3.3 V range. The vendor image ships the same trusted app (g7.app) and HAL. Add the node as gs201-cheetah has it, the sub-PMIC with LDO15S only, and the two pins. Everything is disabled; a bring-up overlay enables Trusty, the sub-PMIC, LDO15S and the sensor. Tested on a Pixel 7 with kernel 7.3.0-rc6-omamobile-push1-g44048a9aa795, these nodes (the same text) and the overlay: goodix_fp switches LDO15S on while the sensor is open and off after, with no other rail changing, and with omarchy-mobile's fingerprint stack a finger enrolled and unlocked the lock screen, also after a reboot (device/panther/FINGERPRINT-PLAN.md in omarchy-mobile, gates P1-P5). Assisted-by: LLM Signed-off-by: Ángel René <17342133+angelrenefm@users.noreply.github.com> --- .../boot/dts/exynos/google/gs201-panther.dts | 62 ++++++++++++++++++- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/google/gs201-panther.dts b/arch/arm64/boot/dts/exynos/google/gs201-panther.dts index b4a13e17ae..1848dcc780 100644 --- a/arch/arm64/boot/dts/exynos/google/gs201-panther.dts +++ b/arch/arm64/boot/dts/exynos/google/gs201-panther.dts @@ -132,8 +132,7 @@ /* * Main PMIC, touch rails only. LDO25M is the touch controller's VDD * and LDO26M its AVDD; nothing else on the stock board consumes - * them. Stock constrains them to 1.6-1.95 V and 2.5-3.0 V. The sub-PMIC - * is not described. + * them. Stock constrains them to 1.6-1.95 V and 2.5-3.0 V. */ pmic-1 { compatible = "samsung,s2mpg12-pmic"; @@ -161,6 +160,27 @@ }; }; }; + + /* + * Sub PMIC, the fingerprint sensor's supply only: L15S_UDFPS_AVDD + * with stock's 2.5-3.3 V range (stock dtbo 0x30406, LDO15S, the + * same as the Pixel 7 Pro's). Only described rails can be switched; + * the others stay as the bootloader set them. Disabled until the + * fingerprint overlay, which enables its own rail. + */ + pmic-2 { + compatible = "samsung,s2mpg13-pmic"; + status = "disabled"; + + regulators { + ldo15s: ldo15s { + regulator-name = "vdd_udfps"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3300000>; + status = "disabled"; + }; + }; + }; }; /* @@ -467,3 +487,41 @@ }; }; }; + +/* + * Goodix optical under-display fingerprint sensor, as on the Pixel 7 Pro: + * the stock dtbo for board 0x30406 has the same goodixfp node as cheetah's + * 0x30306 ("goodix,fingerprint", IRQ gpa9-2, reset gpp1-1 active low, + * supply LDO15S). Trusty owns its SPI bus; Linux only switches its supply, + * reset and interrupt lines. Disabled until the fingerprint bring-up: it + * needs Trusty and the sub-PMIC. + */ +/ { + fingerprint { + compatible = "goodix,g7-udfps"; + interrupt-parent = <&gpa9>; + interrupts = <2 IRQ_TYPE_EDGE_RISING>; + reset-gpios = <&gpp1 1 GPIO_ACTIVE_LOW>; + vdd-supply = <&ldo15s>; + pinctrl-0 = <&fp_irq &fp_reset>; + pinctrl-names = "default"; + status = "disabled"; + }; +}; + +&pinctrl_gpio_alive { + fp_irq: fp-irq-pins { + samsung,pins = "gpa9-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +}; + +&pinctrl_peric0 { + fp_reset: fp-reset-pins { + samsung,pins = "gpp1-1"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; +};