ARM: dts: r8a7742-iwg21d-q7: Add can1 support to carrier board
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 7 Sep 2020 15:55:40 +0000 (16:55 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 10 Sep 2020 16:59:42 +0000 (18:59 +0200)
This patch enables CAN1 interface exposed through connector J20 on the
carrier board.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Chris Paterson <Chris.Paterson2@renesas.com>
Link: https://lore.kernel.org/r/20200907155541.2011-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm/boot/dts/r8a7742-iwg21d-q7.dts

index a88858e..7291c97 100644 (file)
        };
 };
 
+&can1 {
+       pinctrl-0 = <&can1_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+};
+
 &cmt0 {
        status = "okay";
 };
 
+&gpio1 {
+       can-trx-en-gpio{
+               gpio-hog;
+               gpios = <28 GPIO_ACTIVE_HIGH>;
+               output-low;
+               line-name = "can-trx-en-gpio";
+       };
+};
+
 &hsusb {
        pinctrl-0 = <&usb0_pins>;
        pinctrl-names = "default";
                function = "avb";
        };
 
+       can1_pins: can1 {
+               groups = "can1_data_b";
+               function = "can1";
+       };
+
        i2c2_pins: i2c2 {
                groups = "i2c2_b";
                function = "i2c2";