|
|
@@ -1,120 +0,0 @@
|
|
|
-From 08d194d881e10e09cba7551da8079734d89ed16d Mon Sep 17 00:00:00 2001
|
|
|
-From: Icenowy Zheng <[email protected]>
|
|
|
-Date: Thu, 16 Jun 2022 00:28:41 +0800
|
|
|
-Subject: [PATCH 1/2] add USB support and PopStick support
|
|
|
-
|
|
|
-Signed-off-by: Icenowy Zheng <[email protected]>
|
|
|
----
|
|
|
- arch/arm/dts/Makefile | 3 +-
|
|
|
- arch/arm/dts/suniv-f1c100s-licheepi-nano.dts | 16 ++++
|
|
|
- arch/arm/dts/suniv-f1c100s.dtsi | 26 ++++++
|
|
|
- arch/arm/dts/suniv-f1c200s-popstick.dts | 89 ++++++++++++++++++++
|
|
|
- drivers/phy/allwinner/phy-sun4i-usb.c | 14 +++
|
|
|
- drivers/usb/musb-new/sunxi.c | 6 ++
|
|
|
- 6 files changed, 153 insertions(+), 1 deletion(-)
|
|
|
- create mode 100644 arch/arm/dts/suniv-f1c200s-popstick.dts
|
|
|
-
|
|
|
---- a/arch/arm/dts/Makefile
|
|
|
-+++ b/arch/arm/dts/Makefile
|
|
|
-@@ -647,7 +647,8 @@ dtb-$(CONFIG_STM32H7) += stm32h743i-disc
|
|
|
- stm32h750i-art-pi.dtb
|
|
|
-
|
|
|
- dtb-$(CONFIG_MACH_SUNIV) += \
|
|
|
-- suniv-f1c100s-licheepi-nano.dtb
|
|
|
-+ suniv-f1c100s-licheepi-nano.dtb \
|
|
|
-+ suniv-f1c200s-popstick.dtb
|
|
|
- dtb-$(CONFIG_MACH_SUN4I) += \
|
|
|
- sun4i-a10-a1000.dtb \
|
|
|
- sun4i-a10-ba10-tvbox.dtb \
|
|
|
---- /dev/null
|
|
|
-+++ b/arch/arm/dts/suniv-f1c200s-popstick.dts
|
|
|
-@@ -0,0 +1,89 @@
|
|
|
-+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
-+/*
|
|
|
-+ * Copyright 2022 Icenowy Zheng <[email protected]>
|
|
|
-+ */
|
|
|
-+
|
|
|
-+/dts-v1/;
|
|
|
-+#include "suniv-f1c100s.dtsi"
|
|
|
-+
|
|
|
-+#include <dt-bindings/gpio/gpio.h>
|
|
|
-+
|
|
|
-+/ {
|
|
|
-+ model = "Popcorn Computer PopStick";
|
|
|
-+ compatible = "sourceparts,popstick", "allwinner,suniv-f1c200s",
|
|
|
-+ "allwinner,suniv-f1c100s";
|
|
|
-+
|
|
|
-+ aliases {
|
|
|
-+ mmc0 = &mmc0;
|
|
|
-+ serial0 = &uart0;
|
|
|
-+ spi0 = &spi0;
|
|
|
-+ };
|
|
|
-+
|
|
|
-+ chosen {
|
|
|
-+ stdout-path = "serial0:115200n8";
|
|
|
-+ };
|
|
|
-+
|
|
|
-+ reg_vcc3v3: vcc3v3 {
|
|
|
-+ compatible = "regulator-fixed";
|
|
|
-+ regulator-name = "vcc3v3";
|
|
|
-+ regulator-min-microvolt = <3300000>;
|
|
|
-+ regulator-max-microvolt = <3300000>;
|
|
|
-+ };
|
|
|
-+};
|
|
|
-+
|
|
|
-+&mmc0 {
|
|
|
-+ broken-cd;
|
|
|
-+ bus-width = <4>;
|
|
|
-+ disable-wp;
|
|
|
-+ status = "okay";
|
|
|
-+ vmmc-supply = <®_vcc3v3>;
|
|
|
-+};
|
|
|
-+
|
|
|
-+&spi0 {
|
|
|
-+ pinctrl-names = "default";
|
|
|
-+ pinctrl-0 = <&spi0_pc_pins>;
|
|
|
-+ status = "okay";
|
|
|
-+
|
|
|
-+ flash@0 {
|
|
|
-+ #address-cells = <1>;
|
|
|
-+ #size-cells = <1>;
|
|
|
-+ compatible = "spi-nand";
|
|
|
-+ reg = <0>;
|
|
|
-+ spi-max-frequency = <1000000>;
|
|
|
-+
|
|
|
-+ partitions {
|
|
|
-+ compatible = "fixed-partitions";
|
|
|
-+ #address-cells = <1>;
|
|
|
-+ #size-cells = <1>;
|
|
|
-+
|
|
|
-+ partition@0 {
|
|
|
-+ label = "u-boot-with-spl";
|
|
|
-+ reg = <0x0 0x100000>;
|
|
|
-+ };
|
|
|
-+
|
|
|
-+ ubi@100000 {
|
|
|
-+ label = "ubi";
|
|
|
-+ reg = <0x100000 0x7f00000>;
|
|
|
-+ };
|
|
|
-+ };
|
|
|
-+ };
|
|
|
-+};
|
|
|
-+
|
|
|
-+&otg_sram {
|
|
|
-+ status = "okay";
|
|
|
-+};
|
|
|
-+
|
|
|
-+&uart0 {
|
|
|
-+ pinctrl-names = "default";
|
|
|
-+ pinctrl-0 = <&uart0_pe_pins>;
|
|
|
-+ status = "okay";
|
|
|
-+};
|
|
|
-+
|
|
|
-+&usb_otg {
|
|
|
-+ dr_mode = "peripheral";
|
|
|
-+ status = "okay";
|
|
|
-+};
|
|
|
-+
|
|
|
-+&usbphy {
|
|
|
-+ status = "okay";
|
|
|
-+};
|