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 = ; + }; +};