Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/device-tree/src/riscv/allwinner/sun20i-d1-lichee-rv.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> | |||||
/dts-v1/; | |||||
#include "sun20i-d1.dtsi" | |||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/leds/common.h> | |||||
/ { | |||||
model = "Sipeed Lichee RV"; | |||||
compatible = "sipeed,lichee-rv", "allwinner,sun20i-d1"; | |||||
aliases { | |||||
mmc0 = &mmc0; | |||||
serial0 = &uart0; | |||||
}; | |||||
chosen { | |||||
stdout-path = "serial0:115200n8"; | |||||
}; | |||||
leds { | |||||
compatible = "gpio-leds"; | |||||
led-0 { | |||||
function = LED_FUNCTION_STATUS; | |||||
gpios = <&gpio 2 1 GPIO_ACTIVE_HIGH>; /* PC1 */ | |||||
}; | |||||
}; | |||||
reg_vcc: vcc { | |||||
compatible = "regulator-fixed"; | |||||
regulator-name = "vcc"; | |||||
regulator-min-microvolt = <5000000>; | |||||
regulator-max-microvolt = <5000000>; | |||||
}; | |||||
reg_vcc_3v3: vcc-3v3 { | |||||
compatible = "regulator-fixed"; | |||||
regulator-name = "vcc-3v3"; | |||||
regulator-min-microvolt = <3300000>; | |||||
regulator-max-microvolt = <3300000>; | |||||
vin-supply = <®_vcc>; | |||||
}; | |||||
reg_vdd_cpu: vdd-cpu { | |||||
compatible = "regulator-fixed"; | |||||
regulator-name = "vdd-cpu"; | |||||
regulator-min-microvolt = <900000>; | |||||
regulator-max-microvolt = <900000>; | |||||
vin-supply = <®_vcc>; | |||||
}; | |||||
}; | |||||
&codec { | |||||
avcc-supply = <®_aldo>; | |||||
hpvcc-supply = <®_hpldo>; | |||||
vdd33-supply = <®_vcc_3v3>; | |||||
}; | |||||
&cpu0 { | |||||
cpu-supply = <®_vdd_cpu>; | |||||
}; | |||||
&ehci0 { | |||||
status = "okay"; | |||||
}; | |||||
&gpio { | |||||
vcc-pb-supply = <®_vcc_3v3>; | |||||
vcc-pc-supply = <®_vcc_3v3>; | |||||
vcc-pd-supply = <®_vcc_3v3>; | |||||
vcc-pe-supply = <®_vcc_3v3>; | |||||
vcc-pf-supply = <®_vcc_3v3>; | |||||
vcc-pg-supply = <®_vcc_3v3>; | |||||
}; | |||||
&lradc { | |||||
vref-supply = <®_aldo>; | |||||
}; | |||||
&mmc0 { | |||||
broken-cd; | |||||
bus-width = <4>; | |||||
disable-wp; | |||||
vmmc-supply = <®_vcc_3v3>; | |||||
vqmmc-supply = <®_vcc_3v3>; | |||||
pinctrl-0 = <&mmc0_pins>; | |||||
pinctrl-names = "default"; | |||||
status = "okay"; | |||||
}; | |||||
&ohci0 { | |||||
status = "okay"; | |||||
}; | |||||
®_aldo { | |||||
regulator-min-microvolt = <1800000>; | |||||
regulator-max-microvolt = <1800000>; | |||||
vdd33-supply = <®_vcc_3v3>; | |||||
}; | |||||
®_hpldo { | |||||
regulator-min-microvolt = <1800000>; | |||||
regulator-max-microvolt = <1800000>; | |||||
hpldoin-supply = <®_vcc_3v3>; | |||||
}; | |||||
®_ldoa { | |||||
regulator-always-on; | |||||
regulator-min-microvolt = <1800000>; | |||||
regulator-max-microvolt = <1800000>; | |||||
ldo-in-supply = <®_vcc_3v3>; | |||||
}; | |||||
&spi0 { | |||||
pinctrl-0 = <&spi0_pins>; | |||||
pinctrl-names = "default"; | |||||
status = "okay"; | |||||
}; | |||||
&ths { | |||||
vref-supply = <®_aldo>; | |||||
}; | |||||
&uart0 { | |||||
pinctrl-0 = <&uart0_pb8_pins>; | |||||
pinctrl-names = "default"; | |||||
status = "okay"; | |||||
}; | |||||
&usb_otg { | |||||
dr_mode = "otg"; | |||||
status = "okay"; | |||||
}; | |||||
&usbphy { | |||||
usb0_vbus-supply = <®_vcc>; | |||||
usb0_vbus_det-gpios = <&gpio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */ | |||||
status = "okay"; | |||||
}; |