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