From patchwork Mon Jul 24 18:38:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 125163 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1988856vqg; Mon, 24 Jul 2023 11:53:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlFKo73Mo+0wLGoTrXZbr0G01MFLHCl7Tl8nTq+RDfDXXYtouxskGCxTB8ss8PQXLn+4V/BH X-Received: by 2002:a05:6870:15d3:b0:1ba:199a:984a with SMTP id k19-20020a05687015d300b001ba199a984amr12118778oad.55.1690224796166; Mon, 24 Jul 2023 11:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690224796; cv=none; d=google.com; s=arc-20160816; b=IBs7LbbqTzs9IHVZ+aiEMl63dL8OabWnXzXHpMCNmh+VxLb0LpeLh+20AYSR3b9o+y nvwP69pRrsRtHFOgsboXEwCe/Ckb/Fkd/vozRTP6HZW27A8BirN/iHZ6+ZkUGJ3a+68k 9+x6nLewPpvbO4Yp2cEL1P15tgJxNFmE5gfHzw7o3gAKfb+mK3ZbohS31sUXTQTm8hi5 norPC99LQsGKhlvQBvgcxn7iQax3r6GmDAfUZPA4b/NxCOMgE6g94uZ61vg7oYvaGRBl 4J/2lmjTmTVKdBzfH2RjmMooMin5gKckNv2zG4Oiwl+9xS68eobtFuYhoV6eKoBaQUM3 RtKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=z+6NBaPzGCOo4/O8t4Ji8rz0S7qI4YFNyYNK2HxDJv0=; fh=w/4xeKL9CUH612ABReqSDTy3hPOMc7cA4uxvnJfDkFA=; b=izlJyethrfFEow9RUQS+DK8NtrKC4ltux6C6kQ9gdXf1ofvyYu8QWZLsB1KcCu3ig4 7CXO2EmfzBWpKD2I/BAx0r1+wj+wErjI31/e2O9YVH+jccVsEnDC0Qm+pknV4iRDnZfY CUHvgpvupnuzcwHA9Qn3UJkCPZWbO4xMPlppZkmz5k8VJK3fcY8RyL0aClrcdocS8pYO WYn5NSQ6TRYmyFha59PJMzAKHmXAYnHuadH36hcG3fEtocsBGzK3i0VTsfoGmOjOMF89 v5g96KzlEULAEoPn++Yfm9uBRe+5pQGS4MgQpJF6U4c6FBzxfZ4QlQagBO2tm0uR0fnl xs0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eOho4kDH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d17-20020a631d51000000b005533ac674a9si9467866pgm.286.2023.07.24.11.53.03; Mon, 24 Jul 2023 11:53:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eOho4kDH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230016AbjGXSi4 (ORCPT + 99 others); Mon, 24 Jul 2023 14:38:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229677AbjGXSiy (ORCPT ); Mon, 24 Jul 2023 14:38:54 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA8ECFB; Mon, 24 Jul 2023 11:38:53 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36OIci1d014612; Mon, 24 Jul 2023 13:38:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690223924; bh=z+6NBaPzGCOo4/O8t4Ji8rz0S7qI4YFNyYNK2HxDJv0=; h=From:To:CC:Subject:Date; b=eOho4kDHGCUNv6wWuUAmmzMeNBjxN7XUsLZM38QkYnRDj0aOcQcy/UguA3FK9ulkm 8VDm7UcAqhZhsk8+azZzIZI9wHnZAWGkgEM1/G9lbe7uc0Bgw7He3hPkyPrf5ub08l YrlF1oKKWmWMTZkIbY+Bw3LQo6HuXJaVTFBW0rsU= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36OIciVP028868 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 24 Jul 2023 13:38:44 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 24 Jul 2023 13:38:44 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE113.ent.ti.com (10.64.6.34) 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; Mon, 24 Jul 2023 13:38:44 -0500 Received: from uda0498204.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36OIciCr036143; Mon, 24 Jul 2023 13:38:44 -0500 From: Judith Mendez To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , Subject: [PATCH] arm64: dts: ti: k3-am62a7: Add MCU MCAN nodes Date: Mon, 24 Jul 2023 13:38:44 -0500 Message-ID: <20230724183844.635319-1-jm@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772329155735415655 X-GMAIL-MSGID: 1772329155735415655 On AM62ax there are no hardware interrupts routed to A53 GIC interrupt controller for MCU MCAN IPs, so MCU MCAN nodes were omitted from MCU dtsi. Timer polling was introduced in commits [1][2] enabling 3x MCAN on AM62ax, so now add MCU MCAN nodes to the mcu dtsi for the Cortex A53. [1] commit b382380c0d2d ("can: m_can: Add hrtimer to generate software interrupt") [2] commit bb410c03b999 ("dt-bindings: net: can: Remove interrupt properties for MCAN") Signed-off-by: Judith Mendez --- arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi index 04599762c2b7..3fca702e7f2d 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi @@ -143,4 +143,28 @@ mcu_rti0: watchdog@4880000 { /* Tightly coupled to M4F */ status = "reserved"; }; + + mcu_mcan0: can@4e00000 { + compatible = "bosch,m_can"; + reg = <0x00 0x4e08000 0x00 0x200>, + <0x00 0x4e00000 0x00 0x8000>; + reg-names = "m_can", "message_ram"; + power-domains = <&k3_pds 188 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 188 6>, <&k3_clks 188 1>; + clock-names = "hclk", "cclk"; + bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; + status = "disabled"; + }; + + mcu_mcan1: can@4e10000 { + compatible = "bosch,m_can"; + reg = <0x00 0x4e18000 0x00 0x200>, + <0x00 0x4e10000 0x00 0x8000>; + reg-names = "m_can", "message_ram"; + power-domains = <&k3_pds 189 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 189 6>, <&k3_clks 189 1>; + clock-names = "hclk", "cclk"; + bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; + status = "disabled"; + }; };