Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 95 additions & 5 deletions arch/arm64/boot/dts/exynos/google/gs201-panther.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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 touchscreen with its rails on the main PMIC, the GPU and
* the haptics. The panel driver stays disabled.
*/

/dts-v1/;

#include <dt-bindings/input/input.h>
#include <dt-bindings/soc/samsung,exynos-usi.h>
#include "gs201.dtsi"

/ {
Expand All @@ -25,7 +26,7 @@

chosen {
/* ABL requires bootargs to exist; it appends its own after these. */
bootargs = "console=tty0 panic=10 clk_ignore_unused pd_ignore_unused rdinit=/init omamobile.ufs-probe";
bootargs = "console=tty0 panic=10 clk_ignore_unused pd_ignore_unused rdinit=/init omamobile.ufs-probe mem_sleep_default=s2idle";
#address-cells = <2>;
#size-cells = <1>;
ranges;
Expand Down Expand Up @@ -127,12 +128,13 @@
interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
google,vgpio2ap-sysreg = <&sysreg_vgpio2ap>;
wakeup-source;
status = "disabled";

regulators {
/* No voltage: the PMIC keeps the 1.8 V it holds. */
/* Stock's 1.8 V, which ABL leaves programmed */
ldo25m: ldo25m {
regulator-name = "vdd-ts";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};

/*
Expand All @@ -149,6 +151,11 @@
};
};

&gpu {
/* No mali-supply: the G3D rails follow the PMU power domain and ACPM. */
status = "okay";
};

&usbdrd31_phy {
status = "okay";
};
Expand All @@ -165,3 +172,86 @@
&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 = <GS101_PIN_FUNC_EINT>;
samsung,pin-pud = <GS101_PIN_PULL_NONE>;
samsung,pin-drv = <GS101_PIN_DRV_2_5_MA>;
};
};

&pinctrl_peric0 {
status = "okay";
};

&pinctrl_peric1 {
hapt_amp_rst: hapt-amp-rst-pins {
samsung,pins = "gpp24-3";
samsung,pin-function = <GS101_PIN_FUNC_OUTPUT>;
samsung,pin-pud = <GS101_PIN_PULL_NONE>;
samsung,pin-drv = <GS101_PIN_DRV_2_5_MA>;
};
};

&usi8 {
samsung,mode = <USI_MODE_I2C>;
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>;
};
};

/*
* Touchscreen: a FocalTech FT3658 on USI0 SPI, wired as the Pixel 7 Pro's
* S3908 (chip select gpp20-3, interrupt gpa7-0, reset gpp23-2).
*/
&usi0 {
samsung,mode = <USI_MODE_SPI>;
status = "okay";
};

&spi_0 {
pinctrl-0 = <&spi0_bus &spi0_miso &spi0_cs_gpio>;
cs-gpios = <&gpp20 3 GPIO_ACTIVE_LOW>;
num-cs = <1>;
status = "okay";

touchscreen@0 {
compatible = "focaltech,ft3658";
reg = <0>;
spi-max-frequency = <10000000>;
interrupt-parent = <&gpa7>;
interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&gpp23 2 GPIO_ACTIVE_LOW>;
vdd-supply = <&ldo25m>;
avdd-supply = <&ldo26m>;
pinctrl-0 = <&ts_irq &ts_reset>;
pinctrl-names = "default";
touchscreen-size-x = <1080>;
touchscreen-size-y = <2400>;
};
};