Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1441913pxb; Fri, 24 Sep 2021 04:47:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyGo3ziavO81wgUSi498PLBKHPAF/r5zlni995NEaecM9hblkcWr+DHDc1HQtMDnbJitL4 X-Received: by 2002:a17:906:584b:: with SMTP id h11mr11073738ejs.209.1632484036376; Fri, 24 Sep 2021 04:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632484036; cv=none; d=google.com; s=arc-20160816; b=SZnHIpL1HFshLlkV5LMiJY/ecTTLsDgOlaWHIPkQfKUmTVuYXNNWXNvZrtVKIrESjg drrr6IS7XnSX4nUUBSRX0VJ+Jg8BqFsB+NwseXYdttdwrPodqmsIgYBDsCPyCe+34oaB jMR58xED8ilnN7aJ62qFbCK4Q/HIzuFZmwAg6F2QulZfmDM8rEAEt9YsAAyj+fRecDes MqfI9H/qW+WhjuRK5Si7hfJcxwGLyiYuIXhm6H8N4uY2g/YUVZa5XCfLZkMdxXrKQSIM 3tdugM9Paz3jo9l7yhXIAy2FL+617iki7ZwgXTCTarOgn1IRndtqAmODL6t9STINyYZB Kwqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=FUB6BHaw0XcdGC6RhZW3bWtQj/QFI4hgKbl2jdcorJk=; b=Kl8EwWaStWe07+by4Vm8oQIM4nrWxVbRHJ/+l9N7edJOGQHnib9vUERDGof2VcPLc2 bdPohWKPDMb5erYWqR7ZErqOAU0pAm2o6DAvRtojERR07VXP7MHodi5GA6ZBDX+NHMX+ 0upYmoZSNqUlvhR3lfe+veuXOF+oXKsX7kP2QtySxVeKHhxfGPohKabVh4H6JhnzIcq/ NXYQFnG7MKSINgWu+bf/rrrgpuyoRsqXZRCdTtI3bUbn9SLT2I47d8qzeGBxu2dpOxcT bkKPF/kU3upW2lUppvEO0VQTjOP96ECNh+LPt2pCTYnOTbO8dwd4ZnWoADD3R6MeyPMR t+WQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d11si4420542edm.533.2021.09.24.04.46.50; Fri, 24 Sep 2021 04:47:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239961AbhIXKZT (ORCPT + 99 others); Fri, 24 Sep 2021 06:25:19 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:4596 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229911AbhIXKZT (ORCPT ); Fri, 24 Sep 2021 06:25:19 -0400 X-IronPort-AV: E=Sophos;i="5.85,319,1624287600"; d="scan'208";a="94920609" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 24 Sep 2021 19:23:44 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id D21AF401070E; Fri, 24 Sep 2021 19:23:42 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Magnus Damm , Rob Herring Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH v2] arm64: dts: renesas: rzg2l-smarc: Enable CANFD Date: Fri, 24 Sep 2021 11:23:38 +0100 Message-Id: <20210924102338.11595-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable CANFD on RZ/G2L SMARC platform. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das Reviewed-by: Geert Uytterhoeven --- v2: -> Corrected STB pin states --- arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi b/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi index e895f6e7fa28..a02784fab46a 100644 --- a/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi +++ b/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi @@ -80,6 +80,20 @@ clock-frequency = <12288000>; }; +&canfd { + pinctrl-0 = <&can0_pins &can1_pins>; + pinctrl-names = "default"; + status = "okay"; + + channel0 { + status = "okay"; + }; + + channel1 { + status = "okay"; + }; +}; + &ehci0 { dr_mode = "otg"; status = "okay"; @@ -139,6 +153,32 @@ pinctrl-0 = <&sound_clk_pins>; pinctrl-names = "default"; + can0_pins: can0 { + pinmux = , /* TX */ + ; /* RX */ + }; + + /* SW7 should be at position 2->3 so that GPIO8_CAN0_STB line is activated */ + can0-stb { + gpio-hog; + gpios = ; + output-low; + line-name = "can0_stb"; + }; + + can1_pins: can1 { + pinmux = , /* TX */ + ; /* RX */ + }; + + /* SW8 should be at position 2->3 so that GPIO9_CAN1_STB line is activated */ + can1-stb { + gpio-hog; + gpios = ; + output-low; + line-name = "can1_stb"; + }; + i2c0_pins: i2c0 { pins = "RIIC0_SDA", "RIIC0_SCL"; input-enable; -- 2.17.1