xref: /linux/arch/riscv/boot/dts/allwinner/sun20i-d1-lichee-rv.dts (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
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>
4
5#include <dt-bindings/gpio/gpio.h>
6#include <dt-bindings/leds/common.h>
7
8/dts-v1/;
9
10#include "sun20i-d1.dtsi"
11#include "sun20i-common-regulators.dtsi"
12
13/ {
14	model = "Sipeed Lichee RV";
15	compatible = "sipeed,lichee-rv", "allwinner,sun20i-d1";
16
17	aliases {
18		serial0 = &uart0;
19	};
20
21	chosen {
22		stdout-path = "serial0:115200n8";
23	};
24
25	leds {
26		compatible = "gpio-leds";
27
28		led-0 {
29			color = <LED_COLOR_ID_GREEN>;
30			function = LED_FUNCTION_STATUS;
31			gpios = <&pio 2 1 GPIO_ACTIVE_HIGH>; /* PC1 */
32		};
33	};
34
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 = <&reg_vcc>;
41	};
42};
43
44&cpu0 {
45	cpu-supply = <&reg_vdd_cpu>;
46};
47
48&dcxo {
49	clock-frequency = <24000000>;
50};
51
52&ehci0 {
53	status = "okay";
54};
55
56&mmc0 {
57	broken-cd;
58	bus-width = <4>;
59	disable-wp;
60	vmmc-supply = <&reg_vcc_3v3>;
61	vqmmc-supply = <&reg_vcc_3v3>;
62	pinctrl-0 = <&mmc0_pins>;
63	pinctrl-names = "default";
64	status = "okay";
65};
66
67&ohci0 {
68	status = "okay";
69};
70
71&uart0 {
72	pinctrl-0 = <&uart0_pb8_pins>;
73	pinctrl-names = "default";
74	status = "okay";
75};
76
77&usb_otg {
78	dr_mode = "otg";
79	status = "okay";
80};
81
82&usbphy {
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 = <&reg_vcc>;
86	status = "okay";
87};
88