Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4600360pxv; Tue, 20 Jul 2021 07:29:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTopIAJDARcrVc0XeaHrXeslSpTEmjLdqSyiEsKsXFpcvf/vknaLyYql/z6LrcKMyYXZKW X-Received: by 2002:a05:6402:686:: with SMTP id f6mr32480967edy.127.1626791367237; Tue, 20 Jul 2021 07:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626791367; cv=none; d=google.com; s=arc-20160816; b=W26a6hOwMXQPRpnoJsmptI+QlDaaXG3t7nB9PPOiplL1HLPcC8LIUAMYdsY9Fp/Z4a vTBUAydFYDuoZd3FXm4/hrr1+fiAxkTfaVNGhk0ohhjK+L6ynskmq8gDlHrK2xye/a7u V7R2UEg10K3EWJBlEzm8LYyZtn1PTaNrjSYHXI73d2O0ki9pMbdPFrFdK0KcqW6lUiSO N1M/BD5umDjEspflB+i0JGIh/sR8cXhL0IxAPvlFiwW2IA1S+puRpPangrElB7jtzJHU BsE5/XAKxE05wIkEGnnGRFA0uBNWeeaj/Dp31xNoEn3ilLSLV1SIsFv9McBxwiKof9kG TJeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:mime-version:references:in-reply-to :message-id:date:subject:cc:from:dkim-signature; bh=mzTqcij+0JJYV2iPtzt1yQW3PNay/eAPH+dtbDLIwSo=; b=NBoU8bbtZ2qMowP5uWcVtyNJUaBs20Ce25Rl7zAJVXEHaKCwA6Y3axxZYi4CRGUDXX J/bVBoBF/SYkshKBbzSLO4skI/0ZElo8M2dYwQmIG5/i6YbV/3e+sDahPOyQZq4z5gP5 kXCXoMOTym2ODqvPWuN5LJgpYEUCh/hWelGS9hDGy0FcO7GQObEBKi/v0eGLq7DGSRnD dFUoEM+SEJqCLy9v6ALNFMc98GeCsIsSkGRjAS5Bx1gpdU69zGk2vagW3v/xpi0eOdTc x3Ht+fIycpQVBxgbrYi+z0EL2ZGLVd5l81off2uv2brEsuBJNa/oFmCHy4gzu2cLR2XZ fHpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ti.com header.s=ti-com-17Q1 header.b=OKZ2vOPY; 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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gv15si14815666ejc.383.2021.07.20.07.29.01; Tue, 20 Jul 2021 07:29:27 -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; dkim=fail header.i=@ti.com header.s=ti-com-17Q1 header.b=OKZ2vOPY; 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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239525AbhGTNpd (ORCPT + 99 others); Tue, 20 Jul 2021 09:45:33 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:40462 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239774AbhGTNhE (ORCPT ); Tue, 20 Jul 2021 09:37:04 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 16KEH3m3017482; Tue, 20 Jul 2021 09:17:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1626790623; bh=mzTqcij+0JJYV2iPtzt1yQW3PNay/eAPH+dtbDLIwSo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=OKZ2vOPYIFNtZHcs0UlhMImD3RW9Is3EzotBR6LRGadPUAPLw7iKNBy5kX4Zrzbp/ 3uLxRpnmx5ArGlXDBnxWMuprZfpooyZ6PjnMlLmFWkDCy2XLdi1WkYxEGxFyo5C5NC uISgxjq3Jixg902QXigek7s92CKo5eecPiqnqNDc= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 16KEH2de081407 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Jul 2021 09:17:03 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 20 Jul 2021 09:17:03 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Tue, 20 Jul 2021 09:17:03 -0500 Received: from gsaswath-HP-ProBook-640-G5.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 16KEGh4r044909; Tue, 20 Jul 2021 09:16:59 -0500 From: Aswath Govindraju CC: , , , Nishanth Menon , Tero Kristo , Rob Herring , Marc Kleine-Budde , Lokesh Vutla , Aswath Govindraju Subject: [PATCH 4/6] arm64: dts: ti: k3-j721e-common-proc-board: Add support for mcu_mcan nodes Date: Tue, 20 Jul 2021 19:46:40 +0530 Message-ID: <20210720141642.24999-5-a-govindraju@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210720141642.24999-1-a-govindraju@ti.com> References: <20210720141642.24999-1-a-govindraju@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Faiz Abbas Add two MCAN nodes present on the common processor board and set a maximum data rate of 5 Mbps. Disable all other nodes for now. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- .../dts/ti/k3-j721e-common-proc-board.dts | 116 ++++++++++++++++++ 1 file changed, 116 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts index 8bd02d9e28ad..d40e282325c9 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts @@ -109,6 +109,25 @@ "cpb-codec-scki", "cpb-codec-scki-48000", "cpb-codec-scki-44100"; }; + + transceiver1: can-phy0 { + compatible = "ti,tcan1043"; + #phy-cells = <0>; + max-bitrate = <5000000>; + pinctrl-names = "default"; + pinctrl-0 = <&mcu_mcan0_gpio_pins_default>; + standby-gpios = <&wkup_gpio0 54 GPIO_ACTIVE_LOW>; + enable-gpios = <&wkup_gpio0 0 GPIO_ACTIVE_HIGH>; + }; + + transceiver2: can-phy1 { + compatible = "ti,tcan1042"; + #phy-cells = <0>; + max-bitrate = <5000000>; + pinctrl-names = "default"; + pinctrl-0 = <&mcu_mcan1_gpio_pins_default>; + standby-gpios = <&wkup_gpio0 2 GPIO_ACTIVE_HIGH>; + }; }; &main_pmx0 { @@ -249,6 +268,33 @@ J721E_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* MCU_MDIO0_MDIO */ >; }; + + mcu_mcan0_pins_default: mcu-mcan0-pins-default { + pinctrl-single,pins = < + J721E_WKUP_IOPAD(0xac, PIN_INPUT, 0) /* (C29) MCU_MCAN0_RX */ + J721E_WKUP_IOPAD(0xa8, PIN_OUTPUT, 0) /* (D29) MCU_MCAN0_TX */ + >; + }; + + mcu_mcan0_gpio_pins_default: mcu-mcan0-gpio-pins-default { + pinctrl-single,pins = < + J721E_WKUP_IOPAD(0xb0, PIN_INPUT, 7) /* (F26) WKUP_GPIO0_0 */ + J721E_WKUP_IOPAD(0x98, PIN_INPUT, 7) /* (E28) MCU_SPI0_D1.WKUP_GPIO0_54 */ + >; + }; + + mcu_mcan1_pins_default: mcu-mcan1-pins-default { + pinctrl-single,pins = < + J721E_WKUP_IOPAD(0xc4, PIN_INPUT, 0) /* (G24) WKUP_GPIO0_5.MCU_MCAN1_RX */ + J721E_WKUP_IOPAD(0xc0, PIN_OUTPUT, 0) /* (G25) WKUP_GPIO0_4.MCU_MCAN1_TX */ + >; + }; + + mcu_mcan1_gpio_pins_default: mcu-mcan1-gpio-pins-default { + pinctrl-single,pins = < + J721E_WKUP_IOPAD(0xb8, PIN_INPUT, 7) /* (F28) WKUP_GPIO0_2 */ + >; + }; }; &wkup_uart0 { @@ -770,3 +816,73 @@ &icssg1_mdio { status = "disabled"; }; + +&mcu_mcan0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mcu_mcan0_pins_default>; + phys = <&transceiver1>; +}; + +&mcu_mcan1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mcu_mcan1_pins_default>; + phys = <&transceiver2>; +}; + +&main_mcan0 { + status = "disabled"; +}; + +&main_mcan1 { + status = "disabled"; +}; + +&main_mcan2 { + status = "disabled"; +}; + +&main_mcan3 { + status = "disabled"; +}; + +&main_mcan4 { + status = "disabled"; +}; + +&main_mcan5 { + status = "disabled"; +}; + +&main_mcan6 { + status = "disabled"; +}; + +&main_mcan7 { + status = "disabled"; +}; + +&main_mcan8 { + status = "disabled"; +}; + +&main_mcan9 { + status = "disabled"; +}; + +&main_mcan10 { + status = "disabled"; +}; + +&main_mcan11 { + status = "disabled"; +}; + +&main_mcan12 { + status = "disabled"; +}; + +&main_mcan13 { + status = "disabled"; +}; -- 2.17.1