mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
121 lines
3.2 KiB
Diff
121 lines
3.2 KiB
Diff
From 358ccc1d8b242b8c659e5e177caef174624e8cb6 Mon Sep 17 00:00:00 2001
|
|
From: Alexey Charkov <alchark@gmail.com>
|
|
Date: Sat, 14 Jun 2025 22:14:35 +0400
|
|
Subject: arm64: dts: rockchip: add version-independent WiFi/BT nodes on Sige5
|
|
|
|
ArmSoM Sige5 uses a soldered-on WiFi/BT module with WiFi on SDIO and BT
|
|
on UART. However, board v1.1 uses a Realtek based BL-M8852BS2, while
|
|
v1.2 uses a Broadcom based BW3752-50B1. They use the same pins and
|
|
controllers, but require different DT properties to enable.
|
|
|
|
Thankfully, the WiFi part at least works without explicitly listing it in
|
|
the device tree, albeit without OOB interrupt functionality.
|
|
|
|
Add required device tree nodes that do not depend on the board version so
|
|
that at least the WiFi module can appear on the SDIO bus.
|
|
|
|
WiFi OOB interrupt and Bluetooth function support are not enabled here, as
|
|
they require module specific properties.
|
|
|
|
Signed-off-by: Alexey Charkov <alchark@gmail.com>
|
|
Link: https://lore.kernel.org/r/20250614-sige5-updates-v2-3-3bb31b02623c@gmail.com
|
|
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
|
---
|
|
.../boot/dts/rockchip/rk3576-armsom-sige5.dts | 57 ++++++++++++++++++++++
|
|
1 file changed, 57 insertions(+)
|
|
|
|
(limited to 'arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dts')
|
|
|
|
diff --git a/arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dts b/arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dts
|
|
index 34e51cd71eac03..8f6d50febf830e 100644
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dts
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dts
|
|
@@ -205,6 +205,15 @@ vcc_3v3_ufs_s0: regulator-vcc-ufs-s0 {
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&vcc_5v0_sys>;
|
|
};
|
|
+
|
|
+ sdio_pwrseq: sdio-pwrseq {
|
|
+ compatible = "mmc-pwrseq-simple";
|
|
+ clocks = <&hym8563>;
|
|
+ clock-names = "ext_clock";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&wifi_reg_on>;
|
|
+ reset-gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
};
|
|
|
|
&combphy0_ps {
|
|
@@ -736,6 +745,30 @@ pcie_reset: pcie-reset {
|
|
rockchip,pins = <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
+
|
|
+ wireless-bluetooth {
|
|
+ bt_reg_on: bt-reg-on {
|
|
+ rockchip,pins = <1 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
+ };
|
|
+
|
|
+ host_wake_bt: host-wake-bt {
|
|
+ rockchip,pins = <1 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
+ };
|
|
+
|
|
+ bt_wake_host: bt-wake-host {
|
|
+ rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_down>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ wireless-wlan {
|
|
+ wifi_wake_host: wifi-wake-host {
|
|
+ rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
|
|
+ };
|
|
+
|
|
+ wifi_reg_on: wifi-reg-on {
|
|
+ rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
&sai1 {
|
|
@@ -763,6 +796,23 @@ &sdhci {
|
|
status = "okay";
|
|
};
|
|
|
|
+&sdio {
|
|
+ bus-width = <4>;
|
|
+ cap-sdio-irq;
|
|
+ disable-wp;
|
|
+ keep-power-in-suspend;
|
|
+ mmc-pwrseq = <&sdio_pwrseq>;
|
|
+ no-sd;
|
|
+ no-mmc;
|
|
+ non-removable;
|
|
+ sd-uhs-sdr50;
|
|
+ sd-uhs-sdr104;
|
|
+ vmmc-supply = <&vcc_3v3_s3>;
|
|
+ vqmmc-supply = <&vcc_1v8_s3>;
|
|
+ wakeup-source;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&sdmmc {
|
|
bus-width = <4>;
|
|
cap-mmc-highspeed;
|
|
@@ -782,6 +832,13 @@ &uart0 {
|
|
status = "okay";
|
|
};
|
|
|
|
+/* Used by Bluetooth modules, enabled in a version specific overlay */
|
|
+&uart4 {
|
|
+ pinctrl-0 = <&uart4m1_xfer &uart4m1_ctsn &uart4m1_rtsn>;
|
|
+ pinctrl-names = "default";
|
|
+ uart-has-rtscts;
|
|
+};
|
|
+
|
|
&vop {
|
|
status = "okay";
|
|
};
|
|
--
|
|
cgit 1.2.3-korg
|
|
|