Debian Codegraph @

scripts/dtc/include-prefixes/arm64/allwinner/sun50i-h700-anbernic-rg35xx-plus.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 /*
3 * Copyright (C) 2024 Ryan Walklin <[email protected]>.
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 };