xref: /freebsd/sys/contrib/device-tree/src/arm/allwinner/suniv-f1c100s-licheepi-nano.dts (revision f5f40dd63bc7acbb5312b26ac1ea1103c12352a6)
1// SPDX-License-Identifier: (GPL-2.0+ OR X11)
2/*
3 * Copyright 2018 Icenowy Zheng <icenowy@aosc.io>
4 */
5
6/dts-v1/;
7#include "suniv-f1c100s.dtsi"
8
9#include <dt-bindings/gpio/gpio.h>
10
11/ {
12	model = "Lichee Pi Nano";
13	compatible = "licheepi,licheepi-nano", "allwinner,suniv-f1c100s";
14
15	aliases {
16		mmc0 = &mmc0;
17		serial0 = &uart0;
18		spi0 = &spi0;
19	};
20
21	chosen {
22		stdout-path = "serial0:115200n8";
23	};
24
25	reg_vcc3v3: vcc3v3 {
26		compatible = "regulator-fixed";
27		regulator-name = "vcc3v3";
28		regulator-min-microvolt = <3300000>;
29		regulator-max-microvolt = <3300000>;
30	};
31};
32
33&mmc0 {
34	broken-cd;
35	bus-width = <4>;
36	disable-wp;
37	status = "okay";
38	vmmc-supply = <&reg_vcc3v3>;
39};
40
41&spi0 {
42	pinctrl-names = "default";
43	pinctrl-0 = <&spi0_pc_pins>;
44	status = "okay";
45
46	flash@0 {
47		#address-cells = <1>;
48		#size-cells = <1>;
49		compatible = "winbond,w25q128", "jedec,spi-nor";
50		reg = <0>;
51		spi-max-frequency = <40000000>;
52	};
53};
54
55&otg_sram {
56	status = "okay";
57};
58
59&uart0 {
60	pinctrl-names = "default";
61	pinctrl-0 = <&uart0_pe_pins>;
62	status = "okay";
63};
64
65&usb_otg {
66	dr_mode = "otg";
67	status = "okay";
68};
69
70&usbphy {
71	usb0_id_det-gpios = <&pio 4 2 GPIO_ACTIVE_HIGH>; /* PE2 */
72	status = "okay";
73};
74