Skip to contentSkip to conversation

ARM: sun9i: Device tree and defconfig for Sunchip CX-A99

PATCH Superseded Rask Ingemann Lambertsen 2 participants 7 messages Feb 24, 2017

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover ARM: sun9i: Device tree and defconfig for Sunchip CX-A99

The Sunchip CX-A99 board is used in some media players running Android. It uses the Allwinner A80 ARM SoC and is similar to the Merrii A80 Optimus and Cubietech Cubieboard4, but targets consumer devices instead of being a developer board. Patch 2 includes an overview of what's on the board. See the wiki page at https://linux-sunxi.org/Sunchip_CX-A99 for more details.

Patch 1 is an update from upstream (Linux kernel 4.10) to the A80 dtsi adding the mmc1 pinmux node. U-Boot itself does not use it, but without it, newer device trees for A80 boards won't compile.

Patch 2 adds the device tree itself. The existing bindings aren't sufficient to accurately describe the board, so this is only an interim version while work is done upstream on the bindings. It will however get U-Boot going and can be used for kernel 4.9.9 (or later) and kernel 4.10-rc7 (or later).

Patch 3 add the defconfig. There is nothing special about it.

A follow-up patch will add support for the AXP808 PMIC (including the AXP809+AXP806 pair used on the two other A80 boards mentioned above).

Chen-Yu Tsai (1):
ARM: dts: sun9i: Add mmc1 pinmux setting

Rask Ingemann Lambertsen (2):
ARM: dts: sun9i: Add device tree for Sunchip CX-A99
ARM: sun9i: Add defconfig for Sunchip CX-A99

 arch/arm/dts/Makefile             |   3 +-
 arch/arm/dts/sun9i-a80-cx-a99.dts | 380 ++++++++++++++++++++++++++++++++++++++
 arch/arm/dts/sun9i-a80.dtsi       |   8 +
 configs/Sunchip_CX-A99_defconfig  |  22 +++
 4 files changed, 412 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/sun9i-a80-cx-a99.dts
 create mode 100644 configs/Sunchip_CX-A99_defconfig
Signature · 1 line
2.10.2
#1 lore raw

PATCH 1/3 ARM: dts: sun9i: Add mmc1 pinmux setting

commit 56b0730157f70dc23d6caff9e7ceb8b377b96b9f upstream.

On the A80, mmc1 is available on pingroup G. Designs mostly use this to connect to an SDIO WiFi chip.

---
 arch/arm/dts/sun9i-a80.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/dts/sun9i-a80.dtsi +8 -0
index f68b324..92412b2 100644
@@ -701,6 +701,14 @@
 				allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
 			};
 
+			mmc1_pins: mmc1 {
+				allwinner,pins = "PG0", "PG1" ,"PG2", "PG3",
+						 "PG4", "PG5";
+				allwinner,function = "mmc1";
+				allwinner,drive = <SUN4I_PINCTRL_30_MA>;
+				allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+			};
+
 			mmc2_8bit_pins: mmc2_8bit {
 				allwinner,pins = "PC6", "PC7", "PC8", "PC9",
 						 "PC10", "PC11", "PC12",
Signature · 1 line
2.10.2
#2 lore raw

PATCH 1/3 ARM: dts: sun9i: Add mmc1 pinmux setting

Quoted 6 lines · Chen-Yu Tsai

commit 56b0730157f70dc23d6caff9e7ceb8b377b96b9f upstream.

On the A80, mmc1 is available on pingroup G. Designs mostly use this to connect to an SDIO WiFi chip.

I did not send this.

Rask, something is wrong with your setup. You should send patches from your own email address, while keeping the author. You should also add your SoB.

ChenYu

Quoted 30 lines
---
 arch/arm/dts/sun9i-a80.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/dts/sun9i-a80.dtsi +8 -1
index f68b324..92412b2 100644
@@ -701,6 +701,14 @@
                                allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
                        };
 
+                       mmc1_pins: mmc1 {
+                               allwinner,pins = "PG0", "PG1" ,"PG2", "PG3",
+                                                "PG4", "PG5";
+                               allwinner,function = "mmc1";
+                               allwinner,drive = <SUN4I_PINCTRL_30_MA>;
+                               allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+                       };
+
                        mmc2_8bit_pins: mmc2_8bit {
                                allwinner,pins = "PC6", "PC7", "PC8", "PC9",
                                                 "PC10", "PC11", "PC12",
--

2.10.2

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#3 lore raw

PATCH 1/3 ARM: dts: sun9i: Add mmc1 pinmux setting

Quoted 6 lines · Chen-Yu Tsai
Quoted 5 lines · Chen-Yu Tsai

commit 56b0730157f70dc23d6caff9e7ceb8b377b96b9f upstream.

On the A80, mmc1 is available on pingroup G. Designs mostly use this to connect to an SDIO WiFi chip.

Quoted 7 lines
Quoted 1 line

I did not send this.

Rask, something is wrong with your setup. You should send patches from your own email address, while keeping the author. You should also add your SoB.

I'm terribly sorry about that. I am the one who sent that patch.

To prevent `git format-patch' from copying the commit author's address into the From: field in the e-mail header again, I have now run

$ git config --global format.from true

so `git format-patch' will do the right thing. I wish that variable would be more prominently documented, perhaps in git-format-patch(1).

Signature · 1 line
Rask Ingemann Lambertsen
#4 lore raw

PATCH 2/3 ARM: dts: sun9i: Add device tree for Sunchip CX-A99

In reply to Rask Ingemann Lambertsen

The Sunchip CX-A99 is a board used in some media players. It features:

An Allwinner A80 ARM SoC (4 * Cortex-A7 + 4 * Cortex-A15 cores) 2 GiB or 4 GiB DDR3 DRAM
AXP808 PMIC
16 GB or 32 GB eMMC
SDIO Wifi/Bluetooth/FM module
SD card slot
1 USB 3.0 connector
2 USB 2.0 connectors
SATA connector
UART connector (internally) for serial console Ethernet connector (10/100/1000 Mbit/s)
HDMI connector
Composite video and analog audio connector
S/PDIF connector
IR remote control receiver

This is a preliminary device tree for use until a device tree is accepted upstream, after which it can be replaced by the upstream version.

---
 arch/arm/dts/Makefile             |   3 +-
 arch/arm/dts/sun9i-a80-cx-a99.dts | 380 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 382 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/sun9i-a80-cx-a99.dts
arch/arm/dts/Makefile +2 -1
index 66ea0b3..fd86794 100644
@@ -286,7 +286,8 @@ dtb-$(CONFIG_MACH_SUN50I) += \
 	sun50i-a64-pine64.dtb
 dtb-$(CONFIG_MACH_SUN9I) += \
 	sun9i-a80-optimus.dtb \
-	sun9i-a80-cubieboard4.dtb
+	sun9i-a80-cubieboard4.dtb \
+	sun9i-a80-cx-a99.dtb
 
 dtb-$(CONFIG_VF610) += vf500-colibri.dtb \
 	vf610-colibri.dtb \
arch/arm/dts/sun9i-a80-cx-a99.dts new file +380 -0

380 lines not on this page · raw message

Signature · 1 line
2.10.2
#5 lore raw

PATCH 3/3 ARM: sun9i: Add defconfig for Sunchip CX-A99

In reply to Rask Ingemann Lambertsen

This patch adds a defconfig for the board. The DRAM settings are as found in the vendor sys_config.fex file.

---
 configs/Sunchip_CX-A99_defconfig | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 configs/Sunchip_CX-A99_defconfig
configs/Sunchip_CX-A99_defconfig new file +22 -0
new file mode 100644
index 0000000..7530d7d
@@ -0,0 +1,22 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN9I=y
+CONFIG_DRAM_CLK=600
+CONFIG_DRAM_ZQ=3881915
+CONFIG_DRAM_ODT_EN=y
+CONFIG_MMC0_CD_PIN="PH17"
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
+CONFIG_USB0_VBUS_PIN="PH15"
+CONFIG_USB0_VBUS_DET=""
+CONFIG_USB0_ID_DET=""
+CONFIG_USB1_VBUS_PIN="PL7"
+CONFIG_USB3_VBUS_PIN="PL8"
+CONFIG_DEFAULT_DEVICE_TREE="sun9i-a80-cx-a99"
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_SPL=y
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_FPGA is not set
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_ISO_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
Signature · 1 line
2.10.2
#6 lore raw

cover ARM: sun9i: Device tree and defconfig for Sunchip CX-A99

In reply to Rask Ingemann Lambertsen

On Fri, Feb 24, 2017 at 07:07:52AM +0100, Rask Ingemann Lambertsen wrote:
[...]

Quoted 7 lines
 arch/arm/dts/Makefile             |   3 +-
 arch/arm/dts/sun9i-a80-cx-a99.dts | 380 ++++++++++++++++++++++++++++++++++++++
 arch/arm/dts/sun9i-a80.dtsi       |   8 +
 configs/Sunchip_CX-A99_defconfig  |  22 +++
 4 files changed, 412 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/sun9i-a80-cx-a99.dts
 create mode 100644 configs/Sunchip_CX-A99_defconfig

A patch to add an entry to board/sunxi/MAINTAINERS is missing.

(I'll wait around 13-14 hours from now for more comments before sending out version 2 of the patch series.)

Signature · 1 line
Rask Ingemann Lambertsen