Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,19 @@ description:
pipeline. It takes pixel data from a DECON and drives up to four data
lanes through a combined D-PHY/C-PHY, in video or command mode, with
DSC slice packing and TE-based command scheduling. Panels are described
as child nodes.
as child nodes. The Tensor G4 (zumapro) has the same DSIM, at the same
register layout.

allOf:
- $ref: /schemas/display/dsi-controller.yaml#

properties:
compatible:
const: google,gs201-dsim
oneOf:
- const: google,gs201-dsim
- items:
- const: google,zumapro-dsim
- const: google,gs201-dsim

reg:
minItems: 1
Expand Down
204 changes: 204 additions & 0 deletions arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@

/dts-v1/;

#include <dt-bindings/clock/google,zumapro-acpm.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/leds/common.h>
#include "../exynos-pinctrl.h"
#include "zumapro.dtsi"
#include "zumapro-reserved-memory.dtsi"
Expand Down Expand Up @@ -73,6 +75,68 @@
};
};

/*
* The GPU's levels: the shader rates of the Pixel 9a's GPU DVFS table
* up to 890 MHz, each with its paired L2 rate through the ACPM "gpu"
* clock; gpu-thermal throttles them from 85 C. 940 MHz, the table's
* top, is left out until it has run on the 9a.
*/
gpu_opp: opp-table-gpu {
compatible = "operating-points-v2";

opp-150000000 {
opp-hz = /bits/ 64 <150000000>;
};

opp-302000000 {
opp-hz = /bits/ 64 <302000000>;
};

opp-337000000 {
opp-hz = /bits/ 64 <337000000>;
};

opp-376000000 {
opp-hz = /bits/ 64 <376000000>;
};

opp-419000000 {
opp-hz = /bits/ 64 <419000000>;
};

opp-467000000 {
opp-hz = /bits/ 64 <467000000>;
};

opp-521000000 {
opp-hz = /bits/ 64 <521000000>;
};

opp-580000000 {
opp-hz = /bits/ 64 <580000000>;
};

opp-649000000 {
opp-hz = /bits/ 64 <649000000>;
};

opp-723000000 {
opp-hz = /bits/ 64 <723000000>;
};

opp-807000000 {
opp-hz = /bits/ 64 <807000000>;
};

opp-850000000 {
opp-hz = /bits/ 64 <850000000>;
};

opp-890000000 {
opp-hz = /bits/ 64 <890000000>;
};
};

/* UFS VCC, switched by gpp0-1 as on stock. */
ufs_vcc: regulator-ufs-vcc {
compatible = "regulator-fixed";
Expand All @@ -95,6 +159,15 @@
reg = <0x0 0xfac00000 0x009fc900>;
no-map;
};

/* DECON's scanout buffers, below 4 GiB for its 32-bit DMA. */
display_pool: display-pool {
compatible = "shared-dma-pool";
reusable;
size = <0x04000000>;
alignment = <0x0 0x00200000>;
alloc-ranges = <0x0 0x98000000 0x06000000>;
};
};

&acpm_ipc {
Expand Down Expand Up @@ -135,6 +208,10 @@
status = "okay";
};

&cmu_g3d {
status = "okay";
};

&cmu_hsi0 {
status = "okay";
};
Expand Down Expand Up @@ -163,6 +240,37 @@
status = "okay";
};

/*
* DECON0 scans out to DSIM0, so gs-decon can switch the link and the
* panel between 60 and 120 Hz.
*/
&decon0 {
memory-region = <&display_pool>, <&cont_splash_mem>;
memory-region-names = "pool", "boot-framebuffer";
status = "okay";

port {
decon0_out: endpoint {
remote-endpoint = <&dsi0_in>;
};
};
};

&dsi0 {
status = "okay";

panel@0 {
compatible = "google,tg4c";
reg = <0>;
};

port {
dsi0_in: endpoint {
remote-endpoint = <&decon0_out>;
};
};
};

/* The keys' banks and the touchscreen's raise their own interrupts. */
&gpa4 {
interrupt-controller;
Expand All @@ -188,6 +296,66 @@
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
};

/*
* The GPU's core clock is ACPM's paired "gpu" clock, which sets the shader
* (G3D) and L2 (G3DL2) domains together; coregroup and stacks stay on
* CMU_G3D's gates.
*/
&gpu {
clocks = <&acpm_ipc ZUMAPRO_CLK_ACPM_GPU>,
<&cmu_g3d CLK_GOUT_G3D_COREGROUP>,
<&cmu_g3d CLK_GOUT_G3D_STACKS>;
operating-points-v2 = <&gpu_opp>;
status = "okay";
};

/* The torch: a TI LM3644 flash driver, both LED outputs on one white LED. */
&hsi2c4 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&hsi2c4_bus>;
status = "okay";

led-controller@63 {
compatible = "ti,lm3644";
reg = <0x63>;
enable-gpios = <&gpp24 1 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&torch_enable>;

led {
function = LED_FUNCTION_TORCH;
color = <LED_COLOR_ID_WHITE>;
led-sources = <1 2>;
/* A dim flashlight, far below the part's and the LED's limits. */
led-max-microamp = <75000>;
};
};
};

/* The haptics: a CS40L26 on the 9a's LRA, with Google's limits for it. */
&hsi2c9 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&hsi2c9_bus>;
status = "okay";

haptic-driver@43 {
compatible = "cirrus,cs40l26a";
reg = <0x43>;
interrupt-parent = <&gpa6>;
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gph2 3 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&haptic_reset>;
cirrus,boost-peak-microamp = <2500000>;
cirrus,boost-ctl-microvolt = <10000000>;
cirrus,lra-f0-hz = <162>;
cirrus,lra-redc-micro-ohms = <14100007>;
cirrus,vpbr-threshold-microvolt = <3008000>;
};
};

&pinctrl_alive {
status = "okay";
};
Expand All @@ -202,6 +370,13 @@

&pinctrl_hsi1 {
status = "okay";

haptic_reset: haptic-reset-pins {
samsung,pins = "gph2-3";
samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>;
};
};

&pinctrl_hsi2 {
Expand All @@ -215,6 +390,13 @@
&pinctrl_peric0 {
status = "okay";

hsi2c4_bus: hsi2c4-bus-pins {
samsung,pins = "gpp8-0", "gpp8-1";
samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>;
};

touch_reset_held: touch-reset-held-pins {
samsung,pins = "gpp1-1";
samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
Expand All @@ -224,6 +406,20 @@

&pinctrl_peric1 {
status = "okay";

hsi2c9_bus: hsi2c9-bus-pins {
samsung,pins = "gpp19-4", "gpp19-5";
samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>;
};

torch_enable: torch-enable-pins {
samsung,pins = "gpp24-1";
samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>;
};
};

&pmu_system_controller {
Expand Down Expand Up @@ -321,6 +517,14 @@
status = "okay";
};

&usi4 {
status = "okay";
};

&usi9 {
status = "okay";
};

&watchdog_cl0 {
status = "okay";
};
Expand Down
Loading