]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: rockchip: Add bluetooth support to ArmSoM Sige7
authorJianfeng Liu <liujianfeng1994@gmail.com>
Sat, 21 Jun 2025 13:53:14 +0000 (21:53 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 30 Jun 2025 09:36:14 +0000 (11:36 +0200)
ArmSoM Sige7 has onboard AP6275P Wi-Fi6 (PCIe) and BT5 (UART) module
which is similar with Khadas Edge2. This commit enables bluetooth
at uart6.

Signed-off-by: Jianfeng Liu <liujianfeng1994@gmail.com>
Link: https://lore.kernel.org/r/20250621135319.61766-1-liujianfeng1994@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588-armsom-sige7.dts

index ae9274365bedf17fe2d21549fb321cb2ccdb78d8..39197ee198370b8166c486052d1c4c95b3810afd 100644 (file)
                        rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
+
+       wireless-bluetooth {
+               bt_reset_pin: bt-reset-pin {
+                       rockchip,pins = <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+
+               bt_wake_pin: bt-wake-pin {
+                       rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>;
+               };
+
+               bt_wake_host_irq: bt-wake-host-irq {
+                       rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_down>;
+               };
+       };
 };
 
 &pwm1 {
        status = "okay";
 };
 
+&uart6 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&uart6m1_xfer &uart6m1_ctsn &uart6m1_rtsn>;
+       status = "okay";
+
+       bluetooth {
+               compatible = "brcm,bcm43438-bt";
+               clocks = <&hym8563>;
+               clock-names = "lpo";
+               interrupt-parent = <&gpio0>;
+               interrupts = <RK_PC5 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-names = "host-wakeup";
+               device-wakeup-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
+               shutdown-gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;
+               max-speed = <1500000>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&bt_wake_host_irq &bt_wake_pin &bt_reset_pin>;
+               vbat-supply = <&vcc_3v3_s3>;
+               vddio-supply = <&vcc_1v8_s3>;
+       };
+};
+
 &usbdp_phy1 {
        status = "okay";
 };