From patchwork Tue Dec 15 08:35:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Alice Guo (OSS)" X-Patchwork-Id: 11974223 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D4E8C2BB48 for ; Tue, 15 Dec 2020 08:39:24 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C3D2E2231F for ; Tue, 15 Dec 2020 08:39:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C3D2E2231F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=n1vBF68/BjaoBkmxNNVaWig7UlGAkRR5oMmY5dMD80g=; b=qalOGukmaabq90IsWUqapPagcI zjDyWFttrXj8S0A/NlYIVn880wPWcTVkFpF0h78Z10aIKyuzzbAuwXRSQmrPtfxfR9MV76WIFMSCh p94MlVJh02PAdEjf5xegOfVZiDvpUf5hkK7ksI1StDGZSGdtPulx+qUIcXSpRXKZTDbLgEI+jJDoP HV3QwrrCqEqvvlhItmLr0ZRxPKDyE1tEyTRmCCAJbI4XhYvRFvHosFlCAw8JwXafeyugziUvp+GoW KHiZTfxh/A2TGDLmDDBEKKmJzbuke8rP2C0U0DO0QwEskfkhNklTKD5if9HJ2MUKBWT+NIFC9KYuO 9pUIWjLg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp5qJ-0001w3-6k; Tue, 15 Dec 2020 08:37:59 +0000 Received: from mail-eopbgr140040.outbound.protection.outlook.com ([40.107.14.40] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp5qG-0001vi-7q for linux-arm-kernel@lists.infradead.org; Tue, 15 Dec 2020 08:37:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OqNIT0M+eg5oe99jwcIXE4ifqaUIIpcGKHp2jry1irLkd73aWV3ISU+eXN4r4ZYGHWrewCALvezG16viDrqhdlAoDLkVz0PDvT3XUFAi6SJraiGrntQPBcmSFl1sP3lKl/89ySLUxKco2ZTehP6iNCP+qabVtE0ysClKUEjVIkSjf6M79ix9g2n+9eHwqkdi7Fvf9O2yxA6/xWjJEoXxMZh07qsxAXPSrLKa2Xb4KrIdDitAU+v26+GJi7gQKj/uM5cUa8f4kOnbnG1SNLZ1cIiAWx7JUTWtL66BZAtEE96qfUaCEkjVI2f4IVX4K96vMa2Sc+Jn0KuHePa+4cXciQ== 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-SenderADCheck; bh=0ZqFOd7RqSyNuryOTwjnFln4saf3bUKoQZ9NCJ+gUHk=; b=mdNakFA9HOt/DY1vD9DrW19tAbZfLJqvSoc0JjfEPybFHwe9XHpvsd59wIkQQcvaK21omrw0AlQotC+JCGk6r+nm5XjBc40HEjFuBCq0j9hXQ9s/6E18Rsw2LfMHpE2gdffKnUbBx7LkF+H5XmM0MI/YuEyXeaH2Q/c49qLOhfIu3npVEuO77AUhKo8xfN5BrrfRQIo45xXt3Og3rhW5hXghi9hhYlbvxxLmgFnfkBqREe16sF4xJhQnUPQEh5NrKZjzmbRzL9DnfuAjUUiVx77Yrl+ZACnle+Ws87aJqZZ0uR7+ccJN/74wg+bssdVpUKEifIjQvlpeLlEzrzPEFw== 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=0ZqFOd7RqSyNuryOTwjnFln4saf3bUKoQZ9NCJ+gUHk=; b=MleKWwluWnIQSPxF1pKA6FCeLrY5/uPLJurrVdxVYrN+qVNU6cek8r2PdNOPm4241CxJ0w7+Pz8EPYEEGzC/JhV3Dk3hvVCR+VauqAqgR34swYQvzzDUQIaBwttHuebybSfQ1x5C8v1y3l1fZ8o6t5pZ03wiMG65h9PDa9lfvgo= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) by AM7PR04MB6807.eurprd04.prod.outlook.com (2603:10a6:20b:104::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.14; Tue, 15 Dec 2020 08:37:51 +0000 Received: from AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::78fe:9b7a:a2ac:9631]) by AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::78fe:9b7a:a2ac:9631%7]) with mapi id 15.20.3654.025; Tue, 15 Dec 2020 08:37:51 +0000 From: "Alice Guo (OSS)" To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, krzk@kernel.org Subject: [PATCH v7 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID Date: Tue, 15 Dec 2020 16:35:48 +0800 Message-Id: <20201215083551.6067-1-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR06CA0250.apcprd06.prod.outlook.com (2603:1096:4:ac::34) To AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from nxf55104-OptiPlex-7060.ap.freescale.net (119.31.174.71) by SG2PR06CA0250.apcprd06.prod.outlook.com (2603:1096:4:ac::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Tue, 15 Dec 2020 08:37:48 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 41e1c5da-2007-400b-d666-08d8a0d4b5ab X-MS-TrafficTypeDiagnostic: AM7PR04MB6807: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /oFGOXsyo/gSJtN8Pfv8G/dofnSJEe5mPCPtR1zQAeurCOUQveWT51h4V2esfA5NYcsVwqB/XiNhgaJJ+HGZ2bq3+purTUBo2kgPyjG49mAqj1NH6kXw61OBzN6CHij6HMlJ/qviHTNaBnW4EL9h2gU76aPLi8lKURiqZzt6DnFkTpFW80XLvL8/JagFAA6uX3Op2WxMKnxP0JcjD/s6pUOiCo2xd7HrlbLLQJ5fafWccFmlShJShDy7Lo5OxGjJvuBDdpqp0T2J4UiAKg5U2Veh9u1u/kO8z633l3XixArmmL8nABq5z7fhTCz0QbSZg3osLqVZgQ5eYfJJDd2m2ht5Sy9Yt9gkkwfjHfWIw4jDEcpgdPDCNlZuu2YflO/SZcmcowiYPqX+ciM6TR6tjDjyqgKvIeD5/Jmz8UWK5xazkaxekzUxuprgB43XPQyU X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB6053.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(346002)(366004)(396003)(39860400002)(83380400001)(16526019)(186003)(66476007)(86362001)(26005)(8676002)(5660300002)(6486002)(8936002)(316002)(66556008)(66946007)(2906002)(4326008)(1076003)(6512007)(478600001)(2616005)(956004)(52116002)(6506007)(966005)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: YNxRMWVSsELOCNdrhNBmI9KuqwVrCLtwKOo5IoNBl/irN0gY92qWAEMGO6pwSXE9jNyBTOo4V6/Yc2Yd0SbZwfbtOsExjPh3zdZQIPv8HcbigjZFdzaN+24ZcFhj6XNFGkIDOKTNueKt9Fxd1LmrmRvb0q7UxYUF34SpxUrOcfNuuQJ18Sp+TsKvAuK+I/QyuJWl0yvq0nGvygdGuuW7cO1GEdv06kC3XKmZI5BzsuHRB/FtmxB3HeToKQxWk+Lm3ozAOKc8KFKy1dz9wIXKBFfu/DpOr50lWMNaYUV5pKv8KTsZTUFIzxduor224DbbGxREKyyROrEn9z6DJN1LLsz+0sy5zT9IEs1AUaz8i0N5TdeM9ZL25RoJHSCKm3B0IZo8yietHaA3LeuYD7N1ZLyLD/pbaagE6gGJoGuoMvnZl79/pCHzoWaJ1RmbKJ6VMLTFuCzVZ8q1hbkdq3yTOyxtMvzTspFhRXAG5+1niP5n+4jUOc79kH/FBsdsiSIWTAQI/fkxLBzOwXN/hA4xoK+Jy78DR/f2Oq0ZuTYGQpad7Sa0PHgHm3TFOyi05h7oxVEMoflIqBSToLhk8CsUzgVZ2virXs8lIDolu6tRjLhrA9KkENhoWbexHi3Ds79i/W5wXwWwZbl1dhHA7VRTfqncY2FJUT65+0oFJodwttEXVvKzqAmrpkpyLgTvcQr+WANdaxsn+MTRpAmyVs5FJbthfDmD9sJdh+JaNpY6M4DpS4zKyfJzUosnleELqJKiiScm3wDMk600/hcQ59X4fzimGKMv74vX/3vMpoKdk81YzvWDF2vbLS6BsZP5GmTtAIpj7ISQNlqK/+KvFJhJfBe7F9z6IwxWdkbSwDLKZGwXRN+SWVOTGMdgObK31V91ENpbayF79UtZS+0chtc7l9j1aSfZc9zNPVNiiYVhoZoTjZ/9mw6PK3KS9uVZmmwEhOARyZYi9XUu9KWCX29KN7parsWFNTXAlghka1+qAN6kccM4brMV9QgaXBIq/+9Y X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6053.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2020 08:37:51.3344 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 41e1c5da-2007-400b-d666-08d8a0d4b5ab X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OCcyppSH0KehKWk/6j8IuksKWZdDgSNgXbf1Vc66vKAE5U9My7l1tLl0M/yP9YEJF5OJcL/kxwZnxpyyXiZPCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB6807 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201215_033756_406432_72E24C38 X-CRM114-Status: GOOD ( 14.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Alice Guo Add DT Binding doc for the Unique ID of i.MX 8M series. Signed-off-by: Alice Guo --- Changes for v7: - change to a separate schema file Changes for v6: - none Changes for v5: - correct the error of using allOf Changes for v4: - use allOf to limit new version DTS files for i.MX8M to include "fsl,imx8m*-soc", nvmem-cells and nvmem-cells-names Changes for v3: - put it into Documentation/devicetree/bindings/arm/fsl.yaml - modify the description of nvmem-cells - use "make ARCH=arm64 dtbs_check" to make sure it is right Changes for v2: - remove the subject prefix "LF-2571-1" .../bindings/soc/imx/imx8m-soc.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/imx/imx8m-soc.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/soc/imx/imx8m-soc.yaml b/Documentation/devicetree/bindings/soc/imx/imx8m-soc.yaml new file mode 100644 index 000000000000..a2f7dc0c9b35 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/imx/imx8m-soc.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/imx/imx8m-soc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX8M Series SoC + +maintainers: + - Alice Guo + +description: | + NXP i.MX8M series SoCs contain fuse entries from which SoC Unique ID can be + obtained. + +select: + properties: + compatible: + contains: + enum: + - fsl,imx8mm + - fsl,imx8mn + - fsl,imx8mp + - fsl,imx8mq + required: + - compatible + +properties: + soc: + type: object + properties: + compatible: + items: + - enum: + - fsl,imx8mm-soc + - fsl,imx8mn-soc + - fsl,imx8mp-soc + - fsl,imx8mq-soc + - const: simple-bus + + nvmem-cells: + maxItems: 1 + description: Phandle to the SOC Unique ID provided by a nvmem node + + nvmem-cells-names: + const: soc_unique_id + + required: + - compatible + - nvmem-cells + - nvmem-cell-names + +additionalProperties: true +... From patchwork Tue Dec 15 08:35:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Alice Guo (OSS)" X-Patchwork-Id: 11974225 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1FC7AC4361B for ; Tue, 15 Dec 2020 08:39:24 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BC37E20855 for ; Tue, 15 Dec 2020 08:39:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BC37E20855 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6PcnHvqL0tCMDwjTGQ6OSBwP+fhyJvbH5HB+Reaq1Yo=; b=Znh2RD+Rimd6ljyo48MmHgnAn 5EoH9tTfbnC5tr1c76Q5FPhUQJP01St55MaXdiq9CxajL3+8OIK+71zW30Js5SXGxkQfXLo01vopO HqBIpoiKrUMKBNhH72DXYWsUCUn0mX2CRAOLHEc7DK4f7PdoQ6Z91bqPeek02KkmCtKYZVGTNGZg7 1HmMZwd2aj2j55qHfoZ+ft4iH1N+/Ry11rqgmiTzIXMg/JaYPB4XvSPgTQ4HhkdIWWEU+5XwoVulN o3xBYiJcnUDgFd9ynYR6tYwxiobXjUT7H9uX1BT3RoUn0Yexi9k9rbd1cbFyyZn8zdUPR0LXsSAQE XLChMhrhg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp5qS-0001yJ-Ka; Tue, 15 Dec 2020 08:38:08 +0000 Received: from mail-eopbgr140089.outbound.protection.outlook.com ([40.107.14.89] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp5qM-0001wG-JF for linux-arm-kernel@lists.infradead.org; Tue, 15 Dec 2020 08:38:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c2GO1GyXD/YyJSp4h9GRUhCW9h4gDogpLsfoy2IgY7NzISGM1+lHbpYT4ZZnEDHiMXUMbtVJhfQHxwGOs6P7GTG8nOIq3NQCIid84Yor8t76Qet7I1UIkVNRbbsQwCTo8zGB+ing5s23rbwJqdj26ERso2G8lIS1LCFK2+/Z1YudvTy5WIS0JM9VdKKgumWfb6sWewBbpwR5FDdQr2rmggcm4O6RVtDv22m1MKtBKpf5lTM3a4i2/nd1pZOEC30EcsmmwrCHufonXI+or0cYzu9lE5tMEeQGzadEd/x5w41BWnYuOb/MopdiWOHCC4eKXdeqEhE37VWAJcFYjWB1RA== 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-SenderADCheck; bh=5CQu4se6wkoYC4VFeVDbzVYryNBepVd+nHvJd407cwg=; b=FpPXlNkr1BklHHOgzGSsVuNK70KoZ1HWVA0H9f9q9cXsV484LKGq0AL9VYNI62kJ+M64i36KFYk6JHXn/OgI1Bmief+nN+RVgqGa31DGkf+DTgiTaAOAfevReD4fwHzWYpZvvzJsb7mNwDmIJIsvizmGgSiVC9ibyav9/EcYX3gmi+nQe7JELguZJhcTgincY8YDYa7QxD2r6EXwR76hv6rbxTFDj5q2iY6IaemhYpsABCkHu3q5OEYffvW713biOrSqRQK0W7Ff5qLi+BMpCpw1pj4vPShDWpNyT5E4YBbBolVjTTCxCkZ+fid3g7/RB1wTQerWAODVg+wF/Il2uQ== 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=5CQu4se6wkoYC4VFeVDbzVYryNBepVd+nHvJd407cwg=; b=GvLJG8l0WZDSsitA4v5hK5gRUu/i/nGnJz1SGoHJAXZb0IPjKxagdSgWdt9e5CUAe/N1rMgD03X/B1CLrvoxpa/3CH9E4LMY8NelkAh6h0De7kHHJQHaK7a2kkj3eC8KrzKQ5IZIQlnnRYZHLsX1/7SS04vLdNXvHEqAk26LcZk= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) by AM7PR04MB6807.eurprd04.prod.outlook.com (2603:10a6:20b:104::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.14; Tue, 15 Dec 2020 08:37:59 +0000 Received: from AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::78fe:9b7a:a2ac:9631]) by AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::78fe:9b7a:a2ac:9631%7]) with mapi id 15.20.3654.025; Tue, 15 Dec 2020 08:37:59 +0000 From: "Alice Guo (OSS)" To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, krzk@kernel.org Subject: [PATCH v7 2/4] arm64: dts: imx8m: add SoC ID compatible Date: Tue, 15 Dec 2020 16:35:49 +0800 Message-Id: <20201215083551.6067-2-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201215083551.6067-1-alice.guo@oss.nxp.com> References: <20201215083551.6067-1-alice.guo@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR06CA0250.apcprd06.prod.outlook.com (2603:1096:4:ac::34) To AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from nxf55104-OptiPlex-7060.ap.freescale.net (119.31.174.71) by SG2PR06CA0250.apcprd06.prod.outlook.com (2603:1096:4:ac::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Tue, 15 Dec 2020 08:37:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 97047b10-146e-4dfc-892a-08d8a0d4baa3 X-MS-TrafficTypeDiagnostic: AM7PR04MB6807: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:361; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jZZh9zXMw+dbZpERzI4npXrRZSHbf7btdTZs67uh6Rgf35fv/Fa83r6hk7RFb6rcf7WAiJjWhuoLpg+diMGIvlwcP7GGbz5Mi5mD1qCJ/rm1vaQbX1Lk8Z7aMdSR+z2kI1pHFsrgc9MLAhd28nRdHGwzd8w3IusfxHuhG/1RJTcxliYrHYVcKHuUcHwrf65Izsg5Th0JeKVPjiSY4PIi13a8xwXOUHTaYIBKzADmXruuHrp8bXxI15wg6Grj+n6j5SoPacBzfOJaU+bJIvMCJNeBm7HTAgjZ5bw+muGzZdy7QRCQf1V+BVJxl1f4lvMgexI1meh8e5H+d+D/k7cPIumOxUxIitcUTYEHEKFZV0CRvHHyeYHO4kjTCuK2Fv+y X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB6053.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(346002)(366004)(396003)(39860400002)(83380400001)(6666004)(16526019)(186003)(66476007)(86362001)(26005)(8676002)(5660300002)(6486002)(8936002)(316002)(66556008)(66946007)(2906002)(4326008)(1076003)(6512007)(478600001)(2616005)(956004)(52116002)(6506007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: NP9UZtnTNgC/UIFwDofHbQUT/Ev1dVBs/hVI4DVGou006e0yxEDXUkrIYkDMl3BFx0CDmvrtDllb+GCqPOtxETcJpHxKepVGxD0w9BtuXVic6xCIva/u4heoJbeAiaIOn61Fe7cXKu/6YVQjKPzcix+kmE7aU6VeOj3H8a6BBgF22MV0zqKnBJuwzem5Wvva1+w2LuWjVDTvnT2wEf8tXjerx6ti1eL2t0R0gd29ftluY9c3+CHIUxLY/19MVhvFpoLJWUslcL2ZYncIn3vjePX2VgBtHml2M1CnLPhImUs0Vugpz00omIdQXinx2fVGEHVIC0pdHrA6HjPrXMmk9eckg3+ns4Kk0C8AtJoFZrs0kJeq79YIjYl+1fpfD1VC7RN1iuuuZWbIkJ9H3LQPuKUhW5m4YF+b3uPusDvrJCHv7M0pfD2Dse7zyoxklCwWMsePen/FQZQKmaZdaVS8rv92nFNP8nfpm9ECELp+q28kI1nLT/g5IAXQGOXsiZDmmaiFWPz2fCwN+GcP3/59zNG5HOaEOedxHuE+EFnvk5UFjCz+YUn5v/gXX+swJUGb9XzXDqQZUr84rCudrDjcqmoH/WIWk04baBxC6U+qMbvmJYALYOfWD3XXbLD/Ov6dMAEFNj2/kMgehqeIam8fNsrkQqQ6rPocrDDWEFBVOPfujXI/NJmMAB2Ktp9jvYPWGDo19fj2HgJ6stA1osNuqaKtx5f8LxtWSFFUr4Gk3Fjw2w8jHdkcyJSazJnP/7vXVEEDCrE7e8YNYZJ3R4VtETnaTTZnjEm4b0h4NeWiYoV/YdzfFacZgjVc8gclk2UXo/8ewDeZHAGN3L7EOGGjGFgQZvtdbkpBNseueasa4jxcJhE3fEGTFb6FcRICuX0ZNb8aUUsQFUOKJe0Ub1c+L1FykXC/o3GG0PV3UopoAIYQ7K9ZeENWLwgZ1pD7FyLBTkXarW5/T7pI/eYjbvA1DF6oPZG7+mxZslIcaBt4oOaMm2cPL3oAVFhsQCY/qcms X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6053.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2020 08:37:59.7116 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 97047b10-146e-4dfc-892a-08d8a0d4baa3 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PpH6ZElZWW71PLtMvMvYmK+sXua+1EIYn0FEL8h9ngmzucMJvmmjc16rYBQbneMlvbEx/MDPZ4rLuCeTGUj7Aw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB6807 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201215_033802_705593_0B80444D X-CRM114-Status: GOOD ( 12.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Alice Guo Add compatible string to .dtsi files for binding of imx8_soc_info and device. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alice Guo --- Changes for v7: - none Changes for v6: - leave only the changelog under '---' Changes for v5: - none Changes for v4: - change subject and commit message - add Reviewed-by Changes for v3: - none Changes for v2: - remove the subject prefix "LF-2571-2" arch/arm64/boot/dts/freescale/imx8mm.dtsi | 2 +- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 2 +- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 2 +- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index c824f2615fe8..d457ce815e68 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -257,7 +257,7 @@ }; soc@0 { - compatible = "simple-bus"; + compatible = "fsl,imx8mm-soc", "simple-bus"; #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x0 0x3e000000>; diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index ee1790230490..db50e6e01ac5 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -241,7 +241,7 @@ }; soc@0 { - compatible = "simple-bus"; + compatible = "fsl,imx8mn-soc", "simple-bus"; #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x0 0x3e000000>; diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index ecccfbb4f5ad..ec6ac523ecfc 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -218,7 +218,7 @@ }; soc@0 { - compatible = "simple-bus"; + compatible = "fsl,imx8mp-soc", "simple-bus"; #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x0 0x3e000000>; diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index a841a023e8e0..9b6d9307e5d7 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -286,7 +286,7 @@ }; soc@0 { - compatible = "simple-bus"; + compatible = "fsl,imx8mq-soc", "simple-bus"; #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x0 0x3e000000>; From patchwork Tue Dec 15 08:35:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Alice Guo (OSS)" X-Patchwork-Id: 11974227 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77B6EC4361B for ; Tue, 15 Dec 2020 08:39:28 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2E3F320855 for ; Tue, 15 Dec 2020 08:39:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2E3F320855 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=tcqj1Wy0KdQv0DC9TBGiyJd6gc75l+ZLDzcUVPHOJP4=; b=JHBysAEnm1aux/zs1AkcT4M/Y HnQqM7413xdNusYtqaZQ4oHvYWzw8aM0xQxnr+YrMho9Hf7dxhkearYKdSuNm9MHEnb+oOLnTAylb Dz3PiTIg/oxNHwX42UyI17rv9eiCkFPDHyXQbJgtTwKDBLklk64CQzVNpy2/Puyejs3nkPSd0JJn3 e7FOHrBZ7yYBsn7EWBRsIrmQBvZGld4jpGXn8f8Hbl+MCSBe3GC+73MeXWw6svkf+6Nd9wrBMAYEb 7iRuX6k1x8zE9bfbYf231vm89mkQunwKWSznN/syor7hD5nxGzrx9kPxgcRwI9UVd506bdtMHj+10 OSQirzHCg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp5qW-0001zX-3A; Tue, 15 Dec 2020 08:38:12 +0000 Received: from mail-eopbgr140071.outbound.protection.outlook.com ([40.107.14.71] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp5qS-0001wh-KD for linux-arm-kernel@lists.infradead.org; Tue, 15 Dec 2020 08:38:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E1UAerOzd5Ir010y7AT20sOw+ta1dbNxQDSqF+Y3UQAtGfYmaudkRL0MGfphkQamviiCb2O3Oaf2z6WFiBTrHbqweSqlNGOLLWrjATfxVJ+PHnzhz2oEu2L5ZO1KIuP1V81TEB4+QkCGmdMFZHLWrDd37o2VMOzIf4b3fMgJWJhHmO1/PzsHiQNiFSLHFya2tK3HjXYdHlUDguZ/C7SLMAZPzHjwsFk6hgIVn+fgX0yn4R91Y6YkZfTeGHaM3z5zPUXyrmpcd6lXSCcc1egtBGNXEG0ieSIaP/kmc3klxwwu5pSjEloLRhaA/eRuPI/w4mSQvjkOaPOngXf1LLw2Dg== 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-SenderADCheck; bh=qCKi3w2kSLf60DaMObFPJH0RcGwUYPgITeLbiN1+W4c=; b=NlX/dUaFtiKFdMai9NMGMgVsrtDmDPa2HFnyEmj8V61hNGmjXbh6CJYUfS72WCT7+rI7k1VlwkCcByWN420zYERLEP0XPWrV5O7P3e5mB3fCWFPT8LuyJ/mwRI10uvw8nyKxWj6Izwj0PdM9uvm2o3TDG0ekoqTDtBanKvZd/+1IPJNKNYZEgjxYlCsfLZVjcVUshq4M1DPqToJjAbYcsnNK/mcOThxmUYjDvQ5iat4wPSHhsaJX9GtWwUWoAI6WB92cB3k9gD6cvnnnuVwfZCH97UYbHmV3Ehpx8fAfFWQjGoaRBreWKUdQn6PZT8UxR/Ue1N/Mr8c/EGBBsyt3sg== 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=qCKi3w2kSLf60DaMObFPJH0RcGwUYPgITeLbiN1+W4c=; b=HnJyPljXw7s4JGzy6gKwv1T9sWZ9bfJtk9G1/pzDw2L77WPq2GQPD3o/j4Wiw0jkgmQkB4VnGWcXiNjSPFMCKK2P0n85H+ESw7xbBVDIW4jPFs1a69bw+sZLpMbtjAllR+iqfeOV4J8/I2oDH1zOb6AnAQ9KOHEypd9LuC3U5/Y= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) by AM7PR04MB6807.eurprd04.prod.outlook.com (2603:10a6:20b:104::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.14; Tue, 15 Dec 2020 08:38:04 +0000 Received: from AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::78fe:9b7a:a2ac:9631]) by AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::78fe:9b7a:a2ac:9631%7]) with mapi id 15.20.3654.025; Tue, 15 Dec 2020 08:38:04 +0000 From: "Alice Guo (OSS)" To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, krzk@kernel.org Subject: [PATCH v7 3/4] arm64: dts: imx8m: add NVMEM provider and consumer to read soc unique ID Date: Tue, 15 Dec 2020 16:35:50 +0800 Message-Id: <20201215083551.6067-3-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201215083551.6067-1-alice.guo@oss.nxp.com> References: <20201215083551.6067-1-alice.guo@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR06CA0250.apcprd06.prod.outlook.com (2603:1096:4:ac::34) To AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from nxf55104-OptiPlex-7060.ap.freescale.net (119.31.174.71) by SG2PR06CA0250.apcprd06.prod.outlook.com (2603:1096:4:ac::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Tue, 15 Dec 2020 08:38:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 979a4ad3-8c98-4ba9-389b-08d8a0d4bd66 X-MS-TrafficTypeDiagnostic: AM7PR04MB6807: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:506; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: muSDhqtWbm7n8foT1Vs48kX7UtSBXsfIQkc8uXLITKigAdvALaT+t/IFeDr1+sY5w7gwzUSiRoKSrcrxI8y3oCnhZ96Q+AIqAsieXiJfvvfkuJM/r+8rsSkxtD4zENzH6UJkYu6PNDv/i2LPDvI/MRrSDZaX93zIu+LVlb/iKgrqqHWq4llwT5YJShYuL4vka4UvHqglnLkrrc6UNllZkGaNur4uI2XYDLcE3/xIN1yA+rRoeafWGKpFyLmQdskSzF9IPpUp9GCvbL03XV7A8nItiEncuMQWSNIqSQjOr7FamLzd5pXAKleeHlamuZqtQXc3PZMnI05IcqKbGJmB3YBo8ILo3vsBS7a3DrCfLhJWcPf4S2QKQV0yjjx4COC1 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB6053.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(346002)(366004)(396003)(39860400002)(83380400001)(6666004)(16526019)(186003)(66476007)(86362001)(26005)(8676002)(5660300002)(6486002)(8936002)(316002)(66556008)(66946007)(2906002)(4326008)(1076003)(6512007)(478600001)(2616005)(956004)(52116002)(6506007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: /8zjayraom9RFXwrGLCm29XTWw0yVSkctY5SrgoCNAyYyaPeLkdxWvepXwhfE3E6FroUYP61xE9c1KXh48b8OFDyqTsq1YvMAapSCfpBGjLZfUbfxyIX7I2JWNpf2cnovxncsDNlmIKC6pyxsrC3XV4N5dcmPYtnG8tM+inVkcgXQL+qryUEB6WxB1TEIGJ7+08TSFWzaNF2WC4XjIEKDLN0v3ZjyK6R1YT/zunJPU7XfGhvc9ue+qTYbOsKDfwcH0jGzWI8TkHaRiMHhDggobCTES4H5Wf1+cyLUlFAOvhOvvYjN2pi+jmo3iiVzCp2btoe7DeW6Js0mfo/AMVElU5fSTbX+gNWKKMz1Dy8RoOPEnNY2ib7Kr705leMk/1Xov5SSsAhfAxhJWDlVU1rVrYKr+b3lCCqKk3dwlWORRSH2/0beQHWb3GBJFL7nUD8Q/1YNovtc5wW1klMZZFF78R85vlBUUvUwpgSfpGoDpOXdnha2KtLHR3F5SgMwCZrmJePRqz4naG2jJwH/GoXATn0LR7VadZj9vhbDFA64BDF5jDa8gBeS1RIhgpiQEHrOv2fq4HDGTprlxEmATcDjWBELvRm7WMA13BETW+qa2YSyDkY7AoSA7z6quVa61h7swTnYPuftgcLsCsmfBwl09bQWKFC+Lpbky9HIn2pjC7lf4HgCi51MIKjGf7u3LhimgGEb3WnswFRl8WkHFMfl7vwSZ3ceTDOQNu3Epb0TVoxKX189z0kGPhxo1gI6CU6b6Syjg+aaYdJed9rZykoimjmuvwbUnKbLE/FZZQ24qS9NPFKq5qHnPf7a2DiU2KMUf3lzfCNTC/EsohznCwR5mbC5ObshpjMUNhX0tzgDabNd9O8Ab7Owk5oIq8oWyw3rJKLJrLmz2ub1cxR/RMx/5AcDCfm+Rfz4loJLtIBQe8IZ5/zae4/6yAt0rRLAteXYIHTC0iInxG+civ5JUB7b9/FpP8ndqfR59nhQk35EQE0uYelbtHYo7rVtwQzGFqn X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6053.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2020 08:38:04.2759 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 979a4ad3-8c98-4ba9-389b-08d8a0d4bd66 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rJIIZTWygxFSZusKIVtGUppAYxe9so+lfEug/3/CDxU5UnNrMxcQ67PReolFz98Ija6gPTsw87jB1ePyOKQ7gA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB6807 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201215_033808_710191_1CEC2718 X-CRM114-Status: GOOD ( 13.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Alice Guo In order to be able to use NVMEM APIs to read soc unique ID, add the nvmem data cell and name for nvmem-cells to the "soc" node, and add a nvmem node which provides soc unique ID to efuse@30350000. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alice Guo --- Changes for v7: - add Reviewed-by Changes for v6: - leave only the changelog under '---' Changes for v5: - change underscore of device node to hyphen Changes for v4: - delete "stuff" in subject and commit message - add detailed description Changes for v3: - convert register addresses and sizes to hex Changes for v2: - remove the subject prefix "LF-2571-3" arch/arm64/boot/dts/freescale/imx8mm.dtsi | 6 ++++++ arch/arm64/boot/dts/freescale/imx8mn.dtsi | 6 ++++++ arch/arm64/boot/dts/freescale/imx8mp.dtsi | 6 ++++++ arch/arm64/boot/dts/freescale/imx8mq.dtsi | 6 ++++++ 4 files changed, 24 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index d457ce815e68..9bee6f1889a4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -261,6 +261,8 @@ #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x0 0x3e000000>; + nvmem-cells = <&imx8mm_uid>; + nvmem-cell-names = "soc_unique_id"; aips1: bus@30000000 { compatible = "fsl,aips-bus", "simple-bus"; @@ -518,6 +520,10 @@ #address-cells = <1>; #size-cells = <1>; + imx8mm_uid: unique-id@410 { + reg = <0x4 0x8>; + }; + cpu_speed_grade: speed-grade@10 { reg = <0x10 4>; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index db50e6e01ac5..b344fdc16534 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -245,6 +245,8 @@ #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x0 0x3e000000>; + nvmem-cells = <&imx8mn_uid>; + nvmem-cell-names = "soc_unique_id"; aips1: bus@30000000 { compatible = "fsl,aips-bus", "simple-bus"; @@ -531,6 +533,10 @@ #address-cells = <1>; #size-cells = <1>; + imx8mn_uid: unique-id@410 { + reg = <0x4 0x8>; + }; + cpu_speed_grade: speed-grade@10 { reg = <0x10 4>; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index ec6ac523ecfc..9401e92f1c84 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -222,6 +222,8 @@ #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x0 0x3e000000>; + nvmem-cells = <&imx8mp_uid>; + nvmem-cell-names = "soc_unique_id"; aips1: bus@30000000 { compatible = "fsl,aips-bus", "simple-bus"; @@ -328,6 +330,10 @@ #address-cells = <1>; #size-cells = <1>; + imx8mp_uid: unique-id@420 { + reg = <0x8 0x8>; + }; + cpu_speed_grade: speed-grade@10 { reg = <0x10 4>; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 9b6d9307e5d7..a2a885f1a07a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -291,6 +291,8 @@ #size-cells = <1>; ranges = <0x0 0x0 0x0 0x3e000000>; dma-ranges = <0x40000000 0x0 0x40000000 0xc0000000>; + nvmem-cells = <&imx8mq_uid>; + nvmem-cell-names = "soc_unique_id"; bus@30000000 { /* AIPS1 */ compatible = "fsl,aips-bus", "simple-bus"; @@ -555,6 +557,10 @@ #address-cells = <1>; #size-cells = <1>; + imx8mq_uid: soc-uid@410 { + reg = <0x4 0x8>; + }; + cpu_speed_grade: speed-grade@10 { reg = <0x10 4>; }; From patchwork Tue Dec 15 08:35:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Alice Guo (OSS)" X-Patchwork-Id: 11974229 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C1B1C4361B for ; Tue, 15 Dec 2020 08:39:32 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3463C20855 for ; Tue, 15 Dec 2020 08:39:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3463C20855 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lt0CEv3lJhhPx/iyQxOM1cSdyIfwXGdbKnLSgHmQIWY=; b=sBj7p6kHQ2ORh9vvgMEI76bkl cDP+NIBg1tDcgolM8+jxaxW0aVO7PRQuAqf8773u936rzmtlSoQV9uaYjMKpaiHI/+dRAFXFPlS93 Y8WrDBPdYH5N+QqLt2sYJOxpxU0twbmVJbAyzil7kzui2roTogW3NosG9GqbJlix404AfP4B0lb5I moYUFFdBv1rg2OYi0/HNzqY4y5qdoB+/BVyiIDl3uq4pIaTqEUeXVIvIKZ4FohsAba2VuCirV0juI ZQwhQDDVnmKf7h0a/JAeLGt0S72c9F8aox+jsxw6gW+msm36e6MPNSYIOuKcQFLUkedtW0r0JRWet aNDVFiDjw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp5qc-00022a-Hq; Tue, 15 Dec 2020 08:38:18 +0000 Received: from mail-eopbgr140047.outbound.protection.outlook.com ([40.107.14.47] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp5qZ-00020I-ED for linux-arm-kernel@lists.infradead.org; Tue, 15 Dec 2020 08:38:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TOaE+WNck/MKv1z+7bNN9/6vhmBF02VByOk5rBb4DR4OCN0165LRKKbgxmJU6dX0+tbhz8XPmV7EHzdf1r4Am6Nw/99zjNDJrRoOw0766rUwPp2A8k+YHLNomF/bFgUYSBXLC7vSFXcROZuKCMCPumVYp5s/qSFJg+A4ZGOv8AokhNVNZPrZZmqc3ncvPDqCL2tjAqOqneSGB5gSQ0jg9P4gQLGJYBcCkA47P7D7n9aLW6u1SOj3AGaPlg1dIxeQsDT6pa6HfWR8NTjY1eE2MPrCkyLHDGjEKqfsvuce6IUd/u6GoC6OubnQzku3EbksOR3a+yrXAhKgdT0SlbwS0Q== 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-SenderADCheck; bh=neTcX9m2uIo0xutsc3LeLYer4wUv60DvK0WOje+vipE=; b=V9ne4iiV7FjV1A1lP84lsl/DHZhBatNtixNavmqeoOreEtgBICPx8VSX4cIMpsPe4TTBROr0Bnanr45k5vvsIYHjgb9uik1X4SrYMgDvrhdWIg/y7fg/zhcHS7EHSFWkQBUSbEnoeGcgZEp4PPgBq01l6NFw1Xd2kbSJ+FiiuQGCttjiw3CWykS8G7QaXgKLb83nAR7R5SWGQNRx/SW2iIp48nom1dwpyRG6HGAdmkGMS9GQztrUsfi0bCrTugjtt2W2aS3OIAtklXc0GYvnyTMAG6ouQAoZggVbAGcVh5FQwck6xLmLmFhB+uMpnpuDco91TR1PBgVbuYB8+BbZAQ== 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=neTcX9m2uIo0xutsc3LeLYer4wUv60DvK0WOje+vipE=; b=lWwSBtLJXIN+hrtTyQiOng79faSH1A8+xubYexZKJnRLBeHfY9AXFgZ+RD1PskV5ZPbUSWHK4DOexDuAaNe3sAvu7q1vt4q6gp8iBX2eY4FQegQwVS7aGrQ1zb1NYVB5jCHhRnKqipY5Joz1VuzXRvNF8JBGABaPZ8dqb5rC3B8= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) by AM7PR04MB6807.eurprd04.prod.outlook.com (2603:10a6:20b:104::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.14; Tue, 15 Dec 2020 08:38:11 +0000 Received: from AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::78fe:9b7a:a2ac:9631]) by AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::78fe:9b7a:a2ac:9631%7]) with mapi id 15.20.3654.025; Tue, 15 Dec 2020 08:38:11 +0000 From: "Alice Guo (OSS)" To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, krzk@kernel.org Subject: [PATCH v7 4/4] soc: imx8m: change to use platform driver Date: Tue, 15 Dec 2020 16:35:51 +0800 Message-Id: <20201215083551.6067-4-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201215083551.6067-1-alice.guo@oss.nxp.com> References: <20201215083551.6067-1-alice.guo@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR06CA0250.apcprd06.prod.outlook.com (2603:1096:4:ac::34) To AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from nxf55104-OptiPlex-7060.ap.freescale.net (119.31.174.71) by SG2PR06CA0250.apcprd06.prod.outlook.com (2603:1096:4:ac::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Tue, 15 Dec 2020 08:38:08 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 06f6d4e1-24fd-4a97-8588-08d8a0d4c185 X-MS-TrafficTypeDiagnostic: AM7PR04MB6807: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mfDluSvj57sOz2JeMMcG+cb6eE0vwJ3MwWRH8conElJEYkuy/pYi2jygFMMnfZSGCmOXx+IfxVI/wdAzNbpQu0tmVmOk2tqGxi9Q4jKQY19YfNXd2T/9OTJ0IhlbsUFSPIwrWjrBQJ09N7sh6/IfXq0MGPI3QPx9vo8ResBwIPBEuj/TVHuCXE4EgwIi6vz/pPHsCeSWNSwtqYX+x4eYISLbVsT/y5WMFl3IMp8xUZ1UvYRtkYJ3pbEHdD8YYF5cdBj9zwJeFjcTqqqGfFfcVH9OvlKJCN2MESqNy0/0f+UXXc5MwR41zCnVR9+2VzIXZVNAQ1DFlTEiYOIQNofyMIP3gvmfO1IUDg/5UTsdhh/CJRbaNPnK+WpIpMeK2wUZ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB6053.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(346002)(366004)(396003)(39860400002)(83380400001)(6666004)(16526019)(186003)(66476007)(86362001)(26005)(8676002)(5660300002)(6486002)(8936002)(316002)(66556008)(66946007)(2906002)(4326008)(1076003)(6512007)(478600001)(2616005)(956004)(52116002)(6506007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: XuOlHbU1cFWn+zJ/zFVzR9giRz30Im5TGUs3+Ctm4z7TEaEGUjn/jE0yjYHgJ1x2iECslhAk3SB1oj5/BSodLmtilDnr8rT4OS9BlO2vc0U7pFuphNT2+YL1nM0AgnBT2zcs01XzuHV/CDUcXH07deSwdWvgaWWJsn7uuB6nR3KcrSLqrc1sqGeb+a+ucx04WjSuKnMuGJl47ftHOs1GEinT4vD3a9K+Iscr7Mzd9HveGXsTjJEdblwjTC2i++HpTOssElSKRr4Vb6fjI7Kgyp09hwQDfcwlyp5IcyCQ2y4e6gecx464v4wqHS0uYUAEpMV/aZLyuX0lSgbPWurkBvwyZ5LkY0uwnv8wpjZw9pDAjTDBCugdyDl8GaNFkmgJz0jp+epYWgVSIMXHjepq+zMb1Zj7UnQ2jupm0MgJDwBcAzQpGUpTzHq0Or590ctH4RQ9YH5rSoSUoAmOga/T1CblJdtIpRQTH+ht40U3Jji9M2ABKbgW/hTHagLYr1QYjyFwLuCxXr3+FIlyNkGsiDNu2BGCSu7xaUVROdBH8Qmp6kCSrhJA1rGBbLY4c+Aa0to01We7oN6b7T8z9FAY+ZO4XtbsDaWToSFfOLpb+fbUsKm7WzxWXXRjFhT0dLBqbLw34jNWpgFA8Gqs9+an/t/+TbJgiwWlH+Ci9XDFUu8zGxixaP8zLsnrha6lq1umU4PoguuRANW9uJDTOxBvhPiOZ+A8kJUQf8toW5u4EkEhFcn+U1mqR0JOQ4ERHSxCYstK+NFjBIWx87BjSArvj1ClU6P5tcPCZMZxvU7ixLs+69omx4iWnGV1oZll6Hio2y3a26NFN+c5NPLL+f0TLyGTeWYGHe+D44Er6pFquI5275ocXIki5VO7m5D8wAU/ibb8u6DinPgHVLQSTj9uwm5fBz3lZ2+AC12rEiKlerpknWN5YvQmfwPBFodcL1FMfWWMKtuW2pnwjRQeOqzrXByg+Vp8aMPGrcdvIjwW268wycqK1KCcV9fNoiXz/wTN X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6053.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2020 08:38:11.2289 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 06f6d4e1-24fd-4a97-8588-08d8a0d4c185 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: I7vnGlGkGjoMqtOKZhOVt19xWWh5NhO+eqXVHc1qppcxBIojwKMQ1+oaxSk8zOVug1ekRhyWtGCrannsP7fU8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB6807 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201215_033815_667534_E03BBFBD X-CRM114-Status: GOOD ( 26.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Alice Guo Directly reading ocotp register depends on that bootloader enables ocotp clk, which is not always effective, so change to use nvmem API. Using nvmem API requires to support driver defer probe and thus change soc-imx8m.c to use platform driver. The other reason is that directly reading ocotp register causes kexec kernel hang because the 1st kernel running will disable unused clks after kernel boots up, and then ocotp clk will be disabled even if bootloader enables it. When kexec kernel, ocotp clk needs to be enabled before reading ocotp registers, and nvmem API with platform driver supported can accomplish this. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alice Guo --- Changes for v7: - add "__maybe_unused" to solve the problem "drivers/soc/imx/soc-imx8m.c:174:34: warning: unused variable" - add Reviewed-by Changes for v6: - leave only the changelog under '---' Changes for v5: - add cleanup part "of_node_put" - add note to explain that why device_initcall still exists Changes for v4: - delete "__maybe_unused" - delete MODULE_DEVICE_TABLE(of, imx8m_soc_match); - rename match table "fsl,imx8m*"is actually a machine compabile and "fsl,imx8m*-soc" is a compabile of soc@0 - delete "flag" and change to determine whether the pointer is NULL - ues of_find_matching_node_and_match() - delete of_match_ptr() Changes for v3: - keep the original way which uses device_initcall to read soc unique ID - add the other way which uses module_platform_driver and nvmem API, so that it will not break the old version DTBs Changes for v2: - remove the subject prefix "LF-2571-4" drivers/soc/imx/soc-imx8m.c | 87 ++++++++++++++++++++++++++++++++----- 1 file changed, 75 insertions(+), 12 deletions(-) -- 2.17.1 diff --git a/drivers/soc/imx/soc-imx8m.c b/drivers/soc/imx/soc-imx8m.c index cc57a384d74d..d5c86ae32903 100644 --- a/drivers/soc/imx/soc-imx8m.c +++ b/drivers/soc/imx/soc-imx8m.c @@ -5,6 +5,8 @@ #include #include +#include +#include #include #include #include @@ -29,7 +31,7 @@ struct imx8_soc_data { char *name; - u32 (*soc_revision)(void); + u32 (*soc_revision)(struct device *dev); }; static u64 soc_uid; @@ -50,7 +52,7 @@ static u32 imx8mq_soc_revision_from_atf(void) static inline u32 imx8mq_soc_revision_from_atf(void) { return 0; }; #endif -static u32 __init imx8mq_soc_revision(void) +static u32 __init imx8mq_soc_revision(struct device *dev) { struct device_node *np; void __iomem *ocotp_base; @@ -75,9 +77,20 @@ static u32 __init imx8mq_soc_revision(void) rev = REV_B1; } - soc_uid = readl_relaxed(ocotp_base + OCOTP_UID_HIGH); - soc_uid <<= 32; - soc_uid |= readl_relaxed(ocotp_base + OCOTP_UID_LOW); + if (dev) { + int ret = 0; + + ret = nvmem_cell_read_u64(dev, "soc_unique_id", &soc_uid); + if (ret) { + iounmap(ocotp_base); + of_node_put(np); + return ret; + } + } else { + soc_uid = readl_relaxed(ocotp_base + OCOTP_UID_HIGH); + soc_uid <<= 32; + soc_uid |= readl_relaxed(ocotp_base + OCOTP_UID_LOW); + } iounmap(ocotp_base); of_node_put(np); @@ -107,7 +120,7 @@ static void __init imx8mm_soc_uid(void) of_node_put(np); } -static u32 __init imx8mm_soc_revision(void) +static u32 __init imx8mm_soc_revision(struct device *dev) { struct device_node *np; void __iomem *anatop_base; @@ -125,7 +138,15 @@ static u32 __init imx8mm_soc_revision(void) iounmap(anatop_base); of_node_put(np); - imx8mm_soc_uid(); + if (dev) { + int ret = 0; + + ret = nvmem_cell_read_u64(dev, "soc_unique_id", &soc_uid); + if (ret) + return ret; + } else { + imx8mm_soc_uid(); + } return rev; } @@ -150,7 +171,7 @@ static const struct imx8_soc_data imx8mp_soc_data = { .soc_revision = imx8mm_soc_revision, }; -static __maybe_unused const struct of_device_id imx8_soc_match[] = { +static __maybe_unused const struct of_device_id imx8_machine_match[] = { { .compatible = "fsl,imx8mq", .data = &imx8mq_soc_data, }, { .compatible = "fsl,imx8mm", .data = &imx8mm_soc_data, }, { .compatible = "fsl,imx8mn", .data = &imx8mn_soc_data, }, @@ -158,12 +179,20 @@ static __maybe_unused const struct of_device_id imx8_soc_match[] = { { } }; +static __maybe_unused const struct of_device_id imx8_soc_match[] = { + { .compatible = "fsl,imx8mq-soc", .data = &imx8mq_soc_data, }, + { .compatible = "fsl,imx8mm-soc", .data = &imx8mm_soc_data, }, + { .compatible = "fsl,imx8mn-soc", .data = &imx8mn_soc_data, }, + { .compatible = "fsl,imx8mp-soc", .data = &imx8mp_soc_data, }, + { } +}; + #define imx8_revision(soc_rev) \ soc_rev ? \ kasprintf(GFP_KERNEL, "%d.%d", (soc_rev >> 4) & 0xf, soc_rev & 0xf) : \ "unknown" -static int __init imx8_soc_init(void) +static int imx8_soc_info(struct platform_device *pdev) { struct soc_device_attribute *soc_dev_attr; struct soc_device *soc_dev; @@ -182,7 +211,10 @@ static int __init imx8_soc_init(void) if (ret) goto free_soc; - id = of_match_node(imx8_soc_match, of_root); + if (pdev) + id = of_match_node(imx8_soc_match, pdev->dev.of_node); + else + id = of_match_node(imx8_machine_match, of_root); if (!id) { ret = -ENODEV; goto free_soc; @@ -191,8 +223,16 @@ static int __init imx8_soc_init(void) data = id->data; if (data) { soc_dev_attr->soc_id = data->name; - if (data->soc_revision) - soc_rev = data->soc_revision(); + if (data->soc_revision) { + if (pdev) { + soc_rev = data->soc_revision(&pdev->dev); + ret = soc_rev; + if (ret < 0) + goto free_soc; + } else { + soc_rev = data->soc_revision(NULL); + } + } } soc_dev_attr->revision = imx8_revision(soc_rev); @@ -230,4 +270,27 @@ static int __init imx8_soc_init(void) kfree(soc_dev_attr); return ret; } + +/* Retain device_initcall is for backward compatibility with DTS. */ +static int __init imx8_soc_init(void) +{ + int ret = 0; + + if (of_find_matching_node_and_match(NULL, imx8_soc_match, NULL)) + return 0; + + ret = imx8_soc_info(NULL); + return ret; +} device_initcall(imx8_soc_init); + +static struct platform_driver imx8_soc_info_driver = { + .probe = imx8_soc_info, + .driver = { + .name = "imx8_soc_info", + .of_match_table = imx8_soc_match, + }, +}; + +module_platform_driver(imx8_soc_info_driver); +MODULE_LICENSE("GPL v2");