Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3176116rwo; Mon, 24 Jul 2023 07:21:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlFkhTTFYmwMlR2wOckZFnsk27yUigATaFrVVQ+u3Scjqd/KkksHlKbgP4c5Q0PJMcG0iqYk X-Received: by 2002:a05:6e02:216a:b0:348:797d:a94e with SMTP id s10-20020a056e02216a00b00348797da94emr56080ilv.2.1690208482778; Mon, 24 Jul 2023 07:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690208482; cv=none; d=google.com; s=arc-20160816; b=0GjUZ6lm+aSehoni86GJgBnsrOJ5x8U+dNagAL559o/oCFdn+e852lqSvWgs4OIAsS mNySIe1idvoiH/BHgroX75mHPBwggl9gvhQUgGstqHsXJHo7Z06dxdhPPVbdp+0k5ACr v8tqZUhs1mxlRloHtPV2uLRPl5m53RijfdQo+uvmkOCfBRhDD+OgaUobwHDnepiOMG1E nO0Z6oZ3sz5bAuou29P1FzioD1/VrUcp89tlrYgQBa9REGImOpC+hwuVGN8UmMa1mugV fIPUijxGKGqo1isYhvtWakaQy3t6nftiwLSrG/rDj+EWcbEs0hw5KWYju1XMnV5jq3X9 wGxg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=27S+sBGMqmWdvFNuFYImPGKXWdNQAAYtI/QR27FCENY=; fh=8OIMBOoye7J3AdCt4MioAbI8FuoVC8+qPA2XvGEVBLI=; b=UVKyto0o+T5MxLb+tD475BL6a8YHYIXM6LWvt0m94xfmmVPQ1hUvX2u+tw76m3pJSY CkNqK8QF0xEWbwjDxwox7mzYruxotWO1qs42hSC1irneTQzlQHs7dOYCd5f4QxjsND+a faMB1Dtd0TVTxjjPoHt/ML/EnYLV62IQLQm4yhP4F8vh0f/9f/vcR2ZnnjQjLRFQ99GM cXPT+Ua3Rqp79JZdorclPKoFmQ9MUhZYZ+Px1w7l4WLNq3guqr+gqvgyJeSSHg8Fc6Gr 1nifUQSi2679AmBP7+EVtTfmh3e3M5+DSCNq7SiANLCHgoMsJaOaIxYiQoVnafIr7Y4s lOsw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu2-20020a632942000000b0054ff53233f2si8529986pgb.567.2023.07.24.07.21.09; Mon, 24 Jul 2023 07:21:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230352AbjGXNju (ORCPT + 99 others); Mon, 24 Jul 2023 09:39:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231793AbjGXNjd (ORCPT ); Mon, 24 Jul 2023 09:39:33 -0400 Received: from mail11.truemail.it (mail11.truemail.it [IPv6:2001:4b7e:0:8::81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41A6D449A; Mon, 24 Jul 2023 06:37:31 -0700 (PDT) Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 31577209B1; Mon, 24 Jul 2023 15:36:36 +0200 (CEST) From: Francesco Dolcini To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Judith Mendez , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Francesco Dolcini Subject: [PATCH v1 1/2] arm64: dts: ti: k3-am62: Add MCU MCAN nodes Date: Mon, 24 Jul 2023 15:36:11 +0200 Message-Id: <20230724133612.37366-2-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230724133612.37366-1-francesco@dolcini.it> References: <20230724133612.37366-1-francesco@dolcini.it> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 From: Judith Mendez On AM62x 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] so now add MCU MCAN nodes to the MCU dtsi for the Cortex A53. [1] b382380c0d2d ("can: m_can: Add hrtimer to generate software interrupt") [2] bb410c03b999 ("dt-bindings: net: can: Remove interrupt properties for MCAN") Signed-off-by: Judith Mendez [fd: fixed labels to match datasheet numbering, revised commit message, fixed reg/reg-names order] Signed-off-by: Francesco Dolcini --- arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi b/arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi index 19fc38157d94..fed50666d95b 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi @@ -147,4 +147,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"; + }; }; -- 2.25.1