1*84943d6fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2cb7aa33aSEmmanuel Vadot// Copyright (C) 2022 Jisheng Zhang <jszhang@kernel.org> 3cb7aa33aSEmmanuel Vadot// Copyright (C) 2022 Samuel Holland <samuel@sholland.org> 4cb7aa33aSEmmanuel Vadot 5cb7aa33aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 6cb7aa33aSEmmanuel Vadot#include <dt-bindings/leds/common.h> 7cb7aa33aSEmmanuel Vadot 8cb7aa33aSEmmanuel Vadot/dts-v1/; 9cb7aa33aSEmmanuel Vadot 10cb7aa33aSEmmanuel Vadot#include "sun20i-d1.dtsi" 11cb7aa33aSEmmanuel Vadot#include "sun20i-common-regulators.dtsi" 12cb7aa33aSEmmanuel Vadot 13cb7aa33aSEmmanuel Vadot/ { 14cb7aa33aSEmmanuel Vadot model = "Sipeed Lichee RV"; 15cb7aa33aSEmmanuel Vadot compatible = "sipeed,lichee-rv", "allwinner,sun20i-d1"; 16cb7aa33aSEmmanuel Vadot 17cb7aa33aSEmmanuel Vadot aliases { 18cb7aa33aSEmmanuel Vadot serial0 = &uart0; 19cb7aa33aSEmmanuel Vadot }; 20cb7aa33aSEmmanuel Vadot 21cb7aa33aSEmmanuel Vadot chosen { 22cb7aa33aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 23cb7aa33aSEmmanuel Vadot }; 24cb7aa33aSEmmanuel Vadot 25cb7aa33aSEmmanuel Vadot leds { 26cb7aa33aSEmmanuel Vadot compatible = "gpio-leds"; 27cb7aa33aSEmmanuel Vadot 28cb7aa33aSEmmanuel Vadot led-0 { 29cb7aa33aSEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 30cb7aa33aSEmmanuel Vadot function = LED_FUNCTION_STATUS; 31cb7aa33aSEmmanuel Vadot gpios = <&pio 2 1 GPIO_ACTIVE_HIGH>; /* PC1 */ 32cb7aa33aSEmmanuel Vadot }; 33cb7aa33aSEmmanuel Vadot }; 34cb7aa33aSEmmanuel Vadot 35cb7aa33aSEmmanuel Vadot reg_vdd_cpu: vdd-cpu { 36cb7aa33aSEmmanuel Vadot compatible = "regulator-fixed"; 37cb7aa33aSEmmanuel Vadot regulator-name = "vdd-cpu"; 38cb7aa33aSEmmanuel Vadot regulator-min-microvolt = <900000>; 39cb7aa33aSEmmanuel Vadot regulator-max-microvolt = <900000>; 40cb7aa33aSEmmanuel Vadot vin-supply = <®_vcc>; 41cb7aa33aSEmmanuel Vadot }; 42cb7aa33aSEmmanuel Vadot}; 43cb7aa33aSEmmanuel Vadot 44cb7aa33aSEmmanuel Vadot&cpu0 { 45cb7aa33aSEmmanuel Vadot cpu-supply = <®_vdd_cpu>; 46cb7aa33aSEmmanuel Vadot}; 47cb7aa33aSEmmanuel Vadot 48cb7aa33aSEmmanuel Vadot&dcxo { 49cb7aa33aSEmmanuel Vadot clock-frequency = <24000000>; 50cb7aa33aSEmmanuel Vadot}; 51cb7aa33aSEmmanuel Vadot 52cb7aa33aSEmmanuel Vadot&ehci0 { 53cb7aa33aSEmmanuel Vadot status = "okay"; 54cb7aa33aSEmmanuel Vadot}; 55cb7aa33aSEmmanuel Vadot 56cb7aa33aSEmmanuel Vadot&mmc0 { 57cb7aa33aSEmmanuel Vadot broken-cd; 58cb7aa33aSEmmanuel Vadot bus-width = <4>; 59cb7aa33aSEmmanuel Vadot disable-wp; 60cb7aa33aSEmmanuel Vadot vmmc-supply = <®_vcc_3v3>; 61cb7aa33aSEmmanuel Vadot vqmmc-supply = <®_vcc_3v3>; 62cb7aa33aSEmmanuel Vadot pinctrl-0 = <&mmc0_pins>; 63cb7aa33aSEmmanuel Vadot pinctrl-names = "default"; 64cb7aa33aSEmmanuel Vadot status = "okay"; 65cb7aa33aSEmmanuel Vadot}; 66cb7aa33aSEmmanuel Vadot 67cb7aa33aSEmmanuel Vadot&ohci0 { 68cb7aa33aSEmmanuel Vadot status = "okay"; 69cb7aa33aSEmmanuel Vadot}; 70cb7aa33aSEmmanuel Vadot 71cb7aa33aSEmmanuel Vadot&uart0 { 72cb7aa33aSEmmanuel Vadot pinctrl-0 = <&uart0_pb8_pins>; 73cb7aa33aSEmmanuel Vadot pinctrl-names = "default"; 74cb7aa33aSEmmanuel Vadot status = "okay"; 75cb7aa33aSEmmanuel Vadot}; 76cb7aa33aSEmmanuel Vadot 77cb7aa33aSEmmanuel Vadot&usb_otg { 78cb7aa33aSEmmanuel Vadot dr_mode = "otg"; 79cb7aa33aSEmmanuel Vadot status = "okay"; 80cb7aa33aSEmmanuel Vadot}; 81cb7aa33aSEmmanuel Vadot 82cb7aa33aSEmmanuel Vadot&usbphy { 83cb7aa33aSEmmanuel Vadot usb0_id_det-gpios = <&pio 3 21 GPIO_ACTIVE_HIGH>; /* PD21 */ 84cb7aa33aSEmmanuel Vadot usb0_vbus_det-gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */ 85cb7aa33aSEmmanuel Vadot usb0_vbus-supply = <®_vcc>; 86cb7aa33aSEmmanuel Vadot status = "okay"; 87cb7aa33aSEmmanuel Vadot}; 88