Skip to contentSkip to conversation

sunxi: A64/H3/H5 DT updates

PATCH New Andre Przywara 4 participants 11 messages Oct 29, 2018 – Nov 13, 2018

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

cover sunxi: A64/H3/H5 DT updates

This updates the .dts and .dtsi files used in U-Boot to what will become the new DTs in Linux 4.20 (anytime soon).
Those updates are not too useful for U-Boot itself, but keep the DTs consistent and allow to directly pass U-Boot's copy to any kernel, by using $fdtcontroladdr.
There is a small change in the A64 .dtsi, which breaks compatibility with older kernels (stable releases and those found on distro installer images), so the second patch fixes this by re-adding the missing compatible string to the system controller node.
The updates include the H5 and also H3, as they are very close and need to be updated together.

I ran into issues with the H6, so will post an update for that later.

I see that this somewhat overlaps with Vasily's Pinebook series, I am happy to arrange something here. Originally I wanted to wait for the files to hit Linus' tree (to get stable commit IDs), but I sending this now to not block Vasily.

Cheers,
Andre.

Andre Przywara (4):
sunxi: A64: Update .dts/.dtsi files
sunxi: A64: Re-add syscon to DT node
sunxi: H3/H5: Update .dts files
sunxi: A64: Add Pine64-LTS board

 arch/arm/dts/sun50i-a64-amarula-relic.dts     | 168 +++++++++++++-
 arch/arm/dts/sun50i-a64-bananapi-m64.dts      |  34 ++-
 arch/arm/dts/sun50i-a64-nanopi-a64.dts        |  89 +++++++-
 arch/arm/dts/sun50i-a64-olinuxino.dts         | 103 ++++++++-
 arch/arm/dts/sun50i-a64-orangepi-win.dts      | 179 ++++++++++++++-
 arch/arm/dts/sun50i-a64-pine64-lts.dts        |  13 ++
 arch/arm/dts/sun50i-a64-pine64.dts            |  32 ++-
 arch/arm/dts/sun50i-a64-sopine-baseboard.dts  |  32 ++-
 arch/arm/dts/sun50i-a64-sopine.dtsi           |  15 ++
 arch/arm/dts/sun50i-a64.dtsi                  | 312 ++++++++++++++++++++++++--
 arch/arm/dts/sun50i-h5-orangepi-pc2.dts       |  12 +
 arch/arm/dts/sun50i-h5-orangepi-zero-plus.dts |   2 -
 arch/arm/dts/sun8i-h3.dtsi                    |  31 +++
 arch/arm/dts/sunxi-h3-h5.dtsi                 |   2 -
 configs/pine64-lts_defconfig                  |  19 ++
 15 files changed, 995 insertions(+), 48 deletions(-)
 create mode 100644 arch/arm/dts/sun50i-a64-pine64-lts.dts
 create mode 100644 configs/pine64-lts_defconfig
Signature · 1 line
2.14.5
#1 lore raw

PATCH 1/4 sunxi: A64: Update .dts/.dtsi files

Update the .dts/.dtsi file from the Linux sunxi/dt64-for-4.20 tree:
commit 679294497be31596e1c9c61507746d72b6b05f26

Author: Rodrigo Exterckötter Tjäder <[email protected]>
Date:   Wed Sep 26 19:48:24 2018 +0000

arm64: dts: allwinner: a64: a64-olinuxino: set the PHY TX delay

---
 arch/arm/dts/sun50i-a64-amarula-relic.dts    | 168 +++++++++++++-
 arch/arm/dts/sun50i-a64-bananapi-m64.dts     |  34 ++-
 arch/arm/dts/sun50i-a64-nanopi-a64.dts       |  89 +++++++-
 arch/arm/dts/sun50i-a64-olinuxino.dts        | 103 ++++++++-
 arch/arm/dts/sun50i-a64-orangepi-win.dts     | 179 ++++++++++++++-
 arch/arm/dts/sun50i-a64-pine64.dts           |  32 ++-
 arch/arm/dts/sun50i-a64-sopine-baseboard.dts |  32 ++-
 arch/arm/dts/sun50i-a64-sopine.dtsi          |  15 ++
 arch/arm/dts/sun50i-a64.dtsi                 | 313 +++++++++++++++++++++++++--
 9 files changed, 920 insertions(+), 45 deletions(-)
arch/arm/dts/sun50i-a64-amarula-relic.dts +161 -7
index f3b4e93ece..6cb2b7f0c8 100644
@@ -22,11 +22,11 @@
 		stdout-path = "serial0:115200n8";
 	};
 
-	reg_vcc3v3: vcc3v3 {
-		compatible = "regulator-fixed";
-		regulator-name = "vcc3v3";
-		regulator-min-microvolt = <3300000>;
-		regulator-max-microvolt = <3300000>;
+	wifi_pwrseq: wifi-pwrseq {
+		compatible = "mmc-pwrseq-simple";
+		clocks = <&rtc 1>;
+		clock-names = "ext_clock";
+		reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* WL-PMU-EN: PL2 */
 	};
 };
 
@@ -34,10 +34,34 @@
 	status = "okay";
 };
 
+&mmc1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc1_pins>;
+	vmmc-supply = <&reg_dcdc1>;
+	/*
+	 * Schematic shows both dldo4 and eldo1 connected for vcc-io-wifi, but
+	 * dldo4 connection shows DNP(Do Not Populate) and eldo1 connected with
+	 * 0Ohm register to vcc-io-wifi so eldo1 is used.
+	 */
+	vqmmc-supply = <&reg_eldo1>;
+	mmc-pwrseq = <&wifi_pwrseq>;
+	bus-width = <4>;
+	non-removable;
+	status = "okay";
+
+	brcmf: wifi at 1 {
+		reg = <1>;
+		compatible = "brcm,bcm4329-fmac";
+		interrupt-parent = <&r_pio>;
+		interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>;	/* WL-WAKE-AP: PL3 */
+		interrupt-names = "host-wake";
+	};
+};
+
 &mmc2 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc2_pins>;
-	vmmc-supply = <&reg_vcc3v3>;
+	vmmc-supply = <&reg_dcdc1>;
 	bus-width = <8>;
 	non-removable;
 	cap-mmc-hw-reset;
@@ -48,9 +72,138 @@
 	status = "okay";
 };
 
+&r_rsb {
+	status = "okay";
+
+	axp803: pmic at 3a3 {
+		compatible = "x-powers,axp803";
+		reg = <0x3a3>;
+		interrupt-parent = <&r_intc>;
+		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+		x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
+	};
+};
+
+#include "axp803.dtsi"
+
+&reg_aldo1 {
+	regulator-always-on;
+	regulator-min-microvolt = <2800000>;
+	regulator-max-microvolt = <2800000>;
+	regulator-name = "avdd-csi";
+};
+
+&reg_aldo2 {
+	regulator-always-on;
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-pl";
+};
+
+&reg_aldo3 {
+	regulator-always-on;
+	regulator-min-microvolt = <3000000>;
+	regulator-max-microvolt = <3000000>;
+	regulator-name = "vcc-pll-avcc";
+};
+
+&reg_dcdc1 {
+	regulator-always-on;
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-3v3";
+};
+
+&reg_dcdc2 {
+	regulator-always-on;
+	regulator-min-microvolt = <1040000>;
+	regulator-max-microvolt = <1300000>;
+	regulator-name = "vdd-cpux";
+};
+
+/* DCDC3 is polyphased with DCDC2 */
+
+&reg_dcdc5 {
+	regulator-always-on;
+	regulator-min-microvolt = <1500000>;
+	regulator-max-microvolt = <1500000>;
+	regulator-name = "vcc-dram";
+};
+
+&reg_dcdc6 {
+	regulator-always-on;
+	regulator-min-microvolt = <1100000>;
+	regulator-max-microvolt = <1100000>;
+	regulator-name = "vdd-sys";
+};
+
+&reg_dldo1 {
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-hdmi-dsi-sensor";
+};
+
+&reg_dldo2 {
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-mipi";
+};
+
+&reg_dldo3 {
+	regulator-min-microvolt = <2800000>;
+	regulator-max-microvolt = <2800000>;
+	regulator-name = "dovdd-csi";
+};
+
+&reg_dldo4 {
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-wifi-io";
+};
+
+&reg_drivevbus {
+	regulator-name = "usb0-vbus";
+	status = "okay";
+};
+
+&reg_eldo1 {
+	regulator-always-on;
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <1800000>;
+	regulator-name = "cpvdd";
+};
+
+&reg_eldo3 {
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <1800000>;
+	regulator-name = "dvdd-csi";
+};
+
+&reg_fldo1 {
+	regulator-min-microvolt = <1200000>;
+	regulator-max-microvolt = <1200000>;
+	regulator-name = "vcc-1v2-hsic";
+};
+
+/*
+ * The A64 chip cannot work without this regulator off, although
+ * it seems to be only driving the AR100 core.
+ * Maybe we don't still know well about CPUs domain.
+ */
+&reg_fldo2 {
+	regulator-always-on;
+	regulator-min-microvolt = <1100000>;
+	regulator-max-microvolt = <1100000>;
+	regulator-name = "vdd-cpus";
+};
+
+&reg_rtc_ldo {
+	regulator-name = "vcc-rtc";
+};
+
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pb_pins>;
 	status = "okay";
 };
 
@@ -61,5 +214,6 @@
 
 &usbphy {
 	usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
+	usb0_vbus-supply = <&reg_drivevbus>;
 	status = "okay";
 };
arch/arm/dts/sun50i-a64-bananapi-m64.dts +32 -2
index 0716b14411..ef1c90401b 100644
@@ -60,6 +60,17 @@
 		stdout-path = "serial0:115200n8";
 	};
 
+	hdmi-connector {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con_in: endpoint {
+				remote-endpoint = <&hdmi_out_con>;
+			};
+		};
+	};
+
 	leds {
 		compatible = "gpio-leds";
 
@@ -86,6 +97,10 @@
 	};
 };
 
+&de {
+	status = "okay";
+};
+
 &ehci0 {
 	status = "okay";
 };
@@ -103,6 +118,17 @@
 	status = "okay";
 };
 
+&hdmi {
+	hvcc-supply = <&reg_dldo1>;
+	status = "okay";
+};
+
+&hdmi_out {
+	hdmi_out_con: endpoint {
+		remote-endpoint = <&hdmi_con_in>;
+	};
+};
+
 &i2c1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&i2c1_pins>;
@@ -151,7 +177,7 @@
 
 &mmc2 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&mmc2_pins>;
+	pinctrl-0 = <&mmc2_pins>, <&mmc2_ds_pin>;
 	vmmc-supply = <&reg_dcdc1>;
 	bus-width = <8>;
 	non-removable;
@@ -296,9 +322,13 @@
 	regulator-name = "vcc-rtc";
 };
 
+&simplefb_hdmi {
+	vcc-hdmi-supply = <&reg_dldo1>;
+};
+
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pb_pins>;
 	status = "okay";
 };
 
arch/arm/dts/sun50i-a64-nanopi-a64.dts +85 -4

133 lines not on this page · raw message

arch/arm/dts/sun50i-a64-olinuxino.dts +100 -3

154 lines not on this page · raw message

arch/arm/dts/sun50i-a64-orangepi-win.dts +173 -6

235 lines not on this page · raw message

arch/arm/dts/sun50i-a64-pine64.dts +31 -1
index a75825798a..c077b6c1f4 100644
@@ -62,6 +62,21 @@
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	hdmi-connector {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con_in: endpoint {
+				remote-endpoint = <&hdmi_out_con>;
+			};
+		};
+	};
+};
+
+&de {
+	status = "okay";
 };
 
 &ehci0 {
@@ -82,6 +97,17 @@
 
 };
 
+&hdmi {
+	hvcc-supply = <&reg_dldo1>;
+	status = "okay";
+};
+
+&hdmi_out {
+	hdmi_out_con: endpoint {
+		remote-endpoint = <&hdmi_con_in>;
+	};
+};
+
 &i2c1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&i2c1_pins>;
@@ -229,6 +255,10 @@
 	regulator-name = "vcc-rtc";
 };
 
+&simplefb_hdmi {
+	vcc-hdmi-supply = <&reg_dldo1>;
+};
+
 /* On Euler connector */
 &spdif {
 	status = "disabled";
@@ -237,7 +267,7 @@
 /* On Exp and Euler connectors */
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pb_pins>;
 	status = "okay";
 };
 
arch/arm/dts/sun50i-a64-sopine-baseboard.dts +31 -1
index abe179de35..53fcc9098d 100644
@@ -61,6 +61,17 @@
 		stdout-path = "serial0:115200n8";
 	};
 
+	hdmi-connector {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con_in: endpoint {
+				remote-endpoint = <&hdmi_out_con>;
+			};
+		};
+	};
+
 	reg_vcc1v8: vcc1v8 {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc1v8";
@@ -69,6 +80,10 @@
 	};
 };
 
+&de {
+	status = "okay";
+};
+
 &ehci0 {
 	status = "okay";
 };
@@ -86,6 +101,17 @@
 	status = "okay";
 };
 
+&hdmi {
+	hvcc-supply = <&reg_dldo1>;
+	status = "okay";
+};
+
+&hdmi_out {
+	hdmi_out_con: endpoint {
+		remote-endpoint = <&hdmi_con_in>;
+	};
+};
+
 &mdio {
 	ext_rgmii_phy: ethernet-phy at 1 {
 		compatible = "ethernet-phy-ieee802.3-c22";
@@ -134,9 +160,13 @@
 	regulator-name = "vcc-wifi";
 };
 
+&simplefb_hdmi {
+	vcc-hdmi-supply = <&reg_dldo1>;
+};
+
 &uart0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pb_pins>;
 	status = "okay";
 };
 
arch/arm/dts/sun50i-a64-sopine.dtsi +15 -0
index 43418bd881..6723b8695e 100644
@@ -45,6 +45,8 @@
 
 #include "sun50i-a64.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 &mmc0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc0_pins>;
@@ -52,6 +54,7 @@
 	non-removable;
 	disable-wp;
 	bus-width = <4>;
+	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
 	status = "okay";
 };
 
@@ -66,6 +69,18 @@
 	};
 };
 
+&spi0  {
+	status = "okay";
+
+	flash at 0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";
+		reg = <0>;
+		spi-max-frequency = <40000000>;
+	};
+};
+
 #include "axp803.dtsi"
 
 &reg_aldo2 {
arch/arm/dts/sun50i-a64.dtsi +292 -21

431 lines not on this page · raw message

Signature · 1 line
2.14.5
#2 lore raw

PATCH 2/4 sunxi: A64: Re-add syscon to DT node

In reply to Andre Przywara

The sun50i-a64.dtsi changes introduced in Linux v4.19-rc1 changed the compatible name for the syscon controller, dropping the generic "syscon" fallback. Using this new DT node will make the Ethernet driver in every older kernel (or non-Linux kernels) fail to initialise the MAC device.

To allow booting distribution kernels (from installer images via UEFI, for instance), re-add the syscon compatible string as a fallback. This works with both older and newer kernels.

---
 arch/arm/dts/sun50i-a64.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/dts/sun50i-a64.dtsi +2 -1
index f3a66f8882..ff41abc96a 100644
@@ -259,7 +259,8 @@
 		};
 
 		syscon: syscon at 1c00000 {
-			compatible = "allwinner,sun50i-a64-system-control";
+			compatible = "allwinner,sun50i-a64-system-control",
+				"syscon";
 			reg = <0x01c00000 0x1000>;
 			#address-cells = <1>;
 			#size-cells = <1>;
Signature · 1 line
2.14.5
#3 lore raw

PATCH 3/4 sunxi: H3/H5: Update .dts files

In reply to Andre Przywara

Update the .dts/.dtsi files from the Linux sunxi/dt64-for-4.20 tree:
commit 679294497be31596e1c9c61507746d72b6b05f26
Author: Rodrigo Exterckötter Tjäder <[email protected]>
Date: Wed Sep 26 19:48:24 2018 +0000
arm64: dts: allwinner: a64: a64-olinuxino: set the PHY TX delay

---
 arch/arm/dts/sun50i-h5-orangepi-pc2.dts       | 12 +++++++++++
 arch/arm/dts/sun50i-h5-orangepi-zero-plus.dts |  2 --
 arch/arm/dts/sun8i-h3.dtsi                    | 31 +++++++++++++++++++++++++++
 arch/arm/dts/sunxi-h3-h5.dtsi                 |  2 --
 4 files changed, 43 insertions(+), 4 deletions(-)
arch/arm/dts/sun50i-h5-orangepi-pc2.dts +12 -0
index 98862c7c72..3e0d5a9c09 100644
@@ -207,6 +207,18 @@
 	status = "okay";
 };
 
+&spi0  {
+	status = "okay";
+
+	flash at 0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";
+		reg = <0>;
+		spi-max-frequency = <40000000>;
+	};
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_pins_a>;
arch/arm/dts/sun50i-h5-orangepi-zero-plus.dts +0 -2
index e79cf3baf4..1238de25a9 100644
@@ -105,7 +105,6 @@
 	};
 };
 
-/*
 &spi0  {
 	status = "okay";
 
@@ -117,7 +116,6 @@
 		spi-max-frequency = <40000000>;
 	};
 };
-*/
 
 &ohci0 {
 	status = "okay";
arch/arm/dts/sun8i-h3.dtsi +31 -0
index 41d57c76f2..f0096074a4 100644
@@ -84,21 +84,30 @@
 			compatible = "arm,cortex-a7";
 			device_type = "cpu";
 			reg = <1>;
+			clocks = <&ccu CLK_CPUX>;
+			clock-names = "cpu";
 			operating-points-v2 = <&cpu0_opp_table>;
+			#cooling-cells = <2>;
 		};
 
 		cpu at 2 {
 			compatible = "arm,cortex-a7";
 			device_type = "cpu";
 			reg = <2>;
+			clocks = <&ccu CLK_CPUX>;
+			clock-names = "cpu";
 			operating-points-v2 = <&cpu0_opp_table>;
+			#cooling-cells = <2>;
 		};
 
 		cpu at 3 {
 			compatible = "arm,cortex-a7";
 			device_type = "cpu";
 			reg = <3>;
+			clocks = <&ccu CLK_CPUX>;
+			clock-names = "cpu";
 			operating-points-v2 = <&cpu0_opp_table>;
+			#cooling-cells = <2>;
 		};
 	};
 
@@ -111,6 +120,28 @@
 	};
 
 	soc {
+		system-control at 1c00000 {
+			compatible = "allwinner,sun8i-h3-system-control";
+			reg = <0x01c00000 0x30>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
+
+			sram_c: sram at 1d00000 {
+				compatible = "mmio-sram";
+				reg = <0x01d00000 0x80000>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0 0x01d00000 0x80000>;
+
+				ve_sram: sram-section at 0 {
+					compatible = "allwinner,sun8i-h3-sram-c1",
+						     "allwinner,sun4i-a10-sram-c1";
+					reg = <0x000000 0x80000>;
+				};
+			};
+		};
+
 		mali: gpu at 1c40000 {
 			compatible = "allwinner,sun8i-h3-mali", "arm,mali-400";
 			reg = <0x01c40000 0x10000>;
arch/arm/dts/sunxi-h3-h5.dtsi +0 -2
index c3bff1105e..fc6131315c 100644
@@ -506,8 +506,6 @@
 			reset-names = "stmmaceth";
 			clocks = <&ccu CLK_BUS_EMAC>;
 			clock-names = "stmmaceth";
-			#address-cells = <1>;
-			#size-cells = <0>;
 			status = "disabled";
 
 			mdio: mdio {
Signature · 1 line
2.14.5
#4 lore raw

PATCH 4/4 sunxi: A64: Add Pine64-LTS board

In reply to Andre Przywara

The Pine64 LTS is an updated version of the Pine64, copying the technical updates from the SoPine platform: LPDDR3 DRAM, eMMC socket and soldered SPI flash chip, even the broken SD card detect pin has been copied. Consequently this leads to the .dts (copied from the kernel) just including the SoPine baseboard .dts, and the defconfig being almost identical. Nevertheless the boards deserves a separate config.

---
 arch/arm/dts/sun50i-a64-pine64-lts.dts | 13 +++++++++++++
 configs/pine64-lts_defconfig           | 19 +++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 arch/arm/dts/sun50i-a64-pine64-lts.dts
 create mode 100644 configs/pine64-lts_defconfig
arch/arm/dts/sun50i-a64-pine64-lts.dts new file +13 -0
new file mode 100644
index 0000000000..72d6961dc3
@@ -0,0 +1,13 @@
+/*
+ * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+ *
+ * Copyright (c) 2018 ARM Ltd.
+ */
+
+#include "sun50i-a64-sopine-baseboard.dts"
+
+/ {
+	model = "Pine64 LTS";
+	compatible = "pine64,pine64-lts", "allwinner,sun50i-r18",
+		     "allwinner,sun50i-a64";
+};
configs/pine64-lts_defconfig new file +19 -0
new file mode 100644
index 0000000000..fd3cdeec85
@@ -0,0 +1,19 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_SPL=y
+CONFIG_MACH_SUN50I=y
+CONFIG_SUNXI_DRAM_LPDDR3_STOCK=y
+CONFIG_DRAM_CLK=552
+CONFIG_DRAM_ZQ=3881949
+CONFIG_MMC0_CD_PIN=""
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
+CONFIG_SPL_SPI_SUNXI=y
+CONFIG_NR_DRAM_BANKS=1
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+# CONFIG_CMD_FLASH is not set
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-pine64-lts"
+CONFIG_SUN8I_EMAC=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
Signature · 1 line
2.14.5
#5 lore raw

cover sunxi: A64/H3/H5 DT updates

In reply to Andre Przywara
Quoted 12 lines · Andre Przywara

This updates the .dts and .dtsi files used in U-Boot to what will become the new DTs in Linux 4.20 (anytime soon).
Those updates are not too useful for U-Boot itself, but keep the DTs consistent and allow to directly pass U-Boot's copy to any kernel, by using $fdtcontroladdr.
There is a small change in the A64 .dtsi, which breaks compatibility with older kernels (stable releases and those found on distro installer images), so the second patch fixes this by re-adding the missing compatible string to the system controller node.
The updates include the H5 and also H3, as they are very close and need to be updated together.

Quoted 6 lines

I ran into issues with the H6, so will post an update for that later.

I see that this somewhat overlaps with Vasily's Pinebook series, I am happy to arrange something here. Originally I wanted to wait for the files to hit Linus' tree (to get stable commit IDs), but I sending this now to not block Vasily.

Maxime

Signature · 10 lines
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181029/a3894159/attachment.sig>
#6 lore raw

cover sunxi: A64/H3/H5 DT updates

In reply to Andre Przywara
Quoted 13 lines · Andre Przywara

This updates the .dts and .dtsi files used in U-Boot to what will become the new DTs in Linux 4.20 (anytime soon).
Those updates are not too useful for U-Boot itself, but keep the DTs consistent and allow to directly pass U-Boot's copy to any kernel, by using $fdtcontroladdr.
There is a small change in the A64 .dtsi, which breaks compatibility with older kernels (stable releases and those found on distro installer images), so the second patch fixes this by re-adding the missing compatible string to the system controller node.
The updates include the H5 and also H3, as they are very close and need to be updated together.

Quoted 6 lines

I ran into issues with the H6, so will post an update for that later.

I see that this somewhat overlaps with Vasily's Pinebook series, I am happy to arrange something here. Originally I wanted to wait for the files to hit Linus' tree (to get stable commit IDs), but I sending this now to not block Vasily.

So, does this sync is on top of pinebook dts sync patch[1]? if ie case then we can squash 1/4 with [1] so all sync changes in one commit.

[1] https://patchwork.ozlabs.org/patch/990012/

#7 lore raw

cover sunxi: A64/H3/H5 DT updates

Quoted 17 lines · Jagan Teki
Quoted 15 lines · Andre Przywara

This updates the .dts and .dtsi files used in U-Boot to what will become the new DTs in Linux 4.20 (anytime soon).
Those updates are not too useful for U-Boot itself, but keep the DTs consistent and allow to directly pass U-Boot's copy to any kernel, by using $fdtcontroladdr.
There is a small change in the A64 .dtsi, which breaks compatibility with older kernels (stable releases and those found on distro installer images), so the second patch fixes this by re-adding the missing compatible string to the system controller node.
The updates include the H5 and also H3, as they are very close and need to be updated together.

I ran into issues with the H6, so will post an update for that later.

Quoted 7 lines
Quoted 4 lines

I see that this somewhat overlaps with Vasily's Pinebook series, I am happy to arrange something here. Originally I wanted to wait for the files to hit Linus' tree (to get stable commit IDs), but I sending this now to not block Vasily.

So, does this sync is on top of pinebook dts sync patch[1]? if ie case then we can squash 1/4 with [1] so all sync changes in one commit.

Just merge Andre's patches, I'll rebase mine on top of his and resend.

Quoted 1 line

[1] https://patchwork.ozlabs.org/patch/990012/

#8 lore raw

cover sunxi: A64/H3/H5 DT updates

Quoted 24 lines · Vasily Khoruzhick
Quoted 22 lines · Jagan Teki
Quoted 19 lines · Andre Przywara

This updates the .dts and .dtsi files used in U-Boot to what will become the new DTs in Linux 4.20 (anytime soon).
Those updates are not too useful for U-Boot itself, but keep the DTs consistent and allow to directly pass U-Boot's copy to any kernel, by using $fdtcontroladdr.
There is a small change in the A64 .dtsi, which breaks compatibility with older kernels (stable releases and those found on distro installer images), so the second patch fixes this by re-adding the missing compatible string to the system controller node.
The updates include the H5 and also H3, as they are very close and need to be updated together.

I ran into issues with the H6, so will post an update for that later.

I see that this somewhat overlaps with Vasily's Pinebook series, I am happy to arrange something here. Originally I wanted to wait for the files to hit Linus' tree (to get stable commit IDs), but I sending this now to not block Vasily.

Quoted 4 lines
Quoted 2 lines

So, does this sync is on top of pinebook dts sync patch[1]? if ie case then we can squash 1/4 with [1] so all sync changes in one commit.

Just merge Andre's patches, I'll rebase mine on top of his and resend.

Marked as "Waiting for Upstream" in patchwork, will push it MW, just send your series on top it.

#10 lore raw

cover sunxi: A64/H3/H5 DT updates

In reply to Andre Przywara
Quoted 20 lines · Andre Przywara

This updates the .dts and .dtsi files used in U-Boot to what will become the new DTs in Linux 4.20 (anytime soon).
Those updates are not too useful for U-Boot itself, but keep the DTs consistent and allow to directly pass U-Boot's copy to any kernel, by using $fdtcontroladdr.
There is a small change in the A64 .dtsi, which breaks compatibility with older kernels (stable releases and those found on distro installer images), so the second patch fixes this by re-adding the missing compatible string to the system controller node.
The updates include the H5 and also H3, as they are very close and need to be updated together.

I ran into issues with the H6, so will post an update for that later.

I see that this somewhat overlaps with Vasily's Pinebook series, I am happy to arrange something here. Originally I wanted to wait for the files to hit Linus' tree (to get stable commit IDs), but I sending this now to not block Vasily.

Quoted 8 lines

Cheers,
Andre.

Andre Przywara (4):
sunxi: A64: Update .dts/.dtsi files
sunxi: A64: Re-add syscon to DT node
sunxi: H3/H5: Update .dts files
sunxi: A64: Add Pine64-LTS board

Applied to u-boot-sunxi/master