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
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/arm/google.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ properties:
- google,gs201-cheetah
- google,gs201-felix
- google,gs201-lynx
- google,gs201-panther
- const: google,gs201
- description: Google Tensor G3 (zuma) boards
items:
Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/exynos/google/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += \
gs201-cheetah.dtb \
gs201-felix.dtb \
gs201-lynx.dtb \
gs201-panther.dtb \
zuma-husky.dtb

# ABL applies board overlays, so keep symbols for labels
Expand All @@ -14,4 +15,5 @@ DTC_FLAGS_gs101-raven += -@
DTC_FLAGS_gs201-cheetah += -@
DTC_FLAGS_gs201-felix += -@
DTC_FLAGS_gs201-lynx += -@
DTC_FLAGS_gs201-panther += -@
DTC_FLAGS_zuma-husky += -@
167 changes: 167 additions & 0 deletions arch/arm64/boot/dts/exynos/google/gs201-panther.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Google Pixel 7 (panther) - first-light board file.
*
* 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.
*/

/dts-v1/;

#include <dt-bindings/input/input.h>
#include "gs201.dtsi"

/ {
model = "Google Pixel 7";
compatible = "google,gs201-panther", "google,gs201";

/*
* ABL's base-DTB match: product id 0x09855000 | major revision (B0 is
* 1). Stock reports pkg_mode 0 and soc_id 0x09855001 in its live tree.
*/
soc_id = <0x09855001 0x0>;

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";
#address-cells = <2>;
#size-cells = <1>;
ranges;

/*
* ABL leaves DECON0 -> DSIM0 -> panel (sdc-s6e3fc3) running in
* command mode with DPP0 scanning 0xfac00000 (RDMA_BASEADDR_Y8,
* read on this phone). There is no panel driver, so no panel
* phandle; the size comes from this node.
*/
framebuffer0: framebuffer@fac00000 {
compatible = "simple-framebuffer";
reg = <0x0 0xfac00000 (1080 * 2400 * 4)>;
memory-region = <&cont_splash_mem>;
width = <1080>;
height = <2400>;
stride = <(1080 * 4)>;
format = "a8r8g8b8";
};
};

/* The same pins as cheetah's (Google's gs201-common.dtsi). */
gpio-keys {
compatible = "gpio-keys";
pinctrl-0 = <&key_voldown>, <&key_volup>, <&key_power>;
pinctrl-names = "default";

button-vol-down {
label = "KEY_VOLUMEDOWN";
linux,code = <KEY_VOLUMEDOWN>;
gpios = <&gpa10 1 GPIO_ACTIVE_LOW>;
wakeup-source;
};

button-vol-up {
label = "KEY_VOLUMEUP";
linux,code = <KEY_VOLUMEUP>;
gpios = <&gpa8 5 GPIO_ACTIVE_LOW>;
wakeup-source;
};

/*
* PMIC_PWRON_OD_L: the S2MPG12 PWRONB line, also wired to the
* SoC. The PMIC's own long-press reset is unaffected.
*/
button-power {
label = "KEY_POWER";
linux,code = <KEY_POWER>;
gpios = <&gpa10 0 GPIO_ACTIVE_LOW>;
wakeup-source;
};
};

/*
* UFS VCC. Stock drives it from GPIO gpp0-1 (boot-on), as on
* cheetah; there is no gs201 GPIO driver yet, so describe it as
* always on, as the bootloader leaves it.
*/
ufs_0_fixed_vcc_reg: regulator-ufs-vcc {
compatible = "regulator-fixed";
regulator-name = "ufs-vcc";
regulator-always-on;
regulator-boot-on;
};

reserved-memory {
#address-cells = <2>;
#size-cells = <1>;
ranges;

/*
* Stock's region and layout (ramoops_mem@fd3ff000 in its live
* tree), so a log from this kernel can be read after a warm
* reboot into slot A.
*/
ramoops@fd3ff000 {
compatible = "ramoops";
reg = <0x0 0xfd3ff000 0x400000>;
console-size = <0x200000>;
pmsg-size = <0x200000>;
};

cont_splash_mem: splash@fac00000 {
reg = <0x0 0xfac00000 (1080 * 2400 * 4)>;
no-map;
};
};
};

&acpm_ipc {
/*
* 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.
*/
pmic-1 {
compatible = "samsung,s2mpg12-pmic";
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. */
ldo25m: ldo25m {
regulator-name = "vdd-ts";
};

/*
* ABL leaves 3.3 V programmed, above stock's range;
* stock's regulator core lowers it to 3.0 V before
* the touch driver switches it on.
*/
ldo26m: ldo26m {
regulator-name = "avdd-ts";
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
};
};
};
};

&usbdrd31_phy {
status = "okay";
};

&usb_dwc3 {
status = "okay";
};

&ufs_0 {
vcc-supply = <&ufs_0_fixed_vcc_reg>;
status = "okay";
};

&ufs_0_phy {
status = "okay";
};