Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 24a7ac9

Browse files
diederikdehaasgregkh
authored andcommitted
arm64: dts: rockchip: Correct GPIO polarity on brcm BT nodes
[ Upstream commit 0884652 ] Paragraph "3.4 Power up Timing Sequence" of the AzureWave-CM256SM datasheet mentions the following about the BT_REG_ON pin, which is connected to GPIO0_C4_d: When this pin is low and WL_REG_ON is high, the BT section is in reset. Therefor set that pin to GPIO_ACTIVE_HIGH so that it can be pulled low for a reset. If set to GPIO_ACTIVE_LOW, the following errors are observed: Bluetooth: hci0: command 0x0c03 tx timeout Bluetooth: hci0: BCM: Reset failed (-110) So fix the GPIO polarity by setting it to ACTIVE_HIGH. This also matches what other devices with the same BT device have. Fixes: 2b6a3f8 ("arm64: dts: rockchip: Fix reset-gpios property on brcm BT nodes") Signed-off-by: Diederik de Haas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 9510652 commit 24a7ac9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@
687687
host-wakeup-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
688688
pinctrl-0 = <&bt_enable_h>, <&bt_host_wake_l>, <&bt_wake_h>;
689689
pinctrl-names = "default";
690-
shutdown-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>;
690+
shutdown-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
691691
vbat-supply = <&vcc_wl>;
692692
vddio-supply = <&vcca_1v8_pmu>;
693693
};

arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@
404404
host-wakeup-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_HIGH>;
405405
pinctrl-names = "default";
406406
pinctrl-0 = <&bt_host_wake_h &bt_reg_on_h &bt_wake_host_h>;
407-
shutdown-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_LOW>;
407+
shutdown-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
408408
vbat-supply = <&vcc_3v3>;
409409
vddio-supply = <&vcc_1v8>;
410410
};

0 commit comments

Comments
 (0)