Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp821870pxb; Wed, 3 Nov 2021 13:00:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTtn1vT+EajL54xrhGoAmG9EBBbSOFuUI9NECjsHgU5rNTIlQ7CVMzqycEXeT4oOkalFtp X-Received: by 2002:a17:906:58ce:: with SMTP id e14mr23978949ejs.525.1635969609461; Wed, 03 Nov 2021 13:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635969609; cv=none; d=google.com; s=arc-20160816; b=pcoDVqZTJr9Lhebw8/PcYOxys8h5AXiCwU9STkBkU/65NyhtM6mPgR6oca5VTgf/Cm qXuGOFYmBlLsbQMXGzgh4we1gMgmtWTu20SE2jai+kYFhu5MF6OsJXiRy66EF61Wz0AT UhQchINmb5Ztn38sWRFltr1VWNLxr8pdNR1u8axjgVrPODJH2RDNLVsnB8q+ISt4/pQf 8eosHOVEUs39dlBiGM67YXipzozptD7HkfDLo4OHG9vhBCwxNwMFKePAz2Yli6a0g/kq i+PxgVRkUCPx2nfYQuMHN8q2QyMYf3mttYfRus8uCyCFsYZ4a3hjXON8DEtcBYf4QOtF cqSA== 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=RlCz/7KMrfhste6OEZJpJwI83mUNvfE5zGckV0ZkUhA=; b=mBBFKujl7zOyjuT1B3t0K9D/gZD3t1eYbZdHP5RF/owm+Kv7R9JsiwS8R8nD/Y24ZL sPqAu7JCIgO6Nbs3UBB/f5+WhquBDUU1kTMqh4C/3j137OFz2FROwaUBrTYbPwUu54Vg ZG1yeZ4ID9e1b+npEwZzzFaZyikZM+s5X7bO8W4F7RuAX4V17HQX7KA85tkMFrNNH2bn iLzHJyPFKAmz0oNStyAE6QtJe6LD+1nBdmer3RCPIKSCxvAKZn6oPGMmGqAfHy/x5gqY ICDiScG1jIwkL71n2I1RMPWkIzog7e7lG90UnIKL5LxeeVbo9wVz8pxtKkOXtbtWhNqn HkXg== 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 p2si3773816ejo.366.2021.11.03.12.59.22; Wed, 03 Nov 2021 13:00: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 S231420AbhKCT7B (ORCPT + 99 others); Wed, 3 Nov 2021 15:59:01 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:51055 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231343AbhKCT65 (ORCPT ); Wed, 3 Nov 2021 15:58:57 -0400 X-IronPort-AV: E=Sophos;i="5.87,206,1631545200"; d="scan'208";a="99386768" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 04 Nov 2021 04:56:20 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 7B90240E5D50; Thu, 4 Nov 2021 04:56:18 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Magnus Damm , Rob Herring , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH 3/3] arm64: dts: renesas: rzg2l-smarc: Enable SCIF2 on carrier board Date: Wed, 3 Nov 2021 19:56:00 +0000 Message-Id: <20211103195600.23964-4-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211103195600.23964-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20211103195600.23964-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SCIF2 interface is available on PMOD1 connector (CN7) on carrier board, This patch adds pinmux and scif2 node to carrier board dtsi file. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi b/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi index 2863e487a640..4c32f068a1f0 100644 --- a/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi +++ b/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi @@ -21,9 +21,13 @@ * */ +/* comment the #define statement to disable SCIF2 (SER0) on PMOD1 (CN7) */ +#define PMOD1_SER0 1 + / { aliases { serial0 = &scif0; + serial1 = &scif2; i2c0 = &i2c0; i2c1 = &i2c1; i2c3 = &i2c3; @@ -208,6 +212,13 @@ ; /* RxD */ }; + scif2_pins: scif2 { + pinmux = , /* TxD */ + , /* RxD */ + , /* CTS# */ + ; /* RTS# */ + }; + sd1-pwr-en-hog { gpio-hog; gpios = ; @@ -277,6 +288,23 @@ status = "okay"; }; +/* + * To enable SCIF2 (SER0) on PMOD1 (CN7) + * SW1 should be at position 2->3 so that SER0_CTS# line is activated + * SW2 should be at position 2->3 so that SER0_TX line is activated + * SW3 should be at position 2->3 so that SER0_RX line is activated + * SW4 should be at position 2->3 so that SER0_RTS# line is activated + */ +#if PMOD1_SER0 +&scif2 { + pinctrl-0 = <&scif2_pins>; + pinctrl-names = "default"; + + uart-has-rtscts; + status = "okay"; +}; +#endif + &sdhi1 { pinctrl-0 = <&sdhi1_pins>; pinctrl-1 = <&sdhi1_pins_uhs>; -- 2.17.1