From patchwork Mon Feb 7 13:24:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chester Lin X-Patchwork-Id: 12737217 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 3A572C433F5 for ; Mon, 7 Feb 2022 13:27: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: 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=P8LWE4bGGKFK/fgyO/mhATt5GkLuOUYH0j2tprWHj4o=; b=rW62QQxzCtUs6Y hWlyXG/RsDULDpRa57ncA3O8Q6Ufzs3dge5jFZqDE9lBpUjqfZk80Ta4NTkfEk15CBkq3vPKFi5yo 9tELu7QLM8Bze0plkyPUSAc0SZITcJmeqfI8peFjlVwEGK2JDEOwleDwD/aaYWnDSq3NbFjiqwIp4 LhBzy8iCCDoXUtusAYKxRbSmBzx1Y70Qv2ajUlx8ouUEkMClcrOedHPKhohZVGNcRobUw6vxWQBoN mRVhGgf7vyJ3s3M+hEWPaZSyGR1mBDJjgozkkMs9OwyVhnzj1UAikkZ3k68jWZcZrN9VZuqGH0C1P cehHS0yIZwLccSMzf6Yg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nH41L-00AGQk-L3; Mon, 07 Feb 2022 13:25:32 +0000 Received: from de-smtp-delivery-102.mimecast.com ([194.104.111.102]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nH410-00AGM1-MY for linux-arm-kernel@lists.infradead.org; Mon, 07 Feb 2022 13:25:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1644240309; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3E0gGfgAVd3/EyxWVzxOLBQNYi18NFRDlPcr8SDaQHM=; b=Ha2lEDln4B6TAMt8xHZJI2HZMahUkgxfPCM7E7K0x4/8StZpbScmfK54i+anLGxWY6ZaNp vtYHN/dfw9rGP4NgCL7pRZaMtZux5jhp0emmQaooIrt/MmzVa6aLKnmUc6OB9Cat3EnP0e QSMgbyK1cVAbKdEnlYivPl0JFRTW0IQ= Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03lp2051.outbound.protection.outlook.com [104.47.10.51]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-28-xd6vp7mMNIizN5W5QlcQ3w-1; Mon, 07 Feb 2022 14:25:07 +0100 X-MC-Unique: xd6vp7mMNIizN5W5QlcQ3w-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZcGfSrKaibBKPW4hWr6/xwZgLGICFNWcY8h1urf7yAMWIClB3gA1p0nlavw46ZIasJlTm1oIQ9VnHjJBPbrgrm1vCfj50u5QDlJshnJzhXyb1DBnknfEDgcFJArM7etjAjpB9Kbtlzz3c8oVRTlAL5WMyRrocB6k9RVsczy70kfPVOkblBs3FrtlJxPWb1faHl2jUmHWw/lHzBWufyI3fumAevJPGAjEcaa8bT2tWTr+LwiEQVEdZeLI7yq8lu41GKtyPirIUB0PJMW4zkdENxoiFv6ymRaOLrOie0E3M8NGMYMGb0sqFVZFgXOTKJPv3SlGMjqDQdRHeBrf2Fk6Kw== 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=tseiYH9roVSbkr3z6CQcWuouvSpB+D8wkwva2LG6giY=; b=Dff2OkJPcG8li4MDWUb8jZ/rGBsFFsqw68uDfKPPBLqACCa5uiCewdtN51Ozkj31CJUm3dlLbVmZVPqsD9GPGFnIONbiGJYK6VQ6C3ZltlwSP8CqU0oEPDAAMcuRckG2u+wEB6UWG0E48iW9dvvs8M4fwT6SEdHcaKO2oddV8zI3b8sWADxgXlPPPo4c3iWBKZGz/MeeKJpaKx9WYTx5TIKicJ8ax0hWaR4BvGeEuJhlRo9IPVs18LWiPCdujiTFMgPtp4nyKKTqI2q31U1V9jTh51fXulx0MPXgWiUVJd5C6qQDW+xTIb6PLjTIRt6P7R+TNmq0QfesL45ewWaydw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) by PA4PR04MB9248.eurprd04.prod.outlook.com (2603:10a6:102:2a3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.18; Mon, 7 Feb 2022 13:25:06 +0000 Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::e14a:7928:ecd6:f233]) by VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::e14a:7928:ecd6:f233%4]) with mapi id 15.20.4951.018; Mon, 7 Feb 2022 13:25:06 +0000 From: Chester Lin To: =?utf-8?q?Andreas_F=C3=A4rber?= , Matthias Brugger , Ciprian Marian Costea , Ghennadi Procopciuc , s32@nxp.com CC: Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Radu Nicolae Pirea , "Ivan T . Ivanov" , "Lee, Chun-Yi" , Chester Lin Subject: [RFC PATCH 2/3] arm64: dts: s32g2: add SCMI support Date: Mon, 7 Feb 2022 21:24:43 +0800 Message-ID: <20220207132444.3653-3-clin@suse.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220207132444.3653-1-clin@suse.com> References: <20220207132444.3653-1-clin@suse.com> X-ClientProxiedBy: AM6PR01CA0037.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::14) To VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f32adf9a-2617-4a98-0867-08d9ea3d4143 X-MS-TrafficTypeDiagnostic: PA4PR04MB9248:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:404; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LYj3sKtar8o9eHnhet0YYrPmP46uZaHSdLjx9uqvRtySM1kVxhJkIjZ7NsVMLxn6/B6K3wEYHzuOWBgCVyPGLprBwJFJ1BJz83HpZXZzJB0hRqyiWJr65VfolwcWxf0rSFbZ1IQrCPG9SmwOVvWTw/OqFB/xs7vstLbx9uBPzGEYq5mM5v1uPo3VWGHBNEXc4rlNV6QUa2YUEHTK5sHCMQzKT9etroD65Ugwih/6DIjWlXJTPJEXv1oYvXDt7/hik5ZeSz0UBp7EmRP3hhd7yDwK2NIhPu4IT5Xn6yB+DKlwekyHyRyaQ4EZRySD/aQdDsD72syHxpBb25thw/Q+aiRz6r3gAxwIs9daeMrkFCH+muMvgLkFRLTfS4gXN4RE+3rdC7vtozSSU1olL9aopW0B6dk9dnQbycwHL3/FEas7HVm9VUzGXAKTnqslYrelhzSmO+/NAHCw9HvUFmh9uvYUtxk5M/BnE6dvqGDW+HY5uid1dG9KEHdERBhvr2JMh+i2wf/4JNO29HYYBtkP+oaA4aheI8tgL7p9FNWP8xVjbxRhNVSYn87bi39JYDiu+5KePxIS0GeHoL677PGieHLd717HsXcklvXaMonXUdJU2x5BgWYqQNxOUxKLFYMiigHYKitrVoL1v06QHvYSRA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0402MB3439.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(6666004)(66556008)(8936002)(66946007)(5660300002)(6512007)(66476007)(4326008)(6506007)(8676002)(7416002)(83380400001)(6486002)(36756003)(2616005)(1076003)(26005)(86362001)(110136005)(2906002)(54906003)(508600001)(38100700002)(107886003)(316002)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5CMtm15ueT4aKn8tTpgZe6pPpU1uGMo5/kRtUODzDFEhuDFzTXWY5Y+4cjObk47sDhX3vQsSmGeqDo2qgJuju1r2Gbwzv1DIZy9KO9dtl8Rf+Yqk1qXRVKckzd9vsXh6uUGTy+YbI56l0qLDLBg0ZNH9Z4B7mgumg65T3jQmRLACLNuloBBz6vbC+9fBPSW7G+WZSt5xqb3Jg5s2N2w1rbd+4c8fpg4g6g2xET1TKDal175Ne0ccn/gmFFhugn/+Z7r/TS6Gzb3FTUsVQ1ZFgLy43GiE2uxbwEUUGKP0sP37wr+QWGAh67f8gqNJI5/KDlspZ6PPMZyuAp8yAUjmYsKp17mjltZGUaEFixIiE+sz6SWXEOOv/ISB+4mbVpFW/NUrLVG1B06tOzrkU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YuGvkFo5gnXCXU9QVsJQ4IUa8CN1VghzjH9d7n2orCEHvpTBQSznap9AZxgu3zbhxDiPhBlhkSJpSIJxxTTJtD8T89eIllUGQQOg8KgeNxSfrY= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: f32adf9a-2617-4a98-0867-08d9ea3d4143 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3439.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2022 13:25:05.9702 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: h/erUT7S07F0Zii2bJs8zOToTU233dHq1D+NRUCr3RvquzD9deXatbNlwO2iZ/P/ X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9248 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220207_052510_908542_1CC64A85 X-CRM114-Status: UNSURE ( 8.89 ) 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 a scmi node to support SCMI protocol 0x14 on NXP S32G2 platforms. Signed-off-by: Chester Lin --- arch/arm64/boot/dts/freescale/s32g2.dtsi | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts/freescale/s32g2.dtsi index 59ea8a25aa4c..34652d36a9f1 100644 --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi @@ -72,11 +72,37 @@ timer { ; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + scmi_shmem: memory@d0000000 { + compatible = "arm,scmi-shmem"; + reg = <0 0xd0000000 0 0x400000>; /* 4 MiB */ + no-map; + }; + }; + firmware { psci { compatible = "arm,psci-1.0"; method = "smc"; }; + + scmi { + compatible = "arm,scmi-smc"; + #address-cells = <1>; + #size-cells = <0>; + shmem = <&scmi_shmem>; + arm,smc-id = <0xc20000fe>; + + scmi_clks: protocol@14 { + reg = <0x14>; + #clock-cells = <1>; + }; + }; + }; soc {