Skip to content

Commit 398e5fd

Browse files
tokyovigilantejernejsk
authored andcommitted
arm64: dts: allwinner: h700: Add RG35XX-Plus DTS
The RG35XX-Plus adds a RTL8221CS SDIO Wifi/BT chip to the RG35XX (2024). Enabled in this DTS: - WiFi - Bluetooth - Supporting power sequence and GPIOs Signed-off-by: Ryan Walklin <ryan@testtoast.com> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://lore.kernel.org/r/20240427110225.727472-7-ryan@testtoast.com Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
1 parent 0923a6c commit 398e5fd

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

arch/arm64/boot/dts/allwinner/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero2w.dtb
4949
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb
5050
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-transpeed-8k618-t.dtb
5151
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-2024.dtb
52+
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-plus.dtb
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
/*
3+
* Copyright (C) 2024 Ryan Walklin <ryan@testtoast.com>.
4+
*/
5+
6+
#include "sun50i-h700-anbernic-rg35xx-2024.dts"
7+
8+
/ {
9+
model = "Anbernic RG35XX Plus";
10+
compatible = "anbernic,rg35xx-plus", "allwinner,sun50i-h700";
11+
12+
wifi_pwrseq: pwrseq {
13+
compatible = "mmc-pwrseq-simple";
14+
clocks = <&rtc CLK_OSC32K_FANOUT>;
15+
clock-names = "ext_clock";
16+
pinctrl-0 = <&x32clk_fanout_pin>;
17+
pinctrl-names = "default";
18+
post-power-on-delay-ms = <200>;
19+
reset-gpios = <&pio 6 18 GPIO_ACTIVE_LOW>; /* PG18 */
20+
};
21+
};
22+
23+
/* SDIO WiFi RTL8821CS */
24+
&mmc1 {
25+
vmmc-supply = <&reg_cldo4>;
26+
vqmmc-supply = <&reg_aldo4>;
27+
mmc-pwrseq = <&wifi_pwrseq>;
28+
bus-width = <4>;
29+
non-removable;
30+
status = "okay";
31+
32+
sdio_wifi: wifi@1 {
33+
reg = <1>;
34+
interrupt-parent = <&pio>;
35+
interrupts = <6 15 IRQ_TYPE_LEVEL_LOW>; /* PG15 */
36+
interrupt-names = "host-wake";
37+
};
38+
};
39+
40+
/* Bluetooth RTL8821CS */
41+
&uart1 {
42+
pinctrl-names = "default";
43+
pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
44+
uart-has-rtscts;
45+
status = "okay";
46+
47+
bluetooth {
48+
compatible = "realtek,rtl8821cs-bt", "realtek,rtl8723bs-bt";
49+
device-wake-gpios = <&pio 6 17 GPIO_ACTIVE_HIGH>; /* PG17 */
50+
enable-gpios = <&pio 6 19 GPIO_ACTIVE_HIGH>; /* PG19 */
51+
host-wake-gpios = <&pio 6 16 GPIO_ACTIVE_HIGH>; /* PG16 */
52+
};
53+
};

0 commit comments

Comments
 (0)