xref: /linux/scripts/dtc/include-prefixes/riscv/allwinner/sun20i-d1-lichee-rv-dock.dts (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1*062b9b66SKrzysztof Kozlowski// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
27705ce5aSSamuel Holland// Copyright (C) 2022 Jisheng Zhang <jszhang@kernel.org>
37705ce5aSSamuel Holland// Copyright (C) 2022 Samuel Holland <samuel@sholland.org>
47705ce5aSSamuel Holland
57705ce5aSSamuel Holland#include <dt-bindings/input/input.h>
67705ce5aSSamuel Holland
77705ce5aSSamuel Holland#include "sun20i-d1-lichee-rv.dts"
87705ce5aSSamuel Holland
97705ce5aSSamuel Holland/ {
107705ce5aSSamuel Holland	model = "Sipeed Lichee RV Dock";
117705ce5aSSamuel Holland	compatible = "sipeed,lichee-rv-dock", "sipeed,lichee-rv",
127705ce5aSSamuel Holland		     "allwinner,sun20i-d1";
137705ce5aSSamuel Holland
147705ce5aSSamuel Holland	aliases {
157705ce5aSSamuel Holland		ethernet1 = &rtl8723ds;
167705ce5aSSamuel Holland	};
177705ce5aSSamuel Holland
187705ce5aSSamuel Holland	dmic_codec: dmic-codec {
197705ce5aSSamuel Holland		compatible = "dmic-codec";
207705ce5aSSamuel Holland		num-channels = <2>;
217705ce5aSSamuel Holland		#sound-dai-cells = <0>;
227705ce5aSSamuel Holland	};
237705ce5aSSamuel Holland
247705ce5aSSamuel Holland	dmic-sound {
257705ce5aSSamuel Holland		compatible = "simple-audio-card";
267705ce5aSSamuel Holland		simple-audio-card,name = "DMIC";
277705ce5aSSamuel Holland		#address-cells = <1>;
287705ce5aSSamuel Holland		#size-cells = <0>;
297705ce5aSSamuel Holland
307705ce5aSSamuel Holland		simple-audio-card,dai-link@0 {
317705ce5aSSamuel Holland			reg = <0>;
327705ce5aSSamuel Holland			format = "pdm";
337705ce5aSSamuel Holland			frame-master = <&link0_cpu>;
347705ce5aSSamuel Holland			bitclock-master = <&link0_cpu>;
357705ce5aSSamuel Holland
367705ce5aSSamuel Holland			link0_cpu: cpu {
377705ce5aSSamuel Holland				sound-dai = <&dmic>;
387705ce5aSSamuel Holland			};
397705ce5aSSamuel Holland
407705ce5aSSamuel Holland			link0_codec: codec {
417705ce5aSSamuel Holland				sound-dai = <&dmic_codec>;
427705ce5aSSamuel Holland			};
437705ce5aSSamuel Holland		};
447705ce5aSSamuel Holland	};
457705ce5aSSamuel Holland
467705ce5aSSamuel Holland	wifi_pwrseq: wifi-pwrseq {
477705ce5aSSamuel Holland		compatible = "mmc-pwrseq-simple";
487705ce5aSSamuel Holland		reset-gpios = <&pio 6 12 GPIO_ACTIVE_LOW>; /* PG12 */
497705ce5aSSamuel Holland	};
507705ce5aSSamuel Holland};
517705ce5aSSamuel Holland
527705ce5aSSamuel Holland&dmic {
537705ce5aSSamuel Holland	pinctrl-0 = <&dmic_pb11_d0_pin>, <&dmic_pe17_clk_pin>;
547705ce5aSSamuel Holland	pinctrl-names = "default";
557705ce5aSSamuel Holland	status = "okay";
567705ce5aSSamuel Holland};
577705ce5aSSamuel Holland
587705ce5aSSamuel Holland&ehci1 {
597705ce5aSSamuel Holland	status = "okay";
607705ce5aSSamuel Holland};
617705ce5aSSamuel Holland
627705ce5aSSamuel Holland&mmc1 {
637705ce5aSSamuel Holland	bus-width = <4>;
647705ce5aSSamuel Holland	mmc-pwrseq = <&wifi_pwrseq>;
657705ce5aSSamuel Holland	non-removable;
667705ce5aSSamuel Holland	vmmc-supply = <&reg_vcc_3v3>;
677705ce5aSSamuel Holland	vqmmc-supply = <&reg_vcc_3v3>;
687705ce5aSSamuel Holland	pinctrl-0 = <&mmc1_pins>;
697705ce5aSSamuel Holland	pinctrl-names = "default";
707705ce5aSSamuel Holland	status = "okay";
717705ce5aSSamuel Holland
727705ce5aSSamuel Holland	rtl8723ds: wifi@1 {
737705ce5aSSamuel Holland		reg = <1>;
747705ce5aSSamuel Holland	};
757705ce5aSSamuel Holland};
767705ce5aSSamuel Holland
777705ce5aSSamuel Holland&ohci1 {
787705ce5aSSamuel Holland	status = "okay";
797705ce5aSSamuel Holland};
807705ce5aSSamuel Holland
817705ce5aSSamuel Holland&uart1 {
827705ce5aSSamuel Holland	uart-has-rtscts;
837705ce5aSSamuel Holland	pinctrl-0 = <&uart1_pg6_pins>, <&uart1_pg8_rts_cts_pins>;
847705ce5aSSamuel Holland	pinctrl-names = "default";
857705ce5aSSamuel Holland	status = "okay";
867705ce5aSSamuel Holland
877705ce5aSSamuel Holland	bluetooth {
887705ce5aSSamuel Holland		compatible = "realtek,rtl8723ds-bt";
897705ce5aSSamuel Holland		device-wake-gpios = <&pio 6 15 GPIO_ACTIVE_HIGH>; /* PG16 */
907705ce5aSSamuel Holland		enable-gpios = <&pio 6 18 GPIO_ACTIVE_HIGH>; /* PG18 */
917705ce5aSSamuel Holland		host-wake-gpios = <&pio 6 17 GPIO_ACTIVE_HIGH>; /* PG17 */
927705ce5aSSamuel Holland	};
937705ce5aSSamuel Holland};
947705ce5aSSamuel Holland
957705ce5aSSamuel Holland&usbphy {
967705ce5aSSamuel Holland	usb1_vbus-supply = <&reg_vcc>;
977705ce5aSSamuel Holland};
98