diff --git a/Documentation/devicetree/bindings/arm/google.yaml b/Documentation/devicetree/bindings/arm/google.yaml index 1f5258ae2c..087c6cdbe7 100644 --- a/Documentation/devicetree/bindings/arm/google.yaml +++ b/Documentation/devicetree/bindings/arm/google.yaml @@ -52,6 +52,7 @@ properties: - description: Google Tensor G3 (zuma) boards items: - enum: + - google,zuma-akita - google,zuma-husky - const: google,zuma - description: Google Tensor G4 (zumapro) boards diff --git a/arch/arm64/boot/dts/exynos/google/Makefile b/arch/arm64/boot/dts/exynos/google/Makefile index 8e651de7d7..3f8e377c7a 100644 --- a/arch/arm64/boot/dts/exynos/google/Makefile +++ b/arch/arm64/boot/dts/exynos/google/Makefile @@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += \ gs201-felix.dtb \ gs201-lynx.dtb \ gs201-panther.dtb \ + zuma-akita.dtb \ zuma-husky.dtb \ zumapro-tegu.dtb @@ -19,5 +20,6 @@ DTC_FLAGS_gs201-cheetah += -@ DTC_FLAGS_gs201-felix += -@ DTC_FLAGS_gs201-lynx += -@ DTC_FLAGS_gs201-panther += -@ +DTC_FLAGS_zuma-akita += -@ DTC_FLAGS_zuma-husky += -@ DTC_FLAGS_zumapro-tegu += -@ diff --git a/arch/arm64/boot/dts/exynos/google/zuma-akita.dts b/arch/arm64/boot/dts/exynos/google/zuma-akita.dts new file mode 100644 index 0000000000..381ad1e0e7 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/google/zuma-akita.dts @@ -0,0 +1,90 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Google Pixel 8a (akita) - first-light board file. + */ + +/dts-v1/; + +#include "zuma.dtsi" + +/ { + model = "Google Pixel 8a"; + compatible = "google,zuma-akita", "google,zuma"; + + /* + * zuma's ABL picks the base DTB by matching these children against + * the SoC's product id, revision and package; there is no /soc_id. + * A retail akita has a B0/B1 IPOP part (stock base DTB 3, which + * carries exactly these two), where husky's is FOPLP. + */ + soc_compatible { + B0_IPOP { + product_id = <0x9865>; + major = <1>; + minor = <0>; + pkg_mode = <1>; + }; + + B1_IPOP { + product_id = <0x9865>; + major = <1>; + minor = <1>; + pkg_mode = <1>; + }; + }; + + chosen { + /* + * ABL requires bootargs to exist; it appends its own after these. + * reboot=warm: a cold PSCI reset clears the reboot reason in + * SYSIP_DAT0 before ABL reads it, so "reboot bootloader" would + * only boot the slot again. + * The watchdog driver stops the bootloader's watchdogs, so a + * hang that never panics lasts until someone resets the phone + * with its buttons: panic on soft and hard lockups and on RCU + * stalls, so that panic=10 resets the phone by itself. + */ + bootargs = "console=tty0 fbcon=font:TER16x32 reboot=warm panic=10 softlockup_panic=1 nmi_watchdog=panic sysctl.kernel.panic_on_rcu_stall=1 clk_ignore_unused pd_ignore_unused rdinit=/init"; + #address-cells = <2>; + #size-cells = <1>; + ranges; + + /* + * ABL's splash, still scanned out at handover: DPP0's + * RDMA_BASEADDR_P0 (0x19900040) reads 0xfac00000 on a booted + * phone, as on the Pixel 8 Pro. The panel is DSI command mode, + * so new frames reach it only once DECON0's trigger is unmasked. + */ + framebuffer0: framebuffer { + compatible = "simple-framebuffer"; + memory-region = <&cont_splash_mem>; + width = <1080>; + height = <2400>; + stride = <(1080 * 4)>; + format = "a8r8g8b8"; + }; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <1>; + ranges; + + cont_splash_mem: splash@fac00000 { + reg = <0x0 0xfac00000 (1080 * 2400 * 4)>; + no-map; + }; + }; +}; + +&usb_dwc3 { + status = "okay"; +}; + +&usb_hsphy { + status = "okay"; +}; + +&usbdrd_phy { + status = "okay"; +};