Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp764886lkm; Wed, 22 Sep 2021 14:26:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzrFX9kmOCvjB3EB1nZlME+oHY0XW8JglXgDKvdjZ5hjDEI3vMFCJoEoGvm3zAm1Sbe1+H X-Received: by 2002:a50:8589:: with SMTP id a9mr1716675edh.124.1632345969225; Wed, 22 Sep 2021 14:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632345969; cv=none; d=google.com; s=arc-20160816; b=Q8HsPOUcJcorxXgWqdCAp82gfYQNqZH02XFvuJisurWJotkx73WeHdBcQ66vFkkMR3 XE7VvKY+Kops+FNOlg42ariLakewkULuSSnlpTfRU3GH2fstKb9OnNqMQ3YdmtV72yKF CesLphCEmi57zKUAOkrKXnKzfbVeZ1ml/qNVCDBTpGHs03s1kftdQ7OYxcOuSrieQx67 BEdw89XJtrX1UabK8ang9qPetkHmjzooG9kFa4auJ+7REHErh4TgujZbvMDYnGbprcDV J1PdZvRZTyuXXbgv7BkMKT7RJIjZQTDf7Qbyt3Yy3IU494Cm2uTaj7FEbxhu8Hpzg6hf e8ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=HB0ptiXKvNp/903sdRc4E3qFKQN++K+UtEkjdcwRuCc=; b=V8XwjvWpVhciNhhm55qmaccwFih++zAr2YlWVX776EEhkeFZUwW+9ur4tsfKNcLQFe sRj5cPMrNYiUZ/vUd+QaD6QHii/2gy4c0k65kBkJQasBMx9D51oasn1EgSLbuFin5lcb ZhipOYqk7ySnvnorXQV4D8D9O/CIS4ZWTgBLb9MAdW8eUu1bgDAUs0mi3YFKLxiV5fZt qEc5AevyZ6rTXz3gN4HZBp7aPOpYqMWnOzh+omHpZwPXzK5z9wHK1UCfMeoZbMiS9Nws aZLGZz1BYn9rVL9edX5F9Pj2zMRxKttPDEP3CraAi+EdrJ6Vb6YtiWAmZlPoqMyM0YrB 4mLQ== 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 c29si4709375edj.67.2021.09.22.14.25.44; Wed, 22 Sep 2021 14:26:09 -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 S238198AbhIVVWn (ORCPT + 99 others); Wed, 22 Sep 2021 17:22:43 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:47514 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238174AbhIVVWd (ORCPT ); Wed, 22 Sep 2021 17:22:33 -0400 X-IronPort-AV: E=Sophos;i="5.85,315,1624287600"; d="scan'208";a="94853370" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 23 Sep 2021 06:21:02 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 7CF3A4103C3F; Thu, 23 Sep 2021 06:21:00 +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 3/3] arm64: dts: renesas: rzg2l-smarc: Enable CANFD Date: Wed, 22 Sep 2021 22:20:49 +0100 Message-Id: <20210922212049.19851-4-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210922212049.19851-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20210922212049.19851-1-prabhakar.mahadev-lad.rj@bp.renesas.com> 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 --- 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..5dc4fff33076 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-high; + 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-high; + line-name = "can1_stb"; + }; + i2c0_pins: i2c0 { pins = "RIIC0_SDA", "RIIC0_SCL"; input-enable; -- 2.17.1