]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: renesas: ebisu: Add CAN0 support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 4 Jun 2025 14:47:32 +0000 (16:47 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 19 Jun 2025 17:35:42 +0000 (19:35 +0200)
On R-Car E3, Classical CAN0/1 and CAN-FD share the same sets of pins, so
only one of them can be used at the same time.

Add support for using CAN0 instead of CAN-FD channel 0 on Ebisu.
By default, only CAN-FD channel 0 is enabled, as before.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/612b999870dd64789041e4b0e9c568389b3fb95e.1749048320.git.geert+renesas@glider.be
arch/arm64/boot/dts/renesas/ebisu.dtsi

index 4f38b01ae18de4f763f9a70110f70a19490a31d4..c518638b58db129ee6395d9d829318d7a1476a30 100644 (file)
        };
 };
 
+&can0 {
+       pinctrl-0 = <&can0_pins>;
+       pinctrl-names = "default";
+
+       /* Please only enable canfd or can0 */
+       /* status = "okay"; */
+};
+
 &canfd {
        pinctrl-0 = <&canfd0_pins>;
        pinctrl-names = "default";
+       /* Please only enable canfd or can0 */
        status = "okay";
 
        channel0 {
                function = "avb";
        };
 
+       can0_pins: can0 {
+               groups = "can0_data";
+               function = "can0";
+       };
+
        canfd0_pins: canfd0 {
                groups = "canfd0_data";
                function = "canfd0";