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 3/3] arm64: dts: amlogic: a9: add CAN controller node
Date: Fri, 20 Nov 2026 16:08:20 +0800 [thread overview]
Message-ID: <20261120080820.3340646-4-zelong.dong@amlogic.com> (raw)
In-Reply-To: <20261120080820.3340646-1-zelong.dong@amlogic.com>
From: Zelong Dong <zelong.dong@amlogic.com>
Add the CAN controller node and its pinmux states to the Amlogic A9
SoC device tree. Enable the controller on the A311Y3 BY401 board.
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
---
.../dts/amlogic/amlogic-a9-a311y3-by401.dts | 7 ++++++
arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi | 25 +++++++++++++++++++
2 files changed, 32 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-by401.dts b/arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-by401.dts
index 503e38a29ce6..dffcdd4c35d0 100644
--- a/arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-by401.dts
+++ b/arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-by401.dts
@@ -136,3 +136,10 @@ &spisg_e {
pinctrl-names = "default";
pinctrl-0 = <&spisg_e_pins_z>;
};
+
+&canbus {
+ pinctrl-0 = <&can0_pins>;
+ pinctrl-1 = <&can0_pins_sleep>;
+ pinctrl-names = "default", "sleep";
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi
index 509dd1c37a5d..7c3734c4d23f 100644
--- a/arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi
+++ b/arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi
@@ -605,6 +605,20 @@ spisg_e_pins_z: group-spisg-e-pins {
drive-strength-microamp = <3000>;
};
};
+
+ func-can0 {
+ can0_pins: group-can0-pins {
+ pinmux = <AML_PINMUX(AMLOGIC_GPIO_A, 18, 3)>,
+ <AML_PINMUX(AMLOGIC_GPIO_A, 19, 3)>;
+ bias-disable;
+ };
+
+ can0_pins_sleep: group-can0-pins-sleep {
+ pinmux = <AML_PINMUX(AMLOGIC_GPIO_A, 18, 0)>,
+ <AML_PINMUX(AMLOGIC_GPIO_A, 19, 0)>;
+ input-enable;
+ };
+ };
};
spisg_e: spi@50100 {
@@ -677,6 +691,17 @@ i2c8: i2c@3a4800 {
clocks = <&clkc_periphs CLKID_SYS_I2C_M_I>;
status = "disabled";
};
+
+ canbus: can@3a8000 {
+ compatible = "amlogic,a9-can";
+ reg = <0x0 0x3a8000 0x0 0x383c>;
+ interrupts = <GIC_SPI 82 IRQ_TYPE_EDGE_RISING>;
+ clocks = <&clkc_periphs CLKID_CAN0_PE>,
+ <&clkc_periphs CLKID_CAN0_FILTER>;
+ clock-names = "can_pe", "can_filter";
+ power-domains = <&pwrc PWRC_A9_CAN0_ID>;
+ status = "disabled";
+ };
};
gic: interrupt-controller@ff800000 {
--
2.47.1
next prev parent 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 ` [PATCH 1/3] dt-bindings: net: can: add Amlogic A9 CAN controller zelong dong
2026-11-20 8:08 ` [PATCH 2/3] can: amlogic: add driver for Amlogic A9 CAN-FD controller zelong dong
2026-11-20 8:08 ` zelong dong [this message]
2026-11-20 8:22 ` [PATCH 0/3] can: amlogic: add support " 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-4-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®