diff --git a/arch/arm64/boot/dts/exynos/google/gs201-panther.dts b/arch/arm64/boot/dts/exynos/google/gs201-panther.dts index d3e061a5b6..fa2d96a760 100644 --- a/arch/arm64/boot/dts/exynos/google/gs201-panther.dts +++ b/arch/arm64/boot/dts/exynos/google/gs201-panther.dts @@ -4,13 +4,14 @@ * * USB (NCM + ACM), the cluster watchdogs from gs201.dtsi, a * simple-framebuffer on the buffer ABL leaves DPP0 scanning out, UFS, the - * three keys, and the touch rails on the main PMIC. The panel driver, - * touch and the GPU stay disabled. + * three keys, the touch rails on the main PMIC, the GPU and the haptics. + * The panel driver and touch stay disabled. */ /dts-v1/; #include +#include #include "gs201.dtsi" / { @@ -149,6 +150,11 @@ }; }; +&gpu { + /* No mali-supply: the G3D rails follow the PMU power domain and ACPM. */ + status = "okay"; +}; + &usbdrd31_phy { status = "okay"; }; @@ -165,3 +171,55 @@ &ufs_0_phy { status = "okay"; }; + +/* + * Haptics: Cirrus Logic CS40L26A at 0x43 on PERIC0 USI8 (Google's I2C bus + * 8), INTb on gpa8-1, RESET on gpp24-3, as on the Pixel 7 Pro. Boost and + * actuator values are the stock ones, the same as the Pixel 7 Pro's + * (bst-ipk 2.5 A, bst-ctl 11 V, f0 145 Hz, ReDC 13 ohm in the live tree). + * The bus pins are on PERIC0 (gpp16-0/1). + */ +&pinctrl_far_alive { + hapt_amp_irq: hapt-amp-irq-pins { + samsung,pins = "gpa8-1"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +}; + +&pinctrl_peric0 { + status = "okay"; +}; + +&pinctrl_peric1 { + hapt_amp_rst: hapt-amp-rst-pins { + samsung,pins = "gpp24-3"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +}; + +&usi8 { + samsung,mode = ; + status = "okay"; +}; + +&hsi2c_8 { + clock-frequency = <400000>; + status = "okay"; + + haptics: haptic-driver@43 { + compatible = "cirrus,cs40l26a"; + reg = <0x43>; + interrupts-extended = <&gpa8 1 IRQ_TYPE_LEVEL_LOW>; + reset-gpios = <&gpp24 3 GPIO_ACTIVE_LOW>; + pinctrl-0 = <&hapt_amp_irq &hapt_amp_rst>; + pinctrl-names = "default"; + cirrus,boost-peak-microamp = <2500000>; + cirrus,boost-ctl-microvolt = <11000000>; + cirrus,lra-f0-hz = <145>; + cirrus,lra-redc-micro-ohms = <13000000>; + }; +};