xref: /linux/arch/riscv/boot/dts/allwinner/sun20i-d1-lichee-rv-86-panel.dtsi (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1*062b9b66SKrzysztof Kozlowski// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
27705ce5aSSamuel Holland// Copyright (C) 2022 Samuel Holland <samuel@sholland.org>
37705ce5aSSamuel Holland
47705ce5aSSamuel Holland#include "sun20i-d1-lichee-rv.dts"
57705ce5aSSamuel Holland
67705ce5aSSamuel Holland/ {
77705ce5aSSamuel Holland	aliases {
87705ce5aSSamuel Holland		ethernet0 = &emac;
97705ce5aSSamuel Holland		ethernet1 = &xr829;
107705ce5aSSamuel Holland	};
117705ce5aSSamuel Holland
127705ce5aSSamuel Holland	dmic_codec: dmic-codec {
137705ce5aSSamuel Holland		compatible = "dmic-codec";
147705ce5aSSamuel Holland		num-channels = <2>;
157705ce5aSSamuel Holland		#sound-dai-cells = <0>;
167705ce5aSSamuel Holland	};
177705ce5aSSamuel Holland
187705ce5aSSamuel Holland	dmic-sound {
197705ce5aSSamuel Holland		compatible = "simple-audio-card";
207705ce5aSSamuel Holland		simple-audio-card,name = "DMIC";
217705ce5aSSamuel Holland		#address-cells = <1>;
227705ce5aSSamuel Holland		#size-cells = <0>;
237705ce5aSSamuel Holland
247705ce5aSSamuel Holland		simple-audio-card,dai-link@0 {
257705ce5aSSamuel Holland			reg = <0>;
267705ce5aSSamuel Holland			format = "pdm";
277705ce5aSSamuel Holland			frame-master = <&link0_cpu>;
287705ce5aSSamuel Holland			bitclock-master = <&link0_cpu>;
297705ce5aSSamuel Holland
307705ce5aSSamuel Holland			link0_cpu: cpu {
317705ce5aSSamuel Holland				sound-dai = <&dmic>;
327705ce5aSSamuel Holland			};
337705ce5aSSamuel Holland
347705ce5aSSamuel Holland			link0_codec: codec {
357705ce5aSSamuel Holland				sound-dai = <&dmic_codec>;
367705ce5aSSamuel Holland			};
377705ce5aSSamuel Holland		};
387705ce5aSSamuel Holland	};
397705ce5aSSamuel Holland
407705ce5aSSamuel Holland	/* PC1 is repurposed as BT_WAKE_AP */
417705ce5aSSamuel Holland	/delete-node/ leds;
427705ce5aSSamuel Holland
437705ce5aSSamuel Holland	wifi_pwrseq: wifi-pwrseq {
447705ce5aSSamuel Holland		compatible = "mmc-pwrseq-simple";
457705ce5aSSamuel Holland		clocks = <&ccu CLK_FANOUT1>;
467705ce5aSSamuel Holland		clock-names = "ext_clock";
477705ce5aSSamuel Holland		reset-gpios = <&pio 6 12 GPIO_ACTIVE_LOW>; /* PG12 */
487705ce5aSSamuel Holland		assigned-clocks = <&ccu CLK_FANOUT1>;
497705ce5aSSamuel Holland		assigned-clock-rates = <32768>;
507705ce5aSSamuel Holland		pinctrl-0 = <&clk_pg11_pin>;
517705ce5aSSamuel Holland		pinctrl-names = "default";
527705ce5aSSamuel Holland	};
537705ce5aSSamuel Holland};
547705ce5aSSamuel Holland
557705ce5aSSamuel Holland&dmic {
567705ce5aSSamuel Holland	pinctrl-0 = <&dmic_pb11_d0_pin>, <&dmic_pe17_clk_pin>;
577705ce5aSSamuel Holland	pinctrl-names = "default";
587705ce5aSSamuel Holland	status = "okay";
597705ce5aSSamuel Holland};
607705ce5aSSamuel Holland
617705ce5aSSamuel Holland&ehci1 {
627705ce5aSSamuel Holland	status = "okay";
637705ce5aSSamuel Holland};
647705ce5aSSamuel Holland
657705ce5aSSamuel Holland&emac {
667705ce5aSSamuel Holland	pinctrl-0 = <&rmii_pe_pins>;
677705ce5aSSamuel Holland	pinctrl-names = "default";
687705ce5aSSamuel Holland	phy-handle = <&ext_rmii_phy>;
697705ce5aSSamuel Holland	phy-mode = "rmii";
707705ce5aSSamuel Holland	phy-supply = <&reg_vcc_3v3>;
717705ce5aSSamuel Holland	status = "okay";
727705ce5aSSamuel Holland};
737705ce5aSSamuel Holland
747705ce5aSSamuel Holland&mdio {
757705ce5aSSamuel Holland	ext_rmii_phy: ethernet-phy@1 {
767705ce5aSSamuel Holland		compatible = "ethernet-phy-ieee802.3-c22";
777705ce5aSSamuel Holland		reg = <1>;
787705ce5aSSamuel Holland		reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */
797705ce5aSSamuel Holland	};
807705ce5aSSamuel Holland};
817705ce5aSSamuel Holland
827705ce5aSSamuel Holland&mmc1 {
837705ce5aSSamuel Holland	bus-width = <4>;
847705ce5aSSamuel Holland	mmc-pwrseq = <&wifi_pwrseq>;
857705ce5aSSamuel Holland	non-removable;
867705ce5aSSamuel Holland	vmmc-supply = <&reg_vcc_3v3>;
877705ce5aSSamuel Holland	vqmmc-supply = <&reg_vcc_3v3>;
887705ce5aSSamuel Holland	pinctrl-0 = <&mmc1_pins>;
897705ce5aSSamuel Holland	pinctrl-names = "default";
907705ce5aSSamuel Holland	status = "okay";
917705ce5aSSamuel Holland
927705ce5aSSamuel Holland	xr829: wifi@1 {
937705ce5aSSamuel Holland		reg = <1>;
947705ce5aSSamuel Holland	};
957705ce5aSSamuel Holland};
967705ce5aSSamuel Holland
977705ce5aSSamuel Holland&ohci1 {
987705ce5aSSamuel Holland	status = "okay";
997705ce5aSSamuel Holland};
1007705ce5aSSamuel Holland
1017705ce5aSSamuel Holland&uart1 {
1027705ce5aSSamuel Holland	uart-has-rtscts;
1037705ce5aSSamuel Holland	pinctrl-0 = <&uart1_pg6_pins>, <&uart1_pg8_rts_cts_pins>;
1047705ce5aSSamuel Holland	pinctrl-names = "default";
1057705ce5aSSamuel Holland	status = "okay";
1067705ce5aSSamuel Holland
1077705ce5aSSamuel Holland	/* XR829 bluetooth is connected here */
1087705ce5aSSamuel Holland};
1097705ce5aSSamuel Holland
1107705ce5aSSamuel Holland&usb_otg {
1117705ce5aSSamuel Holland	status = "disabled";
1127705ce5aSSamuel Holland};
1137705ce5aSSamuel Holland
1147705ce5aSSamuel Holland&usbphy {
1157705ce5aSSamuel Holland	/* PD20 and PD21 are repurposed for the LCD panel */
1167705ce5aSSamuel Holland	/delete-property/ usb0_id_det-gpios;
1177705ce5aSSamuel Holland	/delete-property/ usb0_vbus_det-gpios;
1187705ce5aSSamuel Holland	usb1_vbus-supply = <&reg_vcc>;
1197705ce5aSSamuel Holland};
120