Debian Codegraph @

scripts/dtc/include-prefixes/riscv/allwinner/sun20i-d1-lichee-rv-dock.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2022 Jisheng Zhang <[email protected]>
3 // Copyright (C) 2022 Samuel Holland <[email protected]>
4
5 #include <dt-bindings/input/input.h>
6
7 #include "sun20i-d1-lichee-rv.dts"
8
9 / {
10 model = "Sipeed Lichee RV Dock";
11 compatible = "sipeed,lichee-rv-dock", "sipeed,lichee-rv",
12 "allwinner,sun20i-d1";
13
14 aliases {
15 ethernet1 = &rtl8723ds;
16 };
17
18 dmic_codec: dmic-codec {
19 compatible = "dmic-codec";
20 num-channels = <2>;
21 #sound-dai-cells = <0>;
22 };
23
24 dmic-sound {
25 compatible = "simple-audio-card";
26 simple-audio-card,name = "DMIC";
27 #address-cells = <1>;
28 #size-cells = <0>;
29
30 simple-audio-card,dai-link@0 {
31 reg = <0>;
32 format = "pdm";
33 frame-master = <&link0_cpu>;
34 bitclock-master = <&link0_cpu>;
35
36 link0_cpu: cpu {
37 sound-dai = <&dmic>;
38 };
39
40 link0_codec: codec {
41 sound-dai = <&dmic_codec>;
42 };
43 };
44 };
45
46 wifi_pwrseq: wifi-pwrseq {
47 compatible = "mmc-pwrseq-simple";
48 reset-gpios = <&pio 6 12 GPIO_ACTIVE_LOW>; /* PG12 */
49 };
50 };
51
52 &dmic {
53 pinctrl-0 = <&dmic_pb11_d0_pin>, <&dmic_pe17_clk_pin>;
54 pinctrl-names = "default";
55 status = "okay";
56 };
57
58 &ehci1 {
59 status = "okay";
60 };
61
62 &ledc {
63 pinctrl-0 = <&ledc_pc0_pin>;
64 pinctrl-names = "default";
65 status = "okay";
66
67 multi-led@0 {
68 reg = <0x0>;
69 color = <LED_COLOR_ID_RGB>;
70 function = LED_FUNCTION_STATUS;
71 };
72 };
73
74 &mmc1 {
75 bus-width = <4>;
76 mmc-pwrseq = <&wifi_pwrseq>;
77 non-removable;
78 vmmc-supply = <&reg_vcc_3v3>;
79 vqmmc-supply = <&reg_vcc_3v3>;
80 pinctrl-0 = <&mmc1_pins>;
81 pinctrl-names = "default";
82 status = "okay";
83
84 rtl8723ds: wifi@1 {
85 reg = <1>;
86 };
87 };
88
89 &ohci1 {
90 status = "okay";
91 };
92
93 &uart1 {
94 uart-has-rtscts;
95 pinctrl-0 = <&uart1_pg6_pins>, <&uart1_pg8_rts_cts_pins>;
96 pinctrl-names = "default";
97 status = "okay";
98
99 bluetooth {
100 compatible = "realtek,rtl8723ds-bt";
101 device-wake-gpios = <&pio 6 15 GPIO_ACTIVE_HIGH>; /* PG16 */
102 enable-gpios = <&pio 6 18 GPIO_ACTIVE_HIGH>; /* PG18 */
103 host-wake-gpios = <&pio 6 17 GPIO_ACTIVE_HIGH>; /* PG17 */
104 };
105 };
106
107 &usbphy {
108 usb1_vbus-supply = <&reg_vcc>;
109 };