[PATCH v2] arm64: dts: qcom: hamoa-iot-evk: add MCP2518FD CAN on spi18

From: Viken Dadhaniya

Date: Fri May 15 2026 - 02:23:52 EST


Enable the Microchip MCP2518FD CAN-FD controller on hamoa. The controller
is connected via SPI18 and uses a 40 MHz oscillator.

Signed-off-by: Viken Dadhaniya <viken.dadhaniya@xxxxxxxxxxxxxxxx>
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
---
Changes in v2:
- Rename the fixed-clock node from can-clk to clock-40000000 to follow the
standard fixed-clock naming convention (clock-<frequency-in-Hz>).
- Link to v1: https://patch.msgid.link/20260513-hamoa-spi-can-devicetree-v1-1-554a671a3789@xxxxxxxxxxxxxxxx
---
arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts b/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts
index 460f27dcd6f6..c7ba4b353ddd 100644
--- a/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts
+++ b/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts
@@ -29,6 +29,14 @@ backlight: backlight {
pinctrl-names = "default";
};

+ clocks {
+ mcp2518fd_osc: clock-40000000 {
+ compatible = "fixed-clock";
+ clock-frequency = <40000000>;
+ #clock-cells = <0>;
+ };
+ };
+
wcd938x: audio-codec {
compatible = "qcom,wcd9385-codec";

@@ -1227,6 +1235,19 @@ tpm@0 {
};
};

+&spi18 {
+ status = "okay";
+
+ can@0 {
+ compatible = "microchip,mcp2518fd";
+ reg = <0>;
+ interrupts-extended = <&tlmm 68 IRQ_TYPE_LEVEL_LOW>;
+ clocks = <&mcp2518fd_osc>;
+ spi-max-frequency = <14000000>;
+ microchip,xstbyen;
+ };
+};
+
&swr0 {
status = "okay";


---
base-commit: e98d21c170b01ddef366f023bbfcf6b31509fa83
change-id: 20260513-hamoa-spi-can-devicetree-4cc79d8293a2

Best regards,
--
Viken Dadhaniya <viken.dadhaniya@xxxxxxxxxxxxxxxx>