From patchwork Fri Dec 18 08:37:23 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: 11981581 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 4B318C4361B for ; Fri, 18 Dec 2020 08:39:20 +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 0E12322D72 for ; Fri, 18 Dec 2020 08:39:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0E12322D72 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=OPcpr+VTDeDNILHr/cwPa9Yw1lYKcOx62pTXyLhCTis=; b=Z2AdomWyQKWcZBgHwByQ17hzpG Wt7CssfZ69H92sv7ehNOa9QL2VjBbDf8mP/caIDynG7GqQYB3J8M2Dh+DKaTZGL5D5eDI8zOzZeBp R6lrcCI3N4V52Tnj2vQhaLJGXJ3ftGb4QKTrdyOQsxDd93sl2q0KPYA+jCZ8GQtVO4wk62yJeI9Aj iz6iCCfDLYzhx1YxompAZdV1i7Ebi7dgUMYEzdESqJ3Mj5+ztBPt8IP3IiW5ojJGXq7ZjrAEFVIVl h9gaMOJp+nsm36ObXh+s70t9O05qvRQsstLdxPA/HR+Iso/BXjdfBRHNgFz7P9Nt+/0arjguJOoAZ nz0ZkWtw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kqBGt-0006Ix-BY; Fri, 18 Dec 2020 08:37:55 +0000 Received: from mail-eopbgr60047.outbound.protection.outlook.com ([40.107.6.47] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kqBGq-0006IT-Qk for linux-arm-kernel@lists.infradead.org; Fri, 18 Dec 2020 08:37:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mkjc/Lt37jrTZVFdYMxczCn1shrGGAkEtV1qJG+8U58e98M8huaVK1lNKMVUH7Ngr+opAuPFv0Nq6T2p9L6LaDyKTug9Rk9x5XJDhdJymU5BJCadnKqsU3yHOSctwM3zU8C9WpeLDS7f2p6R+otpdjasV8/moGc25bsDaf74+orZmNjOlVLxuMRkVx5Sj2t0F4UxwP3k1ZhdE3LaGcAc/4cKnmxAsIWlei89w4h29AqDWLyngv0xgkuOcPtQ+DEBEo2YwM7JRPQG/dlY2sXrvfnDUSNpcBKAGdzgImIOglH17N1+WNoGwiPpJaDlmyoLFqePMOCQ7A6ZuqXkuIJBug== 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=CZjENg3QHes9SO65wM2vi7aBdXC+p2Vrzf6VIqQkBFk=; b=koqMFHm9Ar+b3YWke4NK2AMTY9F8g7uXjyYRtKDckafndWrUTnQsbcYoquo3uwQGunypcRBc8b4itzR+mmIuJBIVDboIISGHo1zs+uXhRHEIYfAx1tAWAnMDV3RzKTdx3lm+/XvU20UwXJ6oZbpWpS+IEW9+6hDa2vbQ8hqC/HODHLJf6dLQT0+pomv4pv1wvdzJpH1WBymWaVB7Ma2LvuiWHFVPalfKl3JVZtUcFL2SrhWo2V8hW7mGMYCF8IXXd3y2FqIg0/edvzqIVBKmNKmxzaNDil4rBs2A7xN/sZmm2NVX8YAs9s+SnlJDjqqz4aanVJEi4UMF5FkH8hl0Og== 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=CZjENg3QHes9SO65wM2vi7aBdXC+p2Vrzf6VIqQkBFk=; b=ADsfOUNWxSG27SiCsXIfzUr5B76IXdo4S60YRt83nSikLj3xwGiMo5mMF7gb7HO+M7UMSmmt6/Bkcz+ZuPjO0Wt3duER8budMusapHoz5OYXHy/DNhcb2GroSJM8JNvId52tV2/6gudR1J3KjOpAx6iaJ3HwNO4JqN6ZhA9f78c= 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 AM7PR04MB7096.eurprd04.prod.outlook.com (2603:10a6:20b:113::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.25; Fri, 18 Dec 2020 08:37:46 +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.3676.025; Fri, 18 Dec 2020 08:37:46 +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 v8 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID Date: Fri, 18 Dec 2020 16:37:23 +0800 Message-Id: <20201218083726.16427-1-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: AM0P190CA0030.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::40) 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 AM0P190CA0030.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Fri, 18 Dec 2020 08:37:42 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3ca114e6-5762-4ac9-2c54-08d8a33031e0 X-MS-TrafficTypeDiagnostic: AM7PR04MB7096: 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: +xlBN/E7ZbK1u5aBqh5/0cXQIT5O7xwF+0zmB6p7ZrZi0Sj3Z0tDb849hQK/MHwgN/Pz1A7M8mH3Nr3qDS1dS+eY4TAPaSRhFejKYudxwMvmPGN9C/S46pPqfrrCmPDy/F0q2YWan4XB0DUnyXz24M/vkPfDZCDT50JNOQhjSBEbwlamQBOxC2pL8/PCrO0k903t+XPzthbosnY2FDPtaqGAJ0fZzRNnqOcqNDXLIw48Lh4V8jvLUzWAvU7tAusmYdFe3XvinX0dCSQIl3NuQqsVTb7CwRp/bcbdCIUfeougcwLLMi8ThLwoDpypCFgbe5dg5F4SnMlsA7PYeVoc6GWgw6a4GD2VM7Giq97qW31l+YdmZ3QoLNVa/1aLoqwLKJZFqV5KpotTVTyjH0Cwc01jcTxIH460ZOoNstENTcy6/DSos8/rZL8+ATyUzcKZocbW9JOxhumENV/uebreiiSYHnnmCgaUArCLEzBPQzCDQbW5eZJaiC/BpAqF+AEZ9PpXy73GBjbwY+hJFdDt8A== 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)(966005)(83380400001)(4326008)(86362001)(6506007)(6666004)(316002)(6486002)(6512007)(1076003)(186003)(26005)(5660300002)(16526019)(52116002)(956004)(478600001)(66946007)(2906002)(66556008)(2616005)(66476007)(8676002)(8936002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: NIJveke/fOJbsEgeklO6Y4tM5Gj8veCzpwj5F0mDVs02ce4Ct692VlicJL6DdjFixoft74JD646etFqCzKhGRHZej/y0GaIQdF85kGLQlxnn6MeJt2ttcELrH6dNEYsLVQTxWBuljy7mdbbWXFPAElbudE0+0Sj6Lu4KMCrj+CSk8ueusQkFDH43TlDXkse76EVINbBBJ2d/IYN8DIMTORz4HkfOIMpK/y/9uFs7PmkcKURAEhLF73vopty9x8L3ai0WkVbj2IVG3L1VfpHGY67xBHb/d7nQa9/0jE6zKScSb/EWPJ/F1f2cd3D+drd82QpoZRL5+W37oDasqZMg6NaHmfRHq3HCj5k6Ybax7ZGsIbPsEwy8LKW4Y2EpTrBcNYntzyGZaY3kivX8gMaGHGtFBmOKc9eXHnDNO0HNF3ZedylcPMv3q9tGAzsSuTBifWhQ3j42B8M1i5bSaQ7oDeNapV0pyRPeKQdTL1LWoB+OC0EzpDo4JtJMOE1TGrKjyod8B+wXQq1MtlMqS6Rn2ci6gZiipWgiEDCTRGZZ8Lh32J8iuqC2E7pJ91KQmco1vumbFuffk1gF17JJiTk+5Facv08i4P68QiUB399jVx+p8YVEFODdc0xQtTyfbdPStvKPC/ThNuQ9WYgayT4ZF6KGjZhLUdN4Fy8LI0gZfk9voeNng0qKPuEKzAzZy0Na7nLncQvSHVK8DCwqo39fDydKXAYsi+Z0kXnzqhUf7+ud7nTF3X8zQvHuGYDQB/O2AbYkImAFYpxFhc6ZYd96G78Kp7LIYRjdnX3z1EAwgh7uckFeoCyRD9s6DtbnkG/lU5aREN3j7pew0+8kFixJN36/ttxD2U60gNs7Gxxfbd9vV1dqmr4+CkyZLDksL4WCBnqFLtXFoi5ZRETMTfo3aKiNANa3T85cTfpdLGZJFZSR20guN/RJe0c0GD8KT8M2uhnfB/srh2dkLtl3CxVtS/go/jk2ajq5c7OJbmYaiWCV2GDMYpkiVL8SgWHdc27z 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: 18 Dec 2020 08:37:46.2068 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 3ca114e6-5762-4ac9-2c54-08d8a33031e0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CWQcCjBKcmBjyaJx2E5HMJ3ZLBGZ/hM/Z8wVE7XE9rn0YsKAvGCDKamrUx2d65YXcHjtlPrdRrrtN9ZTfMVBDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7096 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201218_033753_018282_953E5CFA X-CRM114-Status: GOOD ( 15.24 ) 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 v8: - match soc node with regular expression 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..f0b0fc7b3ac6 --- /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 + +patternProperties: + "^soc@[0-9a-f]+$": + 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 Fri Dec 18 08:37:24 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: 11981579 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 E911BC2D0E4 for ; Fri, 18 Dec 2020 08:39:19 +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 A6A9E22D72 for ; Fri, 18 Dec 2020 08:39:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A6A9E22D72 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=NTH0wcOGGh0WnbP1vEjIaoDcEHTEQhQnjeV8jBD3i/c=; b=DEPh/IsCYHN2yZSX437z2RZe2 1v9TpaL2J3S7x9THp91XDE35e6sObDm6S2kGo7j2ufwrw9el6mvB7LUEy3gxJm66UU6lbGiQ9+sEh RwHGDqI+0Cr0W9xjJYzf7J8SLjZwebc3/QZDV+DEgBpX5Csb32NEBv5fozv1mmjc/BIK2CIftMqVx ncvvWKkcCqktrepr333n2fyJduU62kDRO0xQx0X9IXja+Rz1ZATfbyN38+zDUWGRNObn27pFKORP7 Tc9xnStvhJRRzN8atOipxFAPpBBR2ARhitpaJ32guWXRLe/WY7sT4aa2sKy930ueAotu2p0GguSCY 42p5USP0Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kqBGz-0006Jo-L7; Fri, 18 Dec 2020 08:38:01 +0000 Received: from mail-eopbgr60051.outbound.protection.outlook.com ([40.107.6.51] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kqBGu-0006Iw-3A for linux-arm-kernel@lists.infradead.org; Fri, 18 Dec 2020 08:37:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GPzv7cxylAxmHLF1wzeUJ61NQPWcdYEljKa72KjPfzpfTjJGH9RapzgsaF/az6PCYxsHU7h5aEcJJX/yk/B1Hf+uu6TiVXz49jLuht+SvQNYRZ+pjPa64+4bWjp+HGdWu6XyYDmTOA69MCvvBjkr2S0al0swO4LoQjJByNsD1TMeZM4W5jXBz5DXdB6Mo+17j1bVeMvEkpcDzNQhbnn3fZ2kHuPoBa1rlA+H6zXm3hbaKqObkTa7lMFRb4GqbgaSf4EXVoUgA+YjnWVcRMuc4gKn4TuVcJTao4pk9wfuQx87CwqCANTV0AAGkYKIfAT53hT5Br+Kz6FDoxvrUmL7SA== 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=Mt0ltC8M/WcFFRu30RVcMVjeva/xgQU5JL/9aJswkeM=; b=W2KTrsW+DQDewyivgZJKMyvpy79BD2t1Dw/xWlBzlNmqApkP/v/wk1/LpksSrSSAaRD0QjNMIlcYW2U/fJb1b976CU4QMIf9r9LMYhTtUP/08XKx8+ySqY7VjNebgtffcLI9+LV8GmsWeI4nlCC0Zv9NgT00Zi0stq6MaafY0hgk0AdgnyM6dJpchtGTl/0Agfl4xbB4KDnZAkCt5BZMkw9qeGUiCUCz+IjoEp3sfW1o1ego8HMpQmSceq1oP5PifR6Dvi7JUNs9yft7FxLO+CjEG+DJwvFfCfNMSaJY3S2G/10a/FTKygBiv3LiB1UjA3RTI/DU1FXIK5A2joSCJQ== 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=Mt0ltC8M/WcFFRu30RVcMVjeva/xgQU5JL/9aJswkeM=; b=W7HXPdIqN5Y3cm42230WLEw+0ZouwY5NPH5Pb+tq0Gmchqgtq53jrlUGnPB873fmYQnXgGGW9ZU0LFA8KOxCGuyOLQF8XwADRzaTrk/8qu1h+onNyCqFsvc107+Ey1L6u67BbARXLVhYS+XQeIPgeD+v3DaBt8tTlgZX1MA+CDE= 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 AM7PR04MB7096.eurprd04.prod.outlook.com (2603:10a6:20b:113::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.25; Fri, 18 Dec 2020 08:37:53 +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.3676.025; Fri, 18 Dec 2020 08:37:53 +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 v8 2/4] arm64: dts: imx8m: add SoC ID compatible Date: Fri, 18 Dec 2020 16:37:24 +0800 Message-Id: <20201218083726.16427-2-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201218083726.16427-1-alice.guo@oss.nxp.com> References: <20201218083726.16427-1-alice.guo@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: AM0P190CA0030.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::40) 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 AM0P190CA0030.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Fri, 18 Dec 2020 08:37:49 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d8b589e2-1985-40c2-1a40-08d8a3303629 X-MS-TrafficTypeDiagnostic: AM7PR04MB7096: 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: hsU3unVPsKBm9tL9HJupLw1irRe1V7XBZOgFLsN6LBS4cdsH26v6JYKIN4AuKBLULTwc9mzn/hWUMAr/AATGtwRZl7ItJYEUEXn3HXCwoj+exh7A1J2q0f+vvjZaJL5PxE/nUua+NUimnO7p09lhzTf94Kphq4QjK8trFpNm0Y0uzp7cSBx40H3X+RXkZVN7kTw9wihrOL5Eg368/c0wqlgtEyzFQKMEGjgvFJQwhGCxHrkJgi7pAywcup0qE6O6Bdblc9tscx+d29Q8cO2xn/H0Vt2mVXapejAfnkR3k5djIdWWpRmk7+wwWqj/0ph7Twq2cG3yzUKh9efQAD/szbOp5UMtcS5jV0Xc3HfTE+iN0CIo1XET5ewUgV0uCA/qrS9YF1nWiETI0s98+P1YavZeBeXSGb6xcv3m0ILeuTowVWqG/HKlTHaeMZpKnhp9 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)(4326008)(86362001)(6506007)(6666004)(316002)(6486002)(6512007)(1076003)(186003)(26005)(5660300002)(16526019)(52116002)(956004)(478600001)(66946007)(2906002)(66556008)(2616005)(66476007)(8676002)(8936002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Spatj6MpbBSBJXGi4tqf65Ikb9nKv/IkBqPAkK5GmOMNXEIEagx4UO/TsHKQPOLF8Xm+x0S8IS7xL489Hq1vqkSXkszHVsoO4hQDb8MtUg1ran7x1tOYDBXTNas7nfvwmheCPoKQ5GTg2gMRktcZHxQJEksZa+Z8Zash+2JkTJdi2PipS99HHaxvtQmygrP2b1hd/gGIDtLIuZjQau5rmzx+mAOLVOSeXBkklI/UJgKNhhs7j/jjliYh8nS6ZJ/X5D1yTgoO1pHl+jqkYBVSqLWgNLCF2r4SSj9Sj8LveLURPKR2siKa8vE9mXuQeZZSEp8HrhDkMvgcpYwq2r9tJWM9AY6jwpI/VMGr2ygdRgJzpHpjtCw5lUgfNBbd3hctUyfb+ts0fI8U18kqfvQaQQsTEUYQ9nC62QSyk+pzO4ETtjjudX/X0dNGsIvRttI2A43UwZ9r3U6433dVbmWIV7GB8rOfhRWEgq+p87clFZZxqDhtoDw/58KZJRgc46RHY66v36z2DRZm2VSe4jZRCJtZJzjTnhUqrLpfGW4wrYa8aFiWUSqVL3sPZuPRpzquniBVtsemgzxvmGTgE4Lfqf0XV61i0GQjt24crggRr0qvceVjseSTAdeYWCCphGOrRDzKUJUNwpsKCWUjJ9LjfU+vSBHshm5EoM4HIB1fYjrLw2bKY51eTFIBksvWmfV/gGFZvWfQ3PuLc6y3qXkVNIzysfTruJ3sP8XMQtJdpu0b0xf1yc2smYEG6dkhQqktsaEt+OCa8YPf0jGnN0rUimzkaNXKDtALucEjSloFfDzz/1fZ3woAw3nP6nJa19vkBHfPUDFHc9QQ+wkBYhCal4Z5y7Iztks2dEuHlDXDWRWbPzTKuli9e/bgdXtOsdG7ppWcw2iDYzfNrgI2LPleWulwRgrGSGCu39tjVMe6o6XFX1Eh4Q8KYVC9YHahQx0glENHyJjAn5/WN0ZRxhi4Ph5CNBdOwkLw7KYyxSKkbtb12UmhrF/nGIpz7pnXVgZ/ 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: 18 Dec 2020 08:37:53.4946 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: d8b589e2-1985-40c2-1a40-08d8a3303629 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +57y45zziSVdToZcnD+ojEqv/CT8RnsVFA50sfUVECfc+CTF0p8jgdrhxyBNERRI2m4drkizRotXEE0YJ8DaGQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7096 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201218_033756_204601_0864BD9E X-CRM114-Status: GOOD ( 13.03 ) 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 v8: - none 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 Fri Dec 18 08:37:25 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: 11981583 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 5F087C4361B for ; Fri, 18 Dec 2020 08:39:26 +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 0749322D72 for ; Fri, 18 Dec 2020 08:39:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0749322D72 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=5sIr/eVCO8GmM/Zc4QTjP8IIe4MQ0ywl7LSmjNZgunQ=; b=zRM+uykh8OYD3/8IwOcIObxp/ iXwfJlZWgAM44yJkhzKLgIDBUdAdnW/sGLOu8/BJv9plFmHr+BmhxzpNEfIrHTcYXIq4Vi0500R9y LeirdXIG73YLJi9kBY/c9NggtCVpILYbqznPr3Z/f5LE8ENqrxvv3xy006/ggs0nv/21eOxGBSptu ohoNRynVxucqAV+BMcpTRm+596/2/LWBQNmaGdspFFG9GY268FKyTDDRm8nfsQuZ00pkjzAmgEAEa 0vb/NPP5oqSvGrLgZNfLtsVEAvokoEMP7jlQhicTsylsuRlIj5v796jGmVW+Mg1BsEHqnRC6xqMNU ch9kWEyXg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kqBH4-0006Kb-EM; Fri, 18 Dec 2020 08:38:06 +0000 Received: from mail-eopbgr60080.outbound.protection.outlook.com ([40.107.6.80] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kqBH0-0006Jt-Sn for linux-arm-kernel@lists.infradead.org; Fri, 18 Dec 2020 08:38:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F/NU9G2ZZ0E3QbtjyE2KXnnyIVQvtufVEAxq7JMQTRQQI7g/l5yirnXlPvL77jiuHm1hOjQ6UciQzfcaVQHcfzbo+A5ywgjuBqvaM4ICchJzHUuaoC0GAHvCHb0T0Q3VbH9VtrXLhbBoD5TngvthGMfFGirhSZOdvvZfJYu5zC5vOgVECibGe7QG6twkbK7HLaLbGV592kgy6jAdGgCUDURGv/8Z0Df6zsoPEEnhbb8pnLOUBts9TVjOXHhI8mboZfLqUgBZw4cUU4v/jxn8J8OJ1+1eHdgCjT4oqQs1WSJTjRPG/csGnpOpWb80gDs4NALX3sGsu2LSB8pAMYVpog== 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=j8SYH+NbNYy61rFBwzHoAsIFaktYavvqqxII6NS2/j8=; b=Bmqdh89SM98E5xfybOTUbKBr6VvqAw8mmw4cWf4uxpQonOMmqnDregzHiN+VrldwxBu7Yac35c1nb0HIyZlAletrj7vSKlQxAq00VhfK4LdqOSWraA4KjHesRjgrigsMhI+XwRFAKJhb5eWqwxkwyjEGvfLjJyvGLx0RDqwphEfvGkK2P1i4O3HgTH575Q2QpwwReYy06dluGwFZiBTwpEoNUHyNKjquZjFulw7MDcuYrZzG7tXzSFR9Outf/M92d56VC4O1Om1S2Amo8odIV1ByKReFZcGuRYJa0X4jZyxE6gwEIX+B1tBIkTGf9XYLsNwwMvsKkE6EOOt6/zrcZw== 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=j8SYH+NbNYy61rFBwzHoAsIFaktYavvqqxII6NS2/j8=; b=RUUaX97qMybJNkqlSyHx53Q9S0mTSdRj5bDpeBzNwSiMcFRkw60GWOiMdJ2gK0c4AuD31egx3P+e14xoX2gD9XqKsuCn2yC5wbAjJqXuQMsmzhI0Dty0A3vNVfKa0pjVkQ3eruS0U4TQLOtGC4Yj+qk3luTlKQ+u8mwNdpYYKx8= 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 AM7PR04MB7096.eurprd04.prod.outlook.com (2603:10a6:20b:113::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.25; Fri, 18 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.3676.025; Fri, 18 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 v8 3/4] arm64: dts: imx8m: add NVMEM provider and consumer to read soc unique ID Date: Fri, 18 Dec 2020 16:37:25 +0800 Message-Id: <20201218083726.16427-3-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201218083726.16427-1-alice.guo@oss.nxp.com> References: <20201218083726.16427-1-alice.guo@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: AM0P190CA0030.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::40) 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 AM0P190CA0030.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Fri, 18 Dec 2020 08:37:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f1eb7cb9-b10e-47ef-499e-08d8a330397b X-MS-TrafficTypeDiagnostic: AM7PR04MB7096: 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: EwChF78tYrYKhhzdPMKOvPSQSSWjKqS7KFa6f5xWvPF5u1YfJXik9n/nEtkxlNpooRyMMimelGBv2dDjUVTabvAmtOP+irDwAcoScp4PfDbW0LJW0w+5Tsv65MuwjCgJtXqzNg9f5Br4Ta1RYaLZ6jji6p3+wgj1B8NCOSSp6h8il0GHPAGX5g6uuUAWqqbxX0rS/rBX+2EOu3GN8caOmRrYLOGqVrHsKwwnRyUlT7X9tAPnlXGJmXjm5Lb7EHA0LEWjB8lrcSx5rtZtmwMPWMO8n+zcjyROOTQTek97iY0tzZ4SRSZrMbuh3jfUys85GC82q19rjM9i/sKDYhPhketPGI9+KecpF3dVOPXgq1Xt2RYwJ47jxUIM6Gct73dLQk0W2rRqnVNWKbVBfnZE5rzPsvbe65yt6QHun4cLbfgjybI601bmK5EqKTRXXpWw 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)(4326008)(86362001)(6506007)(6666004)(316002)(6486002)(6512007)(1076003)(186003)(26005)(5660300002)(16526019)(52116002)(956004)(478600001)(66946007)(2906002)(66556008)(2616005)(66476007)(8676002)(8936002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: nNEfsrLwbMIenmWwAnTYMEaeeqreSSsb4T3CSM/mDyI+2JZG3rZQBluqn0jc7rWaoFl+pUph1Kvf3b+ZIaH+3LxhGYipDkFxNxXIfV7W/5+3AMGBj/ig+TTn3+FSa97XqbYkoIVm3suvOwZd08CVVY/TMQPkWDxeVGyHdVd3TDLK/LaI69LzxQKr9tyLb/ylqhKefUuZD+xYBCQFhfAgO2HXS/txShD+r0/UC6+qDv9Y2fdxe86YBg5UszRoKlqffCFGCE3QkXLbl1PKB6nkaAPmH5qa6Q/tAc9Qi6VOE7TC2C/osPczz1DEJ7ik1HhLnxkEYx7Ii+jaMubrMOsX2kRTUSAfmWER+JkS7Mf2J5BRgfN2FMXxI3qS6dS8Db3yAp8y85Mx/SGf42Ee54uaICygCg0OA5FHP5fd/9j3J32i8L1Sh5ErmfwosXzGgmXNpH57hnQf7dJNoayxosfEA2OX72WKNJTIDt+F8b/dfGZ/A9U5JSoMw6D3TfKKV8Y5hw43WRjpODPuWC1Fs5U5ofI/Ab5MhaeGiw5cxFNxrkchQapR8JP4cuNoP28qM1HZTJEJHRlJc5D+oqi/YidyfFVWt/7aEd4YX8OBZGaj+BEu8XzyTZfOckiOoqq2HWiqWPI6HcTSSb4C3TDXLEsJ/dW8XE+wYg0yaGOI6iF9yaSm4iv3MSHhMi4wqjNNjKTA/5LshgE1smRF7/zp/OhCmCa9iQtZgjw9SC23mxSxldgMbGFACsB0N57o73fQLc7YQmz6Kq7jtrvMdT2dIasfHvxMYTT5ZBZFtfwAHDK3RSeGeVI0Ie/qkRJ+Wnkv6QM0Um8V/WMws40yOb1nGmAYkR1N2mPXZyzJHpvruQhZXEVIQ2is8UHbZy33LgILKs0t3hFjUNUzagNGxfkEsbvpxsbF0IBFV++A/waG8QWMA7D1bZhcJFZkIQmqh4JuhVm+XtMe8O/5QeMQAIA3L+SNSyfhTPmpi2S+9qkgGLs9I6l2QbswARqDyue7TCF7L53G 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: 18 Dec 2020 08:37:59.0664 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: f1eb7cb9-b10e-47ef-499e-08d8a330397b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Jtj34GAQ04iP66dH9prsWbCfKzyR1NDlO4On65inVTvlMIitBvGuVIfVz51AfYhagsAFi1lXBQed2ai+XZra9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7096 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201218_033803_016440_CB0E0757 X-CRM114-Status: GOOD ( 13.57 ) 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. Signed-off-by: Alice Guo --- Changes for v8: - none 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 Fri Dec 18 08:37:26 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: 11981585 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 2D558C4361B for ; Fri, 18 Dec 2020 08:39:29 +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 DD3DB22D72 for ; Fri, 18 Dec 2020 08:39:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DD3DB22D72 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=AEOgZpaWsG9D2LJIhxHIvJHPjDJvfs2Ev2BqLhjEQCo=; b=1rwDP0Wv2trrF0zdRLmU0ix7T HTruFMolrnTxvZLjbTewnjgVQKfsiq9vsD35a63jXCP5eJIZnb6i52Kk4WfHCjNORAmQJ8wF3ngjs Smq9qrzfiRilrg5z5V8pMyQV/xobsJATe8V2TMv+IV+IqiGHcudw162elf4RACWMypqMfRuBBf5qn mouuyM1TOfS6MabB7xzd/rWEWv7vYFD3KDVR4RN3r1CA8bKZ915BbYQ1vn8sL9JbZxOiilegTFRoB vVDlJjuF3VSUL5CRj/tXoowKs3WJqMVVzL4BofKq60+0Nqw9oQvRcOVRBH710Nog7VOE/Z0QCzPY6 GBu0LY8Hg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kqBHA-0006M2-FT; Fri, 18 Dec 2020 08:38:12 +0000 Received: from mail-eopbgr150089.outbound.protection.outlook.com ([40.107.15.89] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kqBH5-0006KZ-CM for linux-arm-kernel@lists.infradead.org; Fri, 18 Dec 2020 08:38:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GxWogQ3Mm/TV9E8oVozIzXlhWhnOlZxGO/0kODikup43NELZ4c+skzFv9TzJ6HmtEbOG6DOSo09U2mp/sG+y6QpWBuXjWeWW0lMZSkCjbxwI1Qoz345AtWHrLdRfmtQvFNg5Si3ilFaEJJYvBC/xsgRrmRhHI8FEZhDmk76StLS3jneFI0+9DuNvwCBiboJY0Y7i00NZfsxjAio9+PpWzepaoeSOb1+Q8istEkacpn8w2wBFtlFmPAM1z53T/95U5jqq3jfFRjlwN9CIZiiklZAD+qp85RaDSsTuKoSTm9b55zQ6A2Yirml/5cbmlHZY+Loqrr487cB+gcB9qq6zFA== 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=9NCAHft4zK3bU4TPl29zjFXelekEYPl8w9CEfRVTPbg=; b=Ugkq1q5d2GrXTMfguUovHxFoN2j0I/TpJhznJgAp+eC+CsNM6n9/EVUk6jcdUJ1gkxztjxtgoTt1p/dZvo/VG5Cu84yKGmLnOzzlK5UwB3PbtzggK8C6c9TVfJYxUGFiOFUojpRdl4gjFCOcRUcSHbBH3pwG4KK2mimzQz8RlTtvSdpGfG9CSQv3yPW243vi5vMbbz1BgcfFCu8Sp+vdhZdM7Hh1f1rv4CVJtcBvP41c79u4lL7LcGqUymbWuYOKGFx1IyK0Zoh0I/zuNGYMgXhgOzX1sUIQ3CffqN7VZDaEWrAZq2HYY+ZlcUOpHnnVNDFTI8MW5FQypYVwZ3HfKQ== 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=9NCAHft4zK3bU4TPl29zjFXelekEYPl8w9CEfRVTPbg=; b=gFVq/lxHh94e80WvJexvzfq30ExzX7shOtmp3Q28OnqolgzVsTVPOExvCOZgxBqQtZA75MNY/DtxU7gmFF+fdf3D0eGuUTFPxSjWLUHtwhhKKM4woeWk6DUoAn+iq1q/88mHooYxjQC02QSls9XQgNBz/mqmyrYjifdhFiS1rNY= 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 AM7PR04MB7096.eurprd04.prod.outlook.com (2603:10a6:20b:113::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.25; Fri, 18 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.3676.025; Fri, 18 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 v8 4/4] soc: imx8m: change to use platform driver Date: Fri, 18 Dec 2020 16:37:26 +0800 Message-Id: <20201218083726.16427-4-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201218083726.16427-1-alice.guo@oss.nxp.com> References: <20201218083726.16427-1-alice.guo@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: AM0P190CA0030.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::40) 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 AM0P190CA0030.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Fri, 18 Dec 2020 08:38:00 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 116e0a41-bf56-4d0e-ca49-08d8a3303ca0 X-MS-TrafficTypeDiagnostic: AM7PR04MB7096: 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: 1SgT6VwdWrG5Hxx7IidbOtsw+IC7M2xa9+uZTRbXk8mV6GXhEBczavVEHV3xKgnBCr5qFNcVvdxaUbtx3npvxs810IOmO5n/txMJ6T4XZQC7LqK2dlPQ2Cnatyhi7+PxrvFzaGqcHV9mxDpafKGH7XsjLrl3jEm3JvGhP+c/blCpONrGJFYCJZsYoqjwuumE/NpU/D8oC3lJte3HU0yNyAHzwpfXCDll2e/ofUsWh9Y2XpsT6krdaIkuECMI1C4K/Gp22c0DjL3tzgMMI3ESz4TvxALLLL+XpDOVkEjlweeVY9QDes7EcE/V7XOS7qb1G0Kxj+KMQgseZ8YfGWcnvOUfpJ6GtZFFf4Mf5tp97FsoVDrJ15F/21IQ4une9bVYGNQVG35iM310996hIGuoCDfBJg2CUpDrOY0/Jiz9rDlwY0n5PTUmxAKwMmEoILR+ 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)(4326008)(86362001)(6506007)(6666004)(316002)(6486002)(6512007)(1076003)(186003)(26005)(5660300002)(16526019)(52116002)(956004)(478600001)(66946007)(2906002)(66556008)(2616005)(66476007)(8676002)(8936002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: VOQeYQV5Vu0qdrzQuVTNn8Ss79RfEQwW9cDSy5bufWgnHLWk2aq9aJfZDfuJIgYjspnvX/keHAnSOe9rRWx5TDeJfh7Ay6bKJtjmNI8TyUuyaenS14gTQ/jPoEC1oXUhuiHY8lV23MClV/dAX74alk1n36Nf92W/j+zYlzxwpRR4RjeH5xX4dy8hLGtKu2jIMxzaDM5m4HF3hdWSVdPgXSd9h/eZf1+KRhScjzEVv74vKLgxmIcTuMi8YHrW+O3PRcLn3kVbT2kq9QpUkSjzISdwbEvDBP5KSwGLOBlULhcmctJ/q/F172hbht1yYuvE6N8Wg6jgDpEtHNMHKpUttQVG5F+zJurQECBqVfTJ8CQ3k4tIMB87wdR2gkBKDcnRvg1EnBc0s5yMYYSFl7kG5l1bpEZUWtVMR0zebYS0AU+zNSWdG/BBhG1op45sjcvCXd5OEKYMyw2Ov9yfjnecrEo1jhj5IVogrw8uT2GjyS7nKv+YCuh+uTwdAQ16aya76ybUgj9HNCvBf0NavPrTsfp9Zx8OIKgM+k6behLf33OrBmVIb5V7/N/Y0hpnuTIb94ymr3eSXpmr+2hfKZ5dXV7cOh7u6Kox4s+oCBn8R4idz9wh6Lo03f6j+6rxEHthlv+mWJhL4TxBb5LiIgYU1siyntfn2Qt7fn8ujyyAfoNU7PciZIBprdChfB8+kN6q7ycw6j+CEELTKj5X7wBq7mrxcdjAnz0us00xV09OrwjX3Br3zzg+mWmykgacvOvZyf5e2zJFCKC7pSkfd18bkD09gVaKiHF55IR0SeCI9Bj5bOyDFzzsHgPdc6juu2aE6Lx/vhKq3HuKbPojZSej4zR4SfqjLYtPYOWbrh3k9EdFwTRVYlEPOwLVXAqNZqjNVuGO1GjNK5K97hFzWa1croL2vI2Q/oLVsgmPDWtoZVsQbf48h0PYcPZR5jCvLhld9KXyY5S4HzMJDOBbPmphZQ67tUTbL/ZqrdzBNxDkWgD6Fr6nQxpYgrVVtdl+7tn3 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: 18 Dec 2020 08:38:04.3393 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 116e0a41-bf56-4d0e-ca49-08d8a3303ca0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3u1ovumS9efhm8Fp+8cx0Ter9qmLA8XP7dXjoL3A/d06elv68YWptVRdhqO2o/IGPuUW0OH+PfY7unGOOpZbcA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7096 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201218_033807_502628_216ED8C3 X-CRM114-Status: GOOD ( 26.43 ) 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. Signed-off-by: Alice Guo --- Changes for v8: - none Changes for v7: - solve the problem "drivers/soc/imx/soc-imx8m.c:174:34: warning: unused variable" 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");