From 8d8e675be453c16a5a8fea04adc596a3547e45cf Mon Sep 17 00:00:00 2001 From: W4HO <87742609+W4HO-ham@users.noreply.github.com> Date: Mon, 9 Nov 2026 17:21:08 -0643 Subject: [PATCH] arm64: dts: exynos: google: zumapro-tegu: Add the Kepler GNSS link The Pixel 9a's GNSS receiver is the Kepler core in its S5300 modem. Its data go over an SPI bus of the application processor, USI3 of HSI0 (spi21), in 64-byte blocks paced by two handshake lines; gnssif_spi drives both. Add the SPI device and the handshake node, and enable the USI. The bus keeps zumapro's port configuration, with which spi-s3c64xx moves a 64-byte block in one piece. With gs101's compatible alone (the controller's automatic chip select, as stock uses for this device) the driver cut each block into 60 and 4 bytes, and in two sessions on the phone 12 of those reads timed out (-110) in 13 minutes; with zumapro's, two more sessions had none. The feedback delay is stock's 0. The bus has no pin group: it runs on the bootloader's pin state, which the data were clean with. Nothing probes until the modules load, and the core answers only while the modem is up and the GNSS daemon has loaded its firmware. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com> --- .../boot/dts/exynos/google/zumapro-tegu.dts | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts b/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts index 5e7eb363fb..75f954d320 100644 --- a/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts +++ b/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts @@ -53,6 +53,17 @@ }; }; + /* + * The handshake lines of the Kepler GNSS core in the S5300 modem + * (its SPI device is on spi21): the core's request to the host, + * which is also the host's interrupt, and the host's request to it. + */ + gnss { + compatible = "samsung,exynos-gnss"; + gnss2ap-spi-gpios = <&gpa5 4 GPIO_ACTIVE_HIGH>; + ap2gnss-spi-gpios = <&gpp2 3 GPIO_ACTIVE_HIGH>; + }; + gpio-keys { compatible = "gpio-keys"; @@ -776,6 +787,27 @@ }; }; +/* + * The Kepler GNSS core's data link, 64-byte blocks on USI3 of HSI0. The bus + * keeps zumapro's port configuration: a 64-byte block then moves in one + * piece (with gs101's, the controller driver cuts it into 60 and 4 bytes, + * and the second piece sometimes times out). Feedback delay 0 is stock's. + * The bus has no pin group and runs on the bootloader's pin state. + */ +&spi21 { + status = "okay"; + + gnss@0 { + compatible = "samsung,gnss-spi"; + reg = <0>; + spi-max-frequency = <3125000>; + + controller-data { + samsung,spi-feedback-delay = <0>; + }; + }; +}; + &sysreg_apm { status = "okay"; }; @@ -873,6 +905,10 @@ status = "okay"; }; +&usi3_hsi0 { + status = "okay"; +}; + &usi4 { status = "okay"; };