Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1348563rwd; Sun, 14 May 2023 18:14:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6xf/5UkXh/37n/4t0Ubn4fwDqt5APKX+v+ApcS8j9qW60DOTh4TqhFEhfQFQ4eqxz/uJbH X-Received: by 2002:a05:6a00:218f:b0:64a:7723:fe04 with SMTP id h15-20020a056a00218f00b0064a7723fe04mr13330941pfi.4.1684113258603; Sun, 14 May 2023 18:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684113258; cv=none; d=google.com; s=arc-20160816; b=kqVNzugPt3RMTocTc67jVHzqQVUwDDTsDgKpzd0gcisu2oFG1Y6OZ8kdGDqSRxTVyX EWktwiEbTy9w365Dl0ncScC4lybNulFkUa8/y9M6Q6ECdyrX78Ise0ZGqZ5YYVrwyByA GM3wulIMFkyC0CT2Sf36YJECxHWeoZO30aOg3iywuOA7BvSQTd40SfBobD1RFZXjxwPh bPXTi++qkT2P7wCf/ha+y2OLUJ9FlgSJgQdLPpgzXQwJK60/kiDD3riEyYkQLAwW0TC5 HBFAbVoUNxwlIXonxIuBhYJBqaGVgjLAzMPmm8q7pIMXjd3Ad4aA2JMl70JNK8Y+ru8q RdCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gZac+DCpzXGAKOEof6ZiPXtXOywRL3TPBk2luwafhks=; b=Tluh6kxGfaiBfnX1P50ZiB5d7L+Rs0LXqyL8OMrbadA9eOQqggaICqLQDrP+/Haqll hEg9s+p76oLVuausuc2GF7bkjdCLG/NiZVUlXxSb1Qii8VOiS9FKd68IgSNVchzZBOOt XuP/f7D/GKd0SYzoOu0dDaPOqf3fgY+Eqgci0rD2oiHMJNdXwFSpLdCwDVx1864J6tOI 2qkcGHuOwSImMCd5uCOJlrKKke5Qr1c+J8/NUF9lSfXDsgmE1OWnkgvPNlUqqg9lquqg S5WEQs2F6+WfXhY99I4pioNP5beQdnPJflNdn5zjb2C5JjtnwVreNJMNK8ZiLpR8OmDM 55wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NazBCmbO; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9-20020aa79d09000000b0063bba133a6esi15687286pfp.4.2023.05.14.18.14.03; Sun, 14 May 2023 18:14:18 -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=@kernel.org header.s=k20201202 header.b=NazBCmbO; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232505AbjEOA5p (ORCPT + 99 others); Sun, 14 May 2023 20:57:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbjEOA5o (ORCPT ); Sun, 14 May 2023 20:57:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B04D810F1; Sun, 14 May 2023 17:57:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 44924618A8; Mon, 15 May 2023 00:57:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC775C433D2; Mon, 15 May 2023 00:57:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684112261; bh=ZlJ0oVkgI0zlprQ/KHy+1dFyoFMssfZ33Pdw+Ts3G5A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NazBCmbOxlej/wvIz8qbl8Vl8u1N4E+MVuDyllmzUCkJBHkRKtjOpeTrtuHS+9U6U sKkDVuCzNZ9wYbF1PU96UaKmk9B6bo8SdwABM/sT59ASkK2uw8dK9kr8l1G58RMkEq BOdUUGbcla9igZeBjsD52hXm405Vf+npEz1abrw2RHSlePy5WhVJw9/x2Fg1b+ODkw u/cp8GeQiFIpqKQDBwpe/MsAWOzSR5yxaUxck3cXDNDfkBzg9E+fY1DnGd0+hHj9vR VntNfymGXOFd9EypCsX5qoGw+BME3kmeqP+Qf21k+Qhda5ZXiklRQA075Z6zc2t5M3 qutCYEtL1P9yw== Date: Mon, 15 May 2023 08:57:30 +0800 From: Shawn Guo To: Frank Li Cc: imx@lists.linux.dev, Rob Herring , Krzysztof Kozlowski , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , open list , coresight@lists.linaro.org Subject: Re: [PATCH 1/1] arm64: dts: imx8mp: Add coresight trace components Message-ID: <20230515005730.GB727834@dragon> References: <20230505195151.1874071-1-Frank.Li@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230505195151.1874071-1-Frank.Li@nxp.com> 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_NONE,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 On Fri, May 05, 2023 at 03:51:51PM -0400, Frank Li wrote: > Add coresight trace components (ETM, ETF, ETB and Funnel). > > ┌───────┐ ┌───────┐ ┌───────┐ > │ CPU0 ├─►│ ETM0 ├─►│ │ > └───────┘ └───────┘ │ │ > │ │ > ┌───────┐ ┌───────┐ │ ATP │ > │ CPU1 ├─►│ ETM1 ├─►│ │ > └───────┘ └───────┘ │ │ > │ FUNNEL│ > ┌───────┐ ┌───────┐ │ │ > │ CPU2 ├─►│ ETM2 ├─►│ │ > └───────┘ └───────┘ │ │ ┌─────┐ ┌─────┐ > │ │ │ │ │ │ > ┌───────┐ ┌───────┐ │ │ │ M7 │ │ DSP │ > │ CPU3 ├─►│ ETM3 ├─►│ │ │ │ │ │ > └───────┘ └───────┘ └───┬───┘ └──┬──┘ └──┬──┘ AXI > │ │ │ ▲ > ▼ ▼ ▼ │ > ┌───────────────────────────┐ ┌─────┐ ┌─┴──┐ > │ ATP FUNNEL ├──►│ETF ├─► │ETR │ > └───────────────────────────┘ └─────┘ └────┘ > > Signed-off-by: Frank Li > --- > arch/arm64/boot/dts/freescale/imx8mp.dtsi | 179 ++++++++++++++++++++++ > 1 file changed, 179 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > index a19224fe1a6a..0fa74477b9e1 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > @@ -304,6 +304,185 @@ soc: soc@0 { > nvmem-cells = <&imx8mp_uid>; > nvmem-cell-names = "soc_unique_id"; > > + etm0: etm@28440000 { > + compatible = "arm,coresight-etm4x", "arm,primecell"; > + reg = <0x28440000 0x10000>; > + arm,primecell-periphid = <0xbb95d>; > + cpu = <&A53_0>; > + clocks = <&clk IMX8MP_CLK_MAIN_AXI>; > + clock-names = "apb_pclk"; Have a newline between properties and child node. > + out-ports { > + port { > + etm0_out_port: endpoint { > + remote-endpoint = <&ca_funnel_in_port0>; > + }; > + }; > + }; > + }; > + > + etm1: etm@28540000 { > + compatible = "arm,coresight-etm4x", "arm,primecell"; > + reg = <0x28540000 0x10000>; > + arm,primecell-periphid = <0xbb95d>; > + cpu = <&A53_1>; > + clocks = <&clk IMX8MP_CLK_MAIN_AXI>; > + clock-names = "apb_pclk"; > + out-ports { > + port { > + etm1_out_port: endpoint { > + remote-endpoint = <&ca_funnel_in_port1>; > + }; > + }; > + }; > + }; > + > + etm2: etm@28640000 { > + compatible = "arm,coresight-etm4x", "arm,primecell"; > + reg = <0x28640000 0x10000>; > + arm,primecell-periphid = <0xbb95d>; > + cpu = <&A53_2>; > + clocks = <&clk IMX8MP_CLK_MAIN_AXI>; > + clock-names = "apb_pclk"; > + out-ports { > + port { > + etm2_out_port: endpoint { > + remote-endpoint = <&ca_funnel_in_port2>; > + }; > + }; > + }; > + }; > + > + etm3: etm@28740000 { > + compatible = "arm,coresight-etm4x", "arm,primecell"; > + reg = <0x28740000 0x10000>; > + arm,primecell-periphid = <0xbb95d>; > + cpu = <&A53_3>; > + clocks = <&clk IMX8MP_CLK_MAIN_AXI>; > + clock-names = "apb_pclk"; > + out-ports { > + port { > + etm3_out_port: endpoint { > + remote-endpoint = <&ca_funnel_in_port3>; > + }; > + }; > + }; > + }; > + > + funnel { > + /* > + * non-configurable funnel don't show up on the AMBA > + * bus. As such no need to add "arm,primecell". > + */ > + compatible = "arm,coresight-static-funnel"; Ditto > + in-ports { > + #address-cells = <1>; > + #size-cells = <0>; Ditto > + port@0 { > + reg = <0>; Ditto > + ca_funnel_in_port0: endpoint { > + remote-endpoint = <&etm0_out_port>; > + }; > + }; > + port@1 { Have a newline between nodes. Shawn > + reg = <1>; > + ca_funnel_in_port1: endpoint { > + remote-endpoint = <&etm1_out_port>; > + }; > + }; > + port@2 { > + reg = <2>; > + ca_funnel_in_port2: endpoint { > + remote-endpoint = <&etm2_out_port>; > + }; > + }; > + port@3 { > + reg = <3>; > + ca_funnel_in_port3: endpoint { > + remote-endpoint = <&etm3_out_port>; > + }; > + }; > + }; > + out-ports { > + port { > + ca_funnel_out_port0: endpoint { > + remote-endpoint = <&hugo_funnel_in_port0>; > + }; > + }; > + }; > + }; > + > + funnel@28c03000 { > + compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; > + reg = <0x28c03000 0x1000>; > + clocks = <&clk IMX8MP_CLK_MAIN_AXI>; > + clock-names = "apb_pclk"; > + in-ports { > + #address-cells = <1>; > + #size-cells = <0>; > + port@0 { > + reg = <0>; > + hugo_funnel_in_port0: endpoint { > + remote-endpoint = <&ca_funnel_out_port0>; > + }; > + }; > + port@1 { > + reg = <1>; > + hugo_funnel_in_port1: endpoint { > + /* M7 input */ > + }; > + }; > + port@2 { > + reg = <2>; > + hugo_funnel_in_port2: endpoint { > + /* DSP input */ > + }; > + }; > + /* the other input ports are not connect to anything */ > + }; > + out-ports { > + port { > + hugo_funnel_out_port0: endpoint { > + remote-endpoint = <&etf_in_port>; > + }; > + }; > + }; > + }; > + > + etf@28c04000 { > + compatible = "arm,coresight-tmc", "arm,primecell"; > + reg = <0x28c04000 0x1000>; > + clocks = <&clk IMX8MP_CLK_MAIN_AXI>; > + clock-names = "apb_pclk"; > + in-ports { > + port { > + etf_in_port: endpoint { > + remote-endpoint = <&hugo_funnel_out_port0>; > + }; > + }; > + }; > + out-ports { > + port { > + etf_out_port: endpoint { > + remote-endpoint = <&etr_in_port>; > + }; > + }; > + }; > + }; > + > + etr@28c06000 { > + compatible = "arm,coresight-tmc", "arm,primecell"; > + reg = <0x28c06000 0x1000>; > + clocks = <&clk IMX8MP_CLK_MAIN_AXI>; > + clock-names = "apb_pclk"; > + in-ports { > + port { > + etr_in_port: endpoint { > + remote-endpoint = <&etf_out_port>; > + }; > + }; > + }; > + }; > + > aips1: bus@30000000 { > compatible = "fsl,aips-bus", "simple-bus"; > reg = <0x30000000 0x400000>; > -- > 2.34.1 >