Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp202729rwe; Fri, 14 Apr 2023 01:08:54 -0700 (PDT) X-Google-Smtp-Source: AKy350aHuCr6LGn5jkMcNuazX/AXuDXYGqd7naCwvQSmMbfew2+srpVgpBMJ5zvHB7N25XULxeN0 X-Received: by 2002:a05:6a00:1a93:b0:638:d5a7:acc6 with SMTP id e19-20020a056a001a9300b00638d5a7acc6mr7640801pfv.9.1681459734217; Fri, 14 Apr 2023 01:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681459734; cv=none; d=google.com; s=arc-20160816; b=GyQXpPGOFViOS4ILzup2S0COeC2OsQdFSySIWOjsU9inKKrEdUADVuv7xGVwzOmfTd Vwu1alJQiY+6Nu6ZNaKCwQEuGohYlLwyUZHMRGRu4qo6YJDr4unzh6A9VwkD8bTYYnDe jYtLumyYPrN/HM80WTRRa9S0tFWaEzT2RJXQFREtIazmDcYFqtoU9Z0JJPlI/OcbfDfP aBwctnWd5QoGQLCp9ieE3BrQV/4HavIQxpAuSV3oaDjCLCaSUyqHlpNDGo8fABIOU+CS mx5jplpvd5I322wmCTcCLULYv5iBGG1zichi59F4qKgrfBkwjA4M6Z+XVI0s2v48oLVj djQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xje8D9sa7nkYBBtoZ60rXI27tiHKZTyz3H3ko6glfWs=; b=IDr52+A4JT/OgzNRjcKpGeIvArY49cjQ4SRms9DgX8NPLSli13QtWoTINhqBdMOklt ocsIJbNfSzGKLMChHXvyYe5HtRQYFrsey44je3iWPTvA3+t8zge70/D3RPuPsSre/e2L yY2vEJxBa78LQ/uniuK5dip6BNIjfYit6IYlWIoAinDxZORzrpRf6W76lIbwIlJGnIso 1HpwI4mzaz7OWGrD2qPilCy+bNiLFqJiKkWew97Yyg+UQy1t7+NtD6yf9mNOeQ7cs4LG yoMnluD5hEzph1C6Udx9hzJsTI+PSz0H1730m3um0xIHZ900OeHU3REZLrBbgd6Fy0ij 814Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SNzhq9yJ; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4-20020a056a00004400b0063b6e3e5a12si402596pfk.169.2023.04.14.01.08.43; Fri, 14 Apr 2023 01:08:54 -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=@linaro.org header.s=google header.b=SNzhq9yJ; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229890AbjDNIBm (ORCPT + 99 others); Fri, 14 Apr 2023 04:01:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjDNIBk (ORCPT ); Fri, 14 Apr 2023 04:01:40 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01B716A42 for ; Fri, 14 Apr 2023 01:01:39 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id rp27so6577364ejb.12 for ; Fri, 14 Apr 2023 01:01:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681459297; x=1684051297; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xje8D9sa7nkYBBtoZ60rXI27tiHKZTyz3H3ko6glfWs=; b=SNzhq9yJd9kEmkttqZyGlJGyME1zSO4jRes4LYWjxfYh998ByIMuuMTsRUC891pvxw 5AbB3DkE+/EOqA2BNkBBk8hUjWFZ/fsDHsISSnQjmlvPXuU+ZIjNOAu5lpXAwpfJfTEA yO5q6VoErPQyjATCG48//JjePz1qHYt2qjl4TzMF9ZlJVwNabncUPeq+tecx6EDJUKf1 SmJBsa6PEJixtGxDfajFmw+YdCKCVQXPhhvgr9ARk8zGh5bbnAwaR8WlRfTPIIMRv581 skHZEIVneM3xKjRXv+yhfg+Kzzu/zgEY9CydYX7AmUffCqlQBHKN8c655e6lzeHPdX4E d/Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681459297; x=1684051297; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xje8D9sa7nkYBBtoZ60rXI27tiHKZTyz3H3ko6glfWs=; b=XBzqSlCYhF++C+gZkoim5iOE3bpYHt8XOHsMto5hyDMZ+fMUSzjiS7LMWI33iMrlKF TAti2q2cVFx9AS+K3ZdYTaHDRMhG96CyhXsDfq5DFxV2yyHmcBdaROVl8fcJoEbjvrOX EJeGOJD75u/obTbXYajU5Q4LnXI0u0Oj6srXZ3iRnLe66NtZ/vJSwrA9/cnDLeao3qJR MiOvVDJ/CUfrT166wStSoZ4QnHiRMZR8BuTktDY+/j45YF8zCrJGzceuANEQRXwdulB2 fHWKmjeTLjbbFd+gooRWY1u6G7sDQTIj1KufEscumSrXVGqDJbBz9Nu1RRnuhXw9d+Oh 0mzg== X-Gm-Message-State: AAQBX9ecqCrOd9wN8ic4GE09gOjlvE2ntq6EzGTBCxnbwVBgJ1VNMl56 yvWPk1Vfkb18RrfQIQJ7+nrbQw== X-Received: by 2002:a17:906:4d1:b0:94e:8aeb:f8f3 with SMTP id g17-20020a17090604d100b0094e8aebf8f3mr5886098eja.57.1681459297579; Fri, 14 Apr 2023 01:01:37 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:8a60:6b0f:105a:eefb? ([2a02:810d:15c0:828:8a60:6b0f:105a:eefb]) by smtp.gmail.com with ESMTPSA id gj19-20020a170906e11300b0094a83007249sm2129846ejb.16.2023.04.14.01.01.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Apr 2023 01:01:37 -0700 (PDT) Message-ID: <9ab56180-328e-1416-56cb-bbf71af0c26d@linaro.org> Date: Fri, 14 Apr 2023 10:01:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [RFC PATCH 4/5] arm64: dts: ti: Enable multiple MCAN for AM62x in MCU MCAN overlay Content-Language: en-US To: Judith Mendez , Chandrasekar Ramakrishnan Cc: Nishanth Menon , Vignesh Raghavendra , Andrew Davis , Wolfgang Grandegger , Marc Kleine-Budde , Rob Herring , Krzysztof Kozlowski , linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, Schuyler Patton References: <20230413223051.24455-1-jm@ti.com> <20230413223051.24455-5-jm@ti.com> From: Krzysztof Kozlowski In-Reply-To: <20230413223051.24455-5-jm@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On 14/04/2023 00:30, Judith Mendez wrote: > Enable two MCAN in MCU domain. AM62x does not have on-board CAN > transcievers, so instead of changing the DTB permanently, add > MCU MCAN nodes and transceiver nodes to a MCU MCAN overlay. > > If there are no hardware interrupts rounted to the GIC interrupt > controller for MCAN IP, A53 Linux will not receive hardware > interrupts. If an hrtimer is used to generate software interrupts, > the two required interrupt attributes in the MCAN node do not have > to be included. > > Signed-off-by: Judith Mendez > --- > arch/arm64/boot/dts/ti/Makefile | 2 +- > .../boot/dts/ti/k3-am625-sk-mcan-mcu.dtso | 75 +++++++++++++++++++ > 2 files changed, 76 insertions(+), 1 deletion(-) > create mode 100644 arch/arm64/boot/dts/ti/k3-am625-sk-mcan-mcu.dtso > > diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile > index abe15e76b614..c76be3888e4d 100644 > --- a/arch/arm64/boot/dts/ti/Makefile > +++ b/arch/arm64/boot/dts/ti/Makefile > @@ -9,7 +9,7 @@ > # alphabetically. > > # Boards with AM62x SoC > -k3-am625-sk-mcan-dtbs := k3-am625-sk.dtb k3-am625-sk-mcan-main.dtbo > +k3-am625-sk-mcan-dtbs := k3-am625-sk.dtb k3-am625-sk-mcan-main.dtbo k3-am625-sk-mcan-mcu.dtbo > dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay.dtb > dtb-$(CONFIG_ARCH_K3) += k3-am625-sk.dtb > dtb-$(CONFIG_ARCH_K3) += k3-am625-sk-mcan.dtb > diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk-mcan-mcu.dtso b/arch/arm64/boot/dts/ti/k3-am625-sk-mcan-mcu.dtso > new file mode 100644 > index 000000000000..777705aea546 > --- /dev/null > +++ b/arch/arm64/boot/dts/ti/k3-am625-sk-mcan-mcu.dtso > @@ -0,0 +1,75 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/** > + * DT overlay for MCAN in MCU domain on AM625 SK > + * > + * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ > + */ > + > +/dts-v1/; > +/plugin/; > + > +#include > +#include > + > + > +&{/} { > + transceiver2: can-phy1 { > + compatible = "ti,tcan1042"; > + #phy-cells = <0>; > + max-bitrate = <5000000>; > + }; > + > + transceiver3: can-phy2 { > + compatible = "ti,tcan1042"; > + #phy-cells = <0>; > + max-bitrate = <5000000>; > + }; > +}; > + > +&mcu_pmx0 { > + mcu_mcan1_pins_default: mcu-mcan1-pins-default { > + pinctrl-single,pins = < > + AM62X_IOPAD(0x038, PIN_INPUT, 0) /* (B3) MCU_MCAN0_RX */ > + AM62X_IOPAD(0x034, PIN_OUTPUT, 0) /* (D6) MCU_MCAN0_TX */ > + >; > + }; > + > + mcu_mcan2_pins_default: mcu-mcan2-pins-default { > + pinctrl-single,pins = < > + AM62X_IOPAD(0x040, PIN_INPUT, 0) /* (D4) MCU_MCAN1_RX */ > + AM62X_IOPAD(0x03C, PIN_OUTPUT, 0) /* (E5) MCU_MCAN1_TX */ > + >; > + }; > +}; > + > +&cbass_mcu { > + mcu_mcan1: can@4e00000 { > + compatible = "bosch,m_can"; > + reg = <0x00 0x4e00000 0x00 0x8000>, > + <0x00 0x4e08000 0x00 0x200>; > + reg-names = "message_ram", "m_can"; > + 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>; > + pinctrl-names = "default"; > + pinctrl-0 = <&mcu_mcan1_pins_default>; > + phys = <&transceiver2>; > + status = "okay"; okay is by default. Why do you need it? Best regards, Krzysztof