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