Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andre Przywara and committed by
Jernej Skrabec
cc185861 7452d479

+83
+1
arch/arm/boot/dts/Makefile
··· 1407 1407 sun9i-a80-cubieboard4.dtb 1408 1408 dtb-$(CONFIG_MACH_SUNIV) += \ 1409 1409 suniv-f1c100s-licheepi-nano.dtb \ 1410 + suniv-f1c200s-lctech-pi.dtb \ 1410 1411 suniv-f1c200s-popstick-v1.1.dtb 1411 1412 dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += \ 1412 1413 tegra20-acer-a500-picasso.dtb \
+6
arch/arm/boot/dts/suniv-f1c100s.dtsi
··· 207 207 pins = "PE0", "PE1"; 208 208 function = "uart0"; 209 209 }; 210 + 211 + /omit-if-no-ref/ 212 + uart1_pa_pins: uart1-pa-pins { 213 + pins = "PA2", "PA3"; 214 + function = "uart1"; 215 + }; 210 216 }; 211 217 212 218 i2c0: i2c@1c27000 {
+76
arch/arm/boot/dts/suniv-f1c200s-lctech-pi.dts
··· 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 + };