xref: /freebsd/sys/contrib/device-tree/src/arm/allwinner/sun8i-s3-lichee-zero-plus.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2019 Icenowy Zheng <icenowy@aosc.io>
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot/dts-v1/;
7*f126890aSEmmanuel Vadot#include "sun8i-v3.dtsi"
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot/ {
12*f126890aSEmmanuel Vadot	model = "Sipeed Lichee Zero Plus";
13*f126890aSEmmanuel Vadot	compatible = "sipeed,lichee-zero-plus", "sochip,s3",
14*f126890aSEmmanuel Vadot		     "allwinner,sun8i-v3";
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot	aliases {
17*f126890aSEmmanuel Vadot		serial0 = &uart0;
18*f126890aSEmmanuel Vadot	};
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot	chosen {
21*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
22*f126890aSEmmanuel Vadot	};
23*f126890aSEmmanuel Vadot
24*f126890aSEmmanuel Vadot	reg_vcc3v3: vcc3v3 {
25*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
26*f126890aSEmmanuel Vadot		regulator-name = "vcc3v3";
27*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
28*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
29*f126890aSEmmanuel Vadot	};
30*f126890aSEmmanuel Vadot};
31*f126890aSEmmanuel Vadot
32*f126890aSEmmanuel Vadot&mmc0 {
33*f126890aSEmmanuel Vadot	broken-cd;
34*f126890aSEmmanuel Vadot	bus-width = <4>;
35*f126890aSEmmanuel Vadot	vmmc-supply = <&reg_vcc3v3>;
36*f126890aSEmmanuel Vadot	status = "okay";
37*f126890aSEmmanuel Vadot};
38*f126890aSEmmanuel Vadot
39*f126890aSEmmanuel Vadot&uart0 {
40*f126890aSEmmanuel Vadot	pinctrl-0 = <&uart0_pb_pins>;
41*f126890aSEmmanuel Vadot	pinctrl-names = "default";
42*f126890aSEmmanuel Vadot	status = "okay";
43*f126890aSEmmanuel Vadot};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot&usb_otg {
46*f126890aSEmmanuel Vadot	dr_mode = "peripheral";
47*f126890aSEmmanuel Vadot	status = "okay";
48*f126890aSEmmanuel Vadot};
49*f126890aSEmmanuel Vadot
50*f126890aSEmmanuel Vadot&usbphy {
51*f126890aSEmmanuel Vadot	usb0_id_det-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
52*f126890aSEmmanuel Vadot	status = "okay";
53*f126890aSEmmanuel Vadot};
54