Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1795834lqa; Mon, 29 Apr 2024 22:04:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXk/ohu2bHazptZAHnEEYkF+Ip1W1oOcjvUkXWXbtMjPDqp2rL+KL7i/2mDEtekZLHohycnkWYddcbICiK4S7ct05bzITfo2TL9Z5VslA== X-Google-Smtp-Source: AGHT+IELvDqzTVXnqhlhiFULH9YG66NbQq04BPL7hz3YGP2XRSHhhjKiKF4HLVGS3NiTvCJWqsRp X-Received: by 2002:a50:d4ca:0:b0:570:37d:badd with SMTP id e10-20020a50d4ca000000b00570037dbaddmr10437729edj.28.1714453471723; Mon, 29 Apr 2024 22:04:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714453471; cv=pass; d=google.com; s=arc-20160816; b=SbuTjXXWG7RQylyB2W0UL+r0Ov64jls3S240uRMn9D8AGQ5hn4OBcxe62XCzmC+4n8 13Pn+4DqwiP4ekhi7yovsuPkN8gIn4Lw4AXTZN7YJmuAIa5fwJsiap5l/qinrs+20IUh 7maCsNlbTcqPtUwGOrX3A676ewaaz7h4kj3y/SsVo6tyv1cAA9tBgjrb+2CnzAotNTW+ c5/ZX8mnYkjxjS24wF8MxyzeNprYWqCMZkx0DKh0IxXDyWOWnoJXmwCNyPKj24Vkf0OV KEhargk/mDrtw7rxXRFHRdfQ6tAALhQ9zhuHpCZofT9HdFSygZ6J03zDGa80uBQjtlDL VoNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=XOXY3rxnL37UlQjMqNIj3aL65ZkBj73t1MItP1RQdvY=; fh=A55BiVsPLT34+7EUv8uZLPO/sHvmUD0hGvLEz8IsBcs=; b=tkvsJ4NY83i8+/IiVBtJd7oBp5EzJTBhcDyIZs/x3XigKcc3aCWS+kqoU+MLaOPMzt xsULHggNPquudp0bzqGbR/hupIACff/ZQYsH+Ln2uVU+d6v59zszwK/Mc6A/f2Uw/kYv kbQG6s+WTfeSMvwSfvrNPNni7JWulI7+5dVhDbV9r8mBmhQOJ4xuBlKpKO9Hnh3Fqi7g R3gFbDNjYW/rO/aX8/nUJGRN/zJkcTKcTd4Q5kKYJthQYrTWa4APz3gk1S96A+HFA4ku ZdVWTeCe6Gdl3TDeCWTO+eWNEuB4Gt5SQ3xxWMWWkVnRvemOIWBo6NzdP78Q+BMcuwc0 CDEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ifGMxCuV; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-163345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k7-20020aa7c387000000b0056ded86c6f2si12531030edq.526.2024.04.29.22.04.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 22:04:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ifGMxCuV; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-163345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3BDC31F22A9E for ; Tue, 30 Apr 2024 05:04:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 18D501757A; Tue, 30 Apr 2024 05:04:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="ifGMxCuV" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2557B14AA9; Tue, 30 Apr 2024 05:04:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714453462; cv=none; b=e4l674d9O3QJRov8CLUmrb3eV3CPDM/vsVU142S+tfNgEy0mbZXDXD9kUpEyKX/gHBQW9eu5CnG31H64kOcLQnipNmf6XuICOwRtLZxB4v0KT40wielOyFCtCgJlTCG5HYx42b5BNsP7yiZA6VZI7fkd3UPb6fIvX6Sc7BV4Qpg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714453462; c=relaxed/simple; bh=dLZ0s/UbIhMVfNEG/uVowxg5arMykBqN5Ffds8gOu98=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=WhCGjoQve38egqfdP3V714ZXELHSJZWlrlQCXLD9Wh0b+6qPjP5AeaLiGI5KREAKSaG3k7GX+iFqrk3G7bSLIYhVp1goc2KEPIKl3jGPzaFwlK+Dz5l65VOxy6K3nypKdR9vd0Tl1QK2tj6yVDQ75i/4qBWunZO4F4EtYb/qEfo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=ifGMxCuV; arc=none smtp.client-ip=198.47.19.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 43U544RN035696; Tue, 30 Apr 2024 00:04:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1714453444; bh=XOXY3rxnL37UlQjMqNIj3aL65ZkBj73t1MItP1RQdvY=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=ifGMxCuVkNA05jayCkJyo5JUfkcsxpRDaszvtV8ET2bYKc37CGuX6RFcfA/tsGo/U dVEE10pyVgKgDZiV8+yCYf3XSrzxSx2CbVE9CHe5bCFyamp2oMZCScDF2+oG0hdDkG m1xjYNZRo+xsDU6S2ycZQPipOOs/mEdRrvBcIE7U= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 43U544NK019305 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 30 Apr 2024 00:04:04 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 30 Apr 2024 00:04:04 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 30 Apr 2024 00:04:04 -0500 Received: from [10.24.69.66] (uda0510294.dhcp.ti.com [10.24.69.66]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 43U540hd130137; Tue, 30 Apr 2024 00:04:01 -0500 Message-ID: <36018979-6b5a-47e3-871e-ef3808e362b2@ti.com> Date: Tue, 30 Apr 2024 10:34:00 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] arm64: dts: ti: k3-j721e-sk: Add support for multiple CAN instances To: Bhavya Kapoor , CC: , , , , , , , , References: <20240412112025.201639-1-b-padhi@ti.com> Content-Language: en-US From: Beleswar Prasad Padhi In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Hi Bhavya, On 15/04/24 13:52, Bhavya Kapoor wrote: > On 12/04/24 16:50, Beleswar Padhi wrote: >> CAN instance 0 in the mcu domain is brought on the J721E-SK board >> through header J1. Thus, add its respective transceiver 1 dt node to add >> support for this CAN instance. >> >> CAN instances 0, 5 and 9 in the main domain are brought on the J721E-SK >> board through headers J5, J6 and J2 respectively. Thus, add their >> respective transceivers 2, 3 and 4 dt nodes to add support for these CAN >> instances. >> >> Signed-off-by: Beleswar Padhi > Reviewed-by: Bhavya Kapoor >> --- >> Test logs: https://gist.github.com/3V3RYONE/2144fa883bf3a390981d25572971fcf3 >> >> v3: Changelog: >> 1) Updated board name in capital letters in commit message description >> 2) Updated test logs to include communication between all applicable CAN >> instances >> >> Link to v2: >> https://lore.kernel.org/linux-arm-kernel/20240325103405.182692-1-b-padhi@ti.com/ >> >> v2: Changelog: >> 1) Re-ordered status = "okay" property to the end of all applicable dt >> nodes following kernel documentation >> >> Link to v1: >> https://lore.kernel.org/linux-arm-kernel/20240315124728.490331-1-b-padhi@ti.com/ >> >> arch/arm64/boot/dts/ti/k3-j721e-sk.dts | 116 +++++++++++++++++++++++++ >> 1 file changed, 116 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts >> index 0c4575ad8d7c..7170f0220afd 100644 >> --- a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts >> +++ b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts >> @@ -210,6 +210,42 @@ vdd_sd_dv_alt: gpio-regulator-tps659411 { >> <3300000 0x1>; >> }; >> >> + transceiver1: can-phy0 { > Hi Beleswar, all looks good to me just one little suggestion to keep > > transceiver and can-phy number as same for better understanding > > and to avoid some bit of confusion later. > > Eg.) transceiver: can-phy Thanks for the review. I will send PATCH v4 with these changes shortly. > >> + compatible = "ti,tcan1042"; >> + #phy-cells = <0>; >> + max-bitrate = <5000000>; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&mcu_mcan0_gpio_pins_default>; >> + standby-gpios = <&wkup_gpio0 3 GPIO_ACTIVE_HIGH>; >> + }; >> + >> + transceiver2: can-phy1 { >> + compatible = "ti,tcan1042"; >> + #phy-cells = <0>; >> + max-bitrate = <5000000>; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&main_mcan0_gpio_pins_default>; >> + standby-gpios = <&main_gpio0 65 GPIO_ACTIVE_HIGH>; >> + }; >> + >> + transceiver3: can-phy2 { >> + compatible = "ti,tcan1042"; >> + #phy-cells = <0>; >> + max-bitrate = <5000000>; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&main_mcan5_gpio_pins_default>; >> + standby-gpios = <&main_gpio0 66 GPIO_ACTIVE_HIGH>; >> + }; >> + >> + transceiver4: can-phy3 { >> + compatible = "ti,tcan1042"; >> + #phy-cells = <0>; >> + max-bitrate = <5000000>; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&main_mcan9_gpio_pins_default>; >> + standby-gpios = <&main_gpio0 67 GPIO_ACTIVE_HIGH>; >> + }; >> + >> dp_pwr_3v3: fixedregulator-dp-prw { >> compatible = "regulator-fixed"; >> regulator-name = "dp-pwr"; >> @@ -367,6 +403,45 @@ J721E_IOPAD(0x164, PIN_OUTPUT, 7) /* (V29) RGMII5_TD2 */ >> >; >> }; >> >> + main_mcan0_pins_default: main-mcan0-default-pins { >> + pinctrl-single,pins = < >> + J721E_IOPAD(0x208, PIN_INPUT, 0) /* (W5) MCAN0_RX */ >> + J721E_IOPAD(0x20c, PIN_OUTPUT, 0) /* (W6) MCAN0_TX */ >> + >; >> + }; >> + >> + main_mcan0_gpio_pins_default: main-mcan0-gpio-default-pins { >> + pinctrl-single,pins = < >> + J721E_IOPAD(0x108, PIN_INPUT, 7) /* (AD27) PRG0_PRU1_GPO2.GPIO0_65 */ >> + >; >> + }; >> + >> + main_mcan5_pins_default: main-mcan5-default-pins { >> + pinctrl-single,pins = < >> + J721E_IOPAD(0x050, PIN_INPUT, 6) /* (AE21) PRG1_PRU0_GPO18.MCAN5_RX */ >> + J721E_IOPAD(0x04c, PIN_OUTPUT, 6) /* (AJ21) PRG1_PRU0_GPO17.MCAN5_TX */ >> + >; >> + }; >> + >> + main_mcan5_gpio_pins_default: main-mcan5-gpio-default-pins { >> + pinctrl-single,pins = < >> + J721E_IOPAD(0x10c, PIN_INPUT, 7) /* (AC25) PRG0_PRU1_GPO3.GPIO0_66 */ >> + >; >> + }; >> + >> + main_mcan9_pins_default: main-mcan9-default-pins { >> + pinctrl-single,pins = < >> + J721E_IOPAD(0x0d0, PIN_INPUT, 6) /* (AC27) PRG0_PRU0_GPO8.MCAN9_RX */ >> + J721E_IOPAD(0x0cc, PIN_OUTPUT, 6) /* (AC28) PRG0_PRU0_GPO7.MCAN9_TX */ >> + >; >> + }; >> + >> + main_mcan9_gpio_pins_default: main-mcan9-gpio-default-pins { >> + pinctrl-single,pins = < >> + J721E_IOPAD(0x110, PIN_INPUT, 7) /* (AD29) PRG0_PRU1_GPO4.GPIO0_67 */ >> + >; >> + }; >> + >> dp0_pins_default: dp0-default-pins { >> pinctrl-single,pins = < >> J721E_IOPAD(0x1c4, PIN_INPUT, 5) /* SPI0_CS1.DP0_HPD */ >> @@ -555,6 +630,19 @@ J721E_WKUP_IOPAD(0xfc, PIN_INPUT_PULLUP, 0) /* (H24) WKUP_I2C0_SDA */ >> >; >> }; >> >> + mcu_mcan0_pins_default: mcu-mcan0-default-pins { >> + pinctrl-single,pins = < >> + J721E_WKUP_IOPAD(0x0ac, PIN_INPUT, 0) /* (C29) MCU_MCAN0_RX */ >> + J721E_WKUP_IOPAD(0x0a8, PIN_OUTPUT, 0) /* (D29) MCU_MCAN0_TX */ >> + >; >> + }; >> + >> + mcu_mcan0_gpio_pins_default: mcu-mcan0-gpio-default-pins { >> + pinctrl-single,pins = < >> + J721E_WKUP_IOPAD(0x0bc, PIN_INPUT, 7) /* (F27) WKUP_GPIO0_3 */ >> + >; >> + }; >> + >> /* Reset for M.2 M Key slot on PCIe1 */ >> mkey_reset_pins_default: mkey-reset-pns-default-pins { >> pinctrl-single,pins = < >> @@ -1108,6 +1196,34 @@ &pcie1_rc { >> num-lanes = <2>; >> }; >> >> +&mcu_mcan0 { >> + pinctrl-names = "default"; >> + pinctrl-0 = <&mcu_mcan0_pins_default>; >> + phys = <&transceiver1>; >> + status = "okay"; >> +}; >> + >> +&main_mcan0 { >> + pinctrl-names = "default"; >> + pinctrl-0 = <&main_mcan0_pins_default>; >> + phys = <&transceiver2>; >> + status = "okay"; >> +}; >> + >> +&main_mcan5 { >> + pinctrl-names = "default"; >> + pinctrl-0 = <&main_mcan5_pins_default>; >> + phys = <&transceiver3>; >> + status = "okay"; >> +}; >> + >> +&main_mcan9 { >> + pinctrl-names = "default"; >> + pinctrl-0 = <&main_mcan9_pins_default>; >> + phys = <&transceiver4>; >> + status = "okay"; >> +}; >> + >> &ufs_wrapper { >> status = "disabled"; >> };