Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp828137lqb; Fri, 15 Mar 2024 07:34:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUD0qvqNQ23kPeX+2XFhBQlyCh25ZA++iR7BD/tdfFbgIzdIBD+n5PSH7HXGwygRmI30/vvpdWTndm5O2Q9Z7PbrzNXlR85OexYIHcOlA== X-Google-Smtp-Source: AGHT+IEr8aTUGWm15xr5VqmWzhB5tDmt2rfj2KQy+zdFAtGa8iuqPDUw7Jc2PD4YRfNdmJ2t3K7S X-Received: by 2002:ad4:4b24:0:b0:690:8d14:9cf6 with SMTP id s4-20020ad44b24000000b006908d149cf6mr5206753qvw.2.1710513261243; Fri, 15 Mar 2024 07:34:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710513261; cv=pass; d=google.com; s=arc-20160816; b=XUHH5cqTQKsIpBFcLyHlDWWLIi57rF7vKgs5Vg2rFZN0B70fkv3Fxj01QfDK3ZzO+s 37LbKmQYskCWFLkzmH1HYobVyBjCJ4b2yjvaX0UQkW0D6Ez+XFobkuZ+7SKp9lNFF7Lj oGxza20I7NYe0TX43DVRdHf5+x0p+tIoNmdsxbMO+J1n1YCkh0j61UAIGKvvGqYZLCw9 IH8mss3n3rZOhMaOGt0t7FdKYF4A/f7yrfontaAH/gJhQ6DyRt3SNr/54OMbONNn98PU AUG7UyW6HslqPgkJ4tai7TXOQeANP2+TyQMz1Xg9SB1BrxIDIcubectbt8CEjD6x0y56 46RQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=rzz3OTX+vJ047AUZ3BRLJ/zXw0vnCNy5WlB27mli1Z0=; fh=5snAMrUAPQ/Xty02a019uK8/OQqCxtZeHt1IqBpaBEA=; b=f+o17VNexBaJFWpWJJ2vq0YykEGSc1V16MYKIFNGLVSWtZjzWuIf5hHy/D3DMH0NJy 2dhUg9/4CvVA3JSYojr6Pdx+f8To7ElwrPgXydnDlnYt1TYgA3MeAZLUQ/zjAT5T9oge 1G0Tdm9zaBUeKSFU3hHg04efd+v+DFdjmOQD6BKdeN7viuJOHZ6qkRbiqPvgghqeOcHJ SGOHdENO9onyVRCRimtgLxRXHJOu8MuBVE8pJGdJVWTTB3Vzkqdi1A50+rFD1imgFEGU Mqj0CrbEV9LcFhLP1GspVI7mpDEcms1hZLX9sb7tHzaEAf9MePmx1cuAjRd01vKNOvTs di+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=s+avylMu; 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-104515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104515-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iv10-20020ad45cea000000b0068fe3631946si3020076qvb.387.2024.03.15.07.34.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 07:34:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=s+avylMu; 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-104515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104515-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D43BB1C227AA for ; Fri, 15 Mar 2024 14:34:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9F772FE28; Fri, 15 Mar 2024 14:34:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="s+avylMu" 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 CE9F533D5; Fri, 15 Mar 2024 14:34:11 +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=1710513253; cv=none; b=DjML3UHeljVvbZBJ0/Xwn6H6bonQhBDu1xw9muTJpg+8kDZ9PAd/06kn3zAbBjR3/xdCuuY1HydCKdJZ4uyRaOxn+FD7cNWnH8DISql/O5n+luSBqBJw199hjjhPHgQXyNfVsV8+rc7DErh4MtTlhZ4f6NqHQZUxDuDHqd6ugy0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710513253; c=relaxed/simple; bh=b4ef4loKkoGkQnjHEI12kleYlpIODdw0EgVztw+Td2I=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=A6nU0Dx+Ug74gpQCWbzGa3hfU9aTtUqOHs2m5CgvHBJx2y2DV4paihJ5Z6mUv7mPQm+OZCpZ5oPgD8BzgzkV5V6yShKER9Y8YlpfhrS+UxZlpsQquwYsjGv9CCVeHS677mSJuuZg81I01c+JoIoQ3l5T0bnBp3zjVvrWO1w3sIE= 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=s+avylMu; 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 42FClWBU060886; Fri, 15 Mar 2024 07:47:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1710506852; bh=rzz3OTX+vJ047AUZ3BRLJ/zXw0vnCNy5WlB27mli1Z0=; h=From:To:CC:Subject:Date; b=s+avylMutwBF381DW14LzMThV2+wKyqDruR2hjkFvHANHhFW5j0yxFQ4H0VJ+LiRA ULEGYDJbff4oZ4PeuiF3cuO5/GFCiBDSqsSRrNuwdpQrYox+A8OqdT6EGqrOsdJVHc EWvmWrPxTi9AtXHBNFd73CIvJRUKoVfV7C+/h6U4= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 42FClWPE106434 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 15 Mar 2024 07:47:32 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 15 Mar 2024 07:47:32 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE102.ent.ti.com (10.64.6.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; Fri, 15 Mar 2024 07:47:32 -0500 Received: from uda0510294.dhcp.ti.com (uda0510294.dhcp.ti.com [10.24.69.66]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 42FClSQ6049890; Fri, 15 Mar 2024 07:47:29 -0500 From: Beleswar Padhi To: CC: , , , , , , , , , Subject: [PATCH] arm64: dts: ti: k3-j721e-sk: Add support for multiple CAN instances Date: Fri, 15 Mar 2024 18:17:28 +0530 Message-ID: <20240315124728.490331-1-b-padhi@ti.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 --- Test logs: https://gist.github.com/3V3RYONE/d60192fa2ccdf523f303e9904fbe8e17 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..9406d6f370fa 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 { + 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 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mcu_mcan0_pins_default>; + phys = <&transceiver1>; +}; + +&main_mcan0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_mcan0_pins_default>; + phys = <&transceiver2>; +}; + +&main_mcan5 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_mcan5_pins_default>; + phys = <&transceiver3>; +}; + +&main_mcan9 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_mcan9_pins_default>; + phys = <&transceiver4>; +}; + &ufs_wrapper { status = "disabled"; }; -- 2.34.1