Skip to content

Commit cc18586

Browse files
Andre-ARMjernejsk
authored andcommitted
ARM: dts: suniv: Add Lctech Pi F1C200s devicetree
The Lctech Pi F1C200s (also previously known under the Cherry Pi brand) is a small development board with the Allwinner F1C200s SoC. This is the same as the F1C100s, but with 64MB instead of 32MB co-packaged DRAM. Alongside the obligatory micro-SD card slot, the board features a SPI-NAND flash chip, LCD and touch connectors, and unpopulated expansion header pins. There are two USB Type-C ports on the board: One supplies the power, also connects to the USB MUSB OTG controller port. The other one is connected to an CH340 USB serial chip, which in turn is connected to UART1. Add a devicetree file, so that the board can be used easily. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://lore.kernel.org/r/20230319212936.26649-7-andre.przywara@arm.com Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
1 parent 7452d47 commit cc18586

3 files changed

Lines changed: 83 additions & 0 deletions

File tree

arch/arm/boot/dts/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,6 +1407,7 @@ dtb-$(CONFIG_MACH_SUN9I) += \
14071407
sun9i-a80-cubieboard4.dtb
14081408
dtb-$(CONFIG_MACH_SUNIV) += \
14091409
suniv-f1c100s-licheepi-nano.dtb \
1410+
suniv-f1c200s-lctech-pi.dtb \
14101411
suniv-f1c200s-popstick-v1.1.dtb
14111412
dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += \
14121413
tegra20-acer-a500-picasso.dtb \

arch/arm/boot/dts/suniv-f1c100s.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,12 @@
207207
pins = "PE0", "PE1";
208208
function = "uart0";
209209
};
210+
211+
/omit-if-no-ref/
212+
uart1_pa_pins: uart1-pa-pins {
213+
pins = "PA2", "PA3";
214+
function = "uart1";
215+
};
210216
};
211217

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

0 commit comments

Comments
 (0)