Skip to contentSkip to conversation

sunxi: Sync H3/H5 DT and add ALL-H3-IT and ALL-H5-CC

PATCH New Chen-Yu Tsai 2 participants 13 messages Jan 12, 2020 – Feb 5, 2020

Subsystems (5)
lore
Share & tools
lore

Chen-Yu Tsai

author maintainer
#0 lore raw

cover sunxi: Sync H3/H5 DT and add ALL-H3-IT and ALL-H5-CC

From: Chen-Yu Tsai <[email protected]>

Hi everyone,

This patch series syncs up the device tree files and header files for Allwinner H3/H5 SoCs and related boards to linux-next-20200108, and then adds support for Libre Computer ALL-H3-IT H5 and ALL-H5-CC H5 boards.

Patch 1 syncs up the device tree files and related device tree binding header files for the Allwinner H3 and H5 SoCs, and boards using these chips. These were compile tested.

Patch 2 adds a defconfig and MAINTAINERS entry for the ALL-H3-IT's H5 variant. Other variants will be added as they are made available.

Patch 3 adds a defconfig and MAINTAINERS entry for the ALL-H5-CC's H5 variant. Other variants will be added as they are made available.

Please have a look.

Regards
ChenYu

Chen-Yu Tsai (3):
sunxi: H3/H5 Sync DT files from upstream Linux kernel as of

    next-20200108

sunxi: Add Libre Computer ALL-H3-IT H5 board
sunxi: Add Libre Computer ALL-H5-CC H5 board

 arch/arm/dts/Makefile                         |   9 +-
 .../dts/sun50i-h5-bananapi-m2-plus-v1.2.dts   |  11 ++
 .../sun50i-h5-emlid-neutis-n5-devboard.dts    | 137 ++-----------
 arch/arm/dts/sun50i-h5-emlid-neutis-n5.dtsi   |  95 +--------
 .../arm/dts/sun50i-h5-libretech-all-h3-cc.dts |  10 +-
 .../arm/dts/sun50i-h5-libretech-all-h3-it.dts |  11 ++
 .../arm/dts/sun50i-h5-libretech-all-h5-cc.dts |  61 ++++++
 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts   |  53 +----
 arch/arm/dts/sun50i-h5-nanopi-neo2.dts        |  45 +----
 arch/arm/dts/sun50i-h5-orangepi-pc2.dts       |  47 +----
 arch/arm/dts/sun50i-h5-orangepi-prime.dts     |  52 +----
 arch/arm/dts/sun50i-h5-orangepi-zero-plus.dts |  11 +-
 .../arm/dts/sun50i-h5-orangepi-zero-plus2.dts |  46 +----
 arch/arm/dts/sun50i-h5.dtsi                   | 186 +++++++++++++-----
 .../dts/sun8i-h2-plus-bananapi-m2-zero.dts    |  40 +++-
 arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts    |   2 -
 arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts  |  22 ++-
 .../dts/sun8i-h3-bananapi-m2-plus-v1.2.dts    |  13 ++
 arch/arm/dts/sun8i-h3-beelink-x2.dts          |  11 +-
 .../sun8i-h3-emlid-neutis-n5h3-devboard.dts   |  72 +++++++
 arch/arm/dts/sun8i-h3-emlid-neutis-n5h3.dtsi  |  11 ++
 arch/arm/dts/sun8i-h3-mapleboard-mp130.dts    | 152 ++++++++++++++
 arch/arm/dts/sun8i-h3-nanopi-duo2.dts         | 173 ++++++++++++++++
 arch/arm/dts/sun8i-h3-nanopi-m1-plus.dts      |  28 ++-
 arch/arm/dts/sun8i-h3-nanopi-m1.dts           |   2 +-
 arch/arm/dts/sun8i-h3-nanopi-neo-air.dts      |   2 +-
 arch/arm/dts/sun8i-h3-nanopi.dtsi             |  25 +--
 arch/arm/dts/sun8i-h3-orangepi-2.dts          |  34 +---
 arch/arm/dts/sun8i-h3-orangepi-lite.dts       |  27 +--
 arch/arm/dts/sun8i-h3-orangepi-one.dts        |  28 +--
 arch/arm/dts/sun8i-h3-orangepi-pc.dts         |  27 +--
 arch/arm/dts/sun8i-h3-orangepi-plus.dts       |  23 ++-
 arch/arm/dts/sun8i-h3-orangepi-zero-plus2.dts |   2 +-
 arch/arm/dts/sun8i-h3-rervision-dvk.dts       | 114 +++++++++++
 arch/arm/dts/sun8i-h3.dtsi                    |  86 +++++++-
 arch/arm/dts/sunxi-bananapi-m2-plus-v1.2.dtsi |  30 +++
 arch/arm/dts/sunxi-bananapi-m2-plus.dtsi      |   7 +-
 arch/arm/dts/sunxi-h3-h5-emlid-neutis.dtsi    | 170 ++++++++++++++++
 arch/arm/dts/sunxi-h3-h5.dtsi                 | 137 ++++++++-----
 arch/arm/dts/sunxi-libretech-all-h3-cc.dtsi   |  65 +++++-
 arch/arm/dts/sunxi-libretech-all-h3-it.dtsi   | 180 +++++++++++++++++
 board/sunxi/MAINTAINERS                       |  10 +
 configs/libretech_all_h3_it_h5_defconfig      |  22 +++
 configs/libretech_all_h5_cc_h5_defconfig      |  23 +++
 include/dt-bindings/clock/sun8i-h3-ccu.h      |  11 +-
 include/dt-bindings/reset/sun8i-h3-ccu.h      |   5 +-
 46 files changed, 1605 insertions(+), 723 deletions(-)
 create mode 100644 arch/arm/dts/sun50i-h5-bananapi-m2-plus-v1.2.dts
 create mode 100644 arch/arm/dts/sun50i-h5-libretech-all-h3-it.dts
 create mode 100644 arch/arm/dts/sun50i-h5-libretech-all-h5-cc.dts
 create mode 100644 arch/arm/dts/sun8i-h3-bananapi-m2-plus-v1.2.dts
 create mode 100644 arch/arm/dts/sun8i-h3-emlid-neutis-n5h3-devboard.dts
 create mode 100644 arch/arm/dts/sun8i-h3-emlid-neutis-n5h3.dtsi
 create mode 100644 arch/arm/dts/sun8i-h3-mapleboard-mp130.dts
 create mode 100644 arch/arm/dts/sun8i-h3-nanopi-duo2.dts
 create mode 100644 arch/arm/dts/sun8i-h3-rervision-dvk.dts
 create mode 100644 arch/arm/dts/sunxi-bananapi-m2-plus-v1.2.dtsi
 create mode 100644 arch/arm/dts/sunxi-h3-h5-emlid-neutis.dtsi
 create mode 100644 arch/arm/dts/sunxi-libretech-all-h3-it.dtsi
 create mode 100644 configs/libretech_all_h3_it_h5_defconfig
 create mode 100644 configs/libretech_all_h5_cc_h5_defconfig
Signature · 1 line
2.24.1
author maintainer
#1 lore raw

PATCH 1/3 sunxi: H3/H5 Sync DT files from upstream Linux kernel as of next-20200108

From: Chen-Yu Tsai <[email protected]>

Sync the device tree files and device tree header files from upstream Linux kernel, as of 2020-01-08. The commit synced to in the sunxi repo

    98d25b0b266d Merge branch 'sunxi/dt-for-5.6' into sunxi/for-next

which is also part of next-20200108.

Changes brought in include:

- cleanup of pinmux node names
- addition of Security ID, MBUS, CSI, crypto engine, video codec, pmu, and thermal sensor device nodes for both SoCs
- addition of deinterlacing engine device node on H3
- cleanup of RTC device node and addition of its clocks
- various board cleanups and improvements
- removal of pinmux node for GPIO lines
- cpufreq / DVFS
- HDMI output
- UART-based Bluetooth
- audio codec
- USB ports
- new boards

Most of the changes don't concern U-boot.

---
 arch/arm/dts/Makefile                         |   9 +-
 .../dts/sun50i-h5-bananapi-m2-plus-v1.2.dts   |  11 ++
 .../sun50i-h5-emlid-neutis-n5-devboard.dts    | 137 ++-----------
 arch/arm/dts/sun50i-h5-emlid-neutis-n5.dtsi   |  95 +--------
 .../arm/dts/sun50i-h5-libretech-all-h3-cc.dts |  10 +-
 .../arm/dts/sun50i-h5-libretech-all-h3-it.dts |  11 ++
 .../arm/dts/sun50i-h5-libretech-all-h5-cc.dts |  61 ++++++
 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts   |  53 +----
 arch/arm/dts/sun50i-h5-nanopi-neo2.dts        |  45 +----
 arch/arm/dts/sun50i-h5-orangepi-pc2.dts       |  47 +----
 arch/arm/dts/sun50i-h5-orangepi-prime.dts     |  52 +----
 arch/arm/dts/sun50i-h5-orangepi-zero-plus.dts |  11 +-
 .../arm/dts/sun50i-h5-orangepi-zero-plus2.dts |  46 +----
 arch/arm/dts/sun50i-h5.dtsi                   | 186 +++++++++++++-----
 .../dts/sun8i-h2-plus-bananapi-m2-zero.dts    |  40 +++-
 arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts    |   2 -
 arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts  |  22 ++-
 .../dts/sun8i-h3-bananapi-m2-plus-v1.2.dts    |  13 ++
 arch/arm/dts/sun8i-h3-beelink-x2.dts          |  11 +-
 .../sun8i-h3-emlid-neutis-n5h3-devboard.dts   |  72 +++++++
 arch/arm/dts/sun8i-h3-emlid-neutis-n5h3.dtsi  |  11 ++
 arch/arm/dts/sun8i-h3-mapleboard-mp130.dts    | 152 ++++++++++++++
 arch/arm/dts/sun8i-h3-nanopi-duo2.dts         | 173 ++++++++++++++++
 arch/arm/dts/sun8i-h3-nanopi-m1-plus.dts      |  28 ++-
 arch/arm/dts/sun8i-h3-nanopi-m1.dts           |   2 +-
 arch/arm/dts/sun8i-h3-nanopi-neo-air.dts      |   2 +-
 arch/arm/dts/sun8i-h3-nanopi.dtsi             |  25 +--
 arch/arm/dts/sun8i-h3-orangepi-2.dts          |  34 +---
 arch/arm/dts/sun8i-h3-orangepi-lite.dts       |  27 +--
 arch/arm/dts/sun8i-h3-orangepi-one.dts        |  28 +--
 arch/arm/dts/sun8i-h3-orangepi-pc.dts         |  27 +--
 arch/arm/dts/sun8i-h3-orangepi-plus.dts       |  23 ++-
 arch/arm/dts/sun8i-h3-orangepi-zero-plus2.dts |   2 +-
 arch/arm/dts/sun8i-h3-rervision-dvk.dts       | 114 +++++++++++
 arch/arm/dts/sun8i-h3.dtsi                    |  86 +++++++-
 arch/arm/dts/sunxi-bananapi-m2-plus-v1.2.dtsi |  30 +++
 arch/arm/dts/sunxi-bananapi-m2-plus.dtsi      |   7 +-
 arch/arm/dts/sunxi-h3-h5-emlid-neutis.dtsi    | 170 ++++++++++++++++
 arch/arm/dts/sunxi-h3-h5.dtsi                 | 137 ++++++++-----
 arch/arm/dts/sunxi-libretech-all-h3-cc.dtsi   |  65 +++++-
 arch/arm/dts/sunxi-libretech-all-h3-it.dtsi   | 180 +++++++++++++++++
 include/dt-bindings/clock/sun8i-h3-ccu.h      |  11 +-
 include/dt-bindings/reset/sun8i-h3-ccu.h      |   5 +-
 43 files changed, 1550 insertions(+), 723 deletions(-)
 create mode 100644 arch/arm/dts/sun50i-h5-bananapi-m2-plus-v1.2.dts
 create mode 100644 arch/arm/dts/sun50i-h5-libretech-all-h3-it.dts
 create mode 100644 arch/arm/dts/sun50i-h5-libretech-all-h5-cc.dts
 create mode 100644 arch/arm/dts/sun8i-h3-bananapi-m2-plus-v1.2.dts
 create mode 100644 arch/arm/dts/sun8i-h3-emlid-neutis-n5h3-devboard.dts
 create mode 100644 arch/arm/dts/sun8i-h3-emlid-neutis-n5h3.dtsi
 create mode 100644 arch/arm/dts/sun8i-h3-mapleboard-mp130.dts
 create mode 100644 arch/arm/dts/sun8i-h3-nanopi-duo2.dts
 create mode 100644 arch/arm/dts/sun8i-h3-rervision-dvk.dts
 create mode 100644 arch/arm/dts/sunxi-bananapi-m2-plus-v1.2.dtsi
 create mode 100644 arch/arm/dts/sunxi-h3-h5-emlid-neutis.dtsi
 create mode 100644 arch/arm/dts/sunxi-libretech-all-h3-it.dtsi
arch/arm/dts/Makefile +8 -1
index 983e235f4427..b89ed48e9a4e 100644
@@ -513,8 +513,12 @@ dtb-$(CONFIG_MACH_SUN8I_H3) += \
 	sun8i-h2-plus-orangepi-r1.dtb \
 	sun8i-h2-plus-orangepi-zero.dtb \
 	sun8i-h3-bananapi-m2-plus.dtb \
+	sun8i-h3-bananapi-m2-plus-v1.2.dtb \
 	sun8i-h3-beelink-x2.dtb \
+	sun8i-h3-emlid-neutis-n5h3-devboard.dtb \
 	sun8i-h3-libretech-all-h3-cc.dtb \
+	sun8i-h3-mapleboard-mp130.dtb \
+	sun8i-h3-nanopi-duo2.dtb \
 	sun8i-h3-nanopi-m1.dtb \
 	sun8i-h3-nanopi-m1-plus.dtb \
 	sun8i-h3-nanopi-neo.dtb \
@@ -526,7 +530,8 @@ dtb-$(CONFIG_MACH_SUN8I_H3) += \
 	sun8i-h3-orangepi-pc-plus.dtb \
 	sun8i-h3-orangepi-plus.dtb \
 	sun8i-h3-orangepi-plus2e.dtb \
-	sun8i-h3-orangepi-zero-plus2.dtb
+	sun8i-h3-orangepi-zero-plus2.dtb \
+	sun8i-h3-rervision-dvk.dtb
 dtb-$(CONFIG_MACH_SUN8I_R40) += \
 	sun8i-r40-bananapi-m2-ultra.dtb \
 	sun8i-v40-bananapi-m2-berry.dtb
@@ -536,6 +541,8 @@ dtb-$(CONFIG_MACH_SUN50I_H5) += \
 	sun50i-h5-bananapi-m2-plus.dtb \
 	sun50i-h5-emlid-neutis-n5-devboard.dtb \
 	sun50i-h5-libretech-all-h3-cc.dtb \
+	sun50i-h5-libretech-all-h3-it.dtb \
+	sun50i-h5-libretech-all-h5-cc.dtb \
 	sun50i-h5-nanopi-neo2.dtb \
 	sun50i-h5-nanopi-neo-plus2.dtb \
 	sun50i-h5-orangepi-zero-plus.dtb \
arch/arm/dts/sun50i-h5-bananapi-m2-plus-v1.2.dts new file +11 -0
new file mode 100644
index 000000000000..2e2b14c0ae75
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+// Copyright (C) 2018 Chen-Yu Tsai <[email protected]>
+
+/dts-v1/;
+#include "sun50i-h5.dtsi"
+#include <arm/sunxi-bananapi-m2-plus-v1.2.dtsi>
+
+/ {
+	model = "Banana Pi BPI-M2-Plus v1.2 H5";
+	compatible = "bananapi,bpi-m2-plus-v1.2", "allwinner,sun50i-h5";
+};
arch/arm/dts/sun50i-h5-emlid-neutis-n5-devboard.dts +12 -125

171 lines not on this page · raw message

arch/arm/dts/sun50i-h5-emlid-neutis-n5.dtsi +5 -90

101 lines not on this page · raw message

arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts +6 -4
index a35f77de22d8..a91806618e6f 100644
@@ -1,8 +1,6 @@
 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
-/*
- * Copyright (C) 2018 BayLibre, SAS
- * Author: Neil Armstrong <[email protected]>
- */
+// Copyright (C) 2018 BayLibre, SAS
+// Author: Neil Armstrong <[email protected]>
 
 /dts-v1/;
 #include "sun50i-h5.dtsi"
@@ -12,3 +10,7 @@
 	model = "Libre Computer Board ALL-H3-CC H5";
 	compatible = "libretech,all-h3-cc-h5", "allwinner,sun50i-h5";
 };
+
+&mmc2 {
+	mmc-ddr-3_3v;
+};
arch/arm/dts/sun50i-h5-libretech-all-h3-it.dts new file +11 -0
new file mode 100644
index 000000000000..f6756d1bb057
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+// Copyright (C) 2019 Chen-Yu Tsai <[email protected]>
+
+/dts-v1/;
+#include "sun50i-h5.dtsi"
+#include <sunxi-libretech-all-h3-it.dtsi>
+
+/ {
+	model = "Libre Computer Board ALL-H3-IT H5";
+	compatible = "libretech,all-h3-it-h5", "allwinner,sun50i-h5";
+};
arch/arm/dts/sun50i-h5-libretech-all-h5-cc.dts new file +61 -0

61 lines not on this page · raw message

arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts +5 -48

84 lines not on this page · raw message

arch/arm/dts/sun50i-h5-nanopi-neo2.dts +3 -42

54 lines not on this page · raw message

arch/arm/dts/sun50i-h5-orangepi-pc2.dts +4 -43

62 lines not on this page · raw message

arch/arm/dts/sun50i-h5-orangepi-prime.dts +6 -46

67 lines not on this page · raw message

arch/arm/dts/sun50i-h5-orangepi-zero-plus.dts +4 -7
index 1238de25a969..ef5ca6444220 100644
@@ -1,9 +1,6 @@
-/*
- * Copyright (C) 2016 ARM Ltd.
- * Copyright (C) 2018 Hauke Mehrtens <[email protected]>
- *
- * SPDX-License-Identifier: (GPL-2.0+ OR X11)
- */
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+// Copyright (C) 2016 ARM Ltd.
+// Copyright (C) 2018 Hauke Mehrtens <[email protected]>
 
 /dts-v1/;
 #include "sun50i-h5.dtsi"
@@ -127,7 +124,7 @@
 
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pa_pins>;
 	status = "okay";
 };
 
arch/arm/dts/sun50i-h5-orangepi-zero-plus2.dts +3 -43

61 lines not on this page · raw message

arch/arm/dts/sun50i-h5.dtsi +138 -48

225 lines not on this page · raw message

arch/arm/dts/sun8i-h2-plus-bananapi-m2-zero.dts +36 -4
index 7d01f9322658..d277d043031b 100644
@@ -28,7 +28,6 @@
 
 	leds {
 		compatible = "gpio-leds";
-		pinctrl-names = "default";
 
 		pwr_led {
 			label = "bananapi-m2-zero:red:pwr";
@@ -39,7 +38,6 @@
 
 	gpio_keys {
 		compatible = "gpio-keys";
-		pinctrl-names = "default";
 
 		sw4 {
 			label = "power";
@@ -48,13 +46,34 @@
 		};
 	};
 
+	reg_vdd_cpux: vdd-cpux-regulator {
+		compatible = "regulator-gpio";
+		regulator-name = "vdd-cpux";
+		regulator-type = "voltage";
+		regulator-boot-on;
+		regulator-always-on;
+		regulator-min-microvolt = <1100000>;
+		regulator-max-microvolt = <1300000>;
+		regulator-ramp-delay = <50>; /* 4ms */
+
+		gpios = <&r_pio 0 1 GPIO_ACTIVE_HIGH>; /* PL1 */
+		enable-active-high;
+		gpios-states = <0x1>;
+		states = <1100000 0>, <1300000 1>;
+	};
+
 	wifi_pwrseq: wifi_pwrseq {
 		compatible = "mmc-pwrseq-simple";
-		pinctrl-names = "default";
 		reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
+		clocks = <&rtc 1>;
+		clock-names = "ext_clock";
 	};
 };
 
+&cpu0 {
+	cpu-supply = <&reg_vdd_cpux>;
+};
+
 &ehci0 {
 	status = "okay";
 };
@@ -94,14 +113,27 @@
 
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pa_pins>;
 	status = "okay";
 };
 
 &uart1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
+	uart-has-rtscts;
 	status = "okay";
+
+	bluetooth {
+		compatible = "brcm,bcm43438-bt";
+		clocks = <&rtc 1>;
+		clock-names = "lpo";
+		vbat-supply = <&reg_vcc3v3>;
+		vddio-supply = <&reg_vcc3v3>;
+		device-wakeup-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; /* PG13 */
+		host-wakeup-gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */
+		shutdown-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
+	};
+
 };
 
 &usb_otg {
arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts +0 -2
index c652ac3b712c..3356f4210d45 100644
@@ -68,7 +68,6 @@
 	};
 };
 
-/*
 &spi0 {
 	status = "okay";
 
@@ -76,7 +75,6 @@
 		compatible = "mxicy,mx25l12805d", "jedec,spi-nor";
 	};
 };
-*/
 
 &ohci1 {
 	/*
arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts +21 -1
index 0bc031fe4c56..f19ed981da9d 100644
@@ -89,6 +89,22 @@
 		gpio = <&pio 0 20 GPIO_ACTIVE_HIGH>;
 	};
 
+	reg_vdd_cpux: vdd-cpux-regulator {
+		compatible = "regulator-gpio";
+		regulator-name = "vdd-cpux";
+		regulator-type = "voltage";
+		regulator-boot-on;
+		regulator-always-on;
+		regulator-min-microvolt = <1100000>;
+		regulator-max-microvolt = <1300000>;
+		regulator-ramp-delay = <50>; /* 4ms */
+
+		gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
+		enable-active-high;
+		gpios-states = <1>;
+		states = <1100000 0>, <1300000 1>;
+	};
+
 	wifi_pwrseq: wifi_pwrseq {
 		compatible = "mmc-pwrseq-simple";
 		reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>;
@@ -96,6 +112,10 @@
 	};
 };
 
+&cpu0 {
+	cpu-supply = <&reg_vdd_cpux>;
+};
+
 &ehci0 {
 	status = "okay";
 };
@@ -157,7 +177,7 @@
 
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pa_pins>;
 	status = "okay";
 };
 
arch/arm/dts/sun8i-h3-bananapi-m2-plus-v1.2.dts new file +13 -0
new file mode 100644
index 000000000000..fc4a8c3d084d
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (C) 2018 Chen-Yu Tsai <[email protected]>
+ */
+
+/dts-v1/;
+#include "sun8i-h3.dtsi"
+#include "sunxi-bananapi-m2-plus-v1.2.dtsi"
+
+/ {
+	model = "Banana Pi BPI-M2-Plus v1.2 H3";
+	compatible = "bananapi,bpi-m2-plus-v1.2", "allwinner,sun8i-h3";
+};
arch/arm/dts/sun8i-h3-beelink-x2.dts +8 -3
index 25540b7694d5..45a24441ff18 100644
@@ -90,6 +90,8 @@
 	wifi_pwrseq: wifi_pwrseq {
 		compatible = "mmc-pwrseq-simple";
 		reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
+		clocks = <&rtc 1>;
+		clock-names = "ext_clock";
 	};
 
 	sound_spdif {
@@ -141,8 +143,9 @@
 };
 
 &ir {
+	linux,rc-map-name = "rc-tanix-tx3mini";
 	pinctrl-names = "default";
-	pinctrl-0 = <&ir_pins_a>;
+	pinctrl-0 = <&r_ir_rx_pin>;
 	status = "okay";
 };
 
@@ -155,6 +158,8 @@
 
 &mmc1 {
 	vmmc-supply = <&reg_vcc3v3>;
+	vqmmc-supply = <&reg_vcc3v3>;
+	mmc-pwrseq = <&wifi_pwrseq>;
 	bus-width = <4>;
 	non-removable;
 	status = "okay";
@@ -193,13 +198,13 @@
 
 &spdif {
 	pinctrl-names = "default";
-	pinctrl-0 = <&spdif_tx_pins_a>;
+	pinctrl-0 = <&spdif_tx_pin>;
 	status = "okay";
 };
 
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pa_pins>;
 	status = "okay";
 };
 
arch/arm/dts/sun8i-h3-emlid-neutis-n5h3-devboard.dts new file +72 -0

72 lines not on this page · raw message

arch/arm/dts/sun8i-h3-emlid-neutis-n5h3.dtsi new file +11 -0
new file mode 100644
index 000000000000..3f5c63e582bf
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * DTSI for Emlid Neutis N5 SoM.
+ *
+ * Copyright (C) 2019 Georgii Staroselskii <[email protected]>
+ */
+
+/dts-v1/;
+
+#include "sun8i-h3.dtsi"
+#include <sunxi-h3-h5-emlid-neutis.dtsi>
arch/arm/dts/sun8i-h3-mapleboard-mp130.dts new file +152 -0

152 lines not on this page · raw message

arch/arm/dts/sun8i-h3-nanopi-duo2.dts new file +173 -0

173 lines not on this page · raw message

arch/arm/dts/sun8i-h3-nanopi-m1-plus.dts +26 -2
index 65cba1050802..4ba533b0340f 100644
@@ -64,9 +64,23 @@
 
 	wifi_pwrseq: wifi_pwrseq {
 		compatible = "mmc-pwrseq-simple";
-		pinctrl-names = "default";
 		reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
 	};
+
+	connector {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con_in: endpoint {
+				remote-endpoint = <&hdmi_out_con>;
+			};
+		};
+	};
+};
+
+&de {
+	status = "okay";
 };
 
 &ehci1 {
@@ -94,9 +108,19 @@
 	};
 };
 
+&hdmi {
+	status = "okay";
+};
+
+&hdmi_out {
+	hdmi_out_con: endpoint {
+		remote-endpoint = <&hdmi_con_in>;
+	};
+};
+
 &ir {
 	pinctrl-names = "default";
-	pinctrl-0 = <&ir_pins_a>;
+	pinctrl-0 = <&r_ir_rx_pin>;
 	status = "okay";
 };
 
arch/arm/dts/sun8i-h3-nanopi-m1.dts +1 -1
index 9412668bb888..69243dcb30a6 100644
@@ -93,7 +93,7 @@
 
 &ir {
 	pinctrl-names = "default";
-	pinctrl-0 = <&ir_pins_a>;
+	pinctrl-0 = <&r_ir_rx_pin>;
 	status = "okay";
 };
 
arch/arm/dts/sun8i-h3-nanopi-neo-air.dts +1 -1
index 6246d3eff39d..07867a0d569b 100644
@@ -105,7 +105,7 @@
 
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pa_pins>;
 	status = "okay";
 };
 
arch/arm/dts/sun8i-h3-nanopi.dtsi +1 -24
index f110ee382239..4df29a65316d 100644
@@ -59,8 +59,6 @@
 
 	leds {
 		compatible = "gpio-leds";
-		pinctrl-names = "default";
-		pinctrl-0 = <&leds_npi>, <&leds_r_npi>;
 
 		status {
 			label = "nanopi:blue:status";
@@ -78,8 +76,6 @@
 	r_gpio_keys {
 		compatible = "gpio-keys";
 		input-name = "k1";
-		pinctrl-names = "default";
-		pinctrl-0 = <&sw_r_npi>;
 
 		k1 {
 			label = "k1";
@@ -104,28 +100,9 @@
 	status = "okay";
 };
 
-&pio {
-	leds_npi: led_pins {
-		pins = "PA10";
-		function = "gpio_out";
-	};
-};
-
-&r_pio {
-	leds_r_npi: led_pins {
-		pins = "PL10";
-		function = "gpio_out";
-	};
-
-	sw_r_npi: key_pins {
-		pins = "PL3";
-		function = "gpio_in";
-	};
-};
-
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pa_pins>;
 	status = "okay";
 };
 
arch/arm/dts/sun8i-h3-orangepi-2.dts +2 -32
index f1fc6bdca8be..597c425d08ec 100644
@@ -75,8 +75,6 @@
 
 	leds {
 		compatible = "gpio-leds";
-		pinctrl-names = "default";
-		pinctrl-0 = <&leds_opc>, <&leds_r_opc>;
 
 		status_led {
 			label = "orangepi:red:status";
@@ -92,8 +90,6 @@
 
 	r_gpio_keys {
 		compatible = "gpio-keys";
-		pinctrl-names = "default";
-		pinctrl-0 = <&sw_r_opc>;
 
 		sw2 {
 			label = "sw2";
@@ -110,8 +106,6 @@
 
 	wifi_pwrseq: wifi_pwrseq {
 		compatible = "mmc-pwrseq-simple";
-		pinctrl-names = "default";
-		pinctrl-0 = <&wifi_pwrseq_pin_orangepi>;
 		reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 WIFI_EN */
 	};
 };
@@ -152,7 +146,7 @@
 
 &ir {
 	pinctrl-names = "default";
-	pinctrl-0 = <&ir_pins_a>;
+	pinctrl-0 = <&r_ir_rx_pin>;
 	status = "okay";
 };
 
@@ -179,30 +173,6 @@
 	};
 };
 
-&pio {
-	leds_opc: led_pins {
-		pins = "PA15";
-		function = "gpio_out";
-	};
-};
-
-&r_pio {
-	leds_r_opc: led_pins {
-		pins = "PL10";
-		function = "gpio_out";
-	};
-
-	sw_r_opc: key_pins {
-		pins = "PL3", "PL4";
-		function = "gpio_in";
-	};
-
-	wifi_pwrseq_pin_orangepi: wifi_pwrseq_pin {
-		pins = "PL7";
-		function = "gpio_out";
-	};
-};
-
 &reg_usb1_vbus {
 	gpio = <&pio 6 13 GPIO_ACTIVE_HIGH>;
 	status = "okay";
@@ -210,7 +180,7 @@
 
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pa_pins>;
 	status = "okay";
 };
 
arch/arm/dts/sun8i-h3-orangepi-lite.dts +2 -25
index 476ae8e387ca..6f9c97add54e 100644
@@ -74,8 +74,6 @@
 
 	leds {
 		compatible = "gpio-leds";
-		pinctrl-names = "default";
-		pinctrl-0 = <&leds_opc>, <&leds_r_opc>;
 
 		pwr_led {
 			label = "orangepi:green:pwr";
@@ -91,8 +89,6 @@
 
 	r_gpio_keys {
 		compatible = "gpio-keys";
-		pinctrl-names = "default";
-		pinctrl-0 = <&sw_r_opc>;
 
 		sw4 {
 			label = "sw4";
@@ -126,7 +122,7 @@
 
 &ir {
 	pinctrl-names = "default";
-	pinctrl-0 = <&ir_pins_a>;
+	pinctrl-0 = <&r_ir_rx_pin>;
 	status = "okay";
 };
 
@@ -160,28 +156,9 @@
 	status = "okay";
 };
 
-&pio {
-	leds_opc: led_pins {
-		pins = "PA15";
-		function = "gpio_out";
-	};
-};
-
-&r_pio {
-	leds_r_opc: led_pins {
-		pins = "PL10";
-		function = "gpio_out";
-	};
-
-	sw_r_opc: key_pins {
-		pins = "PL3";
-		function = "gpio_in";
-	};
-};
-
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pa_pins>;
 	status = "okay";
 };
 
arch/arm/dts/sun8i-h3-orangepi-one.dts +2 -26
index 245fd658defb..4759ba3f2986 100644
@@ -73,8 +73,6 @@
 
 	leds {
 		compatible = "gpio-leds";
-		pinctrl-names = "default";
-		pinctrl-0 = <&leds_opc>, <&leds_r_opc>;
 
 		pwr_led {
 			label = "orangepi:green:pwr";
@@ -90,8 +88,6 @@
 
 	r_gpio_keys {
 		compatible = "gpio-keys";
-		pinctrl-names = "default";
-		pinctrl-0 = <&sw_r_opc>;
 
 		sw4 {
 			label = "sw4";
@@ -113,8 +109,7 @@
 		gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
 		enable-active-high;
 		gpios-states = <0x1>;
-		states = <1100000 0x0
-			  1300000 0x1>;
+		states = <1100000 0>, <1300000 1>;
 	};
 };
 
@@ -166,25 +161,6 @@
 	status = "okay";
 };
 
-&pio {
-	leds_opc: led_pins {
-		pins = "PA15";
-		function = "gpio_out";
-	};
-};
-
-&r_pio {
-	leds_r_opc: led_pins {
-		pins = "PL10";
-		function = "gpio_out";
-	};
-
-	sw_r_opc: key_pins {
-		pins = "PL3";
-		function = "gpio_in";
-	};
-};
-
 &reg_usb0_vbus {
 	gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
 	status = "okay";
@@ -192,7 +168,7 @@
 
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pa_pins>;
 	status = "okay";
 };
 
arch/arm/dts/sun8i-h3-orangepi-pc.dts +2 -25
index 46240334128f..5aff8ecc66cb 100644
@@ -73,8 +73,6 @@
 
 	leds {
 		compatible = "gpio-leds";
-		pinctrl-names = "default";
-		pinctrl-0 = <&leds_opc>, <&leds_r_opc>;
 
 		pwr_led {
 			label = "orangepi:green:pwr";
@@ -90,8 +88,6 @@
 
 	r_gpio_keys {
 		compatible = "gpio-keys";
-		pinctrl-names = "default";
-		pinctrl-0 = <&sw_r_opc>;
 
 		sw4 {
 			label = "sw4";
@@ -152,7 +148,7 @@
 
 &ir {
 	pinctrl-names = "default";
-	pinctrl-0 = <&ir_pins_a>;
+	pinctrl-0 = <&r_ir_rx_pin>;
 	status = "okay";
 };
 
@@ -179,13 +175,6 @@
 	status = "okay";
 };
 
-&pio {
-	leds_opc: led_pins {
-		pins = "PA15";
-		function = "gpio_out";
-	};
-};
-
 &r_i2c {
 	status = "okay";
 
@@ -210,18 +199,6 @@
 	};
 };
 
-&r_pio {
-	leds_r_opc: led_pins {
-		pins = "PL10";
-		function = "gpio_out";
-	};
-
-	sw_r_opc: key_pins {
-		pins = "PL3";
-		function = "gpio_in";
-	};
-};
-
 &reg_usb0_vbus {
 	gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
 	status = "okay";
@@ -229,7 +206,7 @@
 
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pa_pins>;
 	status = "okay";
 };
 
arch/arm/dts/sun8i-h3-orangepi-plus.dts +17 -6
index b403e5d787cb..97f497854e05 100644
@@ -63,8 +63,6 @@
 
 	reg_usb3_vbus: usb3-vbus {
 		compatible = "regulator-fixed";
-		pinctrl-names = "default";
-		pinctrl-0 = <&usb3_vbus_pin_a>;
 		regulator-name = "usb3-vbus";
 		regulator-min-microvolt = <5000000>;
 		regulator-max-microvolt = <5000000>;
@@ -74,6 +72,10 @@
 	};
 };
 
+&cpu0 {
+	cpu-supply = <&reg_vdd_cpux>;
+};
+
 &ehci3 {
 	status = "okay";
 };
@@ -112,10 +114,19 @@
 	bias-pull-up;
 };
 
-&pio {
-	usb3_vbus_pin_a: usb3_vbus_pin {
-		pins = "PG11";
-		function = "gpio_out";
+&r_i2c {
+	status = "okay";
+
+	reg_vdd_cpux: regulator at 65 {
+		compatible = "silergy,sy8106a";
+		reg = <0x65>;
+		regulator-name = "vdd-cpux";
+		silergy,fixed-microvolt = <1200000>;
+		regulator-min-microvolt = <1000000>;
+		regulator-max-microvolt = <1400000>;
+		regulator-ramp-delay = <200>;
+		regulator-boot-on;
+		regulator-always-on;
 	};
 };
 
arch/arm/dts/sun8i-h3-orangepi-zero-plus2.dts +1 -1
index f2f7b7a92571..b8f46e2802fd 100644
@@ -134,6 +134,6 @@
 
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pa_pins>;
 	status = "okay";
 };
arch/arm/dts/sun8i-h3-rervision-dvk.dts new file +114 -0

114 lines not on this page · raw message

arch/arm/dts/sun8i-h3.dtsi +78 -8

148 lines not on this page · raw message

arch/arm/dts/sunxi-bananapi-m2-plus-v1.2.dtsi new file +30 -0
new file mode 100644
index 000000000000..22466afd38a3
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (C) 2018 Chen-Yu Tsai <[email protected]>
+ */
+
+#include "sunxi-bananapi-m2-plus.dtsi"
+
+/ {
+	/*
+	 * Bananapi M2+ v1.2 uses a GPIO line to change the effective
+	 * resistance on the CPU regulator's feedback pin.
+	 */
+	reg_vdd_cpux: vdd-cpux {
+		compatible = "regulator-gpio";
+		regulator-name = "vdd-cpux";
+		regulator-type = "voltage";
+		regulator-boot-on;
+		regulator-always-on;
+		regulator-min-microvolt = <1100000>;
+		regulator-max-microvolt = <1300000>;
+		regulator-ramp-delay = <50>; /* 4ms */
+		gpios = <&r_pio 0 1 GPIO_ACTIVE_HIGH>; /* PL1 */
+		gpios-states = <0x1>;
+		states = <1100000 0>, <1300000 1>;
+	};
+};
+
+&cpu0 {
+	cpu-supply = <&reg_vdd_cpux>;
+};
arch/arm/dts/sunxi-bananapi-m2-plus.dtsi +2 -5
index 3bed375b9c03..39263e74fbb5 100644
@@ -69,7 +69,6 @@
 
 	leds {
 		compatible = "gpio-leds";
-		pinctrl-names = "default";
 
 		pwr_led {
 			label = "bananapi-m2-plus:red:pwr";
@@ -80,7 +79,6 @@
 
 	gpio_keys {
 		compatible = "gpio-keys";
-		pinctrl-names = "default";
 
 		sw4 {
 			label = "power";
@@ -101,7 +99,6 @@
 
 	wifi_pwrseq: wifi_pwrseq {
 		compatible = "mmc-pwrseq-simple";
-		pinctrl-names = "default";
 		reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
 		clocks = <&rtc 1>;
 		clock-names = "ext_clock";
@@ -153,7 +150,7 @@
 
 &ir {
 	pinctrl-names = "default";
-	pinctrl-0 = <&ir_pins_a>;
+	pinctrl-0 = <&r_ir_rx_pin>;
 	status = "okay";
 };
 
@@ -210,7 +207,7 @@
 
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pa_pins>;
 	status = "okay";
 };
 
arch/arm/dts/sunxi-h3-h5-emlid-neutis.dtsi new file +170 -0

170 lines not on this page · raw message

arch/arm/dts/sunxi-h3-h5.dtsi +88 -49

339 lines not on this page · raw message

arch/arm/dts/sunxi-libretech-all-h3-cc.dtsi +57 -8

115 lines not on this page · raw message

arch/arm/dts/sunxi-libretech-all-h3-it.dtsi new file +180 -0

83 lines not on this page · raw message

include/dt-bindings/clock/sun8i-h3-ccu.h +9 -2
index efb7ba2bd515..30d2d15373a2 100644

Lines of this file are not shown. View the raw message.

include/dt-bindings/reset/sun8i-h3-ccu.h +4 -1
index 6b7af80c26ec..484c2a22919d 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.24.1

Part of the diff is not shown here. View the raw message.

#2 lore raw

PATCH 1/3 sunxi: H3/H5 Sync DT files from upstream Linux kernel as of next-20200108

Quoted 26 lines · Chen-Yu Tsai

From: Chen-Yu Tsai <[email protected]>

Sync the device tree files and device tree header files from upstream Linux kernel, as of 2020-01-08. The commit synced to in the sunxi repo

    98d25b0b266d Merge branch 'sunxi/dt-for-5.6' into sunxi/for-next

which is also part of next-20200108.

Changes brought in include:

- cleanup of pinmux node names
- addition of Security ID, MBUS, CSI, crypto engine, video codec, pmu, and thermal sensor device nodes for both SoCs
- addition of deinterlacing engine device node on H3
- cleanup of RTC device node and addition of its clocks
- various board cleanups and improvements
- removal of pinmux node for GPIO lines
- cpufreq / DVFS
- HDMI output
- UART-based Bluetooth
- audio codec
- USB ports
- new boards

Quoted 4 lines

Most of the changes don't concern U-boot.

---

Applied to u-boot-sunxi/master

author maintainer
#3 lore raw

PATCH 2/3 sunxi: Add Libre Computer ALL-H3-IT H5 board

In reply to Chen-Yu Tsai

From: Chen-Yu Tsai <[email protected]>

The Libre Computer ALL-H3-IT board is a small single board computer that is roughly the same size as the Raspberry Pi Zero, or around 20% smaller than a credit card.

The board features:

- H2, H3, or H5 SoC from Allwinner
- 2 DDR3 DRAM chips
- Realtek RTL8821CU based WiFi module
- 128 Mbit SPI-NOR flash
- micro-SD card slot
- micro HDMI video output
- FPC connector for camera sensor module
- generic Raspberri-Pi style 40 pin GPIO header
- additional pin headers for extra USB host ports, ananlog audio and IR receiver

Only H5 variant test samples were made available, but the vendor does have plans to include at least an H3 variant. Thus the device tree is split much like the ALL-H3-CC, with a common dtsi file for the board design, and separate dts files including the common board file and the SoC dtsi file. The other variants will be added as they are made available.

The device tree was synced over from the Linux kernel, along with other H3/H5 changes, in a previous patch. Thus only the defconfig and an entry to the MAINTAINERS file is added.

---
 board/sunxi/MAINTAINERS                  |  5 +++++
 configs/libretech_all_h3_it_h5_defconfig | 22 ++++++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 configs/libretech_all_h3_it_h5_defconfig
board/sunxi/MAINTAINERS +5 -0
index 4a89bb0e7b7e..ed620ade766c 100644
@@ -318,6 +318,11 @@ F:	configs/libretech_all_h3_cc_h2_plus_defconfig
 F:	configs/libretech_all_h3_cc_h3_defconfig
 F:	configs/libretech_all_h3_cc_h5_defconfig
 
+LIBRETECH ALL-H3-IT BOARDS
+M:	Chen-Yu Tsai <[email protected]>
+S:	Maintained
+F:	configs/libretech_all_h3_it_h5_defconfig
+
 NANOPI-M1 BOARD
 M:	Mylène Josserand <[email protected]>
 S:	Maintained
configs/libretech_all_h3_it_h5_defconfig new file +22 -0
new file mode 100644
index 000000000000..df13f4a0d307
@@ -0,0 +1,22 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_SPL=y
+CONFIG_MACH_SUN50I_H5=y
+CONFIG_DRAM_CLK=672
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
+CONFIG_SPL_SPI_SUNXI=y
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_USE_PREBOOT=y
+CONFIG_SYS_SPI_U_BOOT_OFFS=0x8000
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-libretech-all-h3-it"
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_XMC=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_OHCI_HCD=y
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
Signature · 1 line
2.24.1
#4 lore raw

PATCH 2/3 sunxi: Add Libre Computer ALL-H3-IT H5 board

Quoted 69 lines · Chen-Yu Tsai

From: Chen-Yu Tsai <[email protected]>

The Libre Computer ALL-H3-IT board is a small single board computer that is roughly the same size as the Raspberry Pi Zero, or around 20% smaller than a credit card.

The board features:

- H2, H3, or H5 SoC from Allwinner
- 2 DDR3 DRAM chips
- Realtek RTL8821CU based WiFi module
- 128 Mbit SPI-NOR flash
- micro-SD card slot
- micro HDMI video output
- FPC connector for camera sensor module
- generic Raspberri-Pi style 40 pin GPIO header
- additional pin headers for extra USB host ports, ananlog audio and IR receiver

Only H5 variant test samples were made available, but the vendor does have plans to include at least an H3 variant. Thus the device tree is split much like the ALL-H3-CC, with a common dtsi file for the board design, and separate dts files including the common board file and the SoC dtsi file. The other variants will be added as they are made available.

The device tree was synced over from the Linux kernel, along with other H3/H5 changes, in a previous patch. Thus only the defconfig and an entry to the MAINTAINERS file is added.

---
 board/sunxi/MAINTAINERS                  |  5 +++++
 configs/libretech_all_h3_it_h5_defconfig | 22 ++++++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 configs/libretech_all_h3_it_h5_defconfig
board/sunxi/MAINTAINERS +5 -0
index 4a89bb0e7b7e..ed620ade766c 100644
@@ -318,6 +318,11 @@ F: configs/libretech_all_h3_cc_h2_plus_defconfig
 F:     configs/libretech_all_h3_cc_h3_defconfig
 F:     configs/libretech_all_h3_cc_h5_defconfig
 
+LIBRETECH ALL-H3-IT BOARDS
+M:     Chen-Yu Tsai <[email protected]>
+S:     Maintained
+F:     configs/libretech_all_h3_it_h5_defconfig
+
 NANOPI-M1 BOARD
 M:     Mylène Josserand <[email protected]>
 S:     Maintained
configs/libretech_all_h3_it_h5_defconfig new file +9 -0
new file mode 100644
index 000000000000..df13f4a0d307
@@ -0,0 +1,22 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_SPL=y
+CONFIG_MACH_SUN50I_H5=y
+CONFIG_DRAM_CLK=672
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
+CONFIG_SPL_SPI_SUNXI=y
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set

configs/libretech_all_h3_it_h5_defconfig line 19

Quoted 10 lines
configs/libretech_all_h3_it_h5_defconfig new file +10 -0
+CONFIG_USE_PREBOOT=y
+CONFIG_SYS_SPI_U_BOOT_OFFS=0x8000
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-libretech-all-h3-it"
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_XMC=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y

We just enable SPI_FLASH_XMC and rest we can add it via arch Kconfig? like A64 does.

author maintainer
#5 lore raw

PATCH 2/3 sunxi: Add Libre Computer ALL-H3-IT H5 board

Quoted 76 lines · Jagan Teki
Quoted 74 lines · Chen-Yu Tsai

From: Chen-Yu Tsai <[email protected]>

The Libre Computer ALL-H3-IT board is a small single board computer that is roughly the same size as the Raspberry Pi Zero, or around 20% smaller than a credit card.

The board features:

- H2, H3, or H5 SoC from Allwinner
- 2 DDR3 DRAM chips
- Realtek RTL8821CU based WiFi module
- 128 Mbit SPI-NOR flash
- micro-SD card slot
- micro HDMI video output
- FPC connector for camera sensor module
- generic Raspberri-Pi style 40 pin GPIO header
- additional pin headers for extra USB host ports, ananlog audio and IR receiver

Only H5 variant test samples were made available, but the vendor does have plans to include at least an H3 variant. Thus the device tree is split much like the ALL-H3-CC, with a common dtsi file for the board design, and separate dts files including the common board file and the SoC dtsi file. The other variants will be added as they are made available.

The device tree was synced over from the Linux kernel, along with other H3/H5 changes, in a previous patch. Thus only the defconfig and an entry to the MAINTAINERS file is added.

---
 board/sunxi/MAINTAINERS                  |  5 +++++
 configs/libretech_all_h3_it_h5_defconfig | 22 ++++++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 configs/libretech_all_h3_it_h5_defconfig
board/sunxi/MAINTAINERS +5 -0
index 4a89bb0e7b7e..ed620ade766c 100644
@@ -318,6 +318,11 @@ F: configs/libretech_all_h3_cc_h2_plus_defconfig
 F:     configs/libretech_all_h3_cc_h3_defconfig
 F:     configs/libretech_all_h3_cc_h5_defconfig
 
+LIBRETECH ALL-H3-IT BOARDS
+M:     Chen-Yu Tsai <[email protected]>
+S:     Maintained
+F:     configs/libretech_all_h3_it_h5_defconfig
+
 NANOPI-M1 BOARD
 M:     Mylène Josserand <[email protected]>
 S:     Maintained
configs/libretech_all_h3_it_h5_defconfig new file +14 -0
new file mode 100644
index 000000000000..df13f4a0d307
@@ -0,0 +1,22 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_SPL=y
+CONFIG_MACH_SUN50I_H5=y
+CONFIG_DRAM_CLK=672
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
+CONFIG_SPL_SPI_SUNXI=y
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_USE_PREBOOT=y
+CONFIG_SYS_SPI_U_BOOT_OFFS=0x8000
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-libretech-all-h3-it"
Quoted 8 lines

configs/libretech_all_h3_it_h5_defconfig line 19

Quoted 5 lines
configs/libretech_all_h3_it_h5_defconfig new file +5 -0
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_XMC=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y

We just enable SPI_FLASH_XMC and rest we can add it via arch Kconfig? like A64 does.

Are you referring to the rest of the SPI stuff?

Only the more recent boards have SPI flash on board, so if we enable it by default, we might end up with a whole bunch of boards disabling it because they don't actually have SPI flash, and maybe don't want the overhead.

The rest of the generic stuff could be moved to Kconfig. DRAM_CLK is probably not doable as the values vary a lot. NR_DRAM_BANKS yes. SYS_SPI_U_BOOT_OFFS was already done I believe. Not sure about some of the rest of the SPL settings.

ChenYu

#6 lore raw

PATCH 2/3 sunxi: Add Libre Computer ALL-H3-IT H5 board

Quoted 87 lines · Chen-Yu Tsai
Quoted 76 lines · Jagan Teki
Quoted 74 lines · Chen-Yu Tsai

From: Chen-Yu Tsai <[email protected]>

The Libre Computer ALL-H3-IT board is a small single board computer that is roughly the same size as the Raspberry Pi Zero, or around 20% smaller than a credit card.

The board features:

- H2, H3, or H5 SoC from Allwinner
- 2 DDR3 DRAM chips
- Realtek RTL8821CU based WiFi module
- 128 Mbit SPI-NOR flash
- micro-SD card slot
- micro HDMI video output
- FPC connector for camera sensor module
- generic Raspberri-Pi style 40 pin GPIO header
- additional pin headers for extra USB host ports, ananlog audio and IR receiver

Only H5 variant test samples were made available, but the vendor does have plans to include at least an H3 variant. Thus the device tree is split much like the ALL-H3-CC, with a common dtsi file for the board design, and separate dts files including the common board file and the SoC dtsi file. The other variants will be added as they are made available.

The device tree was synced over from the Linux kernel, along with other H3/H5 changes, in a previous patch. Thus only the defconfig and an entry to the MAINTAINERS file is added.

---
 board/sunxi/MAINTAINERS                  |  5 +++++
 configs/libretech_all_h3_it_h5_defconfig | 22 ++++++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 configs/libretech_all_h3_it_h5_defconfig
board/sunxi/MAINTAINERS +5 -0
index 4a89bb0e7b7e..ed620ade766c 100644
@@ -318,6 +318,11 @@ F: configs/libretech_all_h3_cc_h2_plus_defconfig
 F:     configs/libretech_all_h3_cc_h3_defconfig
 F:     configs/libretech_all_h3_cc_h5_defconfig
 
+LIBRETECH ALL-H3-IT BOARDS
+M:     Chen-Yu Tsai <[email protected]>
+S:     Maintained
+F:     configs/libretech_all_h3_it_h5_defconfig
+
 NANOPI-M1 BOARD
 M:     Mylène Josserand <[email protected]>
 S:     Maintained
configs/libretech_all_h3_it_h5_defconfig new file +14 -0
new file mode 100644
index 000000000000..df13f4a0d307
@@ -0,0 +1,22 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_SPL=y
+CONFIG_MACH_SUN50I_H5=y
+CONFIG_DRAM_CLK=672
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
+CONFIG_SPL_SPI_SUNXI=y
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_USE_PREBOOT=y
+CONFIG_SYS_SPI_U_BOOT_OFFS=0x8000
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-libretech-all-h3-it"
Quoted 8 lines

configs/libretech_all_h3_it_h5_defconfig line 19

Quoted 5 lines
configs/libretech_all_h3_it_h5_defconfig new file +5 -0
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_XMC=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y

We just enable SPI_FLASH_XMC and rest we can add it via arch Kconfig? like A64 does.

Quoted 1 line

Are you referring to the rest of the SPI stuff?

Yes.

Quoted 5 lines

Only the more recent boards have SPI flash on board, so if we enable it by default, we might end up with a whole bunch of boards disabling it because they don't actually have SPI flash, and maybe don't want the overhead.

How about select the generic configs like DM_SPI, SPI based on the on board flash type. like add CONFIG_SPI_FLASH_XMC on defconfig and that would enable the required options. and boards that won't enable SPI_FLASH_XMC or any flash type can simply untouch SPI configs items. May be have SPI_FLASH_XMC

Quoted 5 lines

The rest of the generic stuff could be moved to Kconfig. DRAM_CLK is probably not doable as the values vary a lot. NR_DRAM_BANKS yes. SYS_SPI_U_BOOT_OFFS was already done I believe. Not sure about some of the rest of the SPL settings.

Except SYS_SPI_U_BOOT_OFFS, rest are okay. Use [1] it has a change that moved SYS_SPI_U_BOOT_OFFS to Kconfig.

[1] https://gitlab.denx.de/u-boot/custodians/u-boot-spi/commits/master

author maintainer
#7 lore raw

PATCH 2/3 sunxi: Add Libre Computer ALL-H3-IT H5 board

Quoted 99 lines · Jagan Teki
Quoted 87 lines · Chen-Yu Tsai
Quoted 76 lines · Jagan Teki
Quoted 74 lines · Chen-Yu Tsai

From: Chen-Yu Tsai <[email protected]>

The Libre Computer ALL-H3-IT board is a small single board computer that is roughly the same size as the Raspberry Pi Zero, or around 20% smaller than a credit card.

The board features:

- H2, H3, or H5 SoC from Allwinner
- 2 DDR3 DRAM chips
- Realtek RTL8821CU based WiFi module
- 128 Mbit SPI-NOR flash
- micro-SD card slot
- micro HDMI video output
- FPC connector for camera sensor module
- generic Raspberri-Pi style 40 pin GPIO header
- additional pin headers for extra USB host ports, ananlog audio and IR receiver

Only H5 variant test samples were made available, but the vendor does have plans to include at least an H3 variant. Thus the device tree is split much like the ALL-H3-CC, with a common dtsi file for the board design, and separate dts files including the common board file and the SoC dtsi file. The other variants will be added as they are made available.

The device tree was synced over from the Linux kernel, along with other H3/H5 changes, in a previous patch. Thus only the defconfig and an entry to the MAINTAINERS file is added.

---
 board/sunxi/MAINTAINERS                  |  5 +++++
 configs/libretech_all_h3_it_h5_defconfig | 22 ++++++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 configs/libretech_all_h3_it_h5_defconfig
board/sunxi/MAINTAINERS +5 -0
index 4a89bb0e7b7e..ed620ade766c 100644
@@ -318,6 +318,11 @@ F: configs/libretech_all_h3_cc_h2_plus_defconfig
 F:     configs/libretech_all_h3_cc_h3_defconfig
 F:     configs/libretech_all_h3_cc_h5_defconfig
 
+LIBRETECH ALL-H3-IT BOARDS
+M:     Chen-Yu Tsai <[email protected]>
+S:     Maintained
+F:     configs/libretech_all_h3_it_h5_defconfig
+
 NANOPI-M1 BOARD
 M:     Mylène Josserand <[email protected]>
 S:     Maintained
configs/libretech_all_h3_it_h5_defconfig new file +14 -0
new file mode 100644
index 000000000000..df13f4a0d307
@@ -0,0 +1,22 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_SPL=y
+CONFIG_MACH_SUN50I_H5=y
+CONFIG_DRAM_CLK=672
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
+CONFIG_SPL_SPI_SUNXI=y
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_USE_PREBOOT=y
+CONFIG_SYS_SPI_U_BOOT_OFFS=0x8000
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-libretech-all-h3-it"
Quoted 8 lines

configs/libretech_all_h3_it_h5_defconfig line 19

Quoted 5 lines
configs/libretech_all_h3_it_h5_defconfig new file +5 -0
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_XMC=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y

We just enable SPI_FLASH_XMC and rest we can add it via arch Kconfig? like A64 does.

Quoted 1 line

Are you referring to the rest of the SPI stuff?

Yes.

Quoted 5 lines

Only the more recent boards have SPI flash on board, so if we enable it by default, we might end up with a whole bunch of boards disabling it because they don't actually have SPI flash, and maybe don't want the overhead.

Quoted 5 lines

How about select the generic configs like DM_SPI, SPI based on the on board flash type. like add CONFIG_SPI_FLASH_XMC on defconfig and that would enable the required options. and boards that won't enable SPI_FLASH_XMC or any flash type can simply untouch SPI configs items. May be have SPI_FLASH_XMC

That's still including all the SPI stuff for boards that don't need it though. And the # of boards that don't need SPI far outnumber the ones that do. 18 dts files have references to SPI, and only 7 of them have some peripheral sub-node defined. We have roughly 160 boards in total.

I think it makes more sense to not enable SPI by default.

On the other hand, we could probably have a few options default to y if SPI is enabled, such as DM_SPI, DM_SPI_FLASH, and SPL_SPI_SUNXI.

But could we get these two patches merged first, and do the cleanup as a follow-up series during -rc?

Thanks
ChenYu

Quoted 9 lines
Quoted 4 lines

The rest of the generic stuff could be moved to Kconfig. DRAM_CLK is probably not doable as the values vary a lot. NR_DRAM_BANKS yes. SYS_SPI_U_BOOT_OFFS was already done I believe. Not sure about some of the rest of the SPL settings.

Except SYS_SPI_U_BOOT_OFFS, rest are okay. Use [1] it has a change that moved SYS_SPI_U_BOOT_OFFS to Kconfig.

[1] https://gitlab.denx.de/u-boot/custodians/u-boot-spi/commits/master

author maintainer
#8 lore raw

PATCH 2/3 sunxi: Add Libre Computer ALL-H3-IT H5 board

Quoted 113 lines · Chen-Yu Tsai
Quoted 99 lines · Jagan Teki
Quoted 87 lines · Chen-Yu Tsai
Quoted 76 lines · Jagan Teki
Quoted 74 lines · Chen-Yu Tsai

From: Chen-Yu Tsai <[email protected]>

The Libre Computer ALL-H3-IT board is a small single board computer that is roughly the same size as the Raspberry Pi Zero, or around 20% smaller than a credit card.

The board features:

- H2, H3, or H5 SoC from Allwinner
- 2 DDR3 DRAM chips
- Realtek RTL8821CU based WiFi module
- 128 Mbit SPI-NOR flash
- micro-SD card slot
- micro HDMI video output
- FPC connector for camera sensor module
- generic Raspberri-Pi style 40 pin GPIO header
- additional pin headers for extra USB host ports, ananlog audio and IR receiver

Only H5 variant test samples were made available, but the vendor does have plans to include at least an H3 variant. Thus the device tree is split much like the ALL-H3-CC, with a common dtsi file for the board design, and separate dts files including the common board file and the SoC dtsi file. The other variants will be added as they are made available.

The device tree was synced over from the Linux kernel, along with other H3/H5 changes, in a previous patch. Thus only the defconfig and an entry to the MAINTAINERS file is added.

---
 board/sunxi/MAINTAINERS                  |  5 +++++
 configs/libretech_all_h3_it_h5_defconfig | 22 ++++++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 configs/libretech_all_h3_it_h5_defconfig
board/sunxi/MAINTAINERS +5 -0
index 4a89bb0e7b7e..ed620ade766c 100644
@@ -318,6 +318,11 @@ F: configs/libretech_all_h3_cc_h2_plus_defconfig
 F:     configs/libretech_all_h3_cc_h3_defconfig
 F:     configs/libretech_all_h3_cc_h5_defconfig
 
+LIBRETECH ALL-H3-IT BOARDS
+M:     Chen-Yu Tsai <[email protected]>
+S:     Maintained
+F:     configs/libretech_all_h3_it_h5_defconfig
+
 NANOPI-M1 BOARD
 M:     Mylène Josserand <[email protected]>
 S:     Maintained
configs/libretech_all_h3_it_h5_defconfig new file +14 -0
new file mode 100644
index 000000000000..df13f4a0d307
@@ -0,0 +1,22 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_SPL=y
+CONFIG_MACH_SUN50I_H5=y
+CONFIG_DRAM_CLK=672
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
+CONFIG_SPL_SPI_SUNXI=y
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_USE_PREBOOT=y
+CONFIG_SYS_SPI_U_BOOT_OFFS=0x8000
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-libretech-all-h3-it"
Quoted 8 lines

configs/libretech_all_h3_it_h5_defconfig line 19

Quoted 5 lines
configs/libretech_all_h3_it_h5_defconfig new file +5 -0
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_XMC=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y

We just enable SPI_FLASH_XMC and rest we can add it via arch Kconfig? like A64 does.

Quoted 1 line

Are you referring to the rest of the SPI stuff?

Yes.

Quoted 5 lines

Only the more recent boards have SPI flash on board, so if we enable it by default, we might end up with a whole bunch of boards disabling it because they don't actually have SPI flash, and maybe don't want the overhead.

Quoted 5 lines

How about select the generic configs like DM_SPI, SPI based on the on board flash type. like add CONFIG_SPI_FLASH_XMC on defconfig and that would enable the required options. and boards that won't enable SPI_FLASH_XMC or any flash type can simply untouch SPI configs items. May be have SPI_FLASH_XMC

That's still including all the SPI stuff for boards that don't need it though. And the # of boards that don't need SPI far outnumber the ones that do. 18 dts files have references to SPI, and only 7 of them have some peripheral sub-node defined. We have roughly 160 boards in total.

Quoted 7 lines

I think it makes more sense to not enable SPI by default.

On the other hand, we could probably have a few options default to y if SPI is enabled, such as DM_SPI, DM_SPI_FLASH, and SPL_SPI_SUNXI.

But could we get these two patches merged first, and do the cleanup as a follow-up series during -rc?

So I looked around, and it seems most of the boards that do have SPI flash on board only enable SPL_SPI_SUNXI, and not SPI/DM_SPI/DM_SPI_FLASH. This includes some of the Orange Pi boards, and Pine64 LTS.

I wonder why that is?

ChenYu

#9 lore raw

PATCH 2/3 sunxi: Add Libre Computer ALL-H3-IT H5 board

In reply to Chen-Yu Tsai
Quoted 61 lines · Chen-Yu Tsai

From: Chen-Yu Tsai <[email protected]>

The Libre Computer ALL-H3-IT board is a small single board computer that is roughly the same size as the Raspberry Pi Zero, or around 20% smaller than a credit card.

The board features:

- H2, H3, or H5 SoC from Allwinner
- 2 DDR3 DRAM chips
- Realtek RTL8821CU based WiFi module
- 128 Mbit SPI-NOR flash
- micro-SD card slot
- micro HDMI video output
- FPC connector for camera sensor module
- generic Raspberri-Pi style 40 pin GPIO header
- additional pin headers for extra USB host ports, ananlog audio and IR receiver

Only H5 variant test samples were made available, but the vendor does have plans to include at least an H3 variant. Thus the device tree is split much like the ALL-H3-CC, with a common dtsi file for the board design, and separate dts files including the common board file and the SoC dtsi file. The other variants will be added as they are made available.

The device tree was synced over from the Linux kernel, along with other H3/H5 changes, in a previous patch. Thus only the defconfig and an entry to the MAINTAINERS file is added.

---
 board/sunxi/MAINTAINERS                  |  5 +++++
 configs/libretech_all_h3_it_h5_defconfig | 22 ++++++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 configs/libretech_all_h3_it_h5_defconfig
board/sunxi/MAINTAINERS +5 -0
index 4a89bb0e7b7e..ed620ade766c 100644
@@ -318,6 +318,11 @@ F: configs/libretech_all_h3_cc_h2_plus_defconfig
 F:     configs/libretech_all_h3_cc_h3_defconfig
 F:     configs/libretech_all_h3_cc_h5_defconfig
 
+LIBRETECH ALL-H3-IT BOARDS
+M:     Chen-Yu Tsai <[email protected]>
+S:     Maintained
+F:     configs/libretech_all_h3_it_h5_defconfig
+
 NANOPI-M1 BOARD
 M:     Mylène Josserand <[email protected]>
 S:     Maintained
configs/libretech_all_h3_it_h5_defconfig new file +1 -0
new file mode 100644
index 000000000000..df13f4a0d307
@@ -0,0 +1,22 @@
+CONFIG_ARM=y

configs/libretech_all_h3_it_h5_defconfig line 11

Quoted 10 lines
configs/libretech_all_h3_it_h5_defconfig new file +10 -0
+CONFIG_ARCH_SUNXI=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_SPL=y
+CONFIG_MACH_SUN50I_H5=y
+CONFIG_DRAM_CLK=672
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
+CONFIG_SPL_SPI_SUNXI=y
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_USE_PREBOOT=y
+CONFIG_SYS_SPI_U_BOOT_OFFS=0x8000

Dropped this.

configs/libretech_all_h3_it_h5_defconfig line 22

Quoted 11 lines
configs/libretech_all_h3_it_h5_defconfig new file +11 -0
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-libretech-all-h3-it"
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_XMC=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_OHCI_HCD=y
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y

Applied to u-boot-sunxi/master

author maintainer
#10 lore raw

PATCH 3/3 sunxi: Add Libre Computer ALL-H5-CC H5 board

In reply to Chen-Yu Tsai

From: Chen-Yu Tsai <[email protected]>

The Libre Computer ALL-H5-CC board is an upgraded version of the ALL-H3-CC. Changes include:

- Gigabit Ethernet via external RTL8211E Ethernet PHY
- 16 MiB SPI NOR flash memory
- PoE tap header
- Line out jack removed

Only H5 variant test samples were made available, and the vendor is not certain whether other SoC variants would be made or not. Furthermore the board is a minor upgrade compared to the ALL-H3-CC. Thus the device tree simply includes the one for the ALL-H3-CC, and adds the changes on top.

The device tree was synced over from the Linux kernel, along with other H3/H5 changes, in a previous patch. Thus only the defconfig and an entry to the MAINTAINERS file is added.

---
 board/sunxi/MAINTAINERS                  |  5 +++++
 configs/libretech_all_h5_cc_h5_defconfig | 23 +++++++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 configs/libretech_all_h5_cc_h5_defconfig
board/sunxi/MAINTAINERS +5 -0
index ed620ade766c..1180b86db3ba 100644
@@ -323,6 +323,11 @@ M:	Chen-Yu Tsai <[email protected]>
 S:	Maintained
 F:	configs/libretech_all_h3_it_h5_defconfig
 
+LIBRETECH ALL-H5-CC BOARDS
+M:	Chen-Yu Tsai <[email protected]>
+S:	Maintained
+F:	configs/libretech_all_h5_cc_h5_defconfig
+
 NANOPI-M1 BOARD
 M:	Mylène Josserand <[email protected]>
 S:	Maintained
configs/libretech_all_h5_cc_h5_defconfig new file +23 -0
new file mode 100644
index 000000000000..97a1b6ddae39
@@ -0,0 +1,23 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_SPL=y
+CONFIG_MACH_SUN50I_H5=y
+CONFIG_DRAM_CLK=672
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
+CONFIG_SPL_SPI_SUNXI=y
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_USE_PREBOOT=y
+CONFIG_SYS_SPI_U_BOOT_OFFS=0x8000
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-libretech-all-h5-cc"
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_XMC=y
+CONFIG_SUN8I_EMAC=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_OHCI_HCD=y
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
Signature · 1 line
2.24.1
#11 lore raw

PATCH 3/3 sunxi: Add Libre Computer ALL-H5-CC H5 board

Quoted 50 lines · Chen-Yu Tsai

From: Chen-Yu Tsai <[email protected]>

The Libre Computer ALL-H5-CC board is an upgraded version of the ALL-H3-CC. Changes include:

- Gigabit Ethernet via external RTL8211E Ethernet PHY
- 16 MiB SPI NOR flash memory
- PoE tap header
- Line out jack removed

Only H5 variant test samples were made available, and the vendor is not certain whether other SoC variants would be made or not. Furthermore the board is a minor upgrade compared to the ALL-H3-CC. Thus the device tree simply includes the one for the ALL-H3-CC, and adds the changes on top.

The device tree was synced over from the Linux kernel, along with other H3/H5 changes, in a previous patch. Thus only the defconfig and an entry to the MAINTAINERS file is added.

---
 board/sunxi/MAINTAINERS                  |  5 +++++
 configs/libretech_all_h5_cc_h5_defconfig | 23 +++++++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 configs/libretech_all_h5_cc_h5_defconfig
board/sunxi/MAINTAINERS +5 -0
index ed620ade766c..1180b86db3ba 100644
@@ -323,6 +323,11 @@ M: Chen-Yu Tsai <[email protected]>
 S:     Maintained
 F:     configs/libretech_all_h3_it_h5_defconfig
 
+LIBRETECH ALL-H5-CC BOARDS
+M:     Chen-Yu Tsai <[email protected]>
+S:     Maintained
+F:     configs/libretech_all_h5_cc_h5_defconfig
+
 NANOPI-M1 BOARD
 M:     Mylène Josserand <[email protected]>
 S:     Maintained
configs/libretech_all_h5_cc_h5_defconfig new file +1 -0
new file mode 100644
index 000000000000..97a1b6ddae39
@@ -0,0 +1,23 @@
+CONFIG_ARM=y

configs/libretech_all_h5_cc_h5_defconfig line 11

Quoted 10 lines
configs/libretech_all_h5_cc_h5_defconfig new file +10 -0
+CONFIG_ARCH_SUNXI=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_SPL=y
+CONFIG_MACH_SUN50I_H5=y
+CONFIG_DRAM_CLK=672
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
+CONFIG_SPL_SPI_SUNXI=y
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_USE_PREBOOT=y
+CONFIG_SYS_SPI_U_BOOT_OFFS=0x8000

Dropped this.

configs/libretech_all_h5_cc_h5_defconfig line 23

Quoted 12 lines
configs/libretech_all_h5_cc_h5_defconfig new file +12 -0
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-libretech-all-h5-cc"
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_XMC=y
+CONFIG_SUN8I_EMAC=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_OHCI_HCD=y
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y

Applied to u-boot-sunxi/master

author maintainer
#12 lore raw

cover sunxi: Sync H3/H5 DT and add ALL-H3-IT and ALL-H5-CC

In reply to Chen-Yu Tsai

Hi Jagan,

Quoted 14 lines · Chen-Yu Tsai

From: Chen-Yu Tsai <[email protected]>

Hi everyone,

This patch series syncs up the device tree files and header files for Allwinner H3/H5 SoCs and related boards to linux-next-20200108, and then adds support for Libre Computer ALL-H3-IT H5 and ALL-H5-CC H5 boards.

Patch 1 syncs up the device tree files and related device tree binding header files for the Allwinner H3 and H5 SoCs, and boards using these chips. These were compile tested.

Quoted 7 lines

Patch 2 adds a defconfig and MAINTAINERS entry for the ALL-H3-IT's H5 variant. Other variants will be added as they are made available.

Patch 3 adds a defconfig and MAINTAINERS entry for the ALL-H5-CC's H5 variant. Other variants will be added as they are made available.

Please have a look.

One week left in the merge window. Any thoughts on this series?

Thanks
ChenYu

Quoted 75 lines

Regards
ChenYu

Chen-Yu Tsai (3):
sunxi: H3/H5 Sync DT files from upstream Linux kernel as of

    next-20200108

sunxi: Add Libre Computer ALL-H3-IT H5 board
sunxi: Add Libre Computer ALL-H5-CC H5 board

 arch/arm/dts/Makefile                         |   9 +-
 .../dts/sun50i-h5-bananapi-m2-plus-v1.2.dts   |  11 ++
 .../sun50i-h5-emlid-neutis-n5-devboard.dts    | 137 ++-----------
 arch/arm/dts/sun50i-h5-emlid-neutis-n5.dtsi   |  95 +--------
 .../arm/dts/sun50i-h5-libretech-all-h3-cc.dts |  10 +-
 .../arm/dts/sun50i-h5-libretech-all-h3-it.dts |  11 ++
 .../arm/dts/sun50i-h5-libretech-all-h5-cc.dts |  61 ++++++
 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts   |  53 +----
 arch/arm/dts/sun50i-h5-nanopi-neo2.dts        |  45 +----
 arch/arm/dts/sun50i-h5-orangepi-pc2.dts       |  47 +----
 arch/arm/dts/sun50i-h5-orangepi-prime.dts     |  52 +----
 arch/arm/dts/sun50i-h5-orangepi-zero-plus.dts |  11 +-
 .../arm/dts/sun50i-h5-orangepi-zero-plus2.dts |  46 +----
 arch/arm/dts/sun50i-h5.dtsi                   | 186 +++++++++++++-----
 .../dts/sun8i-h2-plus-bananapi-m2-zero.dts    |  40 +++-
 arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts    |   2 -
 arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts  |  22 ++-
 .../dts/sun8i-h3-bananapi-m2-plus-v1.2.dts    |  13 ++
 arch/arm/dts/sun8i-h3-beelink-x2.dts          |  11 +-
 .../sun8i-h3-emlid-neutis-n5h3-devboard.dts   |  72 +++++++
 arch/arm/dts/sun8i-h3-emlid-neutis-n5h3.dtsi  |  11 ++
 arch/arm/dts/sun8i-h3-mapleboard-mp130.dts    | 152 ++++++++++++++
 arch/arm/dts/sun8i-h3-nanopi-duo2.dts         | 173 ++++++++++++++++
 arch/arm/dts/sun8i-h3-nanopi-m1-plus.dts      |  28 ++-
 arch/arm/dts/sun8i-h3-nanopi-m1.dts           |   2 +-
 arch/arm/dts/sun8i-h3-nanopi-neo-air.dts      |   2 +-
 arch/arm/dts/sun8i-h3-nanopi.dtsi             |  25 +--
 arch/arm/dts/sun8i-h3-orangepi-2.dts          |  34 +---
 arch/arm/dts/sun8i-h3-orangepi-lite.dts       |  27 +--
 arch/arm/dts/sun8i-h3-orangepi-one.dts        |  28 +--
 arch/arm/dts/sun8i-h3-orangepi-pc.dts         |  27 +--
 arch/arm/dts/sun8i-h3-orangepi-plus.dts       |  23 ++-
 arch/arm/dts/sun8i-h3-orangepi-zero-plus2.dts |   2 +-
 arch/arm/dts/sun8i-h3-rervision-dvk.dts       | 114 +++++++++++
 arch/arm/dts/sun8i-h3.dtsi                    |  86 +++++++-
 arch/arm/dts/sunxi-bananapi-m2-plus-v1.2.dtsi |  30 +++
 arch/arm/dts/sunxi-bananapi-m2-plus.dtsi      |   7 +-
 arch/arm/dts/sunxi-h3-h5-emlid-neutis.dtsi    | 170 ++++++++++++++++
 arch/arm/dts/sunxi-h3-h5.dtsi                 | 137 ++++++++-----
 arch/arm/dts/sunxi-libretech-all-h3-cc.dtsi   |  65 +++++-
 arch/arm/dts/sunxi-libretech-all-h3-it.dtsi   | 180 +++++++++++++++++
 board/sunxi/MAINTAINERS                       |  10 +
 configs/libretech_all_h3_it_h5_defconfig      |  22 +++
 configs/libretech_all_h5_cc_h5_defconfig      |  23 +++
 include/dt-bindings/clock/sun8i-h3-ccu.h      |  11 +-
 include/dt-bindings/reset/sun8i-h3-ccu.h      |   5 +-
 46 files changed, 1605 insertions(+), 723 deletions(-)
 create mode 100644 arch/arm/dts/sun50i-h5-bananapi-m2-plus-v1.2.dts
 create mode 100644 arch/arm/dts/sun50i-h5-libretech-all-h3-it.dts
 create mode 100644 arch/arm/dts/sun50i-h5-libretech-all-h5-cc.dts
 create mode 100644 arch/arm/dts/sun8i-h3-bananapi-m2-plus-v1.2.dts
 create mode 100644 arch/arm/dts/sun8i-h3-emlid-neutis-n5h3-devboard.dts
 create mode 100644 arch/arm/dts/sun8i-h3-emlid-neutis-n5h3.dtsi
 create mode 100644 arch/arm/dts/sun8i-h3-mapleboard-mp130.dts
 create mode 100644 arch/arm/dts/sun8i-h3-nanopi-duo2.dts
 create mode 100644 arch/arm/dts/sun8i-h3-rervision-dvk.dts
 create mode 100644 arch/arm/dts/sunxi-bananapi-m2-plus-v1.2.dtsi
 create mode 100644 arch/arm/dts/sunxi-h3-h5-emlid-neutis.dtsi
 create mode 100644 arch/arm/dts/sunxi-libretech-all-h3-it.dtsi
 create mode 100644 configs/libretech_all_h3_it_h5_defconfig
 create mode 100644 configs/libretech_all_h5_cc_h5_defconfig

--
2.24.1