Skip to contentSkip to conversation

t7: add some nodes for Amlogc t7.

PATCH In review Xianwei Zhao 6 participants 11 messages Sep 24 – Oct 19

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

v2 cover t7: add some nodes for Amlogc t7.

Add device tree descriptions for the peripherals on the Amlogic T7 SoC and the T7 A311D2 AN400 board.

Add the Amlogic T7 SPICC compatible to the device tree binding. Add the T7 compatible to the Meson DWMAC binding

---
Changes in v2:
- Make some modifications according to the Sashiko AI's reviews.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Xianwei Zhao (3):
spi: dt-bindings: amlogic,meson-gx-spicc: add T7 compatible
dt-bindings: net: meson-dwmac: add T7 support
arm64: dts: amlogic: add T7 peripheral nodes

 .../bindings/net/amlogic,meson-dwmac.yaml          |  17 +
 .../bindings/spi/amlogic,meson-gx-spicc.yaml       |  13 +-
 .../boot/dts/amlogic/amlogic-t7-a311d2-an400.dts   | 153 +++++++
 arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi        | 462 +++++++++++++++++++++
 4 files changed, 641 insertions(+), 4 deletions(-)

---
base-commit: a2530c83c458a503e55219966217dfd1c36a385e
change-id: 20260920-t7-node-new-381d1cf5d807

Best regards,

Signature · 1 line
Xianwei Zhao <[email protected]>
#1 lore raw

PATCH v2 1/3 spi: dt-bindings: amlogic,meson-gx-spicc: add T7 compatible

Add the Amlogic T7 SPICC compatible to the device tree binding.

The T7 controller is compatible with the existing G12A SPICC implementation, so require amlogic,meson-g12a-spicc as a fallback compatible for T7 devices.

---
 .../devicetree/bindings/spi/amlogic,meson-gx-spicc.yaml     | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/spi/amlogic,meson-gx-spicc.yaml +9 -4
index 4e28e6e9d8e0..f0ba15402a4c 100644
@@ -16,10 +16,15 @@ description: |
 
 properties:
   compatible:
-    enum:
-      - amlogic,meson-gx-spicc # SPICC controller on Amlogic GX and compatible SoCs
-      - amlogic,meson-axg-spicc # SPICC controller on Amlogic AXG and compatible SoCs
-      - amlogic,meson-g12a-spicc # SPICC controller on Amlogic G12A and compatible SoCs
+    oneOf:
+      - items:
+          - enum:
+              - amlogic,t7-spicc
+          - const: amlogic,meson-g12a-spicc
+      - enum:
+          - amlogic,meson-gx-spicc # SPICC controller on Amlogic GX and compatible SoCs
+          - amlogic,meson-axg-spicc # SPICC controller on Amlogic AXG and compatible SoCs
+          - amlogic,meson-g12a-spicc # SPICC controller on Amlogic G12A and compatible SoCs
 
   interrupts:
     maxItems: 1
Signature · 1 line
2.52.0
#2 lore raw

PATCH v2 2/3 dt-bindings: net: meson-dwmac: add T7 support

In reply to Xianwei Zhao

Add the T7 compatible to the Meson DWMAC binding.

The T7 DWMAC controller requires the following compatible combination:

amlogic,t7-dwmac
amlogic,meson-axg-dwmac
snps,dwmac-4.00

Add a conditional schema check to enforce this compatible combination when amlogic,t7-dwmac is used.

---
 .../devicetree/bindings/net/amlogic,meson-dwmac.yaml    | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +17 -0
index 5c91716d1f21..b529ca5577a9 100644
@@ -23,11 +23,24 @@ select:
           - amlogic,meson-gxbb-dwmac
           - amlogic,meson-axg-dwmac
           - amlogic,meson-g12a-dwmac
+          - amlogic,t7-dwmac
   required:
     - compatible
 
 allOf:
   - $ref: snps,dwmac.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: amlogic,t7-dwmac
+    then:
+      properties:
+        compatible:
+          items:
+            - const: amlogic,t7-dwmac
+            - const: amlogic,meson-axg-dwmac
+            - const: snps,dwmac-4.00
   - if:
       properties:
         compatible:
@@ -38,6 +51,7 @@ allOf:
               - amlogic,meson-gxbb-dwmac
               - amlogic,meson-axg-dwmac
               - amlogic,meson-g12a-dwmac
+              - amlogic,t7-dwmac
 
     then:
       properties:
@@ -93,6 +107,7 @@ allOf:
               - amlogic,meson8m2-dwmac
               - amlogic,meson-gxbb-dwmac
               - amlogic,meson-axg-dwmac
+              - amlogic,t7-dwmac
     then:
       properties:
         rx-internal-delay-ps:
@@ -139,8 +154,10 @@ properties:
           - amlogic,meson-gxbb-dwmac
           - amlogic,meson-axg-dwmac
           - amlogic,meson-g12a-dwmac
+          - amlogic,t7-dwmac
     contains:
       enum:
+        - snps,dwmac-4.00
         - snps,dwmac-3.70a
         - snps,dwmac
 
Signature · 1 line
2.52.0
#3 lore raw

Re: [PATCH v2 2/3] dt-bindings: net: meson-dwmac: add T7 support

Quoted 34 lines · On Thu, Sep 24, 2026 at 05:51:09AM +0000, Xianwei Zhao via B4 Relay wrote:

From: Xianwei Zhao <[email protected]>

Add the T7 compatible to the Meson DWMAC binding.

The T7 DWMAC controller requires the following compatible combination:

amlogic,t7-dwmac
amlogic,meson-axg-dwmac
snps,dwmac-4.00

Add a conditional schema check to enforce this compatible combination when amlogic,t7-dwmac is used.

---
 .../devicetree/bindings/net/amlogic,meson-dwmac.yaml    | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +3 -0
index 5c91716d1f21..b529ca5577a9 100644
@@ -23,11 +23,24 @@ select:
           - amlogic,meson-gxbb-dwmac
           - amlogic,meson-axg-dwmac
           - amlogic,meson-g12a-dwmac
+          - amlogic,t7-dwmac
   required:
     - compatible
 
 allOf:
   - $ref: snps,dwmac.yaml#
+  - if:
+      properties:

Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml select: · line 43

Quoted 10 lines
Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +10 -0
+        compatible:
+          contains:
+            const: amlogic,t7-dwmac
+    then:
+      properties:
+        compatible:
+          items:
+            - const: amlogic,t7-dwmac
+            - const: amlogic,meson-axg-dwmac
+            - const: snps,dwmac-4.00

This is not how fallback compatibles are described.

Instead of doing this, which affects all other compatibles in the file by allowing dwmac-4.00 for all devices, please do this the normal way. dwmac isn't special, it's just this binding that's weird! Can whats currently in the binding (before this patch) be largely replaced by just doing:
compatible:
oneOf:
- items:
- enum:
- amlogic,meson8b-dwmac
- amlogic,meson-gxbb-dwmac
- amlogic,meson-axg-dwmac
- amlogic,meson-g12a-dwmac
- const: snps,dwmac-3.70a
- const: snps,dwmac
- items:
- enum:
- amlogic,meson6-dwmac
- amlogic,meson8m2-dwmac
- const: snps,dwmac

You'll have to check this yourself against the amlogic devicetrees and see if this is correct, but with this you should be able to add your new device without doing anything special.

pw-bot: changes-requested

Thanks,
Conor.

Quoted 35 lines
Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +4 -0
   - if:
       properties:
         compatible:
@@ -38,6 +51,7 @@ allOf:
               - amlogic,meson-gxbb-dwmac
               - amlogic,meson-axg-dwmac
               - amlogic,meson-g12a-dwmac
+              - amlogic,t7-dwmac
 
     then:
       properties:
@@ -93,6 +107,7 @@ allOf:
               - amlogic,meson8m2-dwmac
               - amlogic,meson-gxbb-dwmac
               - amlogic,meson-axg-dwmac
+              - amlogic,t7-dwmac
     then:
       properties:
         rx-internal-delay-ps:
@@ -139,8 +154,10 @@ properties:
           - amlogic,meson-gxbb-dwmac
           - amlogic,meson-axg-dwmac
           - amlogic,meson-g12a-dwmac
+          - amlogic,t7-dwmac
     contains:
       enum:
+        - snps,dwmac-4.00
         - snps,dwmac-3.70a
         - snps,dwmac
 
Signature · 2 lines
-- 
2.52.0
#4 lore raw

Re: [PATCH v2 2/3] dt-bindings: net: meson-dwmac: add T7 support

Quoted 69 lines · Conor Dooley
Quoted 34 lines · On Thu, Sep 24, 2026 at 05:51:09AM +0000, Xianwei Zhao via B4 Relay wrote:

From: Xianwei Zhao <[email protected]>

Add the T7 compatible to the Meson DWMAC binding.

The T7 DWMAC controller requires the following compatible combination:

amlogic,t7-dwmac
amlogic,meson-axg-dwmac
snps,dwmac-4.00

Add a conditional schema check to enforce this compatible combination when amlogic,t7-dwmac is used.

---
  .../devicetree/bindings/net/amlogic,meson-dwmac.yaml    | 17 +++++++++++++++++
  1 file changed, 17 insertions(+)
Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +3 -0
index 5c91716d1f21..b529ca5577a9 100644
@@ -23,11 +23,24 @@ select:
            - amlogic,meson-gxbb-dwmac
            - amlogic,meson-axg-dwmac
            - amlogic,meson-g12a-dwmac
+          - amlogic,t7-dwmac
    required:
      - compatible
 
  allOf:
    - $ref: snps,dwmac.yaml#
+  - if:
+      properties:

Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml select: · line 43

Quoted 10 lines
Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +10 -0
+        compatible:
+          contains:
+            const: amlogic,t7-dwmac
+    then:
+      properties:
+        compatible:
+          items:
+            - const: amlogic,t7-dwmac
+            - const: amlogic,meson-axg-dwmac
+            - const: snps,dwmac-4.00

This is not how fallback compatibles are described.

Instead of doing this, which affects all other compatibles in the file by allowing dwmac-4.00 for all devices, please do this the normal way. dwmac isn't special, it's just this binding that's weird! Can whats currently in the binding (before this patch) be largely replaced by just doing:
compatible:
oneOf:
- items:
- enum:
- amlogic,meson8b-dwmac
- amlogic,meson-gxbb-dwmac
- amlogic,meson-axg-dwmac
- amlogic,meson-g12a-dwmac
- const: snps,dwmac-3.70a
- const: snps,dwmac
- items:
- enum:
- amlogic,meson6-dwmac
- amlogic,meson8m2-dwmac
- const: snps,dwmac

Quoted 3 lines

You'll have to check this yourself against the amlogic devicetrees and see if this is correct, but with this you should be able to add your new device without doing anything special.

I have the same patch in my T7 work and checked it against the amlogic device trees: meson6 and meson8m2 use the two entry form, the rest add snps,dwmac-3.70a. dt_binding_check and dtbs_check are clean. The example needs fixing.

Xianwei, from my VIM4: the MAC reports Synopsys ID 0x51, DWMAC_CORE_5_10 in common.h, so the core is 5.10a, not 4.00. And the controller reaches DRAM through a pipeline stage. Nothing claims its gate, sys_ampipe_eth, so clk_disable_unused switches it off. My node lists it as a fourth clock. Does the AN400 differ?

I will send my series today so the code is on the list. Not a race: I will drop or rebase whatever overlaps once you tell me.

Thanks,
Lucas

Quoted 41 lines

pw-bot: changes-requested

Thanks,
Conor.

Quoted 35 lines
Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +4 -0
    - if:
        properties:
          compatible:
@@ -38,6 +51,7 @@ allOf:
                - amlogic,meson-gxbb-dwmac
                - amlogic,meson-axg-dwmac
                - amlogic,meson-g12a-dwmac
+              - amlogic,t7-dwmac
 
      then:
        properties:
@@ -93,6 +107,7 @@ allOf:
                - amlogic,meson8m2-dwmac
                - amlogic,meson-gxbb-dwmac
                - amlogic,meson-axg-dwmac
+              - amlogic,t7-dwmac
      then:
        properties:
          rx-internal-delay-ps:
@@ -139,8 +154,10 @@ properties:
            - amlogic,meson-gxbb-dwmac
            - amlogic,meson-axg-dwmac
            - amlogic,meson-g12a-dwmac
+          - amlogic,t7-dwmac
      contains:
        enum:
+        - snps,dwmac-4.00
          - snps,dwmac-3.70a
          - snps,dwmac
 
Signature · 2 lines
-- 
2.52.0
#5 lore raw

Re: [PATCH v2 2/3] dt-bindings: net: meson-dwmac: add T7 support

Quoted 82 lines · Lucas Tanure
Quoted 69 lines · Conor Dooley
Quoted 36 lines · On Thu, Sep 24, 2026 at 05:51:09AM +0000, Xianwei Zhao via B4 Relay wrote:

From: Xianwei Zhao <[email protected]>

Add the T7 compatible to the Meson DWMAC binding.

The T7 DWMAC controller requires the following compatible combination:

amlogic,t7-dwmac
amlogic,meson-axg-dwmac
snps,dwmac-4.00

Add a conditional schema check to enforce this compatible combination when amlogic,t7-dwmac is used.

---
  .../devicetree/bindings/net/amlogic,meson-dwmac.yaml    | 17 ++++++
+++++++++++

  1 file changed, 17 insertions(+)
Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +0 -0
index 5c91716d1f21..b529ca5577a9 100644
@@ -23,11 +23,24 @@ select:

            - amlogic,meson-gxbb-dwmac
            - amlogic,meson-axg-dwmac
            - amlogic,meson-g12a-dwmac
+          - amlogic,t7-dwmac
    required:
      - compatible
  allOf:
    - $ref: snps,dwmac.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:

Quoted 8 lines

+            const: amlogic,t7-dwmac
+    then:
+      properties:
+        compatible:
+          items:
+            - const: amlogic,t7-dwmac
+            - const: amlogic,meson-axg-dwmac
+            - const: snps,dwmac-4.00

This is not how fallback compatibles are described.

Instead of doing this, which affects all other compatibles in the file by allowing dwmac-4.00 for all devices, please do this the normal way. dwmac isn't special, it's just this binding that's weird! Can whats currently in the binding (before this patch) be largely replaced by just doing:
   compatible:
     oneOf:
       - items:
           - enum:
               - amlogic,meson8b-dwmac
               - amlogic,meson-gxbb-dwmac
               - amlogic,meson-axg-dwmac
               - amlogic,meson-g12a-dwmac
           - const: snps,dwmac-3.70a
           - const: snps,dwmac
       - items:
           - enum:
               - amlogic,meson6-dwmac
               - amlogic,meson8m2-dwmac
           - const: snps,dwmac

Quoted 3 lines

You'll have to check this yourself against the amlogic devicetrees and see if this is correct, but with this you should be able to add your new device without doing anything special.

I have the same patch in my T7 work and checked it against the amlogic device trees: meson6 and meson8m2 use the two entry form, the rest add snps,dwmac-3.70a. dt_binding_check and dtbs_check are clean. The example needs fixing.

Xianwei, from my VIM4: the MAC reports Synopsys ID 0x51, DWMAC_CORE_5_10 in common.h, so the core is 5.10a, not 4.00. And the controller reaches DRAM through a pipeline stage. Nothing claims its gate, sys_ampipe_eth, so clk_disable_unused switches it off. My node lists it as a fourth clock. Does the AN400 differ?

Quoted 5 lines

I will send my series today so the code is on the list. Not a race: I will drop or rebase whatever overlaps once you tell me.

Thanks,
Lucas

My Ethernet patches https://lore.kernel.org/linux-amlogic/[email protected]

Quoted 40 lines
Quoted 40 lines

pw-bot: changes-requested

Thanks,
Conor.

Quoted 33 lines

    - if:
        properties:
          compatible:

Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +0 -0
@@ -38,6 +51,7 @@ allOf:

                - amlogic,meson-gxbb-dwmac
                - amlogic,meson-axg-dwmac
                - amlogic,meson-g12a-dwmac
+              - amlogic,t7-dwmac
      then:
        properties:

Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +0 -0
@@ -93,6 +107,7 @@ allOf:

                - amlogic,meson8m2-dwmac
                - amlogic,meson-gxbb-dwmac
                - amlogic,meson-axg-dwmac
+              - amlogic,t7-dwmac
      then:
        properties:
          rx-internal-delay-ps:

Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +0 -0
@@ -139,8 +154,10 @@ properties:

            - amlogic,meson-gxbb-dwmac
            - amlogic,meson-axg-dwmac
            - amlogic,meson-g12a-dwmac
+          - amlogic,t7-dwmac
      contains:
        enum:
+        - snps,dwmac-4.00
          - snps,dwmac-3.70a
          - snps,dwmac

Signature · 1 line
2.52.0
#6 lore raw

Re: [PATCH v2 2/3] dt-bindings: net: meson-dwmac: add T7 support

In reply to Lucas Tanure

Hi Lucas,
Sorry for the late reply.

Quoted 82 lines · Lucas Tanure

[ EXTERNAL EMAIL ]

Quoted 70 lines · Conor Dooley
Quoted 31 lines · On Thu, Sep 24, 2026 at 05:51:09AM +0000, Xianwei Zhao via B4 Relay wrote:

From: Xianwei Zhao <[email protected]>

Add the T7 compatible to the Meson DWMAC binding.

The T7 DWMAC controller requires the following compatible combination:

amlogic,t7-dwmac
amlogic,meson-axg-dwmac
snps,dwmac-4.00

Add a conditional schema check to enforce this compatible combination when amlogic,t7-dwmac is used.

---
  .../devicetree/bindings/net/amlogic,meson-dwmac.yaml    | 17
+++++++++++++++++

  1 file changed, 17 insertions(+)
Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +0 -0
index 5c91716d1f21..b529ca5577a9 100644
@@ -23,11 +23,24 @@ select:

            - amlogic,meson-gxbb-dwmac
            - amlogic,meson-axg-dwmac
            - amlogic,meson-g12a-dwmac
+          - amlogic,t7-dwmac
    required:
      - compatible

Quoted 14 lines

  allOf:
    - $ref: snps,dwmac.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: amlogic,t7-dwmac
+    then:
+      properties:
+        compatible:
+          items:
+            - const: amlogic,t7-dwmac
+            - const: amlogic,meson-axg-dwmac
+            - const: snps,dwmac-4.00

This is not how fallback compatibles are described.

Instead of doing this, which affects all other compatibles in the file by allowing dwmac-4.00 for all devices, please do this the normal way. dwmac isn't special, it's just this binding that's weird! Can whats currently in the binding (before this patch) be largely replaced by just doing:
   compatible:
     oneOf:
       - items:
           - enum:
               - amlogic,meson8b-dwmac
               - amlogic,meson-gxbb-dwmac
               - amlogic,meson-axg-dwmac
               - amlogic,meson-g12a-dwmac
           - const: snps,dwmac-3.70a
           - const: snps,dwmac
       - items:
           - enum:
               - amlogic,meson6-dwmac
               - amlogic,meson8m2-dwmac
           - const: snps,dwmac

Quoted 3 lines

You'll have to check this yourself against the amlogic devicetrees and see if this is correct, but with this you should be able to add your new device without doing anything special.

I have the same patch in my T7 work and checked it against the amlogic device trees: meson6 and meson8m2 use the two entry form, the rest add snps,dwmac-3.70a. dt_binding_check and dtbs_check are clean. The example needs fixing.

Quoted 6 lines

Xianwei, from my VIM4: the MAC reports Synopsys ID 0x51, DWMAC_CORE_5_10 in common.h, so the core is 5.10a, not 4.00. And the controller reaches DRAM through a pipeline stage. Nothing claims its gate, sys_ampipe_eth, so clk_disable_unused switches it off. My node lists it as a fourth clock. Does the AN400 differ?

From the document, the core is 5.10a. I'll ask the ethernet owner about the clock.

Quoted 3 lines

I will send my series today so the code is on the list. Not a race: I will drop or rebase whatever overlaps once you tell me.

I'll make changes based on your submission, I will drop ethnet later.

Quoted 44 lines

Thanks,
Lucas

Quoted 41 lines

pw-bot: changes-requested

Thanks,
Conor.

Quoted 35 lines

    - if:
        properties:
          compatible:

Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +0 -0
@@ -38,6 +51,7 @@ allOf:

                - amlogic,meson-gxbb-dwmac
                - amlogic,meson-axg-dwmac
                - amlogic,meson-g12a-dwmac
+              - amlogic,t7-dwmac

      then:
        properties:

Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +0 -0
@@ -93,6 +107,7 @@ allOf:

                - amlogic,meson8m2-dwmac
                - amlogic,meson-gxbb-dwmac
                - amlogic,meson-axg-dwmac
+              - amlogic,t7-dwmac
      then:
        properties:
          rx-internal-delay-ps:

Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +0 -0
@@ -139,8 +154,10 @@ properties:

            - amlogic,meson-gxbb-dwmac
            - amlogic,meson-axg-dwmac
            - amlogic,meson-g12a-dwmac
+          - amlogic,t7-dwmac
      contains:
        enum:
+        - snps,dwmac-4.00
          - snps,dwmac-3.70a
          - snps,dwmac

Signature · 1 line
2.52.0
#7 lore raw

PATCH v2 3/3 arm64: dts: amlogic: add T7 peripheral nodes

In reply to Xianwei Zhao

Add device tree descriptions for the peripherals on the Amlogic T7 SoC and the T7 A311D2 AN400 board.

Add support for the T7 Ethernet controller, SPI controllers, I2C controllers, UARTs, pinctrl groups, regulators, and reserved memory. Also enable the Ethernet controller on the AN400 board.

---
 .../boot/dts/amlogic/amlogic-t7-a311d2-an400.dts   | 153 +++++++
 arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi        | 462 +++++++++++++++++++++
 2 files changed, 615 insertions(+)
arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts +153 -0
index ca7536f772ff..50df961fba75 100644
@@ -24,12 +24,159 @@ memory@0 {
 			0x00000001 0x00000000 0x00000000 0x20000000>;
 	};
 
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		/* 3 MiB reserved for ARM Trusted Firmware (BL31) */
+		secmon_reserved: secmon@5000000 {
+			reg = <0x0 0x05000000 0x0 0x300000>;
+			no-map;
+		};
+
+		/* 32 MiB reserved for ARM Trusted Firmware (BL32) */
+		secmon_reserved_bl32: secmon@5300000 {
+			reg = <0x0 0x05300000 0x0 0x2000000>;
+			no-map;
+		};
+	};
+
 	xtal: xtal-clk {
 		compatible = "fixed-clock";
 		clock-frequency = <24000000>;
 		clock-output-names = "xtal";
 		#clock-cells = <0>;
 	};
+
+	dc_in: regulator-dc-in {
+		compatible = "regulator-fixed";
+		regulator-name = "12V";
+		regulator-min-microvolt = <12000000>;
+		regulator-max-microvolt = <12000000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	vcc_5v: regulator-vcc-5v {
+		compatible = "regulator-fixed";
+		vin-supply = <&dc_in>;
+		regulator-name = "VCC5V";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		gpio = <&gpio GPIOH_1 GPIO_ACTIVE_HIGH>;
+		startup-delay-us = <70000>;
+		enable-active-high;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	vddao_3v3: regulator-vddao-3v3 {
+		vin-supply = <&dc_in>;
+		compatible = "regulator-fixed";
+		regulator-name = "VDDAO_3V3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		startup-delay-us = <70000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	vdd1v8_reg: regulator-vdd-1v8 {
+		vin-supply = <&dc_in>;
+		compatible = "regulator-fixed";
+		regulator-name = "VDDIO_1V8";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		startup-delay-us = <70000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	vddao_1v8: regulator-vddao-1v8 {
+		compatible = "regulator-fixed";
+		vin-supply = <&vddao_3v3>;
+		regulator-name = "VDDAO_1V8";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	vddio_3v3: regulator-vddio-3v3 {
+		compatible = "regulator-fixed";
+		vin-supply = <&vddao_3v3>;
+		regulator-name = "VDDIO_3V3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		gpio = <&gpio GPIO_TEST_N GPIO_ACTIVE_HIGH>;
+		startup-delay-us = <70000>;
+		enable-active-high;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	sd_3v3: regulator-sd-3v3 {
+		compatible = "regulator-fixed";
+		regulator-name = "SD_3V3: SD/TF";
+		vin-supply = <&vddao_3v3>;
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		gpio = <&gpio GPIOD_11 GPIO_ACTIVE_LOW>;  /* 0R */
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	vddio_c: regulator-sd-1v8-3v3 {
+		compatible = "regulator-gpio";
+		vin-supply = <&vddio_3v3>;
+		regulator-name = "VDDIO_C: SD/TF.";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <3300000>;
+		gpios = <&gpio GPIOE_2 GPIO_ACTIVE_HIGH>;
+		gpios-states = <1>;
+
+		/* Based on P200 schematics, signal CARD_1.8V/3.3V_CTR */
+		states = <1800000 1
+			  3300000 0>;
+	};
+
+	vddq_1v1: regulator-vddq-1v1 {
+		compatible = "regulator-fixed";
+		vin-supply = <&dc_in>;
+		regulator-name = "VDDQ_1V1";
+		regulator-min-microvolt = <1100000>;
+		regulator-max-microvolt = <1100000>;
+		gpio = <&gpio GPIOD_10 GPIO_ACTIVE_HIGH>;
+		startup-delay-us = <70000>;
+		enable-active-high;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	vddqlp_0v6: regulator-vddqlp-0v6 {
+		vin-supply = <&dc_in>;
+		compatible = "regulator-fixed";
+		regulator-name = "VDDQLP_0V6";
+		regulator-min-microvolt = <600000>;
+		regulator-max-microvolt = <600000>;
+		startup-delay-us = <70000>;
+		enable-active-high;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	vdd_ddr: regulator-vdd-ddr {
+		vin-supply = <&dc_in>;
+		compatible = "regulator-fixed";
+		regulator-name = "VDD_DDR";
+		regulator-min-microvolt = <800000>;
+		regulator-max-microvolt = <800000>;
+		startup-delay-us = <70000>;
+		enable-active-high;
+		regulator-boot-on;
+		regulator-always-on;
+	};
 };
 
 &uart_a {
@@ -37,3 +184,9 @@ &uart_a {
 	clock-names = "xtal", "pclk", "baud";
 	status = "okay";
 };
+
+&ethmac {
+	status = "okay";
+	phy-handle = <&internal_ephy>;
+	phy-mode = "rmii";
+};
arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi +462 -0

508 lines not on this page · raw message

Signature · 1 line
2.52.0
#8 lore raw

Re: [PATCH v2 3/3] arm64: dts: amlogic: add T7 peripheral nodes

Quoted 9 lines · On 9/24/26 7:51 AM, Xianwei Zhao via B4 Relay wrote:

From: Xianwei Zhao <[email protected]>

Add device tree descriptions for the peripherals on the Amlogic T7 SoC and the T7 A311D2 AN400 board.

Add support for the T7 Ethernet controller, SPI controllers, I2C controllers, UARTs, pinctrl groups, regulators, and reserved memory. Also enable the Ethernet controller on the AN400 board.

Quoted 6 lines
---
 .../boot/dts/amlogic/amlogic-t7-a311d2-an400.dts   | 153 +++++++
 arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi        | 462 +++++++++++++++++++++
 2 files changed, 615 insertions(+)

--snip--

Quoted 43 lines
arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi +36 -0
+
 				pwm_a_pins: pwm-a {
 					mux {
 						groups = "pwm_a";
@@ -622,6 +848,51 @@ uart_a: serial@78000 {
 				status = "disabled";
 			};
 
+			uart_b: serial@7a000 {
+				compatible = "amlogic,t7-uart", "amlogic,meson-s4-uart";
+				reg = <0x0 0x7a000 0x0 0x18>;
+				interrupts = <GIC_SPI 169 IRQ_TYPE_EDGE_RISING>;
+				clocks = <&xtal>, <&clkc_periphs CLKID_SYS_UART_B>, <&xtal>;
+				clock-names = "xtal", "pclk", "baud";
+				status = "disabled";
+			};
+
+			uart_c: serial@7c000 {
+				compatible = "amlogic,t7-uart", "amlogic,meson-s4-uart";
+				reg = <0x0 0x7c000 0x0 0x18>;
+				interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
+				clocks = <&xtal>, <&clkc_periphs CLKID_SYS_UART_C>, <&xtal>;
+				clock-names = "xtal", "pclk", "baud";
+				status = "disabled";
+			};
+
+			uart_d: serial@7e000 {
+				compatible = "amlogic,t7-uart", "amlogic,meson-s4-uart";
+				reg = <0x0 0x7e000 0x0 0x18>;
+				interrupts = <GIC_SPI 171 IRQ_TYPE_EDGE_RISING>;
+				clocks = <&xtal>, <&clkc_periphs CLKID_SYS_UART_D>, <&xtal>;
+				clock-names = "xtal", "pclk", "baud";
+				status = "disabled";
+			};
+
+			uart_e: serial@80000 {
+				compatible = "amlogic,t7-uart", "amlogic,meson-s4-uart";
+				reg = <0x0 0x80000 0x0 0x18>;
+				interrupts = <GIC_SPI 172 IRQ_TYPE_EDGE_RISING>;
+				clocks = <&xtal>, <&clkc_periphs CLKID_SYS_UART_E>, <&xtal>;
+				clock-names = "xtal", "pclk", "baud";
+				status = "disabled";
+			};

arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi uart_a: serial@78000 { · line 895

Quoted 10 lines
arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi +10 -0
+
+			uart_f: serial@82000 {
+				compatible = "amlogic,t7-uart", "amlogic,meson-s4-uart";
+				reg = <0x0 0x82000 0x0 0x18>;
+				interrupts = <GIC_SPI 173 IRQ_TYPE_EDGE_RISING>;
+				clocks = <&xtal>, <&clkc_periphs CLKID_SYS_UART_F>, <&xtal>;
+				clock-names = "xtal", "pclk", "baud";
+				status = "disabled";
+			};
+

Thank you for this change Xianwei.
Can you please move the UARTs in the right place between i2c_ao_a and i2c_ao_b ?

arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi sec_ao: ao-secure@10220 { · line 961

Quoted 7 lines
arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi +0 -0
 			gp0: clock-controller@8080 {
 				compatible = "amlogic,t7-gp0-pll";
 				reg = <0x0 0x8080 0x0 0x20>;
@@ -688,6 +959,39 @@ sec_ao: ao-secure@10220 {
 				amlogic,has-chip-id;
 			};
 

--snip--

Quoted 91 lines
arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi +80 -0
 			pwm_ab: pwm@58000 {
 				compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm";
 				reg = <0x0 0x58000 0x0 0x24>;
@@ -756,6 +1138,86 @@ pwm_ao_cd: pwm@60000 {
 				status = "disabled";
 			};
 
+			i2c0: i2c@66000 {
+				compatible = "amlogic,t7-i2c", "amlogic,meson-axg-i2c";
+				reg = <0x0 0x66000 0x0 0x48>;
+				interrupts = <GIC_SPI 160 IRQ_TYPE_EDGE_RISING>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				clocks = <&clkc_periphs CLKID_SYS_I2C_M_A>;
+				status = "disabled";
+			};
+
+			i2c1: i2c@68000 {
+				compatible = "amlogic,t7-i2c", "amlogic,meson-axg-i2c";
+				reg = <0x0 0x68000 0x0 0x48>;
+				interrupts = <GIC_SPI 161 IRQ_TYPE_EDGE_RISING>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				clocks = <&clkc_periphs CLKID_SYS_I2C_M_B>;
+				status = "disabled";
+			};
+
+			i2c2: i2c@6a000 {
+				compatible = "amlogic,t7-i2c", "amlogic,meson-axg-i2c";
+				reg = <0x0 0x6a000 0x0 0x48>;
+				interrupts = <GIC_SPI 162 IRQ_TYPE_EDGE_RISING>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				clocks = <&clkc_periphs CLKID_SYS_I2C_M_C>;
+				status = "disabled";
+			};
+
+			i2c3: i2c@6c000 {
+				compatible = "amlogic,t7-i2c", "amlogic,meson-axg-i2c";
+				reg = <0x0 0x6c000 0x0 0x48>;
+				interrupts = <GIC_SPI 163 IRQ_TYPE_EDGE_RISING>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				clocks = <&clkc_periphs CLKID_SYS_I2C_M_D>;
+				status = "disabled";
+			};
+
+			i2c4: i2c@6e000 {
+				compatible = "amlogic,t7-i2c", "amlogic,meson-axg-i2c";
+				reg = <0x0 0x6e000 0x0 0x48>;
+				interrupts = <GIC_SPI 164 IRQ_TYPE_EDGE_RISING>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				clocks = <&clkc_periphs CLKID_SYS_I2C_M_E>;
+				status = "disabled";
+			};
+
+			i2c5: i2c@70000 {
+				compatible = "amlogic,t7-i2c", "amlogic,meson-axg-i2c";
+				reg = <0x0 0x070000 0x0 0x48>;
+				interrupts = <GIC_SPI 165 IRQ_TYPE_EDGE_RISING>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				clocks = <&clkc_periphs CLKID_SYS_I2C_M_F>;
+				status = "disabled";
+			};
+
+			i2c_ao_a: i2c@76000 {
+				compatible = "amlogic,t7-i2c", "amlogic,meson-axg-i2c";
+				reg = <0x0 0x076000 0x0 0x48>;
+				interrupts = <GIC_SPI 330 IRQ_TYPE_EDGE_RISING>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				clocks = <&clkc_periphs CLKID_SYS_I2C_AO_A>;
+				status = "disabled";
+			};
+
+			i2c_ao_b: i2c@86000 {
+				compatible = "amlogic,t7-i2c", "amlogic,meson-axg-i2c";
+				reg = <0x0 0x086000 0x0 0x48>;
+				interrupts = <GIC_SPI 331 IRQ_TYPE_EDGE_RISING>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				clocks = <&clkc_periphs CLKID_SYS_I2C_AO_B>;
+				status = "disabled";
+			};
+
 			sd_emmc_a: mmc@88000 {
 				compatible = "amlogic,t7-mmc", "amlogic,meson-axg-mmc";
 				reg = <0x0 0x88000 0x0 0x800>;
Signature · 2 lines
Best regards,
Ronald
#9 lore raw

Re: [PATCH v2 3/3] arm64: dts: amlogic: add T7 peripheral nodes

In reply to Xianwei Zhao
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] dts: useless regulator properties without gpio --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dts: useless regulator properties without gpio
--

commit 61a44d137e93474e04a70d0ea481b570b8e6131c
Author: Xianwei Zhao <[email protected]>

arm64: dts: amlogic: add T7 peripheral nodes

This patch adds device tree descriptions for the peripherals on the Amlogic T7 SoC and the T7 A311D2 AN400 board. It introduces support for the T7 Ethernet controller, SPI controllers, I2C controllers, UARTs, pinctrl groups, regulators, and reserved memory.

Quoted 5 lines
arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts +0 -0
index ca7536f772ff1..50df961fba75b 100644
@@ -24,12 +24,159 @@ memory@0 {

[ ... ]

arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts memory@0 { · line 167

Quoted 11 lines
arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts +11 -0
+	vddqlp_0v6: regulator-vddqlp-0v6 {
+		vin-supply = <&dc_in>;
+		compatible = "regulator-fixed";
+		regulator-name = "VDDQLP_0V6";
+		regulator-min-microvolt = <600000>;
+		regulator-max-microvolt = <600000>;
+		startup-delay-us = <70000>;
+		enable-active-high;
+		regulator-boot-on;
+		regulator-always-on;
+	};

[Severity: Low]
Is it intentional to include enable-active-high and startup-delay-us properties for vddqlp_0v6 without defining a control gpio?

Without a gpio defined, the regulator core has no mechanism to toggle the regulator, meaning enable-active-high has no effect. This appears to be a device tree schema violation, although it does not cause a failure since the regulator is marked regulator-always-on.

arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts memory@0 { · line 179

Quoted 12 lines
arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts +12 -0
+
+	vdd_ddr: regulator-vdd-ddr {
+		vin-supply = <&dc_in>;
+		compatible = "regulator-fixed";
+		regulator-name = "VDD_DDR";
+		regulator-min-microvolt = <800000>;
+		regulator-max-microvolt = <800000>;
+		startup-delay-us = <70000>;
+		enable-active-high;
+		regulator-boot-on;
+		regulator-always-on;
+	};

[Severity: Low]
Does vdd_ddr also need a control gpio?

Like vddqlp_0v6 above, it specifies enable-active-high and startup-delay-us but lacks a gpio property.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
maintainer
#10 lore raw

Re: (subset) [PATCH v2 0/3] t7: add some nodes for Amlogc t7.

In reply to Xianwei Zhao
Quoted 9 lines · Xianwei Zhao

t7: add some nodes for Amlogc t7.

Add device tree descriptions for the peripherals on the Amlogic T7 SoC and the T7 A311D2 AN400 board.

Add the Amlogic T7 SPICC compatible to the device tree binding. Add the T7 compatible to the Meson DWMAC binding

[...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-7.4

Thanks!

[1/3] spi: dt-bindings: amlogic,meson-gx-spicc: add T7 compatible

      https://git.kernel.org/broonie/spi/c/2ec5d38037b8

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark