mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Add Pine64 PineCube support (#2364)
* sunxi: kernel: current/dev: enable sun6i-csi and disable LL debug on UART0 The former is useful on some boards, e.g. PineCube. The latter blocks boards that do not utilize UART0 from booting. Signed-off-by: Icenowy Zheng <icenowy@aosc.io> * sunxi: add new family sun8i-v3s This family is intended for boards with V3/V3s/S3/S3L chips and low DRAM capacity. Signed-off-by: Icenowy Zheng <icenowy@aosc.io> * sunxi: add PineCube board This board features Sochip S3 SoC (Allwinner V3 die + co-packaged 128MiB DRAM), and an OmniVision OV5640 camera is shipped with the board. Add support for it. It could be used as an IP camera then. Kernel support is only added to current/dev branch, with dev just using mainline-merged DT and current using backported DT from 5.10-rc. Signed-off-by: Icenowy Zheng <icenowy@aosc.io> * sunxi: kernel: current/dev: add V3s OHCI/EHCI nodes These are needed for USB host on V3s boards to work. Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
This commit is contained in:
5
config/boards/pinecube.csc
Normal file
5
config/boards/pinecube.csc
Normal file
@@ -0,0 +1,5 @@
|
||||
# Sochip(Allwinner) S3 integrated 128M RAM SoC
|
||||
BOARD_NAME="PineCube"
|
||||
BOARDFAMILY="sun8i-v3s"
|
||||
KERNEL_TARGET="current,dev"
|
||||
BOOTCONFIG="pinecube_defconfig"
|
||||
@@ -1,6 +1,6 @@
|
||||
#
|
||||
# Automatically generated file; DO NOT EDIT.
|
||||
# Linux/arm 5.9.5 Kernel Configuration
|
||||
# Linux/arm 5.9.8 Kernel Configuration
|
||||
#
|
||||
CONFIG_CC_VERSION_TEXT="arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025"
|
||||
CONFIG_CC_IS_GCC=y
|
||||
@@ -2199,7 +2199,13 @@ CONFIG_DM_VERITY_FEC=y
|
||||
CONFIG_DM_SWITCH=m
|
||||
CONFIG_DM_LOG_WRITES=m
|
||||
CONFIG_DM_INTEGRITY=m
|
||||
CONFIG_TARGET_CORE=m
|
||||
CONFIG_TCM_IBLOCK=m
|
||||
CONFIG_TCM_FILEIO=m
|
||||
CONFIG_TCM_PSCSI=m
|
||||
CONFIG_TCM_USER2=m
|
||||
CONFIG_LOOPBACK_TARGET=m
|
||||
CONFIG_ISCSI_TARGET=m
|
||||
CONFIG_NETDEVICES=y
|
||||
CONFIG_MII=y
|
||||
CONFIG_NET_CORE=y
|
||||
@@ -3748,7 +3754,7 @@ CONFIG_MEDIA_ANALOG_TV_SUPPORT=y
|
||||
CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y
|
||||
CONFIG_MEDIA_RADIO_SUPPORT=y
|
||||
CONFIG_MEDIA_SDR_SUPPORT=y
|
||||
# CONFIG_MEDIA_PLATFORM_SUPPORT is not set
|
||||
CONFIG_MEDIA_PLATFORM_SUPPORT=y
|
||||
# CONFIG_MEDIA_TEST_SUPPORT is not set
|
||||
# end of Media device types
|
||||
|
||||
@@ -3995,6 +4001,21 @@ CONFIG_VIDEOBUF2_VMALLOC=m
|
||||
CONFIG_DVB_B2C2_FLEXCOP=m
|
||||
CONFIG_SMS_SIANO_MDTV=m
|
||||
CONFIG_SMS_SIANO_RC=y
|
||||
CONFIG_V4L_PLATFORM_DRIVERS=y
|
||||
# CONFIG_VIDEO_CADENCE is not set
|
||||
# CONFIG_VIDEO_ASPEED is not set
|
||||
# CONFIG_VIDEO_MUX is not set
|
||||
# CONFIG_VIDEO_XILINX is not set
|
||||
# CONFIG_VIDEO_SUN4I_CSI is not set
|
||||
CONFIG_VIDEO_SUN6I_CSI=m
|
||||
# CONFIG_V4L_MEM2MEM_DRIVERS is not set
|
||||
# CONFIG_DVB_PLATFORM_DRIVERS is not set
|
||||
# CONFIG_SDR_PLATFORM_DRIVERS is not set
|
||||
|
||||
#
|
||||
# MMC/SDIO DVB adapters
|
||||
#
|
||||
# CONFIG_SMS_SDIO_DRV is not set
|
||||
# end of Media drivers
|
||||
|
||||
#
|
||||
@@ -7492,9 +7513,10 @@ CONFIG_DMA_CMA=y
|
||||
# Default contiguous memory area size:
|
||||
#
|
||||
CONFIG_CMA_SIZE_MBYTES=128
|
||||
CONFIG_CMA_SIZE_SEL_MBYTES=y
|
||||
CONFIG_CMA_SIZE_PERCENTAGE=20
|
||||
# CONFIG_CMA_SIZE_SEL_MBYTES is not set
|
||||
# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
|
||||
# CONFIG_CMA_SIZE_SEL_MIN is not set
|
||||
CONFIG_CMA_SIZE_SEL_MIN=y
|
||||
# CONFIG_CMA_SIZE_SEL_MAX is not set
|
||||
CONFIG_CMA_ALIGNMENT=8
|
||||
# CONFIG_DMA_API_DEBUG is not set
|
||||
@@ -7736,26 +7758,9 @@ CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
|
||||
CONFIG_UNWINDER_ARM=y
|
||||
CONFIG_ARM_UNWIND=y
|
||||
# CONFIG_DEBUG_USER is not set
|
||||
CONFIG_DEBUG_LL=y
|
||||
# CONFIG_DEBUG_SUN9I_UART0 is not set
|
||||
CONFIG_DEBUG_SUNXI_UART0=y
|
||||
# CONFIG_DEBUG_SUNXI_UART1 is not set
|
||||
# CONFIG_DEBUG_SUNXI_R_UART is not set
|
||||
# CONFIG_DEBUG_ICEDCC is not set
|
||||
# CONFIG_DEBUG_SEMIHOSTING is not set
|
||||
# CONFIG_DEBUG_LL_UART_8250 is not set
|
||||
# CONFIG_DEBUG_LL_UART_PL01X is not set
|
||||
CONFIG_DEBUG_LL_INCLUDE="debug/8250.S"
|
||||
CONFIG_DEBUG_UART_8250=y
|
||||
CONFIG_DEBUG_UART_PHYS=0x01c28000
|
||||
CONFIG_DEBUG_UART_VIRT=0xf1c28000
|
||||
CONFIG_DEBUG_UART_8250_SHIFT=2
|
||||
# CONFIG_DEBUG_UART_8250_WORD is not set
|
||||
# CONFIG_DEBUG_UART_8250_PALMCHIP is not set
|
||||
# CONFIG_DEBUG_UART_8250_FLOW_CONTROL is not set
|
||||
CONFIG_DEBUG_UNCOMPRESS=y
|
||||
# CONFIG_DEBUG_LL is not set
|
||||
CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
|
||||
CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h"
|
||||
# CONFIG_EARLY_PRINTK is not set
|
||||
# CONFIG_PID_IN_CONTEXTIDR is not set
|
||||
# CONFIG_CORESIGHT is not set
|
||||
# end of arm Debugging
|
||||
@@ -7813,12 +7818,3 @@ CONFIG_TEST_MEMCAT_P=m
|
||||
# CONFIG_MEMTEST is not set
|
||||
# end of Kernel Testing and Coverage
|
||||
# end of Kernel hacking
|
||||
|
||||
## LinuxIO - iSCSI Target modules
|
||||
CONFIG_TARGET_CORE=m
|
||||
CONFIG_ISCSI_TARGET=m
|
||||
CONFIG_TCM_IBLOCK=m
|
||||
CONFIG_TCM_FILEIO=m
|
||||
CONFIG_TCM_PSCSI=m
|
||||
CONFIG_TCM_USER2=m
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#
|
||||
# Automatically generated file; DO NOT EDIT.
|
||||
# Linux/arm 5.10.0-rc3 Kernel Configuration
|
||||
# Linux/arm 5.10.0-rc4 Kernel Configuration
|
||||
#
|
||||
CONFIG_CC_VERSION_TEXT="arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025"
|
||||
CONFIG_CC_IS_GCC=y
|
||||
@@ -3793,7 +3793,7 @@ CONFIG_MEDIA_ANALOG_TV_SUPPORT=y
|
||||
CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y
|
||||
CONFIG_MEDIA_RADIO_SUPPORT=y
|
||||
CONFIG_MEDIA_SDR_SUPPORT=y
|
||||
# CONFIG_MEDIA_PLATFORM_SUPPORT is not set
|
||||
CONFIG_MEDIA_PLATFORM_SUPPORT=y
|
||||
# CONFIG_MEDIA_TEST_SUPPORT is not set
|
||||
# end of Media device types
|
||||
|
||||
@@ -4040,6 +4040,21 @@ CONFIG_VIDEOBUF2_VMALLOC=m
|
||||
CONFIG_DVB_B2C2_FLEXCOP=m
|
||||
CONFIG_SMS_SIANO_MDTV=m
|
||||
CONFIG_SMS_SIANO_RC=y
|
||||
CONFIG_V4L_PLATFORM_DRIVERS=y
|
||||
# CONFIG_VIDEO_CADENCE is not set
|
||||
# CONFIG_VIDEO_ASPEED is not set
|
||||
# CONFIG_VIDEO_MUX is not set
|
||||
# CONFIG_VIDEO_XILINX is not set
|
||||
# CONFIG_VIDEO_SUN4I_CSI is not set
|
||||
CONFIG_VIDEO_SUN6I_CSI=m
|
||||
# CONFIG_V4L_MEM2MEM_DRIVERS is not set
|
||||
# CONFIG_DVB_PLATFORM_DRIVERS is not set
|
||||
# CONFIG_SDR_PLATFORM_DRIVERS is not set
|
||||
|
||||
#
|
||||
# MMC/SDIO DVB adapters
|
||||
#
|
||||
# CONFIG_SMS_SDIO_DRV is not set
|
||||
# end of Media drivers
|
||||
|
||||
#
|
||||
@@ -7566,9 +7581,10 @@ CONFIG_DMA_CMA=y
|
||||
# Default contiguous memory area size:
|
||||
#
|
||||
CONFIG_CMA_SIZE_MBYTES=128
|
||||
CONFIG_CMA_SIZE_SEL_MBYTES=y
|
||||
CONFIG_CMA_SIZE_PERCENTAGE=20
|
||||
# CONFIG_CMA_SIZE_SEL_MBYTES is not set
|
||||
# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
|
||||
# CONFIG_CMA_SIZE_SEL_MIN is not set
|
||||
CONFIG_CMA_SIZE_SEL_MIN=y
|
||||
# CONFIG_CMA_SIZE_SEL_MAX is not set
|
||||
CONFIG_CMA_ALIGNMENT=8
|
||||
# CONFIG_DMA_API_DEBUG is not set
|
||||
@@ -7812,26 +7828,9 @@ CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
|
||||
CONFIG_UNWINDER_ARM=y
|
||||
CONFIG_ARM_UNWIND=y
|
||||
# CONFIG_DEBUG_USER is not set
|
||||
CONFIG_DEBUG_LL=y
|
||||
# CONFIG_DEBUG_SUN9I_UART0 is not set
|
||||
CONFIG_DEBUG_SUNXI_UART0=y
|
||||
# CONFIG_DEBUG_SUNXI_UART1 is not set
|
||||
# CONFIG_DEBUG_SUNXI_R_UART is not set
|
||||
# CONFIG_DEBUG_ICEDCC is not set
|
||||
# CONFIG_DEBUG_SEMIHOSTING is not set
|
||||
# CONFIG_DEBUG_LL_UART_8250 is not set
|
||||
# CONFIG_DEBUG_LL_UART_PL01X is not set
|
||||
# CONFIG_DEBUG_UART_FLOW_CONTROL is not set
|
||||
CONFIG_DEBUG_LL_INCLUDE="debug/8250.S"
|
||||
CONFIG_DEBUG_UART_8250=y
|
||||
CONFIG_DEBUG_UART_PHYS=0x01c28000
|
||||
CONFIG_DEBUG_UART_VIRT=0xf1c28000
|
||||
CONFIG_DEBUG_UART_8250_SHIFT=2
|
||||
# CONFIG_DEBUG_UART_8250_WORD is not set
|
||||
# CONFIG_DEBUG_UART_8250_PALMCHIP is not set
|
||||
CONFIG_DEBUG_UNCOMPRESS=y
|
||||
# CONFIG_DEBUG_LL is not set
|
||||
CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
|
||||
CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h"
|
||||
# CONFIG_EARLY_PRINTK is not set
|
||||
# CONFIG_PID_IN_CONTEXTIDR is not set
|
||||
# CONFIG_CORESIGHT is not set
|
||||
# end of arm Debugging
|
||||
|
||||
9
config/sources/families/sun8i-v3s.conf
Normal file
9
config/sources/families/sun8i-v3s.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
source "${BASH_SOURCE%/*}/include/sunxi_common.inc"
|
||||
|
||||
OVERLAY_PREFIX='sun8i-v3s'
|
||||
|
||||
family_tweaks_bsp_s()
|
||||
{
|
||||
mkdir -p $destination/etc/default
|
||||
cp $SRC/packages/bsp/sun8i-v3s/etc/default/* $destination/etc/default/
|
||||
}
|
||||
12
packages/bsp/sun8i-v3s/etc/default/armbian-ramlog.dpkg-dist
Normal file
12
packages/bsp/sun8i-v3s/etc/default/armbian-ramlog.dpkg-dist
Normal file
@@ -0,0 +1,12 @@
|
||||
# configuration values for the armbian-ram-logging service
|
||||
#
|
||||
# enable the armbian-ram-logging service?
|
||||
ENABLED=false
|
||||
#
|
||||
# size of the tmpfs mount -- please keep in mind to adjust /etc/default/armbian-zram-config too when increasing
|
||||
SIZE=30M
|
||||
#
|
||||
# use rsync instead of cp -r
|
||||
# requires rsync installed, may provide better performance
|
||||
# due to copying only new and changed files
|
||||
USE_RSYNC=true
|
||||
@@ -0,0 +1,34 @@
|
||||
# configuration values for the armbian-zram-config service
|
||||
#
|
||||
# enable the armbian-zram-config service?
|
||||
ENABLED=true
|
||||
|
||||
# percentage of zram used as swap compared to physically available DRAM.
|
||||
# Huge overcommitment (300) is possible and sometimes desirable. See
|
||||
# https://forum.armbian.com/topic/5565-zram-vs-swap/?do=findComment&comment=61082
|
||||
# and don't forget to adjust $MEM_LIMIT_PERCENTAGE below too.
|
||||
ZRAM_PERCENTAGE=90
|
||||
|
||||
# percentage of DRAM available to zram. If this amount is exceeded the zram
|
||||
# devices used for swap simply behave as if the device is full. You need to
|
||||
# adjust/increase this value only if you want to work with massive memory
|
||||
# overcommitment (ZRAM_PERCENTAGE exceeding 150 for example)
|
||||
MEM_LIMIT_PERCENTAGE=30
|
||||
|
||||
# create how many zram devices max for swap
|
||||
# ZRAM_MAX_DEVICES=4
|
||||
|
||||
# Which algorithm for zram based swapping. Seems lzo is best choice on ARM:
|
||||
# https://forum.armbian.com/topic/8161-swap-on-sbc/?do=findComment&comment=61668
|
||||
SWAP_ALGORITHM=zstd
|
||||
|
||||
# Which algorithm to choose for zram based ramlog partition
|
||||
# RAMLOG_ALGORITHM=zstd
|
||||
|
||||
# Which algorithm to choose for zram based /tmp
|
||||
# TMP_ALGORITHM=zstd
|
||||
|
||||
# If defined a separate partition will be used as zram backing device. Be CAREFUL
|
||||
# which partition you assign and read starting from CONFIG_ZRAM_WRITEBACK in
|
||||
# https://www.kernel.org/doc/Documentation/blockdev/zram.txt
|
||||
# ZRAM_BACKING_DEV=/dev/nvme0n2
|
||||
594
patch/kernel/sunxi-current/board-v3s-add-pinecube.patch
Normal file
594
patch/kernel/sunxi-current/board-v3s-add-pinecube.patch
Normal file
@@ -0,0 +1,594 @@
|
||||
From 423a3b5419f573f8a27cedb9767c7a1dbc5ca9eb Mon Sep 17 00:00:00 2001
|
||||
From: Icenowy Zheng <icenowy@aosc.io>
|
||||
Date: Fri, 18 Jan 2019 20:46:40 +0800
|
||||
Subject: [PATCH 1/7] ARM: dts: sun8i: V3/V3s/S3/S3L: add Ethernet support
|
||||
|
||||
The Allwinner V3/V3s/S3L/SoChip S3 Ethernet MAC and internal PHY is quite
|
||||
similar to the ones on Allwinner H3, except for V3s the external MII is
|
||||
not wired out.
|
||||
|
||||
Add ethernet support to V3/V3s/S3/S3L.
|
||||
|
||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
||||
---
|
||||
arch/arm/boot/dts/sun8i-v3.dtsi | 13 ++++++++
|
||||
arch/arm/boot/dts/sun8i-v3s.dtsi | 52 ++++++++++++++++++++++++++++++++
|
||||
2 files changed, 65 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/sun8i-v3.dtsi b/arch/arm/boot/dts/sun8i-v3.dtsi
|
||||
index 6ae8645ade50..ca4672ed2e02 100644
|
||||
--- a/arch/arm/boot/dts/sun8i-v3.dtsi
|
||||
+++ b/arch/arm/boot/dts/sun8i-v3.dtsi
|
||||
@@ -9,6 +9,19 @@ &ccu {
|
||||
compatible = "allwinner,sun8i-v3-ccu";
|
||||
};
|
||||
|
||||
+&emac {
|
||||
+ /delete-property/ phy-handle;
|
||||
+ /delete-property/ phy-mode;
|
||||
+};
|
||||
+
|
||||
+&mdio_mux {
|
||||
+ external_mdio: mdio@2 {
|
||||
+ reg = <2>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
&pio {
|
||||
compatible = "allwinner,sun8i-v3-pinctrl";
|
||||
};
|
||||
diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
index 6eb9c39aa93f..7d40897dab09 100644
|
||||
--- a/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
+++ b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
@@ -138,6 +138,15 @@ mixer0_out_tcon0: endpoint {
|
||||
};
|
||||
};
|
||||
|
||||
+ syscon: system-control@1c00000 {
|
||||
+ compatible = "allwinner,sun8i-v3s-system-control",
|
||||
+ "allwinner,sun8i-h3-system-control";
|
||||
+ reg = <0x01c00000 0x1000>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <1>;
|
||||
+ ranges;
|
||||
+ };
|
||||
+
|
||||
tcon0: lcd-controller@1c0c000 {
|
||||
compatible = "allwinner,sun8i-v3s-tcon";
|
||||
reg = <0x01c0c000 0x1000>;
|
||||
@@ -415,6 +424,49 @@ i2c1: i2c@1c2b000 {
|
||||
#size-cells = <0>;
|
||||
};
|
||||
|
||||
+ emac: ethernet@1c30000 {
|
||||
+ compatible = "allwinner,sun8i-v3s-emac";
|
||||
+ syscon = <&syscon>;
|
||||
+ reg = <0x01c30000 0x10000>;
|
||||
+ interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ interrupt-names = "macirq";
|
||||
+ resets = <&ccu RST_BUS_EMAC>;
|
||||
+ reset-names = "stmmaceth";
|
||||
+ clocks = <&ccu CLK_BUS_EMAC>;
|
||||
+ clock-names = "stmmaceth";
|
||||
+ phy-handle = <&int_mii_phy>;
|
||||
+ phy-mode = "mii";
|
||||
+ status = "disabled";
|
||||
+
|
||||
+ mdio: mdio {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ compatible = "snps,dwmac-mdio";
|
||||
+ };
|
||||
+
|
||||
+ mdio_mux: mdio-mux {
|
||||
+ compatible = "allwinner,sun8i-h3-mdio-mux";
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ mdio-parent-bus = <&mdio>;
|
||||
+ /* Only one MDIO is usable at the time */
|
||||
+ internal_mdio: mdio@1 {
|
||||
+ compatible = "allwinner,sun8i-h3-mdio-internal";
|
||||
+ reg = <1>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ int_mii_phy: ethernet-phy@1 {
|
||||
+ compatible = "ethernet-phy-ieee802.3-c22";
|
||||
+ reg = <1>;
|
||||
+ clocks = <&ccu CLK_BUS_EPHY>;
|
||||
+ resets = <&ccu RST_BUS_EPHY>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
spi0: spi@1c68000 {
|
||||
compatible = "allwinner,sun8i-h3-spi";
|
||||
reg = <0x01c68000 0x1000>;
|
||||
--
|
||||
2.28.0
|
||||
|
||||
From 9df0135e2d7acc8797583de05a9879233a892557 Mon Sep 17 00:00:00 2001
|
||||
From: Icenowy Zheng <icenowy@aosc.io>
|
||||
Date: Fri, 18 Jan 2019 20:08:35 +0800
|
||||
Subject: [PATCH 2/7] ARM: dts: sun8i: V3/V3s/S3/S3L: add pinctrl for UART2
|
||||
RX/TX
|
||||
|
||||
The UART2 RX/TX pins on Allwinner V3 series is at PB0/1, which is used
|
||||
as debugging UART on some boards.
|
||||
|
||||
Add pinctrl node for them.
|
||||
|
||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
||||
---
|
||||
arch/arm/boot/dts/sun8i-v3s.dtsi | 7 +++++++
|
||||
1 file changed, 7 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
index 7d40897dab09..4cfdf193cf88 100644
|
||||
--- a/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
+++ b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
@@ -322,6 +322,11 @@ uart0_pb_pins: uart0-pb-pins {
|
||||
function = "uart0";
|
||||
};
|
||||
|
||||
+ uart2_pins: uart2-pins {
|
||||
+ pins = "PB0", "PB1";
|
||||
+ function = "uart2";
|
||||
+ };
|
||||
+
|
||||
mmc0_pins: mmc0-pins {
|
||||
pins = "PF0", "PF1", "PF2", "PF3",
|
||||
"PF4", "PF5";
|
||||
@@ -397,6 +402,8 @@ uart2: serial@1c28800 {
|
||||
reg-io-width = <4>;
|
||||
clocks = <&ccu CLK_BUS_UART2>;
|
||||
resets = <&ccu RST_BUS_UART2>;
|
||||
+ pinctrl-0 = <&uart2_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
--
|
||||
2.28.0
|
||||
|
||||
From 1267d38cfc295c8222d60f53e05e61f594a2309a Mon Sep 17 00:00:00 2001
|
||||
From: Icenowy Zheng <icenowy@aosc.io>
|
||||
Date: Wed, 21 Aug 2019 11:01:58 +0800
|
||||
Subject: [PATCH 3/7] ARM: dts: sun8i: V3/V3s/S3/S3L: add CSI1 device node
|
||||
|
||||
The CSI1 controller of V3/V3s/S3/S3L chips is used for parallel CSI.
|
||||
|
||||
Add the device tree node of it.
|
||||
|
||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
||||
---
|
||||
arch/arm/boot/dts/sun8i-v3s.dtsi | 12 ++++++++++++
|
||||
1 file changed, 12 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
index 4cfdf193cf88..3e079973672d 100644
|
||||
--- a/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
+++ b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
@@ -488,6 +488,18 @@ spi0: spi@1c68000 {
|
||||
#size-cells = <0>;
|
||||
};
|
||||
|
||||
+ csi1: camera@1cb4000 {
|
||||
+ compatible = "allwinner,sun8i-v3s-csi";
|
||||
+ reg = <0x01cb4000 0x3000>;
|
||||
+ interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ clocks = <&ccu CLK_BUS_CSI>,
|
||||
+ <&ccu CLK_CSI1_SCLK>,
|
||||
+ <&ccu CLK_DRAM_CSI>;
|
||||
+ clock-names = "bus", "mod", "ram";
|
||||
+ resets = <&ccu RST_BUS_CSI>;
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+
|
||||
gic: interrupt-controller@1c81000 {
|
||||
compatible = "arm,gic-400";
|
||||
reg = <0x01c81000 0x1000>,
|
||||
--
|
||||
2.28.0
|
||||
|
||||
From 6e7f7ff8369e7b514906fcb2c04990bd91b2152e Mon Sep 17 00:00:00 2001
|
||||
From: Icenowy Zheng <icenowy@aosc.io>
|
||||
Date: Wed, 21 Aug 2019 11:02:46 +0800
|
||||
Subject: [PATCH 4/7] ARM: dts: sun8i: V3/V3s/S3/S3L: add pinctrl for 8-bit
|
||||
parallel CSI
|
||||
|
||||
The CSI1 controller of V3/V3s/S3/S3L SoCs is used for parallel CSI.
|
||||
|
||||
As we're going to add support for Pine64 SCC board, which uses 8-bit
|
||||
parallel CSI (and the MCLK output), add the pinctrl node of 8-bit
|
||||
CSI and MCLK to the DTSI file.
|
||||
|
||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
||||
---
|
||||
arch/arm/boot/dts/sun8i-v3s.dtsi | 14 ++++++++++++++
|
||||
1 file changed, 14 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
index 3e079973672d..19fba1a9115b 100644
|
||||
--- a/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
+++ b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
@@ -312,6 +312,20 @@ pio: pinctrl@1c20800 {
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <3>;
|
||||
|
||||
+ /omit-if-no-ref/
|
||||
+ csi1_8bit_pins: csi1-8bit-pins {
|
||||
+ pins = "PE0", "PE2", "PE3", "PE8", "PE9",
|
||||
+ "PE10", "PE11", "PE12", "PE13", "PE14",
|
||||
+ "PE15";
|
||||
+ function = "csi";
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ csi1_mclk_pin: csi1-mclk-pin {
|
||||
+ pins = "PE1";
|
||||
+ function = "csi";
|
||||
+ };
|
||||
+
|
||||
i2c0_pins: i2c0-pins {
|
||||
pins = "PB6", "PB7";
|
||||
function = "i2c0";
|
||||
--
|
||||
2.28.0
|
||||
|
||||
From 3856f5d0e56af789ef891cfce53ca13cd695fdb6 Mon Sep 17 00:00:00 2001
|
||||
From: Icenowy Zheng <icenowy@aosc.io>
|
||||
Date: Wed, 23 Sep 2020 03:01:26 +0800
|
||||
Subject: [PATCH 5/7] ARM: dts: sun8i: V3/V3s/S3/S3L: add pinctrl for I2C1 at
|
||||
PE bank
|
||||
|
||||
I2C1 controller is available at PE bank, usually used for
|
||||
connecting an I2C-controlled camera sensor.
|
||||
|
||||
Add pinctrl node for it.
|
||||
|
||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
||||
---
|
||||
arch/arm/boot/dts/sun8i-v3s.dtsi | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
index 19fba1a9115b..bae8fa9e356a 100644
|
||||
--- a/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
+++ b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
@@ -331,6 +331,12 @@ i2c0_pins: i2c0-pins {
|
||||
function = "i2c0";
|
||||
};
|
||||
|
||||
+ /omit-if-no-ref/
|
||||
+ i2c1_pe_pins: i2c1-pe-pins {
|
||||
+ pins = "PE21", "PE22";
|
||||
+ function = "i2c1";
|
||||
+ };
|
||||
+
|
||||
uart0_pb_pins: uart0-pb-pins {
|
||||
pins = "PB8", "PB9";
|
||||
function = "uart0";
|
||||
--
|
||||
2.28.0
|
||||
|
||||
From 32902be6608b71e466cc24914b8c808f4db0f5a6 Mon Sep 17 00:00:00 2001
|
||||
From: Icenowy Zheng <icenowy@aosc.io>
|
||||
Date: Wed, 23 Sep 2020 08:44:29 +0800
|
||||
Subject: [PATCH 6/7] dt-bindings: arm: sunxi: add Pine64 PineCube binding
|
||||
|
||||
Document board compatible names for Pine64 PineCube IP camera.
|
||||
|
||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
||||
---
|
||||
Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml
|
||||
index 5957a22c2e95..584b3fbf6e08 100644
|
||||
--- a/Documentation/devicetree/bindings/arm/sunxi.yaml
|
||||
+++ b/Documentation/devicetree/bindings/arm/sunxi.yaml
|
||||
@@ -631,6 +631,11 @@ properties:
|
||||
- const: pine64,pine64-plus
|
||||
- const: allwinner,sun50i-a64
|
||||
|
||||
+ - description: Pine64 PineCube
|
||||
+ items:
|
||||
+ - const: pine64,pinecube
|
||||
+ - const: allwinner,sun8i-v3
|
||||
+
|
||||
- description: Pine64 PineH64 model A
|
||||
items:
|
||||
- const: pine64,pine-h64
|
||||
--
|
||||
2.28.0
|
||||
|
||||
From c7fe26176bde4cc07dc07ac02c799d23026f4752 Mon Sep 17 00:00:00 2001
|
||||
From: Icenowy Zheng <icenowy@aosc.io>
|
||||
Date: Fri, 18 Jan 2019 21:21:48 +0800
|
||||
Subject: [PATCH 7/7] ARM: dts: sun8i: s3l: add support for Pine64 PineCube IP
|
||||
camera
|
||||
|
||||
The Pine64 PineCube IP camera is an IP camera with SoChip S3 SoC.
|
||||
|
||||
It comes with a main board, an expansion board and a camera.
|
||||
|
||||
The main board features a Micro-USB power-only jack, a USB Type-A port,
|
||||
an Ethernet port connected to the internal PHY of the SoC and a Realtek
|
||||
RTL8189ES SDIO Wi-Fi module. A RGB LCD connector is reserved on the
|
||||
board.
|
||||
|
||||
The expansion board features a TF slot, a microphone, a speaker
|
||||
connector with on-board amplifier and a few IR LEDs.
|
||||
|
||||
Add support for the kit, with features on the main board and the
|
||||
expansion board now.
|
||||
|
||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
||||
---
|
||||
arch/arm/boot/dts/Makefile | 1 +
|
||||
arch/arm/boot/dts/sun8i-s3-pinecube.dts | 235 ++++++++++++++++++++++++
|
||||
2 files changed, 236 insertions(+)
|
||||
create mode 100644 arch/arm/boot/dts/sun8i-s3-pinecube.dts
|
||||
|
||||
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
|
||||
index e7c59d0c8598..b163c8f1cefc 100644
|
||||
--- a/arch/arm/boot/dts/Makefile
|
||||
+++ b/arch/arm/boot/dts/Makefile
|
||||
@@ -1198,6 +1198,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \
|
||||
sun8i-r16-parrot.dtb \
|
||||
sun8i-r40-bananapi-m2-ultra.dtb \
|
||||
sun8i-s3-lichee-zero-plus.dtb \
|
||||
+ sun8i-s3-pinecube.dtb \
|
||||
sun8i-t3-cqa3t-bv3.dtb \
|
||||
sun8i-v3s-licheepi-zero.dtb \
|
||||
sun8i-v3s-licheepi-zero-dock.dtb \
|
||||
diff --git a/arch/arm/boot/dts/sun8i-s3-pinecube.dts b/arch/arm/boot/dts/sun8i-s3-pinecube.dts
|
||||
new file mode 100644
|
||||
index 000000000000..9bab6b7f4014
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/sun8i-s3-pinecube.dts
|
||||
@@ -0,0 +1,235 @@
|
||||
+// SPDX-License-Identifier: (GPL-2.0+ OR X11)
|
||||
+/*
|
||||
+ * Copyright 2019 Icenowy Zheng <icenowy@aosc.io>
|
||||
+ */
|
||||
+
|
||||
+/dts-v1/;
|
||||
+#include "sun8i-v3.dtsi"
|
||||
+#include <dt-bindings/gpio/gpio.h>
|
||||
+#include <dt-bindings/input/input.h>
|
||||
+
|
||||
+/ {
|
||||
+ model = "PineCube IP Camera";
|
||||
+ compatible = "pine64,pinecube", "allwinner,sun8i-s3";
|
||||
+
|
||||
+ aliases {
|
||||
+ serial0 = &uart2;
|
||||
+ };
|
||||
+
|
||||
+ chosen {
|
||||
+ stdout-path = "serial0:115200n8";
|
||||
+ };
|
||||
+
|
||||
+ leds {
|
||||
+ compatible = "gpio-leds";
|
||||
+
|
||||
+ led1 {
|
||||
+ label = "pine64:ir:led1";
|
||||
+ gpios = <&pio 1 10 GPIO_ACTIVE_LOW>; /* PB10 */
|
||||
+ };
|
||||
+
|
||||
+ led2 {
|
||||
+ label = "pine64:ir:led2";
|
||||
+ gpios = <&pio 1 12 GPIO_ACTIVE_LOW>; /* PB12 */
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ reg_vcc5v0: vcc5v0 {
|
||||
+ compatible = "regulator-fixed";
|
||||
+ regulator-name = "vcc5v0";
|
||||
+ regulator-min-microvolt = <5000000>;
|
||||
+ regulator-max-microvolt = <5000000>;
|
||||
+ };
|
||||
+
|
||||
+ reg_vcc_wifi: vcc-wifi {
|
||||
+ compatible = "regulator-fixed";
|
||||
+ regulator-name = "vcc-wifi";
|
||||
+ regulator-min-microvolt = <3300000>;
|
||||
+ regulator-max-microvolt = <3300000>;
|
||||
+ gpio = <&pio 1 2 GPIO_ACTIVE_LOW>; /* PB2 WIFI-EN */
|
||||
+ vin-supply = <®_dcdc3>;
|
||||
+ startup-delay-us = <200000>;
|
||||
+ };
|
||||
+
|
||||
+ wifi_pwrseq: wifi_pwrseq {
|
||||
+ compatible = "mmc-pwrseq-simple";
|
||||
+ reset-gpios = <&pio 1 3 GPIO_ACTIVE_LOW>; /* PB3 WIFI-RST */
|
||||
+ post-power-on-delay-ms = <200>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&csi1 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&csi1_8bit_pins>;
|
||||
+ status = "okay";
|
||||
+
|
||||
+ port {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ csi1_ep: endpoint {
|
||||
+ remote-endpoint = <&ov5640_ep>;
|
||||
+ bus-width = <8>;
|
||||
+ hsync-active = <1>; /* Active high */
|
||||
+ vsync-active = <0>; /* Active low */
|
||||
+ data-active = <1>; /* Active high */
|
||||
+ pclk-sample = <1>; /* Rising */
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&emac {
|
||||
+ phy-handle = <&int_mii_phy>;
|
||||
+ phy-mode = "mii";
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&i2c0 {
|
||||
+ status = "okay";
|
||||
+
|
||||
+ axp209: pmic@34 {
|
||||
+ compatible = "x-powers,axp203",
|
||||
+ "x-powers,axp209";
|
||||
+ reg = <0x34>;
|
||||
+ interrupt-parent = <&gic>;
|
||||
+ interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ interrupt-controller;
|
||||
+ #interrupt-cells = <1>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&i2c1 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&i2c1_pe_pins>;
|
||||
+ status = "okay";
|
||||
+
|
||||
+ ov5640: camera@3c {
|
||||
+ compatible = "ovti,ov5640";
|
||||
+ reg = <0x3c>;
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&csi1_mclk_pin>;
|
||||
+ clocks = <&ccu CLK_CSI1_MCLK>;
|
||||
+ clock-names = "xclk";
|
||||
+
|
||||
+ AVDD-supply = <®_ldo3>;
|
||||
+ DOVDD-supply = <®_ldo3>;
|
||||
+ DVDD-supply = <®_ldo4>;
|
||||
+ reset-gpios = <&pio 4 23 GPIO_ACTIVE_LOW>; /* PE23 */
|
||||
+ powerdown-gpios = <&pio 4 24 GPIO_ACTIVE_HIGH>; /* PE24 */
|
||||
+
|
||||
+ port {
|
||||
+ ov5640_ep: endpoint {
|
||||
+ remote-endpoint = <&csi1_ep>;
|
||||
+ bus-width = <8>;
|
||||
+ hsync-active = <1>; /* Active high */
|
||||
+ vsync-active = <0>; /* Active low */
|
||||
+ data-active = <1>; /* Active high */
|
||||
+ pclk-sample = <1>; /* Rising */
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&lradc {
|
||||
+ vref-supply = <®_ldo2>;
|
||||
+ status = "okay";
|
||||
+
|
||||
+ button-200 {
|
||||
+ label = "Setup";
|
||||
+ linux,code = <KEY_SETUP>;
|
||||
+ channel = <0>;
|
||||
+ voltage = <190000>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&mmc0 {
|
||||
+ vmmc-supply = <®_dcdc3>;
|
||||
+ bus-width = <4>;
|
||||
+ cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&mmc1 {
|
||||
+ vmmc-supply = <®_vcc_wifi>;
|
||||
+ vqmmc-supply = <®_dcdc3>;
|
||||
+ mmc-pwrseq = <&wifi_pwrseq>;
|
||||
+ bus-width = <4>;
|
||||
+ non-removable;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&pio {
|
||||
+ vcc-pd-supply = <®_dcdc3>;
|
||||
+ vcc-pe-supply = <®_ldo3>;
|
||||
+};
|
||||
+
|
||||
+#include "axp209.dtsi"
|
||||
+
|
||||
+&ac_power_supply {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+®_dcdc2 {
|
||||
+ regulator-always-on;
|
||||
+ regulator-min-microvolt = <1250000>;
|
||||
+ regulator-max-microvolt = <1250000>;
|
||||
+ regulator-name = "vdd-sys-cpu-ephy";
|
||||
+};
|
||||
+
|
||||
+®_dcdc3 {
|
||||
+ regulator-always-on;
|
||||
+ regulator-min-microvolt = <3300000>;
|
||||
+ regulator-max-microvolt = <3300000>;
|
||||
+ regulator-name = "vcc-3v3";
|
||||
+};
|
||||
+
|
||||
+®_ldo1 {
|
||||
+ regulator-name = "vdd-rtc";
|
||||
+};
|
||||
+
|
||||
+®_ldo2 {
|
||||
+ regulator-always-on;
|
||||
+ regulator-min-microvolt = <3000000>;
|
||||
+ regulator-max-microvolt = <3000000>;
|
||||
+ regulator-name = "avcc";
|
||||
+};
|
||||
+
|
||||
+®_ldo3 {
|
||||
+ regulator-min-microvolt = <2800000>;
|
||||
+ regulator-max-microvolt = <2800000>;
|
||||
+ regulator-name = "avdd-dovdd-2v8-csi";
|
||||
+ regulator-soft-start;
|
||||
+ regulator-ramp-delay = <1600>;
|
||||
+};
|
||||
+
|
||||
+®_ldo4 {
|
||||
+ regulator-min-microvolt = <1800000>;
|
||||
+ regulator-max-microvolt = <1800000>;
|
||||
+ regulator-name = "dvdd-1v8-csi";
|
||||
+};
|
||||
+
|
||||
+&spi0 {
|
||||
+ status = "okay";
|
||||
+
|
||||
+ flash@0 {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <1>;
|
||||
+ compatible = "winbond,w25q128", "jedec,spi-nor";
|
||||
+ reg = <0>;
|
||||
+ spi-max-frequency = <40000000>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&uart2 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&usb_otg {
|
||||
+ dr_mode = "host";
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&usbphy {
|
||||
+ usb0_vbus-supply = <®_vcc5v0>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
--
|
||||
2.28.0
|
||||
|
||||
152
patch/kernel/sunxi-current/general-add-v3s-ohci-ehci.patch
Normal file
152
patch/kernel/sunxi-current/general-add-v3s-ohci-ehci.patch
Normal file
@@ -0,0 +1,152 @@
|
||||
From bdbf0a1cb3c23e69ddff2a2c1c3202455b248afc Mon Sep 17 00:00:00 2001
|
||||
From: Icenowy Zheng <icenowy@aosc.io>
|
||||
Date: Wed, 16 Aug 2017 12:37:30 +0800
|
||||
Subject: [PATCH 1/3] ARM: dts: sun8i: v3s: add EHCI/OHCI0 device nodes
|
||||
|
||||
The USB PHY 0 on V3s SoC can also be routed to a pair of EHCI/OHCI
|
||||
controllers.
|
||||
|
||||
Add the device nodes for the controllers.
|
||||
|
||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
||||
---
|
||||
arch/arm/boot/dts/sun8i-v3s.dtsi | 19 +++++++++++++++++++
|
||||
1 file changed, 19 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
index 7b2d684aeb97..3e7e99745b73 100644
|
||||
--- a/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
+++ b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
@@ -297,6 +297,25 @@ usbphy: phy@1c19400 {
|
||||
#phy-cells = <1>;
|
||||
};
|
||||
|
||||
+ ehci0: usb@1c1a000 {
|
||||
+ compatible = "allwinner,sun8i-v3s-ehci", "generic-ehci";
|
||||
+ reg = <0x01c1a000 0x100>;
|
||||
+ interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>;
|
||||
+ resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+
|
||||
+ ohci0: usb@1c1a400 {
|
||||
+ compatible = "allwinner,sun8i-v3s-ohci", "generic-ohci";
|
||||
+ reg = <0x01c1a400 0x100>;
|
||||
+ interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>,
|
||||
+ <&ccu CLK_USB_OHCI0>;
|
||||
+ resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+
|
||||
ccu: clock@1c20000 {
|
||||
compatible = "allwinner,sun8i-v3s-ccu";
|
||||
reg = <0x01c20000 0x400>;
|
||||
--
|
||||
2.28.0
|
||||
|
||||
From 7c23b1d9d8140c97ffcfe5714467a6dc23462b32 Mon Sep 17 00:00:00 2001
|
||||
From: Icenowy Zheng <icenowy@aosc.io>
|
||||
Date: Wed, 16 Aug 2017 12:38:25 +0800
|
||||
Subject: [PATCH 2/3] ARM: dts: sun8i: v3s: enable EHCI/OHCI for Lichee Pi Zero
|
||||
|
||||
As the USB port on Lichee Pi Zero works in the OTG mode, enable the
|
||||
EHCI/OHCI controllers for it.
|
||||
|
||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
||||
---
|
||||
arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
|
||||
index 2e4587d26ce5..0cd969194acb 100644
|
||||
--- a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
|
||||
+++ b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
|
||||
@@ -77,6 +77,10 @@ red_led {
|
||||
};
|
||||
};
|
||||
|
||||
+&ehci0 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&mmc0 {
|
||||
broken-cd;
|
||||
bus-width = <4>;
|
||||
@@ -84,6 +88,10 @@ &mmc0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
+&ohci0 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&uart0 {
|
||||
pinctrl-0 = <&uart0_pb_pins>;
|
||||
pinctrl-names = "default";
|
||||
--
|
||||
2.28.0
|
||||
|
||||
From 845ece80db17cca5e205a14bb07bc428f0035c14 Mon Sep 17 00:00:00 2001
|
||||
From: Icenowy Zheng <icenowy@aosc.io>
|
||||
Date: Sun, 22 Nov 2020 08:25:35 +0800
|
||||
Subject: [PATCH 3/3] ARM: dts: sun8i: s3: switch PineCube to use OHCI/EHCI
|
||||
only
|
||||
|
||||
The PineCube board features a USB Type-A connector connected to the
|
||||
SoC's USB pins.
|
||||
|
||||
As this is not designed for being used as a USB device, disable OTG
|
||||
controller and route USB to OHCI/EHCI fixedly.
|
||||
|
||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
||||
---
|
||||
arch/arm/boot/dts/sun8i-s3-pinecube.dts | 17 ++++++++++++-----
|
||||
1 file changed, 12 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/sun8i-s3-pinecube.dts b/arch/arm/boot/dts/sun8i-s3-pinecube.dts
|
||||
index 4aa0ee897a0a..c4177c54ef29 100644
|
||||
--- a/arch/arm/boot/dts/sun8i-s3-pinecube.dts
|
||||
+++ b/arch/arm/boot/dts/sun8i-s3-pinecube.dts
|
||||
@@ -78,6 +78,12 @@ csi1_ep: endpoint {
|
||||
};
|
||||
};
|
||||
|
||||
+&ehci0 {
|
||||
+ phys = <&usbphy 0>;
|
||||
+ phy-names = "usb";
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&emac {
|
||||
phy-handle = <&int_mii_phy>;
|
||||
phy-mode = "mii";
|
||||
@@ -158,6 +164,12 @@ &mmc1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
+&ohci0 {
|
||||
+ phys = <&usbphy 0>;
|
||||
+ phy-names = "usb";
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&pio {
|
||||
vcc-pd-supply = <®_dcdc3>;
|
||||
vcc-pe-supply = <®_ldo3>;
|
||||
@@ -224,11 +236,6 @@ &uart2 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
-&usb_otg {
|
||||
- dr_mode = "host";
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
&usbphy {
|
||||
usb0_vbus-supply = <®_vcc5v0>;
|
||||
status = "okay";
|
||||
--
|
||||
2.28.0
|
||||
|
||||
@@ -1,31 +1,18 @@
|
||||
From a8b4a7d93b3616e58e65ab6da5501a376b74ecdc Mon Sep 17 00:00:00 2001
|
||||
From: S3EVB <hehopmajieh@debian.bg>
|
||||
Date: Mon, 30 Mar 2020 15:23:02 +0300
|
||||
Subject: [PATCH 31/48] sun8i-s3 initial support, needed for OLinuXino-S3
|
||||
boards
|
||||
|
||||
---
|
||||
arch/arm/boot/dts/Makefile | 1 +
|
||||
arch/arm/boot/dts/sun8i-s3-olinuxino.dts | 256 +++++++++++++++++++++++
|
||||
arch/arm/boot/dts/sun8i-v3s.dtsi | 137 ++++++++++++
|
||||
3 files changed, 394 insertions(+)
|
||||
create mode 100644 arch/arm/boot/dts/sun8i-s3-olinuxino.dts
|
||||
|
||||
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
|
||||
index 5933ec4b8b2b..d7a1562af413 100644
|
||||
index 6fd0cd808..f3ca6a6f5 100644
|
||||
--- a/arch/arm/boot/dts/Makefile
|
||||
+++ b/arch/arm/boot/dts/Makefile
|
||||
@@ -1156,6 +1156,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \
|
||||
@@ -1214,6 +1214,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \
|
||||
sun8i-r16-parrot.dtb \
|
||||
sun8i-r40-bananapi-m2-ultra.dtb \
|
||||
sun8i-s3-lichee-zero-plus.dtb \
|
||||
+ sun8i-s3-olinuxino.dtb \
|
||||
sun8i-s3-pinecube.dtb \
|
||||
sun8i-t3-cqa3t-bv3.dtb \
|
||||
sun8i-v3s-licheepi-zero.dtb \
|
||||
sun8i-v3s-licheepi-zero-dock.dtb \
|
||||
diff --git a/arch/arm/boot/dts/sun8i-s3-olinuxino.dts b/arch/arm/boot/dts/sun8i-s3-olinuxino.dts
|
||||
new file mode 100644
|
||||
index 000000000000..e06c7aaea2fa
|
||||
index 000000000..e06c7aaea
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/sun8i-s3-olinuxino.dts
|
||||
@@ -0,0 +1,256 @@
|
||||
@@ -286,72 +273,10 @@ index 000000000000..e06c7aaea2fa
|
||||
+ status = "okay";
|
||||
+};
|
||||
diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
index e5312869c0d2..4408ec5508f2 100644
|
||||
index 0c7341676..35b9f2637 100644
|
||||
--- a/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
+++ b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
@@ -138,6 +138,61 @@ mixer0_out_tcon0: endpoint {
|
||||
};
|
||||
};
|
||||
|
||||
+ syscon: syscon@1c00000 {
|
||||
+ compatible = "allwinner,sun8i-v3-system-controller",
|
||||
+ "syscon";
|
||||
+ reg = <0x01c00000 0x1000>;
|
||||
+ };
|
||||
+
|
||||
+ emac: ethernet@1c30000 {
|
||||
+ compatible = "allwinner,sun8i-v3s-emac";
|
||||
+ syscon = <&syscon>;
|
||||
+ reg = <0x01c30000 0x10000>;
|
||||
+ interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ interrupt-names = "macirq";
|
||||
+ resets = <&ccu RST_BUS_EMAC>;
|
||||
+ reset-names = "stmmaceth";
|
||||
+ clocks = <&ccu CLK_BUS_EMAC>;
|
||||
+ clock-names = "stmmaceth";
|
||||
+ phy-handle = <&int_mii_phy>;
|
||||
+ phy-mode = "mii";
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ status = "disabled";
|
||||
+
|
||||
+ mdio: mdio {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ compatible = "snps,dwmac-mdio";
|
||||
+ };
|
||||
+
|
||||
+ mdio-mux {
|
||||
+ compatible = "allwinner,sun8i-v3s-mdio-mux",
|
||||
+ "allwinner,sun8i-h3-mdio-mux";
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ mdio-parent-bus = <&mdio>;
|
||||
+
|
||||
+ internal_mdio: mdio@1 {
|
||||
+ compatible = "allwinner,sun8i-v3s-mdio-internal",
|
||||
+ "allwinner,sun8i-h3-mdio-internal";
|
||||
+ reg = <1>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ int_mii_phy: ethernet-phy@1 {
|
||||
+ compatible = "ethernet-phy-ieee802.3-c22";
|
||||
+ reg = <1>;
|
||||
+ clocks = <&ccu CLK_BUS_EPHY>;
|
||||
+ resets = <&ccu RST_BUS_EPHY>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ /* V3s has no external MDIO bus, but V3 has it */
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
tcon0: lcd-controller@1c0c000 {
|
||||
compatible = "allwinner,sun8i-v3s-tcon";
|
||||
reg = <0x01c0c000 0x1000>;
|
||||
@@ -172,6 +227,13 @@ tcon0_out: port@1 {
|
||||
@@ -197,6 +197,13 @@ tcon0_out: port@1 {
|
||||
};
|
||||
};
|
||||
|
||||
@@ -365,29 +290,9 @@ index e5312869c0d2..4408ec5508f2 100644
|
||||
|
||||
mmc0: mmc@1c0f000 {
|
||||
compatible = "allwinner,sun7i-a20-mmc";
|
||||
@@ -280,6 +342,19 @@ rtc: rtc@1c20400 {
|
||||
clock-output-names = "osc32k", "osc32k-out";
|
||||
};
|
||||
|
||||
+
|
||||
+ csi1: csi@1cb4000 {
|
||||
+ compatible = "allwinner,sun8i-v3s-csi";
|
||||
+ reg = <0x01cb4000 0x1000>;
|
||||
+ interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ clocks = <&ccu CLK_BUS_CSI>,
|
||||
+ <&ccu CLK_CSI1_SCLK>,
|
||||
+ <&ccu CLK_DRAM_CSI>;
|
||||
+ clock-names = "bus", "mod", "ram";
|
||||
+ resets = <&ccu RST_BUS_CSI>;
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+
|
||||
pio: pinctrl@1c20800 {
|
||||
compatible = "allwinner,sun8i-v3s-pinctrl";
|
||||
reg = <0x01c20800 0x400>;
|
||||
@@ -296,11 +371,22 @@ i2c0_pins: i2c0-pins {
|
||||
pins = "PB6", "PB7";
|
||||
function = "i2c0";
|
||||
@@ -352,11 +359,22 @@ i2c1_pe_pins: i2c1-pe-pins {
|
||||
pins = "PE21", "PE22";
|
||||
function = "i2c1";
|
||||
};
|
||||
+
|
||||
+ i2c1_pins: i2c1-pins {
|
||||
@@ -406,9 +311,9 @@ index e5312869c0d2..4408ec5508f2 100644
|
||||
+ function = "uart1";
|
||||
+ };
|
||||
|
||||
mmc0_pins: mmc0-pins {
|
||||
pins = "PF0", "PF1", "PF2", "PF3",
|
||||
@@ -322,6 +408,33 @@ spi0_pins: spi0-pins {
|
||||
uart2_pins: uart2-pins {
|
||||
pins = "PB0", "PB1";
|
||||
@@ -383,6 +401,33 @@ spi0_pins: spi0-pins {
|
||||
pins = "PC0", "PC1", "PC2", "PC3";
|
||||
function = "spi0";
|
||||
};
|
||||
@@ -442,7 +347,7 @@ index e5312869c0d2..4408ec5508f2 100644
|
||||
};
|
||||
|
||||
timer@1c20c00 {
|
||||
@@ -428,5 +541,29 @@ gic: interrupt-controller@1c81000 {
|
||||
@@ -546,5 +591,29 @@ gic: interrupt-controller@1c81000 {
|
||||
#interrupt-cells = <3>;
|
||||
interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
|
||||
};
|
||||
@@ -472,6 +377,3 @@ index e5312869c0d2..4408ec5508f2 100644
|
||||
+
|
||||
};
|
||||
};
|
||||
--
|
||||
2.25.1
|
||||
|
||||
|
||||
152
patch/kernel/sunxi-dev/general-add-v3s-ohci-ehci.patch
Normal file
152
patch/kernel/sunxi-dev/general-add-v3s-ohci-ehci.patch
Normal file
@@ -0,0 +1,152 @@
|
||||
From bdbf0a1cb3c23e69ddff2a2c1c3202455b248afc Mon Sep 17 00:00:00 2001
|
||||
From: Icenowy Zheng <icenowy@aosc.io>
|
||||
Date: Wed, 16 Aug 2017 12:37:30 +0800
|
||||
Subject: [PATCH 1/3] ARM: dts: sun8i: v3s: add EHCI/OHCI0 device nodes
|
||||
|
||||
The USB PHY 0 on V3s SoC can also be routed to a pair of EHCI/OHCI
|
||||
controllers.
|
||||
|
||||
Add the device nodes for the controllers.
|
||||
|
||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
||||
---
|
||||
arch/arm/boot/dts/sun8i-v3s.dtsi | 19 +++++++++++++++++++
|
||||
1 file changed, 19 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
index 7b2d684aeb97..3e7e99745b73 100644
|
||||
--- a/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
+++ b/arch/arm/boot/dts/sun8i-v3s.dtsi
|
||||
@@ -297,6 +297,25 @@ usbphy: phy@1c19400 {
|
||||
#phy-cells = <1>;
|
||||
};
|
||||
|
||||
+ ehci0: usb@1c1a000 {
|
||||
+ compatible = "allwinner,sun8i-v3s-ehci", "generic-ehci";
|
||||
+ reg = <0x01c1a000 0x100>;
|
||||
+ interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>;
|
||||
+ resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+
|
||||
+ ohci0: usb@1c1a400 {
|
||||
+ compatible = "allwinner,sun8i-v3s-ohci", "generic-ohci";
|
||||
+ reg = <0x01c1a400 0x100>;
|
||||
+ interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>,
|
||||
+ <&ccu CLK_USB_OHCI0>;
|
||||
+ resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+
|
||||
ccu: clock@1c20000 {
|
||||
compatible = "allwinner,sun8i-v3s-ccu";
|
||||
reg = <0x01c20000 0x400>;
|
||||
--
|
||||
2.28.0
|
||||
|
||||
From 7c23b1d9d8140c97ffcfe5714467a6dc23462b32 Mon Sep 17 00:00:00 2001
|
||||
From: Icenowy Zheng <icenowy@aosc.io>
|
||||
Date: Wed, 16 Aug 2017 12:38:25 +0800
|
||||
Subject: [PATCH 2/3] ARM: dts: sun8i: v3s: enable EHCI/OHCI for Lichee Pi Zero
|
||||
|
||||
As the USB port on Lichee Pi Zero works in the OTG mode, enable the
|
||||
EHCI/OHCI controllers for it.
|
||||
|
||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
||||
---
|
||||
arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
|
||||
index 2e4587d26ce5..0cd969194acb 100644
|
||||
--- a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
|
||||
+++ b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
|
||||
@@ -77,6 +77,10 @@ red_led {
|
||||
};
|
||||
};
|
||||
|
||||
+&ehci0 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&mmc0 {
|
||||
broken-cd;
|
||||
bus-width = <4>;
|
||||
@@ -84,6 +88,10 @@ &mmc0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
+&ohci0 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&uart0 {
|
||||
pinctrl-0 = <&uart0_pb_pins>;
|
||||
pinctrl-names = "default";
|
||||
--
|
||||
2.28.0
|
||||
|
||||
From 845ece80db17cca5e205a14bb07bc428f0035c14 Mon Sep 17 00:00:00 2001
|
||||
From: Icenowy Zheng <icenowy@aosc.io>
|
||||
Date: Sun, 22 Nov 2020 08:25:35 +0800
|
||||
Subject: [PATCH 3/3] ARM: dts: sun8i: s3: switch PineCube to use OHCI/EHCI
|
||||
only
|
||||
|
||||
The PineCube board features a USB Type-A connector connected to the
|
||||
SoC's USB pins.
|
||||
|
||||
As this is not designed for being used as a USB device, disable OTG
|
||||
controller and route USB to OHCI/EHCI fixedly.
|
||||
|
||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
||||
---
|
||||
arch/arm/boot/dts/sun8i-s3-pinecube.dts | 17 ++++++++++++-----
|
||||
1 file changed, 12 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/sun8i-s3-pinecube.dts b/arch/arm/boot/dts/sun8i-s3-pinecube.dts
|
||||
index 4aa0ee897a0a..c4177c54ef29 100644
|
||||
--- a/arch/arm/boot/dts/sun8i-s3-pinecube.dts
|
||||
+++ b/arch/arm/boot/dts/sun8i-s3-pinecube.dts
|
||||
@@ -78,6 +78,12 @@ csi1_ep: endpoint {
|
||||
};
|
||||
};
|
||||
|
||||
+&ehci0 {
|
||||
+ phys = <&usbphy 0>;
|
||||
+ phy-names = "usb";
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&emac {
|
||||
phy-handle = <&int_mii_phy>;
|
||||
phy-mode = "mii";
|
||||
@@ -158,6 +164,12 @@ &mmc1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
+&ohci0 {
|
||||
+ phys = <&usbphy 0>;
|
||||
+ phy-names = "usb";
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&pio {
|
||||
vcc-pd-supply = <®_dcdc3>;
|
||||
vcc-pe-supply = <®_ldo3>;
|
||||
@@ -224,11 +236,6 @@ &uart2 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
-&usb_otg {
|
||||
- dr_mode = "host";
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
&usbphy {
|
||||
usb0_vbus-supply = <®_vcc5v0>;
|
||||
status = "okay";
|
||||
--
|
||||
2.28.0
|
||||
|
||||
80
patch/u-boot/u-boot-sunxi/add-pinecube.patch
Normal file
80
patch/u-boot/u-boot-sunxi/add-pinecube.patch
Normal file
@@ -0,0 +1,80 @@
|
||||
From cec206360cf1183a1206a9f1b8bcf91456c2ee35 Mon Sep 17 00:00:00 2001
|
||||
From: Icenowy Zheng <icenowy@aosc.io>
|
||||
Date: Mon, 26 Oct 2020 22:02:44 +0800
|
||||
Subject: [PATCH 7/7] sunxi: add PineCube board
|
||||
|
||||
PineCube is an IP camera development kit released by Pine64.
|
||||
|
||||
It comes with the following compoents:
|
||||
|
||||
- A mainboard with Sochip S3 SoC, a 16MByte SPI Flash, AXP209 PMIC,
|
||||
a power-only microUSB connector, a USB Type-A connector, a 10/100Mbps
|
||||
Ethernet port and FPC connectors for camera and daughter board.
|
||||
- An OV5640-based camera module which is connected to the parallel CSI
|
||||
bus of the mainboard.
|
||||
- A daughterboard with several buttons, a SD slot, some IR LEDs, a
|
||||
microphone and a speaker connector.
|
||||
|
||||
As the device tree is synchronized in a previous commit, just add it to
|
||||
Makefile, create a new MAINTAINER item and provide a defconfig.
|
||||
|
||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
||||
---
|
||||
arch/arm/dts/Makefile | 1 +
|
||||
board/sunxi/MAINTAINERS | 5 +++++
|
||||
configs/pinecube_defconfig | 15 +++++++++++++++
|
||||
3 files changed, 21 insertions(+)
|
||||
create mode 100644 configs/pinecube_defconfig
|
||||
|
||||
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
|
||||
index f8f529435b..5fb5cb29a4 100644
|
||||
--- a/arch/arm/dts/Makefile
|
||||
+++ b/arch/arm/dts/Makefile
|
||||
@@ -578,6 +578,7 @@ dtb-$(CONFIG_MACH_SUN8I_R40) += \
|
||||
sun8i-r40-bananapi-m2-ultra.dtb \
|
||||
sun8i-v40-bananapi-m2-berry.dtb
|
||||
dtb-$(CONFIG_MACH_SUN8I_V3S) += \
|
||||
+ sun8i-s3-pinecube.dtb \
|
||||
sun8i-v3s-licheepi-zero.dtb
|
||||
dtb-$(CONFIG_MACH_SUN50I_H5) += \
|
||||
sun50i-h5-bananapi-m2-plus.dtb \
|
||||
diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS
|
||||
index 1180b86db3..5c53b2c878 100644
|
||||
--- a/board/sunxi/MAINTAINERS
|
||||
+++ b/board/sunxi/MAINTAINERS
|
||||
@@ -440,6 +440,11 @@ M: Vasily Khoruzhick <anarsoul@gmail.com>
|
||||
S: Maintained
|
||||
F: configs/pinebook_defconfig
|
||||
|
||||
+PINECUBE BOARD:
|
||||
+M: Icenowy Zheng <icenowy@aosc.io>
|
||||
+S: Maintained
|
||||
+F: configs/pinecube_defconfig
|
||||
+
|
||||
PINE64 BOARDS
|
||||
M: Andre Przywara <andre.przywara@arm.com>
|
||||
S: Maintained
|
||||
diff --git a/configs/pinecube_defconfig b/configs/pinecube_defconfig
|
||||
new file mode 100644
|
||||
index 0000000000..a8c404f6b1
|
||||
--- /dev/null
|
||||
+++ b/configs/pinecube_defconfig
|
||||
@@ -0,0 +1,15 @@
|
||||
+CONFIG_ARM=y
|
||||
+CONFIG_ARCH_SUNXI=y
|
||||
+CONFIG_SPL=y
|
||||
+CONFIG_MACH_SUN8I_V3S=y
|
||||
+CONFIG_SUNXI_DRAM_DDR3_1333=y
|
||||
+CONFIG_DRAM_CLK=504
|
||||
+CONFIG_DRAM_ODT_EN=y
|
||||
+CONFIG_I2C0_ENABLE=y
|
||||
+CONFIG_DEFAULT_DEVICE_TREE="sun8i-s3-pinecube"
|
||||
+CONFIG_SPL_I2C_SUPPORT=y
|
||||
+# CONFIG_NETDEVICES is not set
|
||||
+CONFIG_AXP209_POWER=y
|
||||
+CONFIG_AXP_DCDC2_VOLT=1250
|
||||
+CONFIG_AXP_DCDC3_VOLT=3300
|
||||
+CONFIG_CONS_INDEX=3
|
||||
--
|
||||
2.28.0
|
||||
|
||||
1379
patch/u-boot/u-boot-sunxi/s3-support.patch
Normal file
1379
patch/u-boot/u-boot-sunxi/s3-support.patch
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user