1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2022 Jisheng Zhang <jszhang@kernel.org>
3 // Copyright (C) 2022 Samuel Holland <samuel@sholland.org>
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/leds/common.h>
10 #include "sun20i-d1.dtsi"
11 #include "sun20i-common-regulators.dtsi"
14 model = "Sipeed Lichee RV";
15 compatible = "sipeed,lichee-rv", "allwinner,sun20i-d1";
22 stdout-path = "serial0:115200n8";
26 compatible = "gpio-leds";
29 color = <LED_COLOR_ID_GREEN>;
30 function = LED_FUNCTION_STATUS;
31 gpios = <&pio 2 1 GPIO_ACTIVE_HIGH>; /* PC1 */
35 reg_vdd_cpu: vdd-cpu {
36 compatible = "regulator-fixed";
37 regulator-name = "vdd-cpu";
38 regulator-min-microvolt = <900000>;
39 regulator-max-microvolt = <900000>;
40 vin-supply = <®_vcc>;
45 cpu-supply = <®_vdd_cpu>;
49 clock-frequency = <24000000>;
60 vmmc-supply = <®_vcc_3v3>;
61 vqmmc-supply = <®_vcc_3v3>;
62 pinctrl-0 = <&mmc0_pins>;
63 pinctrl-names = "default";
72 pinctrl-0 = <&uart0_pb8_pins>;
73 pinctrl-names = "default";
83 usb0_id_det-gpios = <&pio 3 21 GPIO_ACTIVE_HIGH>; /* PD21 */
84 usb0_vbus_det-gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */
85 usb0_vbus-supply = <®_vcc>;