Skip to content

Commit

Permalink
boards: xmc47_relax_kit: Add CAN node to devicetree
Browse files Browse the repository at this point in the history
Adds CAN node to xmc47_relax_kit.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
  • Loading branch information
talih0 authored and henrikbrixandersen committed Jan 30, 2024
1 parent c7dab3d commit 254a2b1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
11 changes: 11 additions & 0 deletions boards/arm/xmc47_relax_kit/xmc47_relax_kit-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,14 @@
drive-strength = "strong-medium-edge";
hwctrl = "disabled";
};

&can_tx_p1_12_node1 {
drive-strength = "strong-soft-edge";
drive-push-pull;
hwctrl = "disabled";
};

&can_rx_p1_13_node1 {
drive-strength = "strong-soft-edge";
hwctrl = "disabled";
};
14 changes: 14 additions & 0 deletions boards/arm/xmc47_relax_kit/xmc47_relax_kit.dts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
zephyr,shell-uart = &usic0ch0;
zephyr,flash-controller = &flash_controller;
zephyr,code-partition = &code_partition;
zephyr,canbus = &can_node1;
};

};
Expand Down Expand Up @@ -199,3 +200,16 @@
reg = <0>;
};
};

&can {
clock-prescaler = <6>;
};

&can_node1 {
status = "okay";
bus-speed = <125000>;
sample-point = <875>;
input-src = "RXDC";
pinctrl-0 = <&can_tx_p1_12_node1 &can_rx_p1_13_node1>;
pinctrl-names = "default";
};

0 comments on commit 254a2b1

Please sign in to comment.