From patchwork Mon Jul 29 11:32:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MD Danish Anwar X-Patchwork-Id: 13744757 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EA61EC3DA4A for ; Mon, 29 Jul 2024 11:33:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3tH31x9G6ABuIo6tdJFVlBKDn1OeVXxNSanUJ9qJ7BI=; b=iPMU7THAM1WKSSbINMJGFBbD1b bptRLOXLJ5JwWsQp32AFhVrV8vX8sSIUt98xMwtzA+LHbLRBaQUX2hYa9pE11TJQHVJFET/8DqnhD eLgKlJwoPEYQ2hEMlSUw1Qn+5Ikx8uCa05eBkacZfduUdpwErW7eNmEg0tcuP4gn4Yv8QlbQHsfS3 7dSVJlCjw819PshwVuuzmaMiNQ3lJfDYEOIwPUogKMQUD45Czg/hntuI7gjUMtJWm9CMRt9wtzVh2 6gr5Vt4fq0pTZKfKunENx/LJTtgt04gp4WMJVB4Tqke1hs0UJQzj5kn5H/8mTPu4uonUnFEPEDkPH ekXzCSxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYOcn-0000000B4yI-2gP6; Mon, 29 Jul 2024 11:33:09 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYOcL-0000000B4po-3neJ for linux-arm-kernel@lists.infradead.org; Mon, 29 Jul 2024 11:32:43 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 46TBWWcw074654; Mon, 29 Jul 2024 06:32:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1722252752; bh=3tH31x9G6ABuIo6tdJFVlBKDn1OeVXxNSanUJ9qJ7BI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=P+t067lkvuxA/1IFwL0itGNVKUZ6Mah+T1Sgde6W+nO/+9h8P2k2J9bLADZn6d4Mz je1F9fPqWZH9IF14ENaxacoxSeYLB5sutirWlqovy1T5H6K2P+1P3feVwsRCJnSjua B00L/GLMe+jxO6imA4popnSXDweSK5WEpRsJE5GY= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 46TBWWvj008043 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 29 Jul 2024 06:32:32 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 29 Jul 2024 06:32:32 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE113.ent.ti.com (157.170.170.24) 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, 29 Jul 2024 06:32:31 -0500 Received: from fllv0122.itg.ti.com (fllv0122.itg.ti.com [10.247.120.72]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 46TBWVIQ012862; Mon, 29 Jul 2024 06:32:31 -0500 Received: from localhost (danish-tpc.dhcp.ti.com [10.24.69.25]) by fllv0122.itg.ti.com (8.14.7/8.14.7) with ESMTP id 46TBWVQr013177; Mon, 29 Jul 2024 06:32:31 -0500 From: MD Danish Anwar To: Suman Anna , Sai Krishna , Jan Kiszka , Dan Carpenter , Diogo Ivo , Heiner Kallweit , Kory Maincent , Simon Horman , Andrew Lunn , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Santosh Shilimkar , Nishanth Menon , Vignesh Raghavendra CC: , , , , Roger Quadros , MD Danish Anwar , Tero Kristo , , Krzysztof Kozlowski Subject: [PATCH v4 1/6] dt-bindings: soc: ti: pruss: Add documentation for PA_STATS support Date: Mon, 29 Jul 2024 17:02:21 +0530 Message-ID: <20240729113226.2905928-2-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729113226.2905928-1-danishanwar@ti.com> References: <20240729113226.2905928-1-danishanwar@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240729_043242_084899_2B5830ED X-CRM114-Status: GOOD ( 11.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add documentation for pa-stats node which is syscon regmap for PA_STATS registers. This will be used to dump statistics maintained by ICSSG firmware. Reviewed-by: Krzysztof Kozlowski Signed-off-by: MD Danish Anwar Reviewed-by: tags should come after Author's Signed-off-by: Reviewed-by: Roger Quadros Acked-by: Nishanth Menon --- .../devicetree/bindings/soc/ti/ti,pruss.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml b/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml index c402cb2928e8..3cb1471cc6b6 100644 --- a/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml +++ b/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml @@ -278,6 +278,26 @@ patternProperties: additionalProperties: false + ^pa-stats@[a-f0-9]+$: + description: | + PA-STATS sub-module represented as a SysCon. PA_STATS is a set of + registers where different statistics related to ICSSG, are dumped by + ICSSG firmware. This syscon sub-module will help the device to + access/read/write those statistics. + + type: object + + additionalProperties: false + + properties: + compatible: + items: + - const: ti,pruss-pa-st + - const: syscon + + reg: + maxItems: 1 + interrupt-controller@[a-f0-9]+$: description: | PRUSS INTC Node. Each PRUSS has a single interrupt controller instance From patchwork Mon Jul 29 11:32:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MD Danish Anwar X-Patchwork-Id: 13744760 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 43417C3DA4A for ; Mon, 29 Jul 2024 11:34:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=IUzAFkY6u3MjWxbKEgObp2riV3uhu8ZVpbjNt4vFIVM=; b=aEgqHJLsdEMxAeh2ATPEACqPnd CBACdp91DTnj3iVcP/tLvjtq/xhRwEGLMBVY1aailfvFwxed2hmbfltZMpJd9CWej41WiatoiytvM 9/VnQ3WtKY3zcfSr8ey2W98m35mGBgqNRokK13HrVGL1fdMvFSlOAoWy0eOzyrkH740x9olRS7Dib nVbofVpvJtQKIfBWCJpO1jrBKx6AMwnZ0R+TIhQDQa8JW81MrqnucYSAcWgsbUMpk2Hx4JRu1w7n2 LfGsQ0HeYCrI54O/Lg7pXqMMUxvwU630pnn8n2YRwgAZs+A6CaUI5Z3pFpfWqjjn0JtPZM2I/uO/z RSLUQ9mw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYOe1-0000000B5RA-3Q6p; Mon, 29 Jul 2024 11:34:25 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYOcN-0000000B4rH-1ysR for linux-arm-kernel@lists.infradead.org; Mon, 29 Jul 2024 11:32:45 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 46TBWYLt061585; Mon, 29 Jul 2024 06:32:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1722252754; bh=IUzAFkY6u3MjWxbKEgObp2riV3uhu8ZVpbjNt4vFIVM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=cmZjKnVKatKOWpj8RIuE3wOCW2WH8ZmPSNLz2gWQTM2glzaPDUk4SSZdB2azu+4g2 FD3zaRTFoogqpl2+GD+iY7T+XrbW9WEXs+u6rFaoHOl7O0cTgZWriaCF4eIg9LA4lU 50as4Y3ysLXfack0wsMaXt1DANFPRTM5e6R12G7c= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 46TBWYTX115437 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 29 Jul 2024 06:32:34 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 29 Jul 2024 06:32:34 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE105.ent.ti.com (10.64.6.26) 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, 29 Jul 2024 06:32:34 -0500 Received: from fllv0122.itg.ti.com (fllv0122.itg.ti.com [10.247.120.72]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 46TBWXSs012896; Mon, 29 Jul 2024 06:32:34 -0500 Received: from localhost (danish-tpc.dhcp.ti.com [10.24.69.25]) by fllv0122.itg.ti.com (8.14.7/8.14.7) with ESMTP id 46TBWXQI013186; Mon, 29 Jul 2024 06:32:33 -0500 From: MD Danish Anwar To: Suman Anna , Sai Krishna , Jan Kiszka , Dan Carpenter , Diogo Ivo , Heiner Kallweit , Kory Maincent , Simon Horman , Andrew Lunn , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Santosh Shilimkar , Nishanth Menon , Vignesh Raghavendra CC: , , , , Roger Quadros , MD Danish Anwar , Tero Kristo , Subject: [DO NOT MERGE][PATCH v4 2/6] net: ti: icssg_prueth: Add support for PA Stats Date: Mon, 29 Jul 2024 17:02:22 +0530 Message-ID: <20240729113226.2905928-3-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729113226.2905928-1-danishanwar@ti.com> References: <20240729113226.2905928-1-danishanwar@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240729_043243_694781_7CA72BB2 X-CRM114-Status: GOOD ( 20.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for dumping PA stats registers Signed-off-by: MD Danish Anwar --- drivers/net/ethernet/ti/icssg/icssg_ethtool.c | 11 ++++++- drivers/net/ethernet/ti/icssg/icssg_prueth.c | 6 ++++ drivers/net/ethernet/ti/icssg/icssg_prueth.h | 5 ++- drivers/net/ethernet/ti/icssg/icssg_stats.c | 12 +++++-- drivers/net/ethernet/ti/icssg/icssg_stats.h | 32 +++++++++++++++++++ 5 files changed, 62 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/ti/icssg/icssg_ethtool.c b/drivers/net/ethernet/ti/icssg/icssg_ethtool.c index 5688f054cec5..713ce95d5baf 100644 --- a/drivers/net/ethernet/ti/icssg/icssg_ethtool.c +++ b/drivers/net/ethernet/ti/icssg/icssg_ethtool.c @@ -90,6 +90,12 @@ static void emac_get_strings(struct net_device *ndev, u32 stringset, u8 *data) p += ETH_GSTRING_LEN; } } + + for (i = 0; i < ICSSG_NUM_PA_STATS; i++) { + memcpy(p, icssg_all_pa_stats[i].name, ETH_GSTRING_LEN); + p += ETH_GSTRING_LEN; + } + break; default: break; @@ -100,13 +106,16 @@ static void emac_get_ethtool_stats(struct net_device *ndev, struct ethtool_stats *stats, u64 *data) { struct prueth_emac *emac = netdev_priv(ndev); - int i; + int i, j; emac_update_hardware_stats(emac); for (i = 0; i < ARRAY_SIZE(icssg_all_stats); i++) if (!icssg_all_stats[i].standard_stats) *(data++) = emac->stats[i]; + + for (j = 0; j < ICSSG_NUM_PA_STATS; j++) + *(data++) = emac->stats[i + j]; } static int emac_get_ts_info(struct net_device *ndev, diff --git a/drivers/net/ethernet/ti/icssg/icssg_prueth.c b/drivers/net/ethernet/ti/icssg/icssg_prueth.c index 3e51b3a9b0a5..04bf7f1e14ff 100644 --- a/drivers/net/ethernet/ti/icssg/icssg_prueth.c +++ b/drivers/net/ethernet/ti/icssg/icssg_prueth.c @@ -1181,6 +1181,12 @@ static int prueth_probe(struct platform_device *pdev) return -ENODEV; } + prueth->pa_stats = syscon_regmap_lookup_by_phandle(np, "ti,pa-stats"); + if (IS_ERR(prueth->pa_stats)) { + dev_err(dev, "couldn't get ti,pa-stats syscon regmap\n"); + return -ENODEV; + } + if (eth0_node) { ret = prueth_get_cores(prueth, ICSS_SLICE0, false); if (ret) diff --git a/drivers/net/ethernet/ti/icssg/icssg_prueth.h b/drivers/net/ethernet/ti/icssg/icssg_prueth.h index f678d656a3ed..ac2291d22c42 100644 --- a/drivers/net/ethernet/ti/icssg/icssg_prueth.h +++ b/drivers/net/ethernet/ti/icssg/icssg_prueth.h @@ -50,8 +50,10 @@ #define ICSSG_MAX_RFLOWS 8 /* per slice */ +#define ICSSG_NUM_PA_STATS 4 +#define ICSSG_NUM_MII_G_RT_STATS 60 /* Number of ICSSG related stats */ -#define ICSSG_NUM_STATS 60 +#define ICSSG_NUM_STATS (ICSSG_NUM_MII_G_RT_STATS + ICSSG_NUM_PA_STATS) #define ICSSG_NUM_STANDARD_STATS 31 #define ICSSG_NUM_ETHTOOL_STATS (ICSSG_NUM_STATS - ICSSG_NUM_STANDARD_STATS) @@ -263,6 +265,7 @@ struct prueth { struct net_device *registered_netdevs[PRUETH_NUM_MACS]; struct regmap *miig_rt; struct regmap *mii_rt; + struct regmap *pa_stats; enum pruss_pru_id pru_id[PRUSS_NUM_PRUS]; struct platform_device *pdev; diff --git a/drivers/net/ethernet/ti/icssg/icssg_stats.c b/drivers/net/ethernet/ti/icssg/icssg_stats.c index 2fb150c13078..c3d081cad3ca 100644 --- a/drivers/net/ethernet/ti/icssg/icssg_stats.c +++ b/drivers/net/ethernet/ti/icssg/icssg_stats.c @@ -11,6 +11,7 @@ #define ICSSG_TX_PACKET_OFFSET 0xA0 #define ICSSG_TX_BYTE_OFFSET 0xEC +#define ICSSG_FW_STATS_BASE 0x0248 static u32 stats_base[] = { 0x54c, /* Slice 0 stats start */ 0xb18, /* Slice 1 stats start */ @@ -22,8 +23,8 @@ void emac_update_hardware_stats(struct prueth_emac *emac) int slice = prueth_emac_slice(emac); u32 base = stats_base[slice]; u32 tx_pkt_cnt = 0; - u32 val; - int i; + u32 val, reg; + int i, j; for (i = 0; i < ARRAY_SIZE(icssg_all_stats); i++) { regmap_read(prueth->miig_rt, @@ -40,6 +41,13 @@ void emac_update_hardware_stats(struct prueth_emac *emac) if (icssg_all_stats[i].offset == ICSSG_TX_BYTE_OFFSET) emac->stats[i] -= tx_pkt_cnt * 8; } + + for (j = 0; j < ICSSG_NUM_PA_STATS; j++) { + reg = ICSSG_FW_STATS_BASE + icssg_all_pa_stats[j].offset * + PRUETH_NUM_MACS + slice * sizeof(u32); + regmap_read(prueth->pa_stats, reg, &val); + emac->stats[i + j] += val; + } } void icssg_stats_work_handler(struct work_struct *work) diff --git a/drivers/net/ethernet/ti/icssg/icssg_stats.h b/drivers/net/ethernet/ti/icssg/icssg_stats.h index 999a4a91276c..e834316092c9 100644 --- a/drivers/net/ethernet/ti/icssg/icssg_stats.h +++ b/drivers/net/ethernet/ti/icssg/icssg_stats.h @@ -77,6 +77,20 @@ struct miig_stats_regs { u32 tx_bytes; }; +/** + * struct pa_stats_regs - ICSSG Firmware maintained PA Stats register + * @u32 fw_rx_cnt: Number of valid packets sent by Rx PRU to Host on PSI + * @u32 fw_tx_cnt: Number of valid packets copied by RTU0 to Tx queues + * @u32 fw_tx_pre_overflow: Host Egress Q (Pre-emptible) Overflow Counter + * @u32 fw_tx_exp_overflow: Host Egress Q (Express) Overflow Counter + */ +struct pa_stats_regs { + u32 fw_rx_cnt; + u32 fw_tx_cnt; + u32 fw_tx_pre_overflow; + u32 fw_tx_exp_overflow; +}; + #define ICSSG_STATS(field, stats_type) \ { \ #field, \ @@ -84,12 +98,23 @@ struct miig_stats_regs { stats_type \ } +#define ICSSG_PA_STATS(field) \ +{ \ + #field, \ + offsetof(struct pa_stats_regs, field), \ +} + struct icssg_stats { char name[ETH_GSTRING_LEN]; u32 offset; bool standard_stats; }; +struct icssg_pa_stats { + char name[ETH_GSTRING_LEN]; + u32 offset; +}; + static const struct icssg_stats icssg_all_stats[] = { /* Rx */ ICSSG_STATS(rx_packets, true), @@ -155,4 +180,11 @@ static const struct icssg_stats icssg_all_stats[] = { ICSSG_STATS(tx_bytes, true), }; +static const struct icssg_pa_stats icssg_all_pa_stats[] = { + ICSSG_PA_STATS(fw_rx_cnt), + ICSSG_PA_STATS(fw_tx_cnt), + ICSSG_PA_STATS(fw_tx_pre_overflow), + ICSSG_PA_STATS(fw_tx_exp_overflow), +}; + #endif /* __NET_TI_ICSSG_STATS_H */ From patchwork Mon Jul 29 11:32:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MD Danish Anwar X-Patchwork-Id: 13744759 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A4FBFC3DA4A for ; Mon, 29 Jul 2024 11:34:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SI7swaaG3GhebTcYRdpPTH+MrZjEiTmUuTjRNjggeDs=; b=bQfxhXbp/+Rno+QwSRXfEbnMbu 17/clxy6JhoCzFGkvDPAU+m4/G0VqfgwfmLEhqU4mf2eae9F5OHsHEdwh9rcDwQxnG9GH8A8CIeTl t7asg1KptAZVpuO9enxYb0FK7avXdxSmzQFuXjwb4o3F7Y4if07bFgo9awpqZ2pOvZKefzaKfCuev eLd+O2pncKL1iwYn0cs8eNg6PL6bDuowH4y7LK2vJSWneXPXtWFuvmc3lvsMIyG/QSnuPCHmSMNFC 3XJRijvVKBifiFuuVqR86PO8VdNhyGc8dhwdZrcCV6zNg8Y8mLIrdyJSV0WODTr6+eb1CH19bG1mY 95dE4G8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYOdc-0000000B5HL-46a4; Mon, 29 Jul 2024 11:34:00 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYOcN-0000000B4rQ-29eu for linux-arm-kernel@lists.infradead.org; Mon, 29 Jul 2024 11:32:45 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 46TBWaOu074666; Mon, 29 Jul 2024 06:32:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1722252756; bh=SI7swaaG3GhebTcYRdpPTH+MrZjEiTmUuTjRNjggeDs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=pVoHHJWTpEfMolwhbUJH9FfIgGKOCA8WZHBz5RYx6Hhns3GZ7h9U6IVEUquPXP28h UfSVry0xhyd8WmeVXja9M/VPeMSAex0OQEpVrpPDZ9ifO5cyEyai/DKN3/SWgfIb6Y bH6fCXnE/DFWiPWDL5T3ywT/aI5FpP1FvEHy2cxA= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 46TBWajh092751 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 29 Jul 2024 06:32:36 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 29 Jul 2024 06:32:36 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE106.ent.ti.com (10.64.6.27) 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, 29 Jul 2024 06:32:36 -0500 Received: from fllv0122.itg.ti.com (fllv0122.itg.ti.com [10.247.120.72]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 46TBWavA069108; Mon, 29 Jul 2024 06:32:36 -0500 Received: from localhost (danish-tpc.dhcp.ti.com [10.24.69.25]) by fllv0122.itg.ti.com (8.14.7/8.14.7) with ESMTP id 46TBWZs7013197; Mon, 29 Jul 2024 06:32:35 -0500 From: MD Danish Anwar To: Suman Anna , Sai Krishna , Jan Kiszka , Dan Carpenter , Diogo Ivo , Heiner Kallweit , Kory Maincent , Simon Horman , Andrew Lunn , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Santosh Shilimkar , Nishanth Menon , Vignesh Raghavendra CC: , , , , Roger Quadros , MD Danish Anwar , Tero Kristo , Subject: [DO NOT MERGE][PATCH v4 3/6] arm64: dts: ti: k3-am65-main: Add ti,pruss-pa-st node Date: Mon, 29 Jul 2024 17:02:23 +0530 Message-ID: <20240729113226.2905928-4-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729113226.2905928-1-danishanwar@ti.com> References: <20240729113226.2905928-1-danishanwar@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240729_043243_710168_94E30E18 X-CRM114-Status: UNSURE ( 9.78 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add pa-stats nodes to k3-am65-main.dtsi for all ICSSG instances. This is needed to dump IET related statistics for ICSSG Driver. Signed-off-by: MD Danish Anwar Reviewed-by: Roger Quadros Signed-off-by: Vignesh Raghavendra --- arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi index 1af3dedde1f6..e681b74db235 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi @@ -1159,6 +1159,11 @@ icssg0_mii_g_rt: mii-g-rt@33000 { reg = <0x33000 0x1000>; }; + icssg0_pa_stats: pa-stats@2c000 { + compatible = "ti,pruss-pa-st", "syscon"; + reg = <0x2c000 0x1000>; + }; + icssg0_intc: interrupt-controller@20000 { compatible = "ti,icssg-intc"; reg = <0x20000 0x2000>; @@ -1325,6 +1330,11 @@ icssg1_mii_g_rt: mii-g-rt@33000 { reg = <0x33000 0x1000>; }; + icssg1_pa_stats: pa-stats@2c000 { + compatible = "ti,pruss-pa-st", "syscon"; + reg = <0x2c000 0x1000>; + }; + icssg1_intc: interrupt-controller@20000 { compatible = "ti,icssg-intc"; reg = <0x20000 0x2000>; @@ -1491,6 +1501,11 @@ icssg2_mii_g_rt: mii-g-rt@33000 { reg = <0x33000 0x1000>; }; + icssg2_pa_stats: pa-stats@2c000 { + compatible = "ti,pruss-pa-st", "syscon"; + reg = <0x2c000 0x1000>; + }; + icssg2_intc: interrupt-controller@20000 { compatible = "ti,icssg-intc"; reg = <0x20000 0x2000>; From patchwork Mon Jul 29 11:32:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MD Danish Anwar X-Patchwork-Id: 13744761 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2BD9BC3DA4A for ; Mon, 29 Jul 2024 11:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zNQUWNO1O+y+zU26vfY0vvYw+WPjnZovMlObUq3Vups=; b=rhezgfXIPPHVuEfooZ4WIYFwUk ABQQmZeN5lgjwaO8vNFI2YATdeD+H/ipPCyr90lMR/ndvRwvBG6EMpxBkRbipWo394M340vVDbKEa rR7IH/vJOmDpzNN0bbcC3tUtSYhqx49qlYD2x2JaW81f1AergsnpsuCaUZHOYAp4R9CL20yvyqZCq e2v4h/WrLl9ZURCGyHriODer4vbtFuvrrlM9z83BKkWjkjY0t1kJQyrCDdFonVUEd886vxjh2ArjD 3mQTGqjB3UsIdD4txZsl6acWJrLRIhqWq44NWQLUd/xHvGoGXuLaN7LDJTw9A6vgRhj8MnCDKMJMz QR+zqSUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYOeQ-0000000B5bF-0rp7; Mon, 29 Jul 2024 11:34:50 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYOcR-0000000B4t5-0PKi for linux-arm-kernel@lists.infradead.org; Mon, 29 Jul 2024 11:32:48 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 46TBWccp061595; Mon, 29 Jul 2024 06:32:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1722252758; bh=zNQUWNO1O+y+zU26vfY0vvYw+WPjnZovMlObUq3Vups=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=hRB02+o52/8DhYvRCaPS6+RLGFwt3PNxQhbC46JdIaKL3InUaSPy0qKZJTvbi9Nzk 7RLcLkISm3gk+K1YXPuQfO47XVpb/2jXlwj6+FBMddGyMmZxnhLs4F46ifx1WxIv5j AFDKTMqrCmnfUVdxwd3tf5HhbDMBVLEJIrFFceCE= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 46TBWcBt115463 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 29 Jul 2024 06:32:38 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 29 Jul 2024 06:32:38 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE105.ent.ti.com (10.64.6.26) 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, 29 Jul 2024 06:32:38 -0500 Received: from fllv0122.itg.ti.com (fllv0122.itg.ti.com [10.247.120.72]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 46TBWcva069134; Mon, 29 Jul 2024 06:32:38 -0500 Received: from localhost (danish-tpc.dhcp.ti.com [10.24.69.25]) by fllv0122.itg.ti.com (8.14.7/8.14.7) with ESMTP id 46TBWbSM013202; Mon, 29 Jul 2024 06:32:37 -0500 From: MD Danish Anwar To: Suman Anna , Sai Krishna , Jan Kiszka , Dan Carpenter , Diogo Ivo , Heiner Kallweit , Kory Maincent , Simon Horman , Andrew Lunn , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Santosh Shilimkar , Nishanth Menon , Vignesh Raghavendra CC: , , , , Roger Quadros , MD Danish Anwar , Tero Kristo , Subject: [DO NOT MERGE][PATCH v4 4/6] arm64: dts: ti: k3-am654-icssg2: Add ti,pa-stats property Date: Mon, 29 Jul 2024 17:02:24 +0530 Message-ID: <20240729113226.2905928-5-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729113226.2905928-1-danishanwar@ti.com> References: <20240729113226.2905928-1-danishanwar@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240729_043247_248349_40038A76 X-CRM114-Status: GOOD ( 10.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add ti,pa-stats phandles to AM65x device trees. This is a phandle to PA_STATS syscon regmap and will be used to dump IET related statistics for ICSSG Driver Signed-off-by: MD Danish Anwar --- arch/arm64/boot/dts/ti/k3-am654-icssg2.dtso | 1 + arch/arm64/boot/dts/ti/k3-am654-idk.dtso | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am654-icssg2.dtso b/arch/arm64/boot/dts/ti/k3-am654-icssg2.dtso index 0a6e75265ba9..66bb0b913d49 100644 --- a/arch/arm64/boot/dts/ti/k3-am654-icssg2.dtso +++ b/arch/arm64/boot/dts/ti/k3-am654-icssg2.dtso @@ -41,6 +41,7 @@ icssg2_eth: icssg2-eth { ti,mii-g-rt = <&icssg2_mii_g_rt>; ti,mii-rt = <&icssg2_mii_rt>; + ti,pa-stats = <&icssg2_pa_stats>; ti,iep = <&icssg2_iep0>, <&icssg2_iep1>; interrupt-parent = <&icssg2_intc>; diff --git a/arch/arm64/boot/dts/ti/k3-am654-idk.dtso b/arch/arm64/boot/dts/ti/k3-am654-idk.dtso index 8bdb87fcbde0..e548f1c7991a 100644 --- a/arch/arm64/boot/dts/ti/k3-am654-idk.dtso +++ b/arch/arm64/boot/dts/ti/k3-am654-idk.dtso @@ -42,6 +42,7 @@ icssg0_eth: icssg0-eth { ti,mii-g-rt = <&icssg0_mii_g_rt>; ti,mii-rt = <&icssg0_mii_rt>; + ti,pa-stats = <&icssg0_pa_stats>; ti,iep = <&icssg0_iep0>, <&icssg0_iep1>; interrupt-parent = <&icssg0_intc>; @@ -110,6 +111,7 @@ icssg1_eth: icssg1-eth { ti,mii-g-rt = <&icssg1_mii_g_rt>; ti,mii-rt = <&icssg1_mii_rt>; + ti,pa-stats = <&icssg1_pa_stats>; ti,iep = <&icssg1_iep0>, <&icssg1_iep1>; interrupt-parent = <&icssg1_intc>; From patchwork Mon Jul 29 11:32:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MD Danish Anwar X-Patchwork-Id: 13744762 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BD52AC3DA4A for ; Mon, 29 Jul 2024 11:35:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=d4zZIJ/gkQccbtOD7Sjovr8yOnWQC2S7b6K7C9dFyDQ=; b=2QrYIxtCugNdWkQX5zXXUmWCeA NCiPjkP1/qTVXSFnH17kWXBFq7+SQ63qjOpu4MeeMGkz/XYewWOu7uYNypY9hb1TsCTKULnExC+jn i9QZGayEdHaNwfEL0TUIohaI60DOoa42RC5YBVAJ4pJmvSdoiYdZw7WE2xMYk4+AFcmr2D5Ket9MN mm7VF/TR8JeCdfr0fTQRJ8PbrzGqaC0x5XL3QeK2ugnhKqVwUnqq03B32yQTsPrapBE+iYrTs6HiX 639Rt+fc9O9ko+WU51iaqYdWwr/TuMthR6DU6xiRJPO85PxmjgPchUSNpSf7dHGSl7bwHX/XXD3xh ealOkSLQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYOeo-0000000B5kP-2lTD; Mon, 29 Jul 2024 11:35:14 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYOcR-0000000B4t6-2CEX for linux-arm-kernel@lists.infradead.org; Mon, 29 Jul 2024 11:32:49 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 46TBWeiG026433; Mon, 29 Jul 2024 06:32:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1722252760; bh=d4zZIJ/gkQccbtOD7Sjovr8yOnWQC2S7b6K7C9dFyDQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=VTs7cPRiYmejuGXipsGGsvSjuvbWoCLbnPNmORdezdeIRbXNu1e+Dn2Uedm7pYRIx m1kgfgsu+U4lK/EDiRzjJdtvGhIVSLNBErx9E1GyFxuDNAkWdAc9kwGjsDzGQYGJb7 v3puKL9O3ywKpo4Rts0nGYuMH3DD37qpe72dXxfQ= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 46TBWe27092761 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 29 Jul 2024 06:32:40 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 29 Jul 2024 06:32:40 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE109.ent.ti.com (10.64.6.30) 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, 29 Jul 2024 06:32:40 -0500 Received: from lelv0854.itg.ti.com (lelv0854.itg.ti.com [10.181.64.140]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 46TBWeCW012982; Mon, 29 Jul 2024 06:32:40 -0500 Received: from localhost (danish-tpc.dhcp.ti.com [10.24.69.25]) by lelv0854.itg.ti.com (8.14.7/8.14.7) with ESMTP id 46TBWdu7032495; Mon, 29 Jul 2024 06:32:39 -0500 From: MD Danish Anwar To: Suman Anna , Sai Krishna , Jan Kiszka , Dan Carpenter , Diogo Ivo , Heiner Kallweit , Kory Maincent , Simon Horman , Andrew Lunn , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Santosh Shilimkar , Nishanth Menon , Vignesh Raghavendra CC: , , , , Roger Quadros , MD Danish Anwar , Tero Kristo , Subject: [DO NOT MERGE][PATCH v4 5/6] arm64: dts: ti: k3-am64-main: Add ti,pruss-pa-st node Date: Mon, 29 Jul 2024 17:02:25 +0530 Message-ID: <20240729113226.2905928-6-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729113226.2905928-1-danishanwar@ti.com> References: <20240729113226.2905928-1-danishanwar@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240729_043247_693703_D5D18C3C X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add pa-stats nodes to k3-am64-main.dtsi for all ICSSG instances. This is needed to dump IET related statistics for ICSSG Driver. Signed-off-by: MD Danish Anwar Reviewed-by: Roger Quadros Signed-off-by: Vignesh Raghavendra --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index f8370dd03350..090bfdc5f20c 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -1257,6 +1257,11 @@ icssg0_mii_g_rt: mii-g-rt@33000 { reg = <0x33000 0x1000>; }; + icssg0_pa_stats: pa-stats@2c000 { + compatible = "ti,pruss-pa-st", "syscon"; + reg = <0x2c000 0x1000>; + }; + icssg0_intc: interrupt-controller@20000 { compatible = "ti,icssg-intc"; reg = <0x20000 0x2000>; @@ -1422,6 +1427,11 @@ icssg1_mii_g_rt: mii-g-rt@33000 { reg = <0x33000 0x1000>; }; + icssg1_pa_stats: pa-stats@2c000 { + compatible = "ti,pruss-pa-st", "syscon"; + reg = <0x2c000 0x1000>; + }; + icssg1_intc: interrupt-controller@20000 { compatible = "ti,icssg-intc"; reg = <0x20000 0x2000>; From patchwork Mon Jul 29 11:32:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MD Danish Anwar X-Patchwork-Id: 13744763 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A39C4C3DA4A for ; Mon, 29 Jul 2024 11:35:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=l7rSCrodg7i8FJV7a52lEBrfKfZ7Sdg41Z9KHQmW7Vc=; b=faQ1npndKdIF7N8ocnc1s2PtmM DnptLACd2wCCmsa8+dkISVfUw0ueLqEf9iYh6vlOwAcBeY7Pj6/mgcZz7EtSLeQwvM7U31+Z8H7qk P4hNHfoKCLb1hPxhfkEaDG64pfSrmCCPqPZPeDU2F4PeHLa/C0mIjAtndIg5Z1R4XECXcsIKFW2Hd qf8SImS/aLOXqsHZSksq4cTDSpOBFviAACHRiqUtXdYesufHI9zNygrvjZ3frXlqBiGdwxiLVB0ea S/m9gUIO/aP2LKXwRM6iRYuYJEXz1QpPXTExUhKWwMynvXQxytnxBunxNgKpmdWKBO+Yrt61KEZEQ CtLA/4Gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYOfD-0000000B5t8-2zzp; Mon, 29 Jul 2024 11:35:39 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYOcT-0000000B4tx-3XFp for linux-arm-kernel@lists.infradead.org; Mon, 29 Jul 2024 11:32:51 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 46TBWgpu061615; Mon, 29 Jul 2024 06:32:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1722252762; bh=l7rSCrodg7i8FJV7a52lEBrfKfZ7Sdg41Z9KHQmW7Vc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=E7wEyMcFSmeVCXA02NYftRnR9xuwSrsTvjiGaqRl01ADL7IGILFTR+ndQ4JElb+Ad F15GoZAk/R/hhjXNFPzOf45mPRn29oooy4etudhVJBOvXPwinnYruZJRxcKzZlyD04 /Tme65K33lYqGphNDSFj9fFHt0tvVpGeHosXkoUY= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 46TBWg61007642 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 29 Jul 2024 06:32:42 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 29 Jul 2024 06:32:42 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE109.ent.ti.com (157.170.170.41) 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, 29 Jul 2024 06:32:42 -0500 Received: from lelv0854.itg.ti.com (lelv0854.itg.ti.com [10.181.64.140]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 46TBWg5H013024; Mon, 29 Jul 2024 06:32:42 -0500 Received: from localhost (danish-tpc.dhcp.ti.com [10.24.69.25]) by lelv0854.itg.ti.com (8.14.7/8.14.7) with ESMTP id 46TBWfjY032500; Mon, 29 Jul 2024 06:32:42 -0500 From: MD Danish Anwar To: Suman Anna , Sai Krishna , Jan Kiszka , Dan Carpenter , Diogo Ivo , Heiner Kallweit , Kory Maincent , Simon Horman , Andrew Lunn , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Santosh Shilimkar , Nishanth Menon , Vignesh Raghavendra CC: , , , , Roger Quadros , MD Danish Anwar , Tero Kristo , Subject: [DO NOT MERGE][PATCH v4 6/6] arm64: dts: ti: k3-am64: Add ti,pa-stats property Date: Mon, 29 Jul 2024 17:02:26 +0530 Message-ID: <20240729113226.2905928-7-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729113226.2905928-1-danishanwar@ti.com> References: <20240729113226.2905928-1-danishanwar@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240729_043250_213344_4DE69EDF X-CRM114-Status: GOOD ( 10.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add ti,pa-stats phandles to k3-am64x-evm.dts. This is a phandle to PA_STATS syscon regmap and will be used to dump IET related statistics for ICSSG Driver Signed-off-by: MD Danish Anwar Reviewed-by: Roger Quadros Signed-off-by: Vignesh Raghavendra --- arch/arm64/boot/dts/ti/k3-am642-evm.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/ti/k3-am642-evm.dts index 6bb1ad2e56ec..dcb28d3e7379 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -253,6 +253,7 @@ icssg1_eth: icssg1-eth { ti,mii-g-rt = <&icssg1_mii_g_rt>; ti,mii-rt = <&icssg1_mii_rt>; ti,iep = <&icssg1_iep0>, <&icssg1_iep1>; + ti,pa-stats = <&icssg1_pa_stats>; interrupt-parent = <&icssg1_intc>; interrupts = <24 0 2>, <25 1 3>; interrupt-names = "tx_ts0", "tx_ts1";