Skip to contentSkip to conversation

Allwinner V3/S3 support + PineCube support

PATCH New Icenowy Zheng 3 participants 11 messages Oct 26, 2020 – Oct 28, 2020

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

cover Allwinner V3/S3 support + PineCube support

This patchset tries to add support for Allwinner V3/S3 and Pine64 PineCube to U-Boot.

First 3 patches adds support for Allwinner V3/S3 to U-Boot by expanding the code of V3s and add compatible strings to individual drivers.

Then a patch allows V3 series chips to utilize the AXP20x driver in U-Boot.

Finally the device tree is synchorized from Linux v5.10-rc1 (which contains the PineCube DT) and PineCube defconfig is added.

Icenowy Zheng (6):
sunxi: add V3/S3 support
sunxi: gpio: introduce compatible string for V3 GPIO
clk: sunxi: add compatible string for V3
sunxi: allow to use AXP20[39] attached to I2C0 on V3 series
sunxi: dts: sync Allwinner V3s-related DTs from Linux 5.10-rc1
sunxi: add PineCube board

 arch/arm/dts/sun8i-s3-lichee-zero-plus.dts    |  53 +++
 arch/arm/dts/sun8i-s3-pinecube.dts            | 235 +++++++++++++
 arch/arm/dts/sun8i-v3.dtsi                    |  27 ++
 arch/arm/dts/sun8i-v3s-licheepi-zero-dock.dts |  96 ++++++
 arch/arm/dts/sun8i-v3s-licheepi-zero.dts      |  26 +-
 arch/arm/dts/sun8i-v3s.dtsi                   | 318 ++++++++++++++++--
 arch/arm/include/asm/arch-sunxi/gpio.h        |   1 +
 arch/arm/mach-sunxi/Kconfig                   |   3 +-
 board/sunxi/MAINTAINERS                       |   5 +
 board/sunxi/board.c                           |   4 +
 configs/pinecube_defconfig                    |  17 +
 drivers/clk/sunxi/clk_v3s.c                   |   2 +
 drivers/gpio/sunxi_gpio.c                     |   1 +
 drivers/power/Kconfig                         |   4 +-
 14 files changed, 758 insertions(+), 34 deletions(-)
 create mode 100644 arch/arm/dts/sun8i-s3-lichee-zero-plus.dts
 create mode 100644 arch/arm/dts/sun8i-s3-pinecube.dts
 create mode 100644 arch/arm/dts/sun8i-v3.dtsi
 create mode 100644 arch/arm/dts/sun8i-v3s-licheepi-zero-dock.dts
 create mode 100644 configs/pinecube_defconfig
Signature · 1 line
2.28.0
#1 lore raw

PATCH 1/6 sunxi: add V3/S3 support

Allwinner V3/Sochip S3 uses the same die with Allwinner V3s/S3L, but V3 comes with no co-packaged DDR (DDR3 is usually used externally), and S3L comes with co-packaged DDR3.

Add support for Allwinner V3/S3 chips by add SoC names to original V3s choice, and allow to select DDR3.

---
 arch/arm/mach-sunxi/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-sunxi/Kconfig +1 -2
index be0822bfb7..31339ac2a1 100644
@@ -253,7 +253,7 @@ config MACH_SUN8I_R40
 	select PHY_SUN4I_USB
 
 config MACH_SUN8I_V3S
-	bool "sun8i (Allwinner V3s)"
+	bool "sun8i (Allwinner V3/V3s/S3/S3L)"
 	select CPU_V7A
 	select CPU_V7_HAS_NONSEC
 	select CPU_V7_HAS_VIRT
@@ -363,7 +363,6 @@ choice
 config SUNXI_DRAM_DDR3_1333
 	bool "DDR3 1333"
 	select SUNXI_DRAM_DDR3
-	depends on !MACH_SUN8I_V3S
 	---help---
 	This option is the original only supported memory type, which suits
 	many H3/H5/A64 boards available now.
Signature · 1 line
2.28.0
#2 lore raw

PATCH 2/6 sunxi: gpio: introduce compatible string for V3 GPIO

In reply to Icenowy Zheng

A new compatible string is introduced for V3 GPIO, because it has more pins available than V3s.

Add the compatible string to the GPIO driver.

---
 drivers/gpio/sunxi_gpio.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/sunxi_gpio.c +1 -0
index 3efccf496f..02c3471b56 100644
@@ -351,6 +351,7 @@ static const struct udevice_id sunxi_gpio_ids[] = {
 	ID("allwinner,sun8i-a83t-pinctrl",	a_all),
 	ID("allwinner,sun8i-h3-pinctrl",	a_all),
 	ID("allwinner,sun8i-r40-pinctrl",	a_all),
+	ID("allwinner,sun8i-v3-pinctrl",	a_all),
 	ID("allwinner,sun8i-v3s-pinctrl",	a_all),
 	ID("allwinner,sun9i-a80-pinctrl",	a_all),
 	ID("allwinner,sun50i-a64-pinctrl",	a_all),
Signature · 1 line
2.28.0
#3 lore raw

PATCH 3/6 clk: sunxi: add compatible string for V3

In reply to Icenowy Zheng

A new compatible string is introduced for V3 CCU, because it has a few extra features available.

Add the compatible string to the clock driver. As the extra features are not touched, just share the description struct now.

---
 drivers/clk/sunxi/clk_v3s.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/clk/sunxi/clk_v3s.c +2 -0
index b79446cc4f..f3fc06ab31 100644
@@ -56,6 +56,8 @@ static int v3s_clk_bind(struct udevice *dev)
 static const struct udevice_id v3s_clk_ids[] = {
 	{ .compatible = "allwinner,sun8i-v3s-ccu",
 	  .data = (ulong)&v3s_ccu_desc },
+	{ .compatible = "allwinner,sun8i-v3-ccu",
+	  .data = (ulong)&v3s_ccu_desc },
 	{ }
 };
 
Signature · 1 line
2.28.0
#4 lore raw

PATCH 4/6 sunxi: allow to use AXP20[39] attached to I2C0 on V3 series

In reply to Icenowy Zheng

The reference design of Allwinner V3 series uses an
AXP203 or AXP209 PMIC attached to the I2C0 bus of the SoC, although the first community-available V3s board, Lichee Pi Zero, omitted it.

Allow to introduce support for the PMIC on boards with it.

---
 arch/arm/include/asm/arch-sunxi/gpio.h | 1 +
 board/sunxi/board.c                    | 4 ++++
 drivers/power/Kconfig                  | 4 ++--
 3 files changed, 7 insertions(+), 2 deletions(-)
arch/arm/include/asm/arch-sunxi/gpio.h +1 -0
index a646ea6a3c..f817d328f4 100644
@@ -158,6 +158,7 @@ enum sunxi_gpio_number {
 #define SUN5I_GPB_TWI1		2
 #define SUN4I_GPB_TWI2		2
 #define SUN5I_GPB_TWI2		2
+#define SUN8I_V3S_GPB_TWI0	2
 #define SUN4I_GPB_UART0		2
 #define SUN5I_GPB_UART0		2
 #define SUN8I_GPB_UART2		2
board/sunxi/board.c +4 -0
index a5cf0b65c7..3796213b9f 100644
@@ -101,6 +101,10 @@ void i2c_init_board(void)
 	sunxi_gpio_set_cfgpin(SUNXI_GPH(14), SUN6I_GPH_TWI0);
 	sunxi_gpio_set_cfgpin(SUNXI_GPH(15), SUN6I_GPH_TWI0);
 	clock_twi_onoff(0, 1);
+#elif defined(CONFIG_MACH_SUN8I_V3S)
+	sunxi_gpio_set_cfgpin(SUNXI_GPB(6), SUN8I_V3S_GPB_TWI0);
+	sunxi_gpio_set_cfgpin(SUNXI_GPB(7), SUN8I_V3S_GPB_TWI0);
+	clock_twi_onoff(0, 1);
 #elif defined(CONFIG_MACH_SUN8I)
 	sunxi_gpio_set_cfgpin(SUNXI_GPH(2), SUN8I_GPH_TWI0);
 	sunxi_gpio_set_cfgpin(SUNXI_GPH(3), SUN8I_GPH_TWI0);
drivers/power/Kconfig +2 -2
index 5910926fac..02050f6f35 100644
@@ -14,7 +14,7 @@ choice
 	default AXP209_POWER if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
 	default AXP221_POWER if MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40
 	default AXP818_POWER if MACH_SUN8I_A83T
-	default SUNXI_NO_PMIC if MACH_SUNXI_H3_H5 || MACH_SUN50I
+	default SUNXI_NO_PMIC if MACH_SUNXI_H3_H5 || MACH_SUN50I || MACH_SUN8I_V3S
 
 config SUNXI_NO_PMIC
 	bool "board without a pmic"
@@ -32,7 +32,7 @@ config AXP152_POWER
 
 config AXP209_POWER
 	bool "axp209 pmic support"
-	depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
+	depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || MACH_SUN8I_V3S
 	select AXP_PMIC_BUS
 	select CMD_POWEROFF
 	---help---
Signature · 1 line
2.28.0
#5 lore raw

PATCH 5/6 sunxi: dts: sync Allwinner V3s-related DTs from Linux 5.10-rc1

In reply to Icenowy Zheng

This commit imports device tree files that are related to Allwinner V3 series from Linux commit 3650b228f83a ("Linux 5.10-rc1").

---
 arch/arm/dts/sun8i-s3-lichee-zero-plus.dts    |  53 +++
 arch/arm/dts/sun8i-s3-pinecube.dts            | 235 +++++++++++++
 arch/arm/dts/sun8i-v3.dtsi                    |  27 ++
 arch/arm/dts/sun8i-v3s-licheepi-zero-dock.dts |  96 ++++++
 arch/arm/dts/sun8i-v3s-licheepi-zero.dts      |  26 +-
 arch/arm/dts/sun8i-v3s.dtsi                   | 318 ++++++++++++++++--
 6 files changed, 725 insertions(+), 30 deletions(-)
 create mode 100644 arch/arm/dts/sun8i-s3-lichee-zero-plus.dts
 create mode 100644 arch/arm/dts/sun8i-s3-pinecube.dts
 create mode 100644 arch/arm/dts/sun8i-v3.dtsi
 create mode 100644 arch/arm/dts/sun8i-v3s-licheepi-zero-dock.dts
arch/arm/dts/sun8i-s3-lichee-zero-plus.dts new file +53 -0
new file mode 100644
index 0000000000..d18192d51d
@@ -0,0 +1,53 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (C) 2019 Icenowy Zheng <[email protected]>
+ */
+
+/dts-v1/;
+#include "sun8i-v3.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+	model = "Sipeed Lichee Zero Plus";
+	compatible = "sipeed,lichee-zero-plus", "sochip,s3",
+		     "allwinner,sun8i-v3";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	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>;
+	vmmc-supply = <&reg_vcc3v3>;
+	status = "okay";
+};
+
+&uart0 {
+	pinctrl-0 = <&uart0_pb_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
+&usb_otg {
+	dr_mode = "peripheral";
+	status = "okay";
+};
+
+&usbphy {
+	usb0_id_det-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
+	status = "okay";
+};
arch/arm/dts/sun8i-s3-pinecube.dts new file +235 -0

235 lines not on this page · raw message

arch/arm/dts/sun8i-v3.dtsi new file +27 -0
new file mode 100644
index 0000000000..ca4672ed2e
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (C) 2019 Icenowy Zheng <[email protected]>
+ */
+
+#include "sun8i-v3s.dtsi"
+
+&ccu {
+	compatible = "allwinner,sun8i-v3-ccu";
+};
+
+&emac {
+	/delete-property/ phy-handle;
+	/delete-property/ phy-mode;
+};
+
+&mdio_mux {
+	external_mdio: mdio at 2 {
+		reg = <2>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+	};
+};
+
+&pio {
+	compatible = "allwinner,sun8i-v3-pinctrl";
+};
arch/arm/dts/sun8i-v3s-licheepi-zero-dock.dts new file +96 -0

96 lines not on this page · raw message

arch/arm/dts/sun8i-v3s-licheepi-zero.dts +22 -4
index 3d9168cbae..2e4587d26c 100644
@@ -55,11 +55,29 @@
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		blue_led {
+			label = "licheepi:blue:usr";
+			gpios = <&pio 6 1 GPIO_ACTIVE_LOW>; /* PG1 */
+		};
+
+		green_led {
+			label = "licheepi:green:usr";
+			gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */
+			default-state = "on";
+		};
+
+		red_led {
+			label = "licheepi:red:usr";
+			gpios = <&pio 6 2 GPIO_ACTIVE_LOW>; /* PG2 */
+		};
+	};
 };
 
 &mmc0 {
-	pinctrl-0 = <&mmc0_pins_a>;
-	pinctrl-names = "default";
 	broken-cd;
 	bus-width = <4>;
 	vmmc-supply = <&reg_vcc3v3>;
@@ -67,7 +85,7 @@
 };
 
 &uart0 {
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pb_pins>;
 	pinctrl-names = "default";
 	status = "okay";
 };
@@ -78,6 +96,6 @@
 };
 
 &usbphy {
-	usb0_id_det-gpio = <&pio 5 6 GPIO_ACTIVE_HIGH>;
+	usb0_id_det-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 };
arch/arm/dts/sun8i-v3s.dtsi +292 -26

461 lines not on this page · raw message

Signature · 1 line
2.28.0
#6 lore raw

PATCH 6/6 sunxi: add PineCube board

In reply to Icenowy Zheng

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 MAINTAINER item and a defconfig.

---
 board/sunxi/MAINTAINERS    |  5 +++++
 configs/pinecube_defconfig | 17 +++++++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 configs/pinecube_defconfig
board/sunxi/MAINTAINERS +5 -0
index 1180b86db3..5c53b2c878 100644
@@ -440,6 +440,11 @@ M:	Vasily Khoruzhick <[email protected]>
 S:	Maintained
 F:	configs/pinebook_defconfig
 
+PINECUBE BOARD:
+M:	Icenowy Zheng <[email protected]>
+S:	Maintained
+F:	configs/pinecube_defconfig
+
 PINE64 BOARDS
 M:	Andre Przywara <[email protected]>
 S:	Maintained
configs/pinecube_defconfig new file +17 -0
new file mode 100644
index 0000000000..107562ee49
@@ -0,0 +1,17 @@
+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_AXP_ALDO3_VOLT_SLOPE_08=y
+CONFIG_AXP_ALDO3_INRUSH_QUIRK=y
+CONFIG_CONS_INDEX=3
Signature · 1 line
2.28.0
#7 lore raw

PATCH 6/6 sunxi: add PineCube board

Quoted 50 lines · Icenowy Zheng

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 MAINTAINER item and a defconfig.

---
 board/sunxi/MAINTAINERS    |  5 +++++
 configs/pinecube_defconfig | 17 +++++++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 configs/pinecube_defconfig
board/sunxi/MAINTAINERS +5 -0
index 1180b86db3..5c53b2c878 100644
@@ -440,6 +440,11 @@ M:	Vasily Khoruzhick <[email protected]>
 S:	Maintained
 F:	configs/pinebook_defconfig
 
+PINECUBE BOARD:
+M:	Icenowy Zheng <[email protected]>
+S:	Maintained
+F:	configs/pinecube_defconfig
+
 PINE64 BOARDS
 M:	Andre Przywara <[email protected]>
 S:	Maintained
configs/pinecube_defconfig new file +6 -0
new file mode 100644
index 0000000000..107562ee49
@@ -0,0 +1,17 @@
+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

configs/pinecube_defconfig line 16

Quoted 10 lines
configs/pinecube_defconfig new file +10 -0
+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_AXP_ALDO3_VOLT_SLOPE_08=y
+CONFIG_AXP_ALDO3_INRUSH_QUIRK=y

It would be worth mentioning in the commit log why you need those options.

With that fixed, the whole series is

Thanks!
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201026/48c584b3/attachment.sig>

#8 lore raw

[linux-sunxi] Re: [PATCH 6/6] sunxi: add PineCube board

? 2020?10?27? GMT+08:00 ??2:32:30, Maxime Ripard <[email protected]> ??:

Quoted 57 lines · Icenowy Zheng
Quoted 8 lines

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

Quoted 47 lines

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 MAINTAINER item and a defconfig.

---
 board/sunxi/MAINTAINERS    |  5 +++++
 configs/pinecube_defconfig | 17 +++++++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 configs/pinecube_defconfig
board/sunxi/MAINTAINERS +5 -0
index 1180b86db3..5c53b2c878 100644
@@ -440,6 +440,11 @@ M:	Vasily Khoruzhick <[email protected]>
 S:	Maintained
 F:	configs/pinebook_defconfig
 
+PINECUBE BOARD:
+M:	Icenowy Zheng <[email protected]>
+S:	Maintained
+F:	configs/pinecube_defconfig
+
 PINE64 BOARDS
 M:	Andre Przywara <[email protected]>
 S:	Maintained
configs/pinecube_defconfig new file +11 -0
new file mode 100644
index 0000000000..107562ee49
@@ -0,0 +1,17 @@
+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
Quoted 8 lines

configs/pinecube_defconfig line 16

Quoted 5 lines
configs/pinecube_defconfig new file +5 -0
+CONFIG_AXP209_POWER=y
+CONFIG_AXP_DCDC2_VOLT=1250
+CONFIG_AXP_DCDC3_VOLT=3300
+CONFIG_AXP_ALDO3_VOLT_SLOPE_08=y
+CONFIG_AXP_ALDO3_INRUSH_QUIRK=y

It would be worth mentioning in the commit log why you need those options.

For the ALDO3 options, they might be not necessary in U-Boot stage, because it's finally only used in Linux stage.

I don't know whether these are still needed when we declared the hack in DT for Linux.

Quoted 6 lines

With that fixed, the whole series is

Thanks!
Maxime

#9 lore raw

PATCH 6/6 sunxi: add PineCube board

In reply to Icenowy Zheng
Quoted 51 lines · Icenowy Zheng

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 MAINTAINER item and a defconfig.

---
 board/sunxi/MAINTAINERS    |  5 +++++
 configs/pinecube_defconfig | 17 +++++++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 configs/pinecube_defconfig
board/sunxi/MAINTAINERS +5 -0
index 1180b86db3..5c53b2c878 100644
@@ -440,6 +440,11 @@ M: Vasily Khoruzhick <[email protected]>
 S:     Maintained
 F:     configs/pinebook_defconfig
 
+PINECUBE BOARD:
+M:     Icenowy Zheng <[email protected]>
+S:     Maintained
+F:     configs/pinecube_defconfig
+
 PINE64 BOARDS
 M:     Andre Przywara <[email protected]>
 S:     Maintained
configs/pinecube_defconfig new file +6 -0
new file mode 100644
index 0000000000..107562ee49
@@ -0,0 +1,17 @@
+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

configs/pinecube_defconfig line 16

Quoted 10 lines
configs/pinecube_defconfig new file +10 -0
+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_AXP_ALDO3_VOLT_SLOPE_08=y
+CONFIG_AXP_ALDO3_INRUSH_QUIRK=y

All these AXP enablements start from AXP209_POWER to the respective dc and load values are selected from drivers/power/Kconfig itself. Please check it.

Jagan.

#10 lore raw

cover Allwinner V3/S3 support + PineCube support

In reply to Icenowy Zheng
Quoted 13 lines · Icenowy Zheng

This patchset tries to add support for Allwinner V3/S3 and Pine64 PineCube to U-Boot.

First 3 patches adds support for Allwinner V3/S3 to U-Boot by expanding the code of V3s and add compatible strings to individual drivers.

Then a patch allows V3 series chips to utilize the AXP20x driver in U-Boot.

Finally the device tree is synchorized from Linux v5.10-rc1 (which contains the PineCube DT) and PineCube defconfig is added.

Quoted 6 lines

Icenowy Zheng (6):
sunxi: add V3/S3 support
sunxi: gpio: introduce compatible string for V3 GPIO
clk: sunxi: add compatible string for V3
sunxi: allow to use AXP20[39] attached to I2C0 on V3 series
sunxi: dts: sync Allwinner V3s-related DTs from Linux 5.10-rc1

Applied to u-boot-sunxi/master.

Quoted 1 line

sunxi: add PineCube board

Jagan.