* Remove rk3288-xt-q8l-v10.dts related patches We only support ASUS Tinker Board, so no need for those patches. * Remove unnecessary patches and rebase some for Tinker Board S Some patches only apply to the Tinker Board device tree. Rebase them to apply to the dtsi file so they apply for both boards, the Tinker Board and the Tinker Board S board.
65 lines
1.9 KiB
Diff
65 lines
1.9 KiB
Diff
From 2ae3821fd824560ef2db3c87cfbec985177911f6 Mon Sep 17 00:00:00 2001
|
|
Message-Id: <2ae3821fd824560ef2db3c87cfbec985177911f6.1599249626.git.stefan@agner.ch>
|
|
From: "Miouyouyou (Myy)" <myy@miouyouyou.fr>
|
|
Date: Mon, 5 Nov 2018 22:03:26 +0100
|
|
Subject: [PATCH 1/2] ARM: DTS: rk3288-tinker: Setup the Bluetooth UART pins
|
|
|
|
The most essential being the RTS pin, which is clearly needed to
|
|
upload the initial configuration into the Realtek Bluetooth
|
|
chip, and make the Bluetooth chip work.
|
|
|
|
Now, the Bluetooth chip also needs 3 other GPIOS to be enabled.
|
|
I'll see how I do that through the DTS file in a near future.
|
|
|
|
The 3 GPIOS being :
|
|
Bluetooth Reset : <&gpio4 29 GPIO_ACTIVE_HIGH>
|
|
Bluetooth Wake : <&gpio4 26 GPIO_ACTIVE_HIGH>
|
|
Bluetooth Wake_Host_IRQ : <&gpio4 31 GPIO_ACTIVE_HIGH>
|
|
|
|
These are currently setup manually, through scripts. But it seems that
|
|
GPIO handling through /sys entries might not be possible in the long
|
|
term, the replacement being libgpio.
|
|
Anyway, if you're interesting in enabling the Bluetooth GPIO by hand,
|
|
here are the commands :
|
|
|
|
cd /sys/class/gpio &&
|
|
echo 146 > export &&
|
|
echo 149 > export &&
|
|
echo 151 > export &&
|
|
echo high > gpio146/direction &&
|
|
echo high > gpio149/direction &&
|
|
echo high > gpio151/direction
|
|
|
|
Resetting the chip is done like this :
|
|
|
|
echo "Resetting the Bluetooth chip"
|
|
cd /sys/class/gpio/gpio149 &&
|
|
echo 0 > value &&
|
|
sleep 1 &&
|
|
echo 1 > value &&
|
|
sleep 1
|
|
|
|
Signed-off-by: Miouyouyou (Myy) <myy@miouyouyou.fr>
|
|
[move change to rk3288-tinker.dtsi]
|
|
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
|
---
|
|
arch/arm/boot/dts/rk3288-tinker.dtsi | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/arch/arm/boot/dts/rk3288-tinker.dtsi b/arch/arm/boot/dts/rk3288-tinker.dtsi
|
|
index acfaa12ec239..284e7982925d 100644
|
|
--- a/arch/arm/boot/dts/rk3288-tinker.dtsi
|
|
+++ b/arch/arm/boot/dts/rk3288-tinker.dtsi
|
|
@@ -492,6 +492,8 @@ &tsadc {
|
|
};
|
|
|
|
&uart0 {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
|
|
status = "okay";
|
|
};
|
|
|
|
--
|
|
2.28.0
|
|
|