From patchwork Mon Jan 22 14:06:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ghennadi Procopciuc X-Patchwork-Id: 13525541 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 C7826C47DAF for ; Mon, 22 Jan 2024 14:23:12 +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=8IYvUy5btaujDcSibZ/UswGC6N4ubWsIGwej5GY/AQY=; b=TzKESlsvkEQkHA CMVgHUAuyn4NCoFZl4CImUMTGfc4MKoUAI2nf5+t9ZV5x1s3gcYOXnLJH88ARDzUEKTzJ6CLSSi8V q7n9IEMEp2hMIa8CFmxhlv0LIIjik/5wihqGepydZBfDs4FjAzF9VmuKc9ufcTGvGnPLtLwdzaPWM weJ8FjfPfUvtmFFdJwpX7e/i11bE4Ymk9E3QxNrHUu7g8xgIxzssUeeu+pooWNVqvOnYiziA66fmQ /n1hSs2Iz4ieftokm6b3ZNWdgho6v1LTzABcKUV7q9ZGeWa7kmOhq9fdgXVShfmzIzG1bYDFO5rPI U4Vflb5nS/E8gNsA1PSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRvCD-00CNlv-1L; Mon, 22 Jan 2024 14:22:41 +0000 Received: from mail-am6eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2612::600] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rRvCA-00CNl1-1x for linux-arm-kernel@lists.infradead.org; Mon, 22 Jan 2024 14:22:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h9htmxVDGXfI43m7xRVGtUWVV9b5NQKPhdZKx8KxOzaQb61HQhEURDJzVAiBP8A9tGxIbCJffFeMQ9n2oTpxdtGbfVuXhCpcLYy7bc1sCG1fwWf7TaEvLpESyF58CmviNIDlleDYWLwUxWPV6ha5TJGeeYvALepdD2r1XWStjA3RqAVzkvYIkOjqQ+XH3H2B7ZDHYRJRqr0JhO9oTj4WV7JpC8F1c9dva6knGfjvk40Y9kzgZTdXyulKLIA1Yg69FXL+Q3tUSx2V2ke3nkPc6edMF6/U6qHGIdHc5Gnuqwr15KPCKgkCtzrYfx2JXVam6DE4GvpfJKDkCVyOCmDVcw== 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=CLGY3CEeZ95A3cvRWlQoLVkz0Jw2+YffZ/FS0N+GIFw=; b=H9sBQHATeb6oo71PXIWBqRMc36lZBJQ0qjKhK0AJSM08do4BXodppPvj/z01o6Uei4ZVOZ0tP7NPt0PhMbqNClLyS8yQaGp7Xz36BkjNqworUca9H3SrtGfNX3I0pOdfJI5WalOpU0VA5F9KhdQLiB/E1r2RcAuf5WyQt7AmRwsadei/WY1g+FFlvdoj3dcrRqmlgVysO0TYMMLnfj0NX8ukN1yr1B6AgDrCc7qOhi85YTb3x/QenV+Z5xlDOyAwvn3Zh+9u94+bl7rFqbhdZNg8uAF7Xf8LcaY2OZpgxL1j0IM00Cwo/pfcGTWnSeAwB+OR3vbcr+Eev+tNdfHULg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CLGY3CEeZ95A3cvRWlQoLVkz0Jw2+YffZ/FS0N+GIFw=; b=UwgLpneQmB258JylS0N8m+C9J9Ujs0H7Svl3BIwBuz8C72D/5s8uZv6hVT3pScS4NIP1DRpQTmTVOMtvJS9UKHZYObw6UJeqtbXZozzJ4HBg2yqJUp7WBHcDEn/1Kv6HCcmfe2ZUpXgRiUab0y5xBg5ovnVQqCp00QljGtbV2QY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU2PR04MB8582.eurprd04.prod.outlook.com (2603:10a6:10:2d9::24) by AM9PR04MB7635.eurprd04.prod.outlook.com (2603:10a6:20b:285::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.31; Mon, 22 Jan 2024 14:06:21 +0000 Received: from DU2PR04MB8582.eurprd04.prod.outlook.com ([fe80::195c:9861:96a1:56ed]) by DU2PR04MB8582.eurprd04.prod.outlook.com ([fe80::195c:9861:96a1:56ed%4]) with mapi id 15.20.7202.031; Mon, 22 Jan 2024 14:06:21 +0000 From: Ghennadi Procopciuc To: Chester Lin , Andreas Farber , Matthias Brugger , Shawn Guo , Sascha Hauer , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , ghennadi.procopciuc@oss.nxp.com Cc: NXP S32 Linux Team , Pengutronix Kernel Team , NXP Linux Team , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Ghennadi Procopciuc , Catalin Udma Subject: [PATCH v2 1/2] arm64: dts: s32g: add SCMI firmware node Date: Mon, 22 Jan 2024 16:06:00 +0200 Message-ID: <20240122140602.1006813-2-ghennadi.procopciuc@oss.nxp.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122140602.1006813-1-ghennadi.procopciuc@oss.nxp.com> References: <20240122140602.1006813-1-ghennadi.procopciuc@oss.nxp.com> X-ClientProxiedBy: VI1PR07CA0294.eurprd07.prod.outlook.com (2603:10a6:800:130::22) To DU2PR04MB8582.eurprd04.prod.outlook.com (2603:10a6:10:2d9::24) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8582:EE_|AM9PR04MB7635:EE_ X-MS-Office365-Filtering-Correlation-Id: 5575c1b6-bbb9-4f20-9f4b-08dc1b534f5b X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p8cwq85LqbS8iMwCpzZOGxwAFDkyee6LGC67WWJJzLfqtjT2w+ZCn2aEP5dltui6Yx0Et+RccQGly4bhvC5ngLdxFWVtg2Asp9BHzNeYNoEH7aMRZI1Fi5rYOmBWJBClCkK1mnrVw7b6SkzeADq/+9ibpxX0Siz0Ei6S0Z2LLDjTmJA3cLxSemFuoJwmrWayDgf4JT3JUGM03ibxaSSzfNmPoibvlesGhjMHhZ/rMBoIVH7LRfMn8QltP9O3WDj5qG9Xim8/9GIVp6Xj60nSJNtEn+TbfR9Ci54TVpF/tW9vpuhQJmh2R9x4NixjnOgpiDSneKTLMzJO3BILc1Q/NbPuSeiGIPY3Coi5nPq9e0/yxpPo/2e6MeZcpYa+vPrt2akpzMkQHJeMOAjfWKVNqYGmC+B6vsZQog8NCEpxtKAXw8j/K3LHF2Z8z7nli8BiQbRH4N0aVbd2kubi0kUqmT1WRtQWgpFEpz1cV6saYX9/3C2089y0Uw16/O11fzE4bC9xRO1zBTmIiRXZzJS3BYxbAcCtdH88T8uO9jk3hgOauw6uvUkJDIlBTbVabToBo9nO5lu9YwSvCavbD3dURBx3CbY9DZsVaRfrN1Sjxxf4p6UvrCMn9fZGGkqZsmsLelExOOqyqqKXkENUezIFhQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8582.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(396003)(136003)(366004)(376002)(39860400002)(230922051799003)(1800799012)(186009)(64100799003)(451199024)(38350700005)(921011)(2906002)(66476007)(54906003)(66946007)(66556008)(26005)(6486002)(6666004)(6506007)(110136005)(478600001)(52116002)(316002)(4326008)(8936002)(8676002)(6512007)(7416002)(5660300002)(1076003)(44832011)(2616005)(83380400001)(38100700002)(41300700001)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7axplFPevzsInJWY5dConZQm4f5H1ltMYHFeXuifMVPJRg9iSNE4VbsqUm63mpbezZpM7g9Cxgw6d6lSIZ6oCGbfrVoO4dNYjTupwzfU2I/+2tnAk3omKIl6vQEP91U4e/odBbHMlJHrGk06k0RnafPSgIweEcyZq+rlLvsAFd3jl/Z8xeYBLmGuL0T6v5frldyFLncW0qI7efRymz0WX2G8jpyPXFNAq7/8h2UGjTdMpIr/BmOyOVD3VXjiHEf8cbMz1DnayXsWw/puwAf53EKmX7ZfOxNSeIcfDj8qMualJJq7ZvWc+9lRBfUogLZzBbQkq4byX6KQWFBtJqRcSqHVN5V4rm2yBL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so+24IpL9jlVYqoZKLxOY7WKgU26PwgxsDvr6J5z3jsaANqknljsL0VLOkVDdN5s4xwQId/0QfAQ+MgSUYhfqxQnz9goyO7yUnl6FsbwccKTEhKVaEeK34T0duH+9lczBZxivXxJrnAmiUDVnL6q9RCBoN8407qlrUSblHI2iolZ9N4HTmBjbvuPP+ih0A5g== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5575c1b6-bbb9-4f20-9f4b-08dc1b534f5b X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8582.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2024 14:06:20.9924 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /vEVWKNFcBC1wqdcyws0oALNy+HYJEpxEuW6M46ysT9NYpIDjTLr0EZBerxZr44fPylO6KSurBdCZ4lxHvhYv++g/9NTg46NKBmauNGAXMg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB7635 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240122_062238_647082_4C8E5118 X-CRM114-Status: GOOD ( 12.27 ) 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 From: Ghennadi Procopciuc Linux controls the clocks over SCMI on S32G SoCs. Therefore, add the SCMI device tree node and the reserved region for SCMI messages. Signed-off-by: Catalin Udma Signed-off-by: Ghennadi Procopciuc Reviewed-by: Matthias Brugger Reviewed-by: Chester Lin --- arch/arm64/boot/dts/freescale/s32g2.dtsi | 27 +++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts/freescale/s32g2.dtsi index 5ac1cc9ff50e..ef1a1d61f2ba 100644 --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi @@ -3,7 +3,7 @@ * NXP S32G2 SoC family * * Copyright (c) 2021 SUSE LLC - * Copyright (c) 2017-2021 NXP + * Copyright 2017-2021, 2024 NXP */ #include @@ -14,6 +14,18 @@ / { #address-cells = <2>; #size-cells = <2>; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + scmi_buf: shm@d0000000 { + compatible = "arm,scmi-shmem"; + reg = <0x0 0xd0000000 0x0 0x80>; + no-map; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -77,6 +89,19 @@ timer { }; firmware { + scmi { + compatible = "arm,scmi-smc"; + arm,smc-id = <0xc20000fe>; + #address-cells = <1>; + #size-cells = <0>; + shmem = <&scmi_buf>; + + clks: protocol@14 { + reg = <0x14>; + #clock-cells = <1>; + }; + }; + psci { compatible = "arm,psci-1.0"; method = "smc";