Skip to content

Commit b38a1f4

Browse files
karaanildanieldegrasse
authored andcommitted
dts: arm: adi: Add CAN peripheral to max32690
This commit defines CAN peripheral as a devicetree node. Signed-off-by: Anıl Kara <anil.kara@analog.com>
1 parent 7f3b002 commit b38a1f4

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

dts/arm/adi/max32/max32690.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,5 +253,21 @@
253253
maximum-speed = "high-speed";
254254
status = "disabled";
255255
};
256+
257+
can0: can@40064000 {
258+
compatible = "adi,max32-can";
259+
reg = <0x40064000 0x1000>;
260+
status = "disabled";
261+
interrupts = <107 0>;
262+
clocks = <&gcr ADI_MAX32_CLOCK_BUS1 11>;
263+
};
264+
265+
can1: can@40065000 {
266+
compatible = "adi,max32-can";
267+
reg = <0x40065000 0x1000>;
268+
status = "disabled";
269+
interrupts = <108 0>;
270+
clocks = <&gcr ADI_MAX32_CLOCK_BUS1 19>;
271+
};
256272
};
257273
};

dts/bindings/can/adi,max32-can.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ include: ["can-controller.yaml", "pinctrl-device.yaml"]
1010
properties:
1111
reg:
1212
required: true
13+
14+
interrupts:
15+
required: true
16+
17+
clocks:
18+
required: true

0 commit comments

Comments
 (0)