xref: /freebsd/sys/contrib/device-tree/src/arm/allwinner/suniv-f1c200s-lctech-pi.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright 2022 Arm Ltd,
4*f126890aSEmmanuel Vadot * based on work:
5*f126890aSEmmanuel Vadot *   Copyright 2022 Icenowy Zheng <uwu@icenowy.me>
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot/dts-v1/;
9*f126890aSEmmanuel Vadot#include "suniv-f1c100s.dtsi"
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
12*f126890aSEmmanuel Vadot
13*f126890aSEmmanuel Vadot/ {
14*f126890aSEmmanuel Vadot	model = "Lctech Pi F1C200s";
15*f126890aSEmmanuel Vadot	compatible = "lctech,pi-f1c200s", "allwinner,suniv-f1c200s",
16*f126890aSEmmanuel Vadot		     "allwinner,suniv-f1c100s";
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot	aliases {
19*f126890aSEmmanuel Vadot		serial0 = &uart1;
20*f126890aSEmmanuel Vadot	};
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot	chosen {
23*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
24*f126890aSEmmanuel Vadot	};
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot	reg_vcc3v3: regulator-3v3 {
27*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
28*f126890aSEmmanuel Vadot		regulator-name = "vcc3v3";
29*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
30*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
31*f126890aSEmmanuel Vadot	};
32*f126890aSEmmanuel Vadot};
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot&mmc0 {
35*f126890aSEmmanuel Vadot	broken-cd;
36*f126890aSEmmanuel Vadot	bus-width = <4>;
37*f126890aSEmmanuel Vadot	disable-wp;
38*f126890aSEmmanuel Vadot	vmmc-supply = <&reg_vcc3v3>;
39*f126890aSEmmanuel Vadot	status = "okay";
40*f126890aSEmmanuel Vadot};
41*f126890aSEmmanuel Vadot
42*f126890aSEmmanuel Vadot&otg_sram {
43*f126890aSEmmanuel Vadot	status = "okay";
44*f126890aSEmmanuel Vadot};
45*f126890aSEmmanuel Vadot
46*f126890aSEmmanuel Vadot&spi0 {
47*f126890aSEmmanuel Vadot	pinctrl-names = "default";
48*f126890aSEmmanuel Vadot	pinctrl-0 = <&spi0_pc_pins>;
49*f126890aSEmmanuel Vadot	status = "okay";
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot	flash@0 {
52*f126890aSEmmanuel Vadot		compatible = "spi-nand";
53*f126890aSEmmanuel Vadot		reg = <0>;
54*f126890aSEmmanuel Vadot		spi-max-frequency = <40000000>;
55*f126890aSEmmanuel Vadot	};
56*f126890aSEmmanuel Vadot};
57*f126890aSEmmanuel Vadot
58*f126890aSEmmanuel Vadot&uart1 {
59*f126890aSEmmanuel Vadot	pinctrl-names = "default";
60*f126890aSEmmanuel Vadot	pinctrl-0 = <&uart1_pa_pins>;
61*f126890aSEmmanuel Vadot	status = "okay";
62*f126890aSEmmanuel Vadot};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot/*
65*f126890aSEmmanuel Vadot * This is a Type-C socket, but CC1/2 are not connected, and VBUS is connected
66*f126890aSEmmanuel Vadot * to Vin, which supplies the board. Host mode works (if the board is powered
67*f126890aSEmmanuel Vadot * otherwise), but peripheral is probably the intention.
68*f126890aSEmmanuel Vadot */
69*f126890aSEmmanuel Vadot&usb_otg {
70*f126890aSEmmanuel Vadot	dr_mode = "peripheral";
71*f126890aSEmmanuel Vadot	status = "okay";
72*f126890aSEmmanuel Vadot};
73*f126890aSEmmanuel Vadot
74*f126890aSEmmanuel Vadot&usbphy {
75*f126890aSEmmanuel Vadot	status = "okay";
76*f126890aSEmmanuel Vadot};
77