arm64: dts: renesas: hihope-rzg2-ex: Enable CAN interfaces
authorFabrizio Castro <fabrizio.castro@bp.renesas.com>
Fri, 14 Jun 2019 11:53:34 +0000 (12:53 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 29 Jul 2019 13:36:00 +0000 (15:36 +0200)
This patch enables both CAN0 and CAN1, both exposed via
connectors found on the expansion board.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Chris Paterson <Chris.Paterson2@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi

index 07a6eea..4280b19 100644 (file)
        };
 };
 
+&can0 {
+       pinctrl-0 = <&can0_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
+&can1 {
+       pinctrl-0 = <&can1_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
 &pciec0 {
        status = "okay";
 };
                        drive-strength = <12>;
                };
        };
+
+       can0_pins: can0 {
+               groups = "can0_data_a";
+               function = "can0";
+       };
+
+       can1_pins: can1 {
+               groups = "can1_data";
+               function = "can1";
+       };
 };