From patchwork Mon Jan 29 09:51:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ji Sheng Teoh X-Patchwork-Id: 13535342 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 69503C47422 for ; Mon, 29 Jan 2024 09:53:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=AYfHoR9irWi97Yysfs2H45ehtYOvjjw016e/smt6Z00=; b=wFNlKW6L7dUxhN ijuwtYN+1gUY7hm6nZYB/XLTgar92S0qVlQPeiloIcCElHv/yiZeFvnUP0CBZQeH9ia8yxIkpqQqh 7yS0lF3wJF5yyHRPLx0scTyYhrLsu46CAz4QmJIey/qgadeK5cIgzVDWV+KtsWBXqOjxGaMD2YCJJ u49p8NI3zFR7otiDIV7NQmoQvePPg4GT7f202rpRZR1/dqMLalc1Rali+g/NcpsvypCNeBcT66uVQ tB1GtxT5oLrYNFU0UwPhV03SdhvSFtfllEobc76rYBRu+O3CvORVSVKvDRSPhqtOVrH69deXmw5Jt tR1KXeFSneiRLaS3MXRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUOKA-0000000C7e9-1JFL; Mon, 29 Jan 2024 09:53:06 +0000 Received: from mail-bjschn02on20613.outbound.protection.partner.outlook.cn ([2406:e500:4440:2::613] helo=CHN02-BJS-obe.outbound.protection.partner.outlook.cn) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUOJo-0000000C7NP-3InB for linux-arm-kernel@lists.infradead.org; Mon, 29 Jan 2024 09:52:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eziZe9T5yJ50tKCJlrnA0MaDAQ66fb1PhDN86K48K6+id/Mu9ryZJI/vP/9eX30Oo046xQDxEMHXGbOCerk+Mr7ke40K1lzu4w2E23quVx+NKTfqduM1sewjH0GMGyt+FburtkjgnS27lM0U69OLENgULMFRdQce2HeNmTSCIjOpffZOoa2Jx7I9L5ZvBoMZ/FEvxhEdlnIbiktm78vYgWrtmNEJWz70ISC8d2NdqRx/GHJzeI1pMOFyA26C88vGvDBS668qJS7yFroK9+Omninx38Q0S94RfLx0qnEwYuxOU+8vSZ9lYdNPzUG8H7YzIszuzYkYPiUHJS6ESS+s9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KwCfdG7Wqc9JK+/OLoeHcLJKRDhGrHtGeA8TlzrcX8Y=; b=PLg5HZP6BwA7fUlU9mAz/Wnwa/vzev0vSYWdROg91mkM1/VwXzrcmZ2bwrXm5/K6J2LaaLPJrlBLw5xeX+0zfFf65bbSSuNAMk4JI7fTclMihwmQcw+vxX8b+mTX8V2ff2WoWYPH671clsUqkmaCJ93DQtwu5jwhCcWhFouLTAyUI099Q/QINxCA3dDu34QdXHo+K+n/09jeFfi5lmWQVKPOWaoSuD+Y7sobcdQ2IrpEazEy7rgJFOSWChct2I8/bzCAtdtuDGJUqu651wjOnxcxUjfnG8CTPXPNUwrOsvXvA5ibjjNqU+Ei0YTdG7ClJv/hu3emXglV73bPniWjng== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from ZQ0PR01MB1160.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:19::6) by ZQ0PR01MB1096.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.22; Mon, 29 Jan 2024 09:52:26 +0000 Received: from ZQ0PR01MB1160.CHNPR01.prod.partner.outlook.cn ([fe80::1dbb:b090:7d89:4e22]) by ZQ0PR01MB1160.CHNPR01.prod.partner.outlook.cn ([fe80::1dbb:b090:7d89:4e22%4]) with mapi id 15.20.7228.028; Mon, 29 Jan 2024 09:52:26 +0000 From: Ji Sheng Teoh To: Jonathan Corbet , Will Deacon , Mark Rutland , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dan Williams , Ilkka Koskinen , Jonathan Cameron , Dave Jiang Cc: Ji Sheng Teoh , Ley Foon Tan , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Conor Dooley Subject: [PATCH v6 2/4] dt-bindings: perf: starfive: Add JH8100 StarLink PMU Date: Mon, 29 Jan 2024 17:51:39 +0800 Message-ID: <20240129095141.3262366-3-jisheng.teoh@starfivetech.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240129095141.3262366-1-jisheng.teoh@starfivetech.com> References: <20240129095141.3262366-1-jisheng.teoh@starfivetech.com> X-ClientProxiedBy: SH0PR01CA0003.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:5::15) To ZQ0PR01MB1160.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:19::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZQ0PR01MB1160:EE_|ZQ0PR01MB1096:EE_ X-MS-Office365-Filtering-Correlation-Id: ce923316-b59f-4012-b441-08dc20b00009 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kExfpsZokADbk2pbmLmvXkMyfDjlgFP3qlr90G8LrQMMOP/++Z7WjiCJMzEW6F3A+vwOspYuUhY8KB4ILEWOLuMpARwAO8Fw530/cdd+5cLMnPGzRCexP3MakPW0qwjInwZURQvOjTZrCQ2qpiub2vBX4F1VNfwQhf55LmflAgtc4zgmN5cKiX7lGyK53DAIX0jLlrxq4B89YELA00tZ8eK4TC+flAC0lVwoSZSJimoR+0SgJtrkxHHMx2cGOfOAIB57Mtt9llPbpY+IuLNcdMV5TzYZYdS08aLT1RgBNmHujqJskmOrjG55XWk6FTPAiEsE/VTziSezT7+TWdq3Sn1hJ3XvjAF9yTyAFMALcV1TWx+gYK9fLLxxp4QSWn2ci2lc6sOFO28e47e9xsUB+ESlatkdGKmJ4FsYkfKuOWas/0O+pPQwdve/F+R3O8Di70DUXzrWX0uYOMMhnJRH4gphBmWhotRMu1M2pUGkte+6oor2A9O1PL5Q7K3VzC5AaW5muCYh+G4JyKHyZ0/9KKQFvxMM/Vm7e2nhbNN7tUMqGudA7eI6L1vOqlu6dIyXniXzhiVfzfuwCrwb4PN3xA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZQ0PR01MB1160.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(346002)(366004)(136003)(396003)(39830400003)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(41320700001)(4326008)(7416002)(8676002)(8936002)(66946007)(66556008)(5660300002)(110136005)(86362001)(2906002)(40180700001)(38350700005)(966005)(36756003)(52116002)(54906003)(508600001)(38100700002)(40160700002)(66476007)(83380400001)(2616005)(6666004)(41300700001)(1076003)(921011)(26005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ePUQcjUdJQd7cli7Rpp6njgiF/mtFpdrFXXzV7G7LjGUpl/6qeJMdm7oPQHGuPbfJ0JT2R+Me2KwNUGggHXOVUyiAdLLgK05EdASNc69+8t9lbBt+uxRTAgoSsx9TPHGHo2TKVu1o+yhaRBx6fjYvlMO5+FiZELpAL+AdGCBb8Okltdcun2aL2y75zIQ/gfmYMBT67uQkeFeMzOETwC3CLwGKsZTSG4q9l6p/M9jdgJ8EcgCzx0mcsCtWB6cc+x/nilRMsqIO3ptdNL/VCVpMkKFy0ZmEDHP4JJAREF46Zp1HQBJC+6OdpyjjFyJdfGK3ghQE41mWH5QU6f4Il6n0StvHYN7uC6tYVJ2l/ytVFY85kgLAUvDaSbSEnB9pXblE4ArEimM87qR3yzre1MHm4AB1Y/N8KtozPDGvEaZ/qB/STYg/kaoylcGPBqI97oOz59hCwh+0rSkeYenQhW7ISYLkEalApogPiEA1FS25C5hGglP71nDbPsqUBw235Xa2TLHoNCcJER4HGAo6WCT2NIDsvjqCM1gbjjQKBRoQ4lMMqCrrfEYNZjokh3lIuPst+yyikWqEAhIgXgtFiHiw41yQ2CNfgy9K7A1ayQ23M8TM1psgJ7WDpzXS6GfD3RvcDCPvUv9IYyvLL8/tFziRbQjk0PM4p/CTCsclIqcBVhJ/84kLwnSHLbIcH5kMhLlYL7Sm5btF3MfIY5/vcM62XdLIZAaiWpy7NHBWGlasVyXBJezHRDFT9+snWtBv9jFSDC8CaBffIUi3gxphGBEwe0l6t7g/YgrrKaKuxzx5sOelwgd2b0et1lUEkDQLjEZa5XDq7ay7DYha2Vd6aQza1oXTrFP+d6JawjfUqqhc5PYSkF0gKcMnfRRZjb4roHFWvvLKMSm/bUbMxqXeZ+dMoON3oEppAmSuCO/aDH47T348osx1uBil4zlCTarTlsZBhVMKO6WWBTW/t+knADUGDDxgju9rKMeOpmVvECHCdTdz5sht4T5dkhwZRRu6lfFQ+dowozqxnWxn/8CKNgqfoZFBhea6nH90FKVzpTq5Oo0Q9afg/WRkzEPAZWqjExumzcbKritOLAfqUPFFPny3ram4B7klLz4lo2dde9wbZbkV38/vMe5d7Q0m1heTGni8LT1Uiy1ZmunDXYBojcB6PTbd4Tbo5XF1fBCqX+LihPykYYOgP63KD97I61EoG9xkmxPu9Y/8f4jFiPBNZfVhvowpj3FLMQgPVHfKy1UBrayZhf9ioO/+CpZcEcSKIOELulJ07QS3wUoL3OIrOCgoFYQVXwxaMXLKm6PIrCLvaJXnv1Pr5aYWtcHbBVV5cY4Y/M+0JHfiDmZ9DpyV5gyqg20Ct/Mi/7b0D1ysmr78ZNG+6lMVJn9JlUttm/twbqxE8U2ZxT+snaWbS1Ne1jKCtjXiVrdV1CrP8eC4hju1iW+Ok/9QCC7BK4WtkQXXfd5JOBPauQoDihPhoVBPRtzfDAxJMSiMRllDR29NZKCya1+lr+h7kRpSqdS63SgZSLOE1NRXqZyZMapb9kYrdz/tpEVzI0Phsu+1NkTLe/tJxyycJ3SYUBMkhUGy+JuMoV064uk03aZhNY7/qddirtrEA== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: ce923316-b59f-4012-b441-08dc20b00009 X-MS-Exchange-CrossTenant-AuthSource: ZQ0PR01MB1160.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2024 09:52:26.8893 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cDkieMXweT13cjw/TkcRC6ZZBcUmHJFrSm0cLbNyz8dtNDn2tI0rxunoKBwPGKHxl48h/8LJXnge3nZfihx4ML30H0e1Xnurs09qYsg4Y/Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ0PR01MB1096 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240129_015244_993891_A3392C1A X-CRM114-Status: GOOD ( 12.56 ) 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 device tree binding for StarFive's JH8100 StarLink PMU (Performance Monitor Unit). Signed-off-by: Ji Sheng Teoh Reviewed-by: Conor Dooley --- .../perf/starfive,jh8100-starlink-pmu.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/perf/starfive,jh8100-starlink-pmu.yaml diff --git a/Documentation/devicetree/bindings/perf/starfive,jh8100-starlink-pmu.yaml b/Documentation/devicetree/bindings/perf/starfive,jh8100-starlink-pmu.yaml new file mode 100644 index 000000000000..915c6b814026 --- /dev/null +++ b/Documentation/devicetree/bindings/perf/starfive,jh8100-starlink-pmu.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/perf/starfive,jh8100-starlink-pmu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH8100 StarLink PMU + +maintainers: + - Ji Sheng Teoh + +description: + StarFive's JH8100 StarLink PMU integrates one or more CPU cores with a + shared L3 memory system. The PMU support overflow interrupt, up to + 16 programmable 64bit event counters, and an independent 64bit cycle + counter. StarFive's JH8100 StarLink PMU is accessed via MMIO. + +properties: + compatible: + const: starfive,jh8100-starlink-pmu + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + pmu@12900000 { + compatible = "starfive,jh8100-starlink-pmu"; + reg = <0x0 0x12900000 0x0 0x10000>; + interrupts = <34>; + }; + };