Skip to contentSkip to conversation

arm64: dts: meson-g12a: bluetooth fixups

PATCH Superseded Neil Armstrong 2 participants 11 messages Jun 3, 2019 – Jun 6, 2019

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover arm64: dts: meson-g12a: bluetooth fixups

These patches :
- adds the 32khz low power clock to the bluetooth node, since this clock is needed for the bluetooth part of the module to initialize
- bumps the bus speed to 2Mbaud/s

Neil Armstrong (4):
arm64: dts: meson-g12a-sei510: add 32k clock to bluetooth node
arm64: dts: meson-g12a-x96-max: add 32k clock to bluetooth node
arm64: dts: meson-g12a-sei510: bump bluetooth bus speed to 2Mbaud/s
arm64: dts: meson-g12a-x96-max: bump bluetooth bus speed to 2Mbaud/s

 arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts  | 3 +++
 arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts | 3 +++
 2 files changed, 6 insertions(+)
Signature · 1 line
2.21.0
#1 lore raw

PATCH 1/4 arm64: dts: meson-g12a-sei510: add 32k clock to bluetooth node

The 32k low power clock is necessary for the bluetooth part of the combo module to initialize correctly, simply add the same clock we use for the sdio pwrseq.

Fixes d1c023af1988 ("arm64: dts: meson-g12a-sei510: Add ADC Key and BT support")
---
 arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts +2 -0
index eac57d997e0b..3e0e119c13ce 100644
@@ -530,6 +530,8 @@
 	bluetooth {
 		compatible = "brcm,bcm43438-bt";
 		shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
+		clocks = <&wifi32k>;
+		clock-names = "lpo";
 		vbat-supply = <&vddao_3v3>;
 		vddio-supply = <&vddio_ao1v8>;
 	};
Signature · 1 line
2.21.0
#9 lore raw

PATCH 4/4 arm64: dts: meson-g12a-x96-max: bump bluetooth bus speed to 2Mbaud/s

In reply to Neil Armstrong

Setting to 2Mbaud/s is the nominal bus speed for common usages.

---
 arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts +1 -0
index aa9da5de5c2d..300c29dad49f 100644
@@ -206,6 +206,7 @@
 	bluetooth {
 		compatible = "brcm,bcm43438-bt";
 		shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
+		max-speed = <2000000>;
 		clocks = <&wifi32k>;
 		clock-names = "lpo";
 	};
Signature · 1 line
2.21.0
#4 lore raw

PATCH 2/4 arm64: dts: meson-g12a-x96-max: add 32k clock to bluetooth node

In reply to Neil Armstrong

The 32k low power clock is necessary for the bluetooth part of the combo module to initialize correctly, simply add the same clock we use for the sdio pwrseq.

Fixes c5c9c7cff269 ("arm64: dts: meson-g12a-x96-max: Enable BT Module")
---
 arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts +2 -0
index 2c10ebfd9e7c..aa9da5de5c2d 100644
@@ -206,6 +206,8 @@
 	bluetooth {
 		compatible = "brcm,bcm43438-bt";
 		shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
+		clocks = <&wifi32k>;
+		clock-names = "lpo";
 	};
 };
 
Signature · 1 line
2.21.0
#7 lore raw

PATCH 3/4 arm64: dts: meson-g12a-sei510: bump bluetooth bus speed to 2Mbaud/s

In reply to Neil Armstrong

Setting to 2Mbaud/s is the nominal bus speed for common usages.

---
 arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts +1 -0
index 3e0e119c13ce..4fc30131e5e7 100644
@@ -530,6 +530,7 @@
 	bluetooth {
 		compatible = "brcm,bcm43438-bt";
 		shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
+		max-speed = <2000000>;
 		clocks = <&wifi32k>;
 		clock-names = "lpo";
 		vbat-supply = <&vddao_3v3>;
Signature · 1 line
2.21.0
#2 lore raw

Re: [PATCH 1/4] arm64: dts: meson-g12a-sei510: add 32k clock to bluetooth node

In reply to Neil Armstrong
Quoted 16 lines · Neil Armstrong

The 32k low power clock is necessary for the bluetooth part of the combo module to initialize correctly, simply add the same clock we use for the sdio pwrseq.

Fixes d1c023af1988 ("arm64: dts: meson-g12a-sei510: Add ADC Key and BT support")
---
 arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts +0 -0
index eac57d997e0b..3e0e119c13ce 100644

arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts line 537

Quoted 8 lines
arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts +2 -0
@@ -530,6 +530,8 @@
 	bluetooth {
 		compatible = "brcm,bcm43438-bt";
 		shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
+		clocks = <&wifi32k>;
+		clock-names = "lpo";
 		vbat-supply = <&vddao_3v3>;
 		vddio-supply = <&vddio_ao1v8>;
 	};

The Fixes is wrong... wifi32k was not present at this time.

Neil

#5 lore raw

Re: [PATCH 2/4] arm64: dts: meson-g12a-x96-max: add 32k clock to bluetooth node

In reply to Neil Armstrong
Quoted 16 lines · Neil Armstrong

The 32k low power clock is necessary for the bluetooth part of the combo module to initialize correctly, simply add the same clock we use for the sdio pwrseq.

Fixes c5c9c7cff269 ("arm64: dts: meson-g12a-x96-max: Enable BT Module")
---
 arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts +0 -0
index 2c10ebfd9e7c..aa9da5de5c2d 100644

arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts line 213

Quoted 8 lines
arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts +2 -0
@@ -206,6 +206,8 @@
 	bluetooth {
 		compatible = "brcm,bcm43438-bt";
 		shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
+		clocks = <&wifi32k>;
+		clock-names = "lpo";
 	};
 };
 

The Fixes is wrong... wifi32k was not present at this time.

Neil

reviewer Reviewed-by on v1 1/4
#3 lore raw

Re: [PATCH 1/4] arm64: dts: meson-g12a-sei510: add 32k clock to bluetooth node

In reply to Neil Armstrong
Quoted 7 lines · Neil Armstrong

The 32k low power clock is necessary for the bluetooth part of the combo module to initialize correctly, simply add the same clock we use for the sdio pwrseq.

Fixes d1c023af1988 ("arm64: dts: meson-g12a-sei510: Add ADC Key and BT support")

with the correct fixes tag:

reviewer Reviewed-by on v1 2/4
#6 lore raw

Re: [PATCH 2/4] arm64: dts: meson-g12a-x96-max: add 32k clock to bluetooth node

In reply to Neil Armstrong
Quoted 7 lines · Neil Armstrong

The 32k low power clock is necessary for the bluetooth part of the combo module to initialize correctly, simply add the same clock we use for the sdio pwrseq.

Fixes c5c9c7cff269 ("arm64: dts: meson-g12a-x96-max: Enable BT Module")

with the correct fixes tag:

reviewer Acked-by on v1 3/4
#8 lore raw

Re: [PATCH 3/4] arm64: dts: meson-g12a-sei510: bump bluetooth bus speed to 2Mbaud/s

In reply to Neil Armstrong
Quoted 4 lines · Neil Armstrong

Setting to 2Mbaud/s is the nominal bus speed for common usages.

I tested with this speed when I updated the meson_uart driver back then to allow higher baud rates [0]
so I don't see a reason why this shouldn't work

[0] https://patchwork.kernel.org/patch/9517907/

reviewer Acked-by on v1 4/4
#10 lore raw

Re: [PATCH 4/4] arm64: dts: meson-g12a-x96-max: bump bluetooth bus speed to 2Mbaud/s

In reply to Neil Armstrong
Quoted 4 lines · Neil Armstrong

Setting to 2Mbaud/s is the nominal bus speed for common usages.

I tested with this speed when I updated the meson_uart driver back then to allow higher baud rates [0]
so I don't see a reason why this shouldn't work

[0] https://patchwork.kernel.org/patch/9517907/