xref: /freebsd/sys/contrib/device-tree/src/arm/allwinner/suniv-f1c200s-popstick-v1.1.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright 2022 Icenowy Zheng <uwu@icenowy.me>
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot/dts-v1/;
7*f126890aSEmmanuel Vadot#include "suniv-f1c100s.dtsi"
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
10*f126890aSEmmanuel Vadot#include <dt-bindings/leds/common.h>
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot/ {
13*f126890aSEmmanuel Vadot	model = "Popcorn Computer PopStick v1.1";
14*f126890aSEmmanuel Vadot	compatible = "sourceparts,popstick-v1.1", "sourceparts,popstick",
15*f126890aSEmmanuel Vadot		     "allwinner,suniv-f1c200s", "allwinner,suniv-f1c100s";
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot	aliases {
18*f126890aSEmmanuel Vadot		serial0 = &uart0;
19*f126890aSEmmanuel Vadot	};
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadot	chosen {
22*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
23*f126890aSEmmanuel Vadot	};
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot	leds {
26*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot		led {
29*f126890aSEmmanuel Vadot			function = LED_FUNCTION_STATUS;
30*f126890aSEmmanuel Vadot			color = <LED_COLOR_ID_GREEN>;
31*f126890aSEmmanuel Vadot			gpios = <&pio 4 6 GPIO_ACTIVE_HIGH>; /* PE6 */
32*f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
33*f126890aSEmmanuel Vadot		};
34*f126890aSEmmanuel Vadot	};
35*f126890aSEmmanuel Vadot
36*f126890aSEmmanuel Vadot	reg_vcc3v3: regulator-3v3 {
37*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
38*f126890aSEmmanuel Vadot		regulator-name = "vcc3v3";
39*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
40*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
41*f126890aSEmmanuel Vadot	};
42*f126890aSEmmanuel Vadot};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot&mmc0 {
45*f126890aSEmmanuel Vadot	cd-gpios = <&pio 4 3 GPIO_ACTIVE_LOW>; /* PE3 */
46*f126890aSEmmanuel Vadot	bus-width = <4>;
47*f126890aSEmmanuel Vadot	disable-wp;
48*f126890aSEmmanuel Vadot	vmmc-supply = <&reg_vcc3v3>;
49*f126890aSEmmanuel Vadot	status = "okay";
50*f126890aSEmmanuel Vadot};
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot&otg_sram {
53*f126890aSEmmanuel Vadot	status = "okay";
54*f126890aSEmmanuel Vadot};
55*f126890aSEmmanuel Vadot
56*f126890aSEmmanuel Vadot&spi0 {
57*f126890aSEmmanuel Vadot	pinctrl-names = "default";
58*f126890aSEmmanuel Vadot	pinctrl-0 = <&spi0_pc_pins>;
59*f126890aSEmmanuel Vadot	status = "okay";
60*f126890aSEmmanuel Vadot
61*f126890aSEmmanuel Vadot	flash@0 {
62*f126890aSEmmanuel Vadot		compatible = "spi-nand";
63*f126890aSEmmanuel Vadot		reg = <0>;
64*f126890aSEmmanuel Vadot		spi-max-frequency = <40000000>;
65*f126890aSEmmanuel Vadot	};
66*f126890aSEmmanuel Vadot};
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot&uart0 {
69*f126890aSEmmanuel Vadot	pinctrl-names = "default";
70*f126890aSEmmanuel Vadot	pinctrl-0 = <&uart0_pe_pins>;
71*f126890aSEmmanuel Vadot	status = "okay";
72*f126890aSEmmanuel Vadot};
73*f126890aSEmmanuel Vadot
74*f126890aSEmmanuel Vadot&usb_otg {
75*f126890aSEmmanuel Vadot	dr_mode = "peripheral";
76*f126890aSEmmanuel Vadot	status = "okay";
77*f126890aSEmmanuel Vadot};
78*f126890aSEmmanuel Vadot
79*f126890aSEmmanuel Vadot&usbphy {
80*f126890aSEmmanuel Vadot	status = "okay";
81*f126890aSEmmanuel Vadot};
82