ALT Linux kernel packages development
 help / color / mirror / Atom feed
* [d-kernel] [PATCH 0/1] std-def/sisyphus, un-def/sisyphus, un-def/p10: rk3568-firefly-roc-pc
@ 2023-05-12 14:51 antohami
  2023-05-12 14:51 ` [d-kernel] [PATCH 1/1] rk3568-firefly-roc-pc.dts: fix bluetooth support antohami
  2023-05-16 14:58 ` [d-kernel] [PATCH 0/1] std-def/sisyphus, un-def/sisyphus, un-def/p10: rk3568-firefly-roc-pc Vitaly Chikunov
  0 siblings, 2 replies; 3+ messages in thread
From: antohami @ 2023-05-12 14:51 UTC (permalink / raw)
  To: devel-kernel

From: Anton Midyukov <antohami@altlinux.org>

Anton Midyukov (1):
  rk3568-firefly-roc-pc.dts: fix bluetooth support

 .../dts/rockchip/rk3568-firefly-roc-pc.dts    | 74 +++++++------------
 1 file changed, 26 insertions(+), 48 deletions(-)
 mode change 100644 => 100755 arch/arm64/boot/dts/rockchip/rk3568-firefly-roc-pc.dts

-- 
2.33.8



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [d-kernel] [PATCH 1/1] rk3568-firefly-roc-pc.dts: fix bluetooth support
  2023-05-12 14:51 [d-kernel] [PATCH 0/1] std-def/sisyphus, un-def/sisyphus, un-def/p10: rk3568-firefly-roc-pc antohami
@ 2023-05-12 14:51 ` antohami
  2023-05-16 14:58 ` [d-kernel] [PATCH 0/1] std-def/sisyphus, un-def/sisyphus, un-def/p10: rk3568-firefly-roc-pc Vitaly Chikunov
  1 sibling, 0 replies; 3+ messages in thread
From: antohami @ 2023-05-12 14:51 UTC (permalink / raw)
  To: devel-kernel

From: Anton Midyukov <antohami@altlinux.org>

Update dts from Armbian.
Link: https://github.com/150balbes/build/commit/1346fd210af2b00b68b31716a4180c67f8cef0e7
Link: https://github.com/150balbes/build/commit/0a915c15db0dca4eca4f318633f5c461cff94f16
Signed-off-by: Anton Midyukov <antohami@altlinux.org>
---
 .../dts/rockchip/rk3568-firefly-roc-pc.dts    | 74 +++++++------------
 1 file changed, 26 insertions(+), 48 deletions(-)
 mode change 100644 => 100755 arch/arm64/boot/dts/rockchip/rk3568-firefly-roc-pc.dts

diff --git a/arch/arm64/boot/dts/rockchip/rk3568-firefly-roc-pc.dts b/arch/arm64/boot/dts/rockchip/rk3568-firefly-roc-pc.dts
old mode 100644
new mode 100755
index 7a8d0e550f239..f2650d6eacdad
--- a/arch/arm64/boot/dts/rockchip/rk3568-firefly-roc-pc.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3568-firefly-roc-pc.dts
@@ -7,6 +7,7 @@
 /dts-v1/;
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/pinctrl/rockchip.h>
 #include <dt-bindings/soc/rockchip,vop2.h>
 #include "rk3568.dtsi"
@@ -262,31 +263,7 @@ sdio_pwrseq: sdio-pwrseq {
 		pinctrl-names = "default";
 		pinctrl-0 = <&wifi_enable_h>;
 		reset-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;
-	};
-
-	wireless_wlan: wireless-wlan {
-		compatible = "wlan-platdata";
-		rockchip,grf = <&grf>;
-		wifi_chip_type = "ap6398s";
-		pinctrl-names = "default";
-		pinctrl-0 = <&wifi_host_wake_irq>;
-		WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>;
-		status = "okay";
-	};
-
-	wireless_bluetooth: wireless-bluetooth {
-		compatible = "bluetooth-platdata";
-		clocks = <&rk809 1>;
-		clock-names = "ext_clock";
-		//wifi-bt-power-toggle;
-		uart_rts_gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
-		pinctrl-names = "default", "rts_gpio";
-		pinctrl-0 = <&uart8m0_rtsn>;
-		pinctrl-1 = <&uart8_gpios>;
-		BT,reset_gpio    = <&gpio3 RK_PA0 GPIO_ACTIVE_HIGH>;
-		BT,wake_gpio     = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
-		BT,wake_host_irq = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
-		status = "okay";
+		post-power-on-delay-ms = <100>;
 	};
 
 	flash_led: flash-led {
@@ -773,15 +750,17 @@ wifi_enable_h: wifi-enable-h {
 		};
 	};
 
-	wireless-wlan {
-		wifi_host_wake_irq: wifi-host-wake-irq {
-			rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>;
+	bt {
+		bt_enable_h: bt-enable-h {
+			rockchip,pins = <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
 		};
-	};
 
-	wireless-bluetooth {
-		uart8_gpios: uart8-gpios {
-			rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
+		bt_host_wake_l: bt-host-wake-l {
+			rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_down>;
+		};
+
+		bt_wake_l: bt-wake-l {
+			rockchip,pins = <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
 		};
 	};
 
@@ -904,21 +883,6 @@ &sdmmc2 {
 	status = "okay";
 };
 
-&sdio_pwrseq {
-	status = "okay";
-	reset-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;
-	post-power-on-delay-ms = <100>;
-};
-
-&wireless_wlan {
-	wifi_chip_type = "ap6275s";
-	status = "okay";
-};
-
-&wireless_bluetooth {
-	status = "okay";
-};
-
 &tsadc {
 	rockchip,hw-tshut-mode = <1>;
 	rockchip,hw-tshut-polarity = <0>;
@@ -942,9 +906,23 @@ &uart4 {
 };
 
 &uart8 {
-	status = "okay";
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>;
+	status = "okay";
+	uart-has-rtscts;
+
+	bluetooth {
+		compatible = "brcm,bcm43438-bt";
+		clocks = <&rk809 1>;
+		clock-names = "lpo";
+		device-wakeup-gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
+		host-wakeup-gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
+		shutdown-gpios = <&gpio3 RK_PA0 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
+		vbat-supply = <&vcc3v3_sys>;
+		vddio-supply = <&vcca1v8_pmu>;
+	};
 };
 
 &usb_host0_ehci {
-- 
2.33.8



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [d-kernel] [PATCH 0/1] std-def/sisyphus, un-def/sisyphus, un-def/p10: rk3568-firefly-roc-pc
  2023-05-12 14:51 [d-kernel] [PATCH 0/1] std-def/sisyphus, un-def/sisyphus, un-def/p10: rk3568-firefly-roc-pc antohami
  2023-05-12 14:51 ` [d-kernel] [PATCH 1/1] rk3568-firefly-roc-pc.dts: fix bluetooth support antohami
@ 2023-05-16 14:58 ` Vitaly Chikunov
  1 sibling, 0 replies; 3+ messages in thread
From: Vitaly Chikunov @ 2023-05-16 14:58 UTC (permalink / raw)
  To: ALT Linux kernel packages development

On Fri, May 12, 2023 at 09:51:41PM +0700, antohami@basealt.ru wrote:
> From: Anton Midyukov <antohami@altlinux.org>
> 
> Anton Midyukov (1):
>   rk3568-firefly-roc-pc.dts: fix bluetooth support


Applied, thanks.

> 
>  .../dts/rockchip/rk3568-firefly-roc-pc.dts    | 74 +++++++------------
>  1 file changed, 26 insertions(+), 48 deletions(-)
>  mode change 100644 => 100755 arch/arm64/boot/dts/rockchip/rk3568-firefly-roc-pc.dts
> 
> -- 
> 2.33.8
> 
> _______________________________________________
> devel-kernel mailing list
> devel-kernel@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel-kernel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-16 14:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-12 14:51 [d-kernel] [PATCH 0/1] std-def/sisyphus, un-def/sisyphus, un-def/p10: rk3568-firefly-roc-pc antohami
2023-05-12 14:51 ` [d-kernel] [PATCH 1/1] rk3568-firefly-roc-pc.dts: fix bluetooth support antohami
2023-05-16 14:58 ` [d-kernel] [PATCH 0/1] std-def/sisyphus, un-def/sisyphus, un-def/p10: rk3568-firefly-roc-pc Vitaly Chikunov

ALT Linux kernel packages development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
		devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
	public-inbox-index devel-kernel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git