2023-07-06 09:31:23

by Xianwei Zhao

[permalink] [raw]
Subject: [PATCH V2 0/2] Devicetree for board AN400 based Amlogic T7 SoC

Add the board AN400 tree bindings based Amloigc T7 SoC.

Add devicetree support for Amlogic AN400 board based T7 SoC.

Changes Since v1:
-in memory node use properties "reg" instead of "linux,usable-memory"

Xianwei Zhao (2):
dt-bindings: arm: amlogic: add board AN400
arm64: dts: add board AN400

.../devicetree/bindings/arm/amlogic.yaml | 1 +
arch/arm64/boot/dts/amlogic/Makefile | 1 +
.../dts/amlogic/amlogic-t7-a311d2-an400.dts | 39 +++++++++++++++++++
3 files changed, 41 insertions(+)
create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts


base-commit: 76483eaf2109fc3d94f29c68ff9dee6579e95ccf
--
2.37.1



2023-07-06 09:34:39

by Xianwei Zhao

[permalink] [raw]
Subject: [PATCH V2 2/2] arm64: dts: add board AN400

Add devicetrees support for Amlogic AN400 board based T7 SoC.

Signed-off-by: Xianwei Zhao <[email protected]>
---
V1 -> V2: fix bug when use "DTC CHECK_DTBS=yes"
---
arch/arm64/boot/dts/amlogic/Makefile | 1 +
.../dts/amlogic/amlogic-t7-a311d2-an400.dts | 39 +++++++++++++++++++
2 files changed, 40 insertions(+)
create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts

diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile
index 91fa425116ea..8b6f57a94863 100644
--- a/arch/arm64/boot/dts/amlogic/Makefile
+++ b/arch/arm64/boot/dts/amlogic/Makefile
@@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_ARCH_MESON) += amlogic-c3-c302x-aw409.dtb
+dtb-$(CONFIG_ARCH_MESON) += amlogic-t7-a311d2-an400.dtb
dtb-$(CONFIG_ARCH_MESON) += amlogic-t7-a311d2-khadas-vim4.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-a1-ad401.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-axg-jethome-jethub-j100.dtb
diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts
new file mode 100644
index 000000000000..c05edebb90b5
--- /dev/null
+++ b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts
@@ -0,0 +1,39 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2023 Amlogic, Inc. All rights reserved.
+ */
+
+/dts-v1/;
+
+#include "amlogic-t7.dtsi"
+
+/ {
+ model = "Amlogic A311D2 AN400 Development Board";
+ compatible = "amlogic,an400", "amlogic,a311d2", "amlogic,t7";
+ interrupt-parent = <&gic>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ aliases {
+ serial0 = &uart_a;
+ };
+
+ memory@0 {
+ device_type = "memory";
+ reg = <0x00000000 0x00000000 0x00000000 0xE0000000
+ 0x00000001 0x00000000 0x00000000 0x20000000>;
+ };
+
+ xtal: xtal-clk {
+ compatible = "fixed-clock";
+ clock-frequency = <24000000>;
+ clock-output-names = "xtal";
+ #clock-cells = <0>;
+ };
+};
+
+&uart_a {
+ clocks = <&xtal>, <&xtal>, <&xtal>;
+ clock-names = "xtal", "pclk", "baud";
+ status = "okay";
+};
--
2.37.1


2023-07-06 10:01:57

by Xianwei Zhao

[permalink] [raw]
Subject: [PATCH V2] dt-bindings: arm: amlogic: add board AN400

Add the board AN400 tree bindings based Amloigc T7 SoC.

Signed-off-by: Xianwei Zhao <[email protected]>
Acked-by: Krzysztof Kozlowski <[email protected]>
---
V1 -> V2: None
---
Documentation/devicetree/bindings/arm/amlogic.yaml | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml
index 45f179c72129..1c1094cd6b77 100644
--- a/Documentation/devicetree/bindings/arm/amlogic.yaml
+++ b/Documentation/devicetree/bindings/arm/amlogic.yaml
@@ -221,6 +221,7 @@ properties:
- description: Boards with the Amlogic T7 A311D2 SoC
items:
- enum:
+ - amlogic,an400
- khadas,vim4
- const: amlogic,a311d2
- const: amlogic,t7

base-commit: 76483eaf2109fc3d94f29c68ff9dee6579e95ccf
--
2.37.1


2023-07-31 10:11:58

by Neil Armstrong

[permalink] [raw]
Subject: Re: [PATCH V2 0/2] Devicetree for board AN400 based Amlogic T7 SoC

Hi,

On Thu, 06 Jul 2023 17:19:51 +0800, Xianwei Zhao wrote:
> Add the board AN400 tree bindings based Amloigc T7 SoC.
>
> Add devicetree support for Amlogic AN400 board based T7 SoC.
>
> Changes Since v1:
> -in memory node use properties "reg" instead of "linux,usable-memory"
>
> [...]

Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (v6.6/arm64-dt)

[1/1] dt-bindings: arm: amlogic: add board AN400
https://git.kernel.org/amlogic/c/015623ec05f96b1614ec2753d25f36743c17c530
[2/2] arm64: dts: add board AN400
https://git.kernel.org/amlogic/c/6f048cc7a635b8736b4c7ae0e5230a92e3e648eb

These changes has been applied on the intermediate git tree [1].

The v6.6/arm64-dt branch will then be sent via a formal Pull Request to the Linux SoC maintainers
for inclusion in their intermediate git branches in order to be sent to Linus during
the next merge window, or sooner if it's a set of fixes.

In the cases of fixes, those will be merged in the current release candidate
kernel and as soon they appear on the Linux master branch they will be
backported to the previous Stable and Long-Stable kernels [2].

The intermediate git branches are merged daily in the linux-next tree [3],
people are encouraged testing these pre-release kernels and report issues on the
relevant mailing-lists.

If problems are discovered on those changes, please submit a signed-off-by revert
patch followed by a corrective changeset.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[3] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git

--
Neil