Skip to content

RFC arm64: Add initial support for Odroid-N2

Neil Armstrong linux-amlogic linux-arm-kernel linux-clk linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6dt-bindings: clk: meson: add g12b periph clock controller bindingsDocumentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt+1 -01 reply
2/6clk: meson: g12a: Add support for G12B CPUB clocksdrivers/clk/meson/g12a.c drivers/clk/meson/g12a.h+475 -10 replies
3/6clk: meson: g12a: mark fclk_div3 as criticaldrivers/clk/meson/g12a.c+10 -02 replies
4/6dt-bindings: arm: amlogic: add G12B bindingsDocumentation/devicetree/bindings/arm/amlogic.txt+4 -01 reply
5/6dt-bindings: arm: amlogic: add Odroid-N2 bindingDocumentation/devicetree/bindings/arm/amlogic.txt+2 -01 reply
6/6arm64: dts: meson: Add minimal support for Odroid-N2arch/arm64/boot/dts/amlogic/Makefile arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts arch/arm64/boot/dts/amlogic/meson-g12b.dtsi+261 -00 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchRob Herring
1/6R-b
2/6
3/6
4/6R-b
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH RFC 0/6] arm64: Add initial support for Odroid-N2

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.

G12B clock driver is very close, the main differences are :
- the clock tree is duplicated for the both clusters, and the SYS_PLL are swapped between the clusters
- G12A has additional clocks like for CSI an other components

Neil Armstrong (6):
dt-bindings: clk: meson: add g12b periph clock controller bindings
clk: meson: g12a: Add support for G12B CPUB clocks
clk: meson: g12a: mark fclk_div3 as critical
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.txt       |   6 +
 .../bindings/clock/amlogic,gxbb-clkc.txt      |   1 +
 arch/arm64/boot/dts/amlogic/Makefile          |   1 +
 .../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 178 +++++++
 arch/arm64/boot/dts/amlogic/meson-g12b.dtsi   |  82 +++
 drivers/clk/meson/g12a.c                      | 466 ++++++++++++++++++
 drivers/clk/meson/g12a.h                      |  20 +-
 7 files changed, 753 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b.dtsi
Signature · 1 line
2.21.0