All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] sunxi: Add support for Libre Computer Board ALL-H3-CC H5 ver.
@ 2018-04-24  9:24 Neil Armstrong
  2018-04-24 10:01 ` Maxime Ripard
  0 siblings, 1 reply; 2+ messages in thread
From: Neil Armstrong @ 2018-04-24  9:24 UTC (permalink / raw)
  To: u-boot

The Libre Computer Board ALL-H3-CC from Libre Technology is a Raspberry
Pi B+ form factor single board computer based on the Allwinner H3 or H5 SoC.
The board has 1GB DDR3 SDRAM, provided by 4 2Gb chips. The mounting holes
and connectors are in the exact same position as on the Raspberry Pi B+.

This patch adds defconfig and dts files for the H5 variant of the same board.
The dts file simply includes the H3 variant since the board is the same.

The defconfig is based on the H3 variant and adapted to build for the H5.

This follows the corresponding Linux patchset at [1].

[1] http://lkml.kernel.org/r/1524561576-2201-1-git-send-email-narmstrong at baylibre.com

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
 arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts | 12 ++++++++++++
 configs/libretech_all_h3_cc_h5_defconfig       | 17 +++++++++++++++++
 2 files changed, 29 insertions(+)
 create mode 100644 arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts
 create mode 100644 configs/libretech_all_h3_cc_h5_defconfig

diff --git a/arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts b/arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts
new file mode 100644
index 0000000..a72b0a3
--- /dev/null
+++ b/arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (C) 2018 BayLibre, SAS
+ * Author: Neil Armstrong <narmstrong@baylibre.com>
+ */
+
+#include "sun8i-h3-libretech-all-h3-cc.dts"
+
+/ {
+	model = "Libre Computer Board ALL-H3-CC H5";
+	compatible = "libretech,all-h3-cc-h5", "allwinner,sun50i-h5";
+};
diff --git a/configs/libretech_all_h3_cc_h5_defconfig b/configs/libretech_all_h3_cc_h5_defconfig
new file mode 100644
index 0000000..8e5021d
--- /dev/null
+++ b/configs/libretech_all_h3_cc_h5_defconfig
@@ -0,0 +1,17 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_SPL=y
+CONFIG_MACH_SUN50I_H5=y
+CONFIG_DRAM_CLK=672
+CONFIG_DRAM_ZQ=3881979
+CONFIG_DRAM_ODT_EN=y
+CONFIG_R_I2C_ENABLE=y
+CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-libretech-all-h3-cc"
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_SPL_I2C_SUPPORT=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_SUN8I_EMAC=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] sunxi: Add support for Libre Computer Board ALL-H3-CC H5 ver.
  2018-04-24  9:24 [U-Boot] [PATCH] sunxi: Add support for Libre Computer Board ALL-H3-CC H5 ver Neil Armstrong
@ 2018-04-24 10:01 ` Maxime Ripard
  0 siblings, 0 replies; 2+ messages in thread
From: Maxime Ripard @ 2018-04-24 10:01 UTC (permalink / raw)
  To: u-boot

On Tue, Apr 24, 2018 at 11:24:51AM +0200, Neil Armstrong wrote:
> The Libre Computer Board ALL-H3-CC from Libre Technology is a Raspberry
> Pi B+ form factor single board computer based on the Allwinner H3 or H5 SoC.
> The board has 1GB DDR3 SDRAM, provided by 4 2Gb chips. The mounting holes
> and connectors are in the exact same position as on the Raspberry Pi B+.
> 
> This patch adds defconfig and dts files for the H5 variant of the same board.
> The dts file simply includes the H3 variant since the board is the same.
> 
> The defconfig is based on the H3 variant and adapted to build for the H5.
> 
> This follows the corresponding Linux patchset at [1].
> 
> [1] http://lkml.kernel.org/r/1524561576-2201-1-git-send-email-narmstrong at baylibre.com
> 
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>

Commit log should be wrapped at 75 chars.

> ---
>  arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts | 12 ++++++++++++
>  configs/libretech_all_h3_cc_h5_defconfig       | 17 +++++++++++++++++
>  2 files changed, 29 insertions(+)
>  create mode 100644 arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts
>  create mode 100644 configs/libretech_all_h3_cc_h5_defconfig
> 
> diff --git a/arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts b/arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts
> new file mode 100644
> index 0000000..a72b0a3
> --- /dev/null
> +++ b/arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts
> @@ -0,0 +1,12 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Copyright (C) 2018 BayLibre, SAS
> + * Author: Neil Armstrong <narmstrong@baylibre.com>
> + */
> +
> +#include "sun8i-h3-libretech-all-h3-cc.dts"
> +
> +/ {
> +	model = "Libre Computer Board ALL-H3-CC H5";
> +	compatible = "libretech,all-h3-cc-h5", "allwinner,sun50i-h5";
> +};

The DT will not be correct in that case, especially the CPU node. Why
not using the same DT than Linux?

Maxime

-- 
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180424/495a51b8/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-24 10:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-24  9:24 [U-Boot] [PATCH] sunxi: Add support for Libre Computer Board ALL-H3-CC H5 ver Neil Armstrong
2018-04-24 10:01 ` Maxime Ripard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.