Differential D34748 Diff 104496 sys/contrib/device-tree/src/riscv/allwinner/sun20i-d1-lichee-rv-dock.dts
Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/device-tree/src/riscv/allwinner/sun20i-d1-lichee-rv-dock.dts
- This file was added.
// SPDX-License-Identifier: (GPL-2.0+ or MIT) | |||||
// Copyright (C) 2022 Jisheng Zhang <jszhang@kernel.org> | |||||
// Copyright (C) 2022 Samuel Holland <samuel@sholland.org> | |||||
#include "sun20i-d1-lichee-rv.dts" | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | |||||
model = "Sipeed Lichee RV Dock"; | |||||
compatible = "sipeed,lichee-rv-dock", "sipeed,lichee-rv", | |||||
"allwinner,sun20i-d1"; | |||||
aliases { | |||||
mmc1 = &mmc1; | |||||
}; | |||||
chosen { | |||||
stdout-path = "serial0:115200n8"; | |||||
}; | |||||
dmic-card { | |||||
compatible = "simple-audio-card"; | |||||
#address-cells = <1>; | |||||
#size-cells = <0>; | |||||
simple-audio-card,dai-link@0 { | |||||
format = "pdm"; | |||||
frame-master = <&link0_cpu>; | |||||
bitclock-master = <&link0_cpu>; | |||||
link0_cpu: cpu { | |||||
sound-dai = <&dmic>; | |||||
}; | |||||
link0_codec: codec { | |||||
sound-dai = <&dmic_codec>; | |||||
}; | |||||
}; | |||||
}; | |||||
dmic_codec: dmic-codec { | |||||
compatible = "dmic-codec"; | |||||
num-channels = <2>; | |||||
#sound-dai-cells = <0>; | |||||
}; | |||||
hdmi_connector: connector { | |||||
compatible = "hdmi-connector"; | |||||
type = "a"; | |||||
port { | |||||
hdmi_con_in: endpoint { | |||||
// FIXME: remote-endpoint = <&hdmi_out_con>; | |||||
}; | |||||
}; | |||||
}; | |||||
wifi_pwrseq: wifi-pwrseq { | |||||
compatible = "mmc-pwrseq-simple"; | |||||
reset-gpios = <&gpio 6 12 GPIO_ACTIVE_LOW>; /* PG12 */ | |||||
}; | |||||
}; | |||||
&codec { | |||||
allwinner,routing = "Internal Speaker", "HPOUTL", | |||||
"Internal Speaker", "HPOUTR", | |||||
"LINEINL", "HPOUTL", | |||||
"LINEINR", "HPOUTR", | |||||
"MICIN3", "Internal Microphone", | |||||
"Internal Microphone", "HBIAS"; | |||||
allwinner,widgets = "Microphone", "Internal Microphone", | |||||
"Speaker", "Internal Speaker"; | |||||
status = "okay"; | |||||
}; | |||||
&dmic { | |||||
pinctrl-0 = <&dmic_pb11_d0_pin>, <&dmic_pe17_clk_pin>; | |||||
pinctrl-names = "default"; | |||||
status = "okay"; | |||||
}; | |||||
&ehci1 { | |||||
status = "okay"; | |||||
}; | |||||
&gpio { | |||||
dmic_pb11_d0_pin: dmic-pb11-d0-pin { | |||||
pins = "PB11"; | |||||
function = "dmic"; | |||||
}; | |||||
dmic_pe17_clk_pin: dmic-pe17-clk-pin { | |||||
pins = "PE17"; | |||||
function = "dmic"; | |||||
}; | |||||
ledc_pc0_pin: ledc-pc0-pin { | |||||
pins = "PC0"; | |||||
function = "ledc"; | |||||
}; | |||||
}; | |||||
&ledc { | |||||
pinctrl-0 = <&ledc_pc0_pin>; | |||||
pinctrl-names = "default"; | |||||
status = "okay"; | |||||
led@0 { | |||||
reg = <0x0>; | |||||
color = <LED_COLOR_ID_RGB>; | |||||
function = LED_FUNCTION_STATUS; | |||||
}; | |||||
}; | |||||
&lradc { | |||||
wakeup-source; | |||||
status = "okay"; | |||||
button-220 { | |||||
label = "OK"; | |||||
linux,code = <KEY_OK>; | |||||
channel = <0>; | |||||
voltage = <220000>; | |||||
}; | |||||
}; | |||||
&mmc1 { | |||||
bus-width = <4>; | |||||
mmc-pwrseq = <&wifi_pwrseq>; | |||||
non-removable; | |||||
vmmc-supply = <®_vcc_3v3>; | |||||
vqmmc-supply = <®_vcc_3v3>; | |||||
pinctrl-0 = <&mmc1_pins>; | |||||
pinctrl-names = "default"; | |||||
status = "okay"; | |||||
}; | |||||
&ohci1 { | |||||
status = "okay"; | |||||
}; | |||||
&uart1 { | |||||
pinctrl-0 = <&uart1_pg6_pins>, <&uart1_pg8_rts_cts_pins>; | |||||
pinctrl-names = "default"; | |||||
status = "okay"; | |||||
}; | |||||
&usbphy { | |||||
usb1_vbus-supply = <®_vcc>; | |||||
}; |