mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: zelong dong <zelong.dong@amlogic.com>
To: Neil Armstrong <neil.armstrong@linaro.org>,
	Kevin Hilman <khilman@baylibre.com>,
	Rob Herring <robh@kernel.org>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	Jerome Brunet <jbrunet@baylibre.com>,
	Marc Kleine-Budde <mkl@pengutronix.de>,
	Vincent Mailhol <mailhol@kernel.org>
Cc: <linux-kernel@vger.kernel.org>,
	<linux-amlogic@lists.infradead.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<devicetree@vger.kernel.org>, <linux-can@vger.kernel.org>,
	Zelong Dong <zelong.dong@amlogic.com>
Subject: [PATCH 1/3] dt-bindings: net: can: add Amlogic A9 CAN controller
Date: Fri, 20 Nov 2026 16:08:18 +0800	[thread overview]
Message-ID: <20261120080820.3340646-2-zelong.dong@amlogic.com> (raw)
In-Reply-To: <20261120080820.3340646-1-zelong.dong@amlogic.com>

From: Zelong Dong <zelong.dong@amlogic.com>

Add device tree bindings for the CAN-FD controller found on the
Amlogic A9 SoC family.

Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
---
 .../bindings/net/can/amlogic,a9-can.yaml      | 65 +++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/can/amlogic,a9-can.yaml

diff --git a/Documentation/devicetree/bindings/net/can/amlogic,a9-can.yaml b/Documentation/devicetree/bindings/net/can/amlogic,a9-can.yaml
new file mode 100644
index 000000000000..dd4ad6147f2e
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/can/amlogic,a9-can.yaml
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+# # Copyright (C) 2026 Amlogic, Inc. All rights reserved
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/can/amlogic,a9-can.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Amlogic A9 SoC CANBus Controller
+
+maintainers:
+  - Zelong Dong <zelong.dong@amlogic.com>
+
+properties:
+  compatible:
+    const: amlogic,a9-can
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    items:
+      - description: CAN protocol engine clock
+      - description: CAN filter clock
+
+  clock-names:
+    items:
+      - const: can_pe
+      - const: can_filter
+
+  power-domains:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - clock-names
+
+allOf:
+  - $ref: can-controller.yaml#
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+    bus {
+        #address-cells = <2>;
+        #size-cells = <2>;
+
+        can@3a8000 {
+            compatible = "amlogic,a9-can";
+            reg = <0x0 0x3a8000 0x0 0x383c>;
+            interrupts = <GIC_SPI 82 IRQ_TYPE_EDGE_RISING>;
+            clocks = <&clkc_periphs 0>,
+                     <&clkc_periphs 1>;
+            clock-names = "can_pe", "can_filter";
+            power-domains = <&pwrc 2>;
+        };
+    };
-- 
2.47.1


  reply	other threads:[~2026-11-20  8:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20  8:08 [PATCH 0/3] can: amlogic: add support for Amlogic A9 CAN-FD controller zelong dong
2026-11-20  8:08 ` zelong dong [this message]
2026-11-20  8:08 ` [PATCH 2/3] can: amlogic: add driver " zelong dong
2026-11-20  8:08 ` [PATCH 3/3] arm64: dts: amlogic: a9: add CAN controller node zelong dong
2026-11-20  8:22 ` [PATCH 0/3] can: amlogic: add support for Amlogic A9 CAN-FD controller Marc Kleine-Budde
2026-11-20  8:40 ` Marc Kleine-Budde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261120080820.3340646-2-zelong.dong@amlogic.com \
    --to=zelong.dong@amlogic.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jbrunet@baylibre.com \
    --cc=khilman@baylibre.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-can@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mailhol@kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=mkl@pengutronix.de \
    --cc=neil.armstrong@linaro.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®