xref: /linux/scripts/dtc/include-prefixes/riscv/allwinner/sun20i-d1-lichee-rv.dts (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1*062b9b66SKrzysztof Kozlowski// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
27705ce5aSSamuel Holland// Copyright (C) 2022 Jisheng Zhang <jszhang@kernel.org>
37705ce5aSSamuel Holland// Copyright (C) 2022 Samuel Holland <samuel@sholland.org>
47705ce5aSSamuel Holland
57705ce5aSSamuel Holland#include <dt-bindings/gpio/gpio.h>
67705ce5aSSamuel Holland#include <dt-bindings/leds/common.h>
77705ce5aSSamuel Holland
87705ce5aSSamuel Holland/dts-v1/;
97705ce5aSSamuel Holland
107705ce5aSSamuel Holland#include "sun20i-d1.dtsi"
117705ce5aSSamuel Holland#include "sun20i-common-regulators.dtsi"
127705ce5aSSamuel Holland
137705ce5aSSamuel Holland/ {
147705ce5aSSamuel Holland	model = "Sipeed Lichee RV";
157705ce5aSSamuel Holland	compatible = "sipeed,lichee-rv", "allwinner,sun20i-d1";
167705ce5aSSamuel Holland
177705ce5aSSamuel Holland	aliases {
187705ce5aSSamuel Holland		serial0 = &uart0;
197705ce5aSSamuel Holland	};
207705ce5aSSamuel Holland
217705ce5aSSamuel Holland	chosen {
227705ce5aSSamuel Holland		stdout-path = "serial0:115200n8";
237705ce5aSSamuel Holland	};
247705ce5aSSamuel Holland
257705ce5aSSamuel Holland	leds {
267705ce5aSSamuel Holland		compatible = "gpio-leds";
277705ce5aSSamuel Holland
287705ce5aSSamuel Holland		led-0 {
297705ce5aSSamuel Holland			color = <LED_COLOR_ID_GREEN>;
307705ce5aSSamuel Holland			function = LED_FUNCTION_STATUS;
317705ce5aSSamuel Holland			gpios = <&pio 2 1 GPIO_ACTIVE_HIGH>; /* PC1 */
327705ce5aSSamuel Holland		};
337705ce5aSSamuel Holland	};
347705ce5aSSamuel Holland
357705ce5aSSamuel Holland	reg_vdd_cpu: vdd-cpu {
367705ce5aSSamuel Holland		compatible = "regulator-fixed";
377705ce5aSSamuel Holland		regulator-name = "vdd-cpu";
387705ce5aSSamuel Holland		regulator-min-microvolt = <900000>;
397705ce5aSSamuel Holland		regulator-max-microvolt = <900000>;
407705ce5aSSamuel Holland		vin-supply = <&reg_vcc>;
417705ce5aSSamuel Holland	};
427705ce5aSSamuel Holland};
437705ce5aSSamuel Holland
447705ce5aSSamuel Holland&cpu0 {
457705ce5aSSamuel Holland	cpu-supply = <&reg_vdd_cpu>;
467705ce5aSSamuel Holland};
477705ce5aSSamuel Holland
487705ce5aSSamuel Holland&dcxo {
497705ce5aSSamuel Holland	clock-frequency = <24000000>;
507705ce5aSSamuel Holland};
517705ce5aSSamuel Holland
527705ce5aSSamuel Holland&ehci0 {
537705ce5aSSamuel Holland	status = "okay";
547705ce5aSSamuel Holland};
557705ce5aSSamuel Holland
567705ce5aSSamuel Holland&mmc0 {
577705ce5aSSamuel Holland	broken-cd;
587705ce5aSSamuel Holland	bus-width = <4>;
597705ce5aSSamuel Holland	disable-wp;
607705ce5aSSamuel Holland	vmmc-supply = <&reg_vcc_3v3>;
617705ce5aSSamuel Holland	vqmmc-supply = <&reg_vcc_3v3>;
627705ce5aSSamuel Holland	pinctrl-0 = <&mmc0_pins>;
637705ce5aSSamuel Holland	pinctrl-names = "default";
647705ce5aSSamuel Holland	status = "okay";
657705ce5aSSamuel Holland};
667705ce5aSSamuel Holland
677705ce5aSSamuel Holland&ohci0 {
687705ce5aSSamuel Holland	status = "okay";
697705ce5aSSamuel Holland};
707705ce5aSSamuel Holland
717705ce5aSSamuel Holland&uart0 {
727705ce5aSSamuel Holland	pinctrl-0 = <&uart0_pb8_pins>;
737705ce5aSSamuel Holland	pinctrl-names = "default";
747705ce5aSSamuel Holland	status = "okay";
757705ce5aSSamuel Holland};
767705ce5aSSamuel Holland
777705ce5aSSamuel Holland&usb_otg {
787705ce5aSSamuel Holland	dr_mode = "otg";
797705ce5aSSamuel Holland	status = "okay";
807705ce5aSSamuel Holland};
817705ce5aSSamuel Holland
827705ce5aSSamuel Holland&usbphy {
837705ce5aSSamuel Holland	usb0_id_det-gpios = <&pio 3 21 GPIO_ACTIVE_HIGH>; /* PD21 */
847705ce5aSSamuel Holland	usb0_vbus_det-gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */
857705ce5aSSamuel Holland	usb0_vbus-supply = <&reg_vcc>;
867705ce5aSSamuel Holland	status = "okay";
877705ce5aSSamuel Holland};
88