
Signed-off-by: Yifan Gu me@yifangu.com --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/suniv-f1c100s-pocketgo.dts | 48 +++++++++++++++++++++++++ configs/pocketgo_defconfig | 12 +++++++ 3 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/suniv-f1c100s-pocketgo.dts create mode 100644 configs/pocketgo_defconfig
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index a1207a33f5..a2287f5b35 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -666,7 +666,8 @@ dtb-$(CONFIG_MACH_SUN9I) += \ sun9i-a80-cubieboard4.dtb \ sun9i-a80-cx-a99.dtb dtb-$(CONFIG_MACH_SUNIV) += \ - suniv-f1c100s-licheepi-nano.dtb + suniv-f1c100s-licheepi-nano.dtb \ + suniv-f1c100s-pocketgo.dtb
dtb-$(CONFIG_VF610) += vf500-colibri.dtb \ vf610-colibri.dtb \ diff --git a/arch/arm/dts/suniv-f1c100s-pocketgo.dts b/arch/arm/dts/suniv-f1c100s-pocketgo.dts new file mode 100644 index 0000000000..9fdb646ac8 --- /dev/null +++ b/arch/arm/dts/suniv-f1c100s-pocketgo.dts @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR X11) +/* + * Copyright 2018 Icenowy Zheng icenowy@aosc.io + * Copyright 2021 Yifan Gu me@yifangu.com + */ + +/dts-v1/; +#include "suniv-f1c100s.dtsi" + +#include <dt-bindings/gpio/gpio.h> + +/ { + model = "PocketGo Handheld"; + compatible = "miyoo,pocketgo", "allwinner,suniv-f1c100s", + "allwinner,suniv"; + + aliases { + serial1 = &uart1; + }; + + chosen { + stdout-path = "serial1:115200n8"; + }; +}; + +&otg_sram { + status = "okay"; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pa_pins>; + status = "okay"; +}; + +&mmc0 { + status = "okay"; +}; + +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + +&usbphy { + usb0_id_det-gpio = <&pio 4 2 GPIO_ACTIVE_HIGH>; /* PE2 */ + status = "okay"; +}; diff --git a/configs/pocketgo_defconfig b/configs/pocketgo_defconfig new file mode 100644 index 0000000000..1f9bf4001f --- /dev/null +++ b/configs/pocketgo_defconfig @@ -0,0 +1,12 @@ +CONFIG_ARM=y +CONFIG_ARCH_SUNXI=y +CONFIG_MACH_SUNIV=y +CONFIG_DRAM_CLK=156 +CONFIG_DRAM_ZQ=0 +# CONFIG_VIDEO_SUNXI is not set +CONFIG_DEFAULT_DEVICE_TREE="suniv-f1c100s-pocketgo" +CONFIG_SPL=y +# CONFIG_SPL_DM_SERIAL is not set +CONFIG_MMC_SUNXI=y +CONFIG_CONS_INDEX=2 +CONFIG_NET=n