From bea4466ce98ffaf672437acf7d8fc185ad1321cb Mon Sep 17 00:00:00 2001 From: W4HO <87742609+W4HO-ham@users.noreply.github.com> Date: Wed, 28 Oct 2026 09:26:09 -0647 Subject: [PATCH] arm64: dts: exynos: google: zumapro-tegu: Add Bluetooth The Pixel 9a's BCM4383 sits on the APM's UART (USI1, uart18) at 3 Mbaud. BT_REG_ON is gpn8-0 behind the chip's latch, clocked by gpp24-3 (the binding's brcm,ble-dbo-gpios), device wake is gpn9-0 and host wake is gpa5-6 (EINT with a pull-down, as stock's bt_host_wake), as in Google's GPL zumapro Bluetooth device tree that tegu includes. With host wake as its interrupt, hci_bcm runs the controller with runtime PM and lets it wake the system. gpa5 becomes an interrupt controller with its eight EINT SPIs (60-67). Link: https://android.googlesource.com/kernel/devices/google/zumapro/+/8831630eee2ad095b85ed452944e6353940966a5/dts/zumapro-board-bluetooth_wakectrl.dtsi Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com> --- .../boot/dts/exynos/google/zumapro-tegu.dts | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts b/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts index 20e72a61a4..af6644c6d2 100644 --- a/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts +++ b/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts @@ -279,6 +279,20 @@ ; }; +/* Bluetooth's host wake (gpa5-6). */ +&gpa5 { + interrupt-controller; + #interrupt-cells = <2>; + interrupts = , + , + , + , + , + , + , + ; +}; + &gpa6 { interrupt-controller; #interrupt-cells = <2>; @@ -362,10 +376,23 @@ &pinctrl_custom_alive { status = "okay"; + + bt_power: bt-power-pins { + samsung,pins = "gpn8-0", "gpn9-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = <0>; + }; }; &pinctrl_far_alive { status = "okay"; + + bt_host_wake: bt-host-wake-pins { + samsung,pins = "gpa5-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; }; &pinctrl_hsi1 { @@ -407,6 +434,13 @@ &pinctrl_peric1 { status = "okay"; + bt_ble_dbo: bt-ble-dbo-pins { + samsung,pins = "gpp24-3"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = <0>; + }; + hsi2c9_bus: hsi2c9-bus-pins { samsung,pins = "gpp19-4", "gpp19-5"; samsung,pin-function = ; @@ -466,6 +500,28 @@ status = "okay"; }; +/* + * Bluetooth: the BCM4383 on the APM's UART at 3 Mbaud, powered through + * BT_REG_ON (gpn8-0) behind its latch (ble-dbo on gpp24-3), with device wake + * on gpn9-0 and host wake on gpa5-6, as Google's GPL zumapro Bluetooth DT. + */ +&uart18 { + status = "okay"; + + bluetooth { + compatible = "brcm,bcm4383-bt"; + pinctrl-names = "default"; + pinctrl-0 = <&bt_power &bt_ble_dbo &bt_host_wake>; + max-speed = <3000000>; + shutdown-gpios = <&gpn8 0 GPIO_ACTIVE_HIGH>; + device-wakeup-gpios = <&gpn9 0 GPIO_ACTIVE_HIGH>; + brcm,ble-dbo-gpios = <&gpp24 3 GPIO_ACTIVE_HIGH>; + interrupt-parent = <&gpa5>; + interrupts = <6 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "host-wakeup"; + }; +}; + /* * Behind the init's storage guard (only slot B's boot images and userdata * writable), which runs before the disks appear. @@ -525,6 +581,10 @@ status = "okay"; }; +&usi_apm1 { + status = "okay"; +}; + &watchdog_cl0 { status = "okay"; };