Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0333c27
Bring-up, not for merge: gnssif_spi: Google's GNSS SPI driver as port…
W4HO-ham Oct 29, 2026
acb2e97
Bring-up, not for merge: gnssif_spi: 32-byte reads
W4HO-ham Oct 29, 2026
d5c871b
Bring-up, not for merge: gnssif_spi: spi_mode and speed_hz module par…
W4HO-ham Oct 29, 2026
d511589
Bring-up, not for merge: gnssif_spi: 32-bit words, byte-swapped in so…
W4HO-ham Oct 29, 2026
2b1763f
Bring-up, not for merge: gnssif_spi: cut transfers into 60-byte piece…
W4HO-ham Oct 29, 2026
3ac6a09
Bring-up, not for merge: gnssif_spi: 32-bit words in 32-byte pieces, …
W4HO-ham Oct 29, 2026
fefbbcd
Bring-up, not for merge: gnssif_spi: fb_delay, cs_setup_us, osc and s…
W4HO-ham Oct 29, 2026
6b5d5e7
Bring-up, not for merge: gnssif_spi: 8-bit words with the same parame…
W4HO-ham Oct 29, 2026
975307f
Bring-up, not for merge: gnssif_spi: hs=1 forces HIGH_SPEED_EN, one s…
W4HO-ham Oct 29, 2026
07ccb2a
Bring-up, not for merge: gnssif_spi: hs=1 with 60-byte reads in one t…
W4HO-ham Oct 29, 2026
2864857
Bring-up, not for merge: gnssif_spi: div holds the USI3 divider (stoc…
W4HO-ham Oct 29, 2026
06ad2f8
Bring-up, not for merge: gnssif_spi: rx_cpha=1 reads in SPI mode 1, w…
W4HO-ham Oct 29, 2026
51cc116
Bring-up, not for merge: gnssif_spi: hold=1 keeps chip select across …
W4HO-ham Oct 29, 2026
d289a2f
Bring-up, not for merge: gnssif_spi: realign=1 shifts every read left…
W4HO-ham Oct 29, 2026
fc46976
Bring-up, not for merge: gnssif_spi: txshift=1 sends every write one …
W4HO-ham Oct 29, 2026
8fc7d79
Bring-up, not for merge: gnssif_spi: realign=2 chooses the shift per …
W4HO-ham Oct 29, 2026
caa9ff5
Bring-up, not for merge: gnssif_spi: realign=3 tracks Kepler's bit of…
W4HO-ham Oct 29, 2026
4326750
Bring-up, not for merge: gnssif_spi: piece sets the transfer size wit…
W4HO-ham Oct 29, 2026
859979c
Bring-up, not for merge: gnssif_spi: carry=1 carries the dropped bit …
W4HO-ham Oct 29, 2026
90eb29f
Bring-up, not for merge: gnssif_spi: rx_gap_us waits before each read
W4HO-ham Oct 29, 2026
937c3f9
Bring-up, not for merge: gnssif_spi: dump every byte of every transfe…
W4HO-ham Oct 29, 2026
09aa5d9
Bring-up, not for merge: gnssif_spi: tx_gap_us waits before each write
W4HO-ham Oct 29, 2026
87f9271
Bring-up, not for merge: gnssif_spi: pad every write to a whole 64-by…
W4HO-ham Oct 29, 2026
6c368ef
Bring-up, not for merge: gnssif_spi: psr writes the SPI block's presc…
W4HO-ham Oct 29, 2026
cd160bb
Bring-up, not for merge: gnssif_spi: cs_hold_us keeps chip select aft…
W4HO-ham Oct 29, 2026
75c9c92
Bring-up, not for merge: soc: samsung: tegu-pdma-probe: Read the Pixe…
W4HO-ham Oct 29, 2026
1162bf2
Bring-up, not for merge: soc: samsung: tegu-pdma-rt: Register pdma1 a…
W4HO-ham Oct 29, 2026
1cf256c
Bring-up, not for merge: arm64: dts: exynos: google: zumapro-tegu: Th…
W4HO-ham Oct 29, 2026
da50642
Bring-up, not for merge: tools/tegu-gnss: The scripts behind MODEM-PL…
W4HO-ham Oct 29, 2026
268ba7f
Bring-up, not for merge: tools/tegu-gnss: the palmtop's g7-short, and…
W4HO-ham Oct 29, 2026
7218edb
Bring-up, not for merge: spi: s3c64xx: Google's swap-mode for 16- and…
W4HO-ham Oct 29, 2026
6556aaf
Bring-up, not for merge: gnssif_spi: word32 sends 32-bit words with n…
W4HO-ham Oct 30, 2026
370fb9d
Bring-up, not for merge: gnssif_spi: spi_mode overrides CPOL and CPHA
W4HO-ham Oct 30, 2026
329e8f8
Bring-up, not for merge: gnssif_spi: realign=4 carries the bit offset…
W4HO-ham Oct 31, 2026
c4c673a
spi: s3c64xx: turn the channels off before clearing the packet count
W4HO-ham Oct 31, 2026
77c05f4
Bring-up, not for merge: gnssif_spi: word32=2 swaps the bytes in soft…
W4HO-ham Oct 31, 2026
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
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: GPL-2.0-only
/dts-v1/;
/plugin/;

/*
* Pixel 9a bring-up, not for merge (MODEM-PLAN G3): the GNSS SPI with
* the controller's automatic chip select, as Google's driver uses for
* this device (no samsung,spi-chip-select-mode). Dropping the
* google,zumapro-spi compatible leaves google,gs101-spi, for which
* spi-s3c64xx in this tree lets the controller drive chip select itself.
* Applied to the palmtop's integration DTB (gn3).
*/
&spi21 {
compatible = "google,gs101-spi";
};
16 changes: 16 additions & 0 deletions arch/arm64/boot/dts/exynos/google/zumapro-tegu-gnss-spi-fb0.dtso
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// SPDX-License-Identifier: GPL-2.0-only
/dts-v1/;
/plugin/;

/*
* Pixel 9a bring-up, not for merge (MODEM-PLAN G3): the GNSS SPI with
* stock's feedback delay 0 instead of the ported node's 2. Applied to
* the palmtop's integration DTB (gn3), which has the spi21 label.
*/
&spi21 {
gnss@0 {
controller-data {
samsung,spi-feedback-delay = <0>;
};
};
};
30 changes: 30 additions & 0 deletions arch/arm64/boot/dts/exynos/google/zumapro-tegu-gnss-spi-pins.dtso
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// SPDX-License-Identifier: GPL-2.0-only
/dts-v1/;
/plugin/;

/*
* Pixel 9a bring-up only (MODEM-PLAN G3-A4): the GNSS SPI's pins in the
* device tree. Our SPI21 node has no pinctrl, so the bus runs on the
* bootloader's pin state: gpp22-0..3 in function 2 at drive 0, gpp22-2
* pulled down. This gives them function 2 and drive 3 (as gpp21, the
* other SPI bus on PERIC1), keeping the pulls as found.
*/
&pinctrl_peric1 {
gnss_spi_pins: gnss-spi-pins {
samsung,pins = "gpp22-0", "gpp22-1", "gpp22-3";
samsung,pin-function = <2>;
samsung,pin-pud = <0>;
samsung,pin-drv = <3>;
};
gnss_spi_miso: gnss-spi-miso-pins {
samsung,pins = "gpp22-2";
samsung,pin-function = <2>;
samsung,pin-pud = <1>;
samsung,pin-drv = <3>;
};
};

&spi21 {
pinctrl-names = "default";
pinctrl-0 = <&gnss_spi_pins &gnss_spi_miso>;
};
13 changes: 13 additions & 0 deletions arch/arm64/boot/dts/exynos/google/zumapro-tegu-pdma1-swapped.dtso
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// SPDX-License-Identifier: GPL-2.0-only
/dts-v1/;
/plugin/;

/*
* Pixel 9a bring-up, not for merge (MODEM-PLAN G3): the second boot with
* pdma1, the GNSS SPI's two DMA channels the other way round (0x15 tx,
* 0x14 rx), in case stock's order was wrong for mainline. Applied on top
* of zumapro-tegu-pdma1.dtso.
*/
&spi21 {
dma-names = "rx", "tx";
};
37 changes: 37 additions & 0 deletions arch/arm64/boot/dts/exynos/google/zumapro-tegu-pdma1.dtso
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// SPDX-License-Identifier: GPL-2.0-only
/dts-v1/;
/plugin/;

#include <dt-bindings/interrupt-controller/arm-gic.h>

/*
* Pixel 9a bring-up, not for merge (MODEM-PLAN G3): stock's pdma1, a
* PL330 at 0x10130000 on GIC SPI 806, with a fixed 200 MHz APB clock
* (the clock tree has no node for it yet), and the GNSS SPI's DMA
* channels as stock's overlay gives them (0x14 tx, 0x15 rx). Samsung's
* 36-bit address wrappers around the PL330 are not described. Applied
* to the palmtop's integration DTB (gn3), which has the soc and spi21
* labels.
*/
&soc {
pdma1_apb: clock-pdma-200m {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <200000000>;
clock-output-names = "pdma1-apb";
};

pdma1: dma-controller@10130000 {
compatible = "arm,pl330", "arm,primecell";
reg = <0x0 0x10130000 0x1000>;
interrupts = <GIC_SPI 806 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&pdma1_apb>;
clock-names = "apb_pclk";
#dma-cells = <1>;
};
};

&spi21 {
dmas = <&pdma1 0x14>, <&pdma1 0x15>;
dma-names = "tx", "rx";
};
1 change: 1 addition & 0 deletions drivers/soc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ source "drivers/soc/pxa/Kconfig"
source "drivers/soc/qcom/Kconfig"
source "drivers/soc/renesas/Kconfig"
source "drivers/soc/rockchip/Kconfig"
source "drivers/soc/google/Kconfig"
source "drivers/soc/samsung/Kconfig"
source "drivers/soc/sophgo/Kconfig"
source "drivers/soc/sunxi/Kconfig"
Expand Down
1 change: 1 addition & 0 deletions drivers/soc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ obj-y += amlogic/
obj-y += qcom/
obj-y += renesas/
obj-y += rockchip/
obj-y += google/
obj-$(CONFIG_SOC_SAMSUNG) += samsung/
obj-y += sophgo/
obj-y += sunxi/
Expand Down
11 changes: 11 additions & 0 deletions drivers/soc/google/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-License-Identifier: GPL-2.0-only

if ARCH_EXYNOS || COMPILE_TEST

menu "Google SoC drivers"

source "drivers/soc/google/gnssif_spi/Kconfig"

endmenu

endif
2 changes: 2 additions & 0 deletions drivers/soc/google/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
obj-y += gnssif_spi/
11 changes: 11 additions & 0 deletions drivers/soc/google/gnssif_spi/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-License-Identifier: GPL-2.0-only
config EXYNOS_GNSS_IF_SPI
tristate "Exynos GNSS SPI interface driver (Pixel 9a bring-up)"
depends on SPI && OF
default n
help
Bring-up only, not for merge: Google's gnssif_spi driver for the
GNSS core behind a SPI link (Kepler on the Pixel 9a), as ported to
this tree for MODEM-PLAN G3. gnss_spi binds the SPI device and
gnssif exposes /dev/gnss_ipc, /dev/gnss_boot and the Kepler control
device to gnssd.
6 changes: 6 additions & 0 deletions drivers/soc/google/gnssif_spi/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
obj-$(CONFIG_EXYNOS_GNSS_IF_SPI) += gnss_spi.o

obj-$(CONFIG_EXYNOS_GNSS_IF_SPI) += gnssif.o
gnssif-y += gnss_main.o gnss_io_device.o gnss_keplerctl_device.o gnss_link_device.o
gnssif-y += gnss_utils.o
Loading
Loading