[PATCH v4 0/3] arm64: Add initial support for Odroid-N2

From: Neil Armstrong
Date: Mon May 27 2019 - 10:05:27 EST


This patchset adds basic support for :
- Amlogic G12B, which is very similar to G12A
- The HardKernel Odroid-N2 based on the S922X SoC

The Amlogic G12B SoC is very similar with the G12A SoC, sharing
most of the features and architecture, but with these differences :
- The first CPU cluster only has 2xCortex-A53 instead of 4
- G12B has a second cluster of 4xCortex-A73
- Both cluster can achieve 2GHz instead of 1,8GHz for G12A
- CPU Clock architecture is difference, thus needing a different
compatible to handle this slight difference
- Supports a MIPI CSI input
- Embeds a Mali-G52 instead of a Mali-G31, but integration is the same

Actual support is done in the same way as for the GXM support, including
the G12A dtsi and redefining the CPU clusters.
Unlike GXM, the first cluster is different, thus needing to remove
the last 2 cpu nodes of the first cluster.

Dependencies :
- Patch 1, 2 : YAML rewrite of amlogic.txt bindings at [7]
- Patch 3 : None since clock + g12b bindings has been acked

Changes since v3 at [8]:
- Dropped arm,armv8
- Dropped eee disable, not needed in further tests
- Add comments about where are connected the regulators pins
- Moved the phy0 regulator to the usb vbus regulator

Changes since v2 at [5]:
- sent the clk patches in standalone at [6]
- rewrote the bindings on top of the YAML rewrite at [7]
- Added MMC, SDCard and Network support to Odroid-N2

Changes since v1 at [3]:
- Renamed the g12b cpu clocks like g12a counterparts
- Rebased clock patches on top of Guillaume's Temperature sensor Clock patches at [4]
- Added AO-CEC-B support to N2 DTS

Changes since RFC at [1]:
- Added bindings review tags
- Moved the fclk_div3 CRITICAL flags to the gate
- Removed invalid CRITICAL flags on the cpu clocks

[1] https://lkml.kernel.org/r/20190327103308.25058-1-narmstrong@xxxxxxxxxxxx
[2] https://lkml.kernel.org/r/20190325145914.32391-1-narmstrong@xxxxxxxxxxxx
[3] https://lkml.kernel.org/r/20190404150518.30337-1-narmstrong@xxxxxxxxxxxx
[4] https://lkml.kernel.org/r/20190412100221.26740-1-glaroque@xxxxxxxxxxxx
[5] https://lkml.kernel.org/r/20190423091503.10847-1-narmstrong@xxxxxxxxxxxx
[6] https://lkml.kernel.org/r/20190521150130.31684-1-narmstrong@xxxxxxxxxxxx
[7] https://lkml.kernel.org/r/20190517152723.28518-2-robh@xxxxxxxxxx
[8] https://lkml.kernel.org/r/20190521151952.2779-1-narmstrong@xxxxxxxxxxxx

Neil Armstrong (3):
dt-bindings: arm: amlogic: add G12B bindings
dt-bindings: arm: amlogic: add Odroid-N2 binding
arm64: dts: meson: Add minimal support for Odroid-N2

.../devicetree/bindings/arm/amlogic.yaml | 6 +
arch/arm64/boot/dts/amlogic/Makefile | 1 +
.../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 288 ++++++++++++++++++
arch/arm64/boot/dts/amlogic/meson-g12b.dtsi | 82 +++++
4 files changed, 377 insertions(+)
create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b.dtsi

--
2.21.0