From patchwork Wed Jun 29 16:44:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Viorel Suman \(OSS\)" X-Patchwork-Id: 586008 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1AE4C433EF for ; Wed, 29 Jun 2022 16:45:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231296AbiF2QpO (ORCPT ); Wed, 29 Jun 2022 12:45:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbiF2QpN (ORCPT ); Wed, 29 Jun 2022 12:45:13 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70045.outbound.protection.outlook.com [40.107.7.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71F5535878; Wed, 29 Jun 2022 09:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e6MxrZfi125DxOqnmrE2wbpZRzlDvzuwTnlL2bRb4W313tXzEwU8AD0KRhOYzAS8hoh7jpXIGQwl4ivs+7ICfhpsgyrJEFAhbMxhKbNdo0eDC9oslkm3VMZMRoE+N7BDLzAVrI942iwD/MFoF8QMrphZo8gh1CqL/mbpYUo4zSYoqfFoBzJqmKJctZDvkvSQMeCjqAf7D4/k67On55XwzDGqh684cmceyx0TH+gmBb3pnKireag8VrqgfYJiEjp+a1I7jo6Q86mwmrMGcjel/einMHEonQSH/nu0NIgej2XebKuYt92FILL6X209J0j6HDiX/GwbixN6CrrzCWCXOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1UQ5TfUU6mYJxqgCveH4le0geBXS3OyOGkrMhHW7Z6Y=; b=BeyZuau0njSDChVG/qdduozBUGtRVzUg+Tme+Iz0A/u+ZZdcMnyb1RSsA6qcPMsC/D45DtOvIMCaVj7yygJuNt9P5ag9hT58td2ELm9jCBb5pY/jDk7+H13XtbEJRX92IgBuOZnarfMk/vqpJAA4dOAubLEa95msjbSykMoy1QfOFel1cL6zCb4CqtybKJWLtiC2gg0jubna53u1OJTx2Sz6FJ0Czifox2vkAl4O1G1pf3TOWyo/PY1FrTPMVP6pZUZdsP4h2YPu1NVOm+XuI1BnsuvJ/eFHgalKPuc5XMnjNnGWMmZr1kN7W9Ss4iNvgsiS+brQ/Q321YN3/ugGaA== 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=1UQ5TfUU6mYJxqgCveH4le0geBXS3OyOGkrMhHW7Z6Y=; b=U77yD0Y/JH4zqoBpxWAKx9NoPqMqzjNtfmq3KMoiD88rqqteGwwsozCiWMDOpH1zkn3CfhQv53a+aORPDxFPSRzR9OIKggAbq8SMNY8cGvi8oDTaNEEurYuJtglc1T8ODoJDNrCMtddfqD8tkSJeNvAHQyPlN88jaP1eoK4yW7I= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5005.eurprd04.prod.outlook.com (2603:10a6:803:57::30) by AM0PR04MB6401.eurprd04.prod.outlook.com (2603:10a6:208:172::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.14; Wed, 29 Jun 2022 16:45:08 +0000 Received: from VI1PR04MB5005.eurprd04.prod.outlook.com ([fe80::6546:3ee1:5e6c:278f]) by VI1PR04MB5005.eurprd04.prod.outlook.com ([fe80::6546:3ee1:5e6c:278f%5]) with mapi id 15.20.5373.018; Wed, 29 Jun 2022 16:45:08 +0000 From: "Viorel Suman (OSS)" To: Rob Herring , Krzysztof Kozlowski , Michael Turquette , Stephen Boyd , Dmitry Torokhov , Srinivas Kandagatla , Dong Aisheng , Fabio Estevam , Shawn Guo , Stefan Agner , Pengutronix Kernel Team , Linus Walleij , Alessandro Zummo , Alexandre Belloni , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Wim Van Sebroeck , Guenter Roeck , Sascha Hauer , NXP Linux Team , Abel Vesa , Viorel Suman , Oliver Graute , Liu Ying , Mirela Rabulea , Peng Fan , Ming Qian , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-input@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org, linux-pm@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 04/14] dt-bindings: nvmem: Add fsl,scu-ocotp yaml file Date: Wed, 29 Jun 2022 19:44:04 +0300 Message-Id: <20220629164414.301813-5-viorel.suman@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220629164414.301813-1-viorel.suman@oss.nxp.com> References: <20220629164414.301813-1-viorel.suman@oss.nxp.com> X-ClientProxiedBy: AM9P195CA0028.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:21f::33) To VI1PR04MB5005.eurprd04.prod.outlook.com (2603:10a6:803:57::30) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c8708d87-0968-4ada-e949-08da59eeb9fd X-MS-TrafficTypeDiagnostic: AM0PR04MB6401:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xosRIUytEIKmXjA5Ly5dhQiqTLU18jqLPs0Cu3JI2X0mo6DQl9I4hpfXrqaJJTi28KdNueF3fVQmdjIvOV8iS2t4fQXedHN40vogmf5tdTlScccE52IxbcZh5aWC+bYY+20l5eOZqWQ9rLX0AaMP6Bvof0tyLhUnqfJULlYLIdcTHwnh0EUCq9VwIsg7YeVg0b/IcorXkPEYEsDPC7Bv755gzZqKENcV10auLoKNyL50EVYihmO6fckOraYepeAM5jYcNLLsAFUTEkPOvW0ITmMjMPdeNU0c3WdnaiSnaqFgaTQfcrWKUgJV0qTUwKd8e6hbqYqeNpoZ2zWh91k4KjPEOoZtThFI5sI8Q93OG+Bks/GxeS3LRV/23hU74BNhyXBNjwQQUBP0Q96RZhQbFOpD7RVSKVeQF5x6KaPjgV2mtrU/MSS3op3yZtD8T0+P7V7OhXZhieCeGLj8FyafbVfFPsmFShkKOWkm9nyrErHbOLtqx6YClz4CxEpKR7e9M8KFyhYNLlKDMoghRwLfe8hq1Xza061smuDPNzKFPzuKSqSB5OdfbJY+mTjOSgjhZh2hjefU1dNzWKAjTyNy9DPwS0JwAGJH99OlvMx6VfR8QVTZC3K0cpLNKls+6T7AUeGLfyCeBv732B1jWhfRAzPokBu616FWqEiiXFK43n9oK+Qi64t4ipqIBpqGtjeI7mLVc5Amo8PrXUavrN3dmJsEHt8Y/tTSdVXpUVcHBqWhiUA/j1toMd6p0IEjsFnfV+Yw5JllnYyPPvlqhqxyQPmuBOeztgia9X5Hcr7loBgmQfCUZc6N6AA2GfMpt6yqYzitufcNkryKA9XC2K13Po7UtzkbFYBDJlag3aF1TK96rD/s7DNXlaq1S3rXMmN7 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5005.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(396003)(346002)(136003)(376002)(366004)(39860400002)(5660300002)(7416002)(38350700002)(110136005)(38100700002)(8936002)(316002)(2906002)(66946007)(66556008)(66476007)(52116002)(7406005)(8676002)(921005)(83380400001)(6512007)(26005)(6506007)(186003)(2616005)(478600001)(966005)(1076003)(6486002)(6666004)(41300700001)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?q?9kn+t/vTN9Fq8o+O887TWXJ?= =?iso-8859-1?q?4h1YyoaQ9BN5DYchrO1QBjARcs2dlndXJqLg5OCpGzalZJgHDimCf9oOLbrn?= =?iso-8859-1?q?lNNb3ZAFW43vJMoGVNcPJl8EoZfPDhSUiCH2Azo7g6cf06ALk5opayo5ZvcR?= =?iso-8859-1?q?fXoTDOosg6k25kLek/t4vMAcneufrdIdU57dT/AGFV0k3j+V/zbKXyyTzPgD?= =?iso-8859-1?q?6bH2+bbiINHbaC8ys0pLFwokq5sonasm7H2/5AKxKC8kNSWgEJKdNzqRqr8P?= =?iso-8859-1?q?D7CHVz/iIktsaZfZ9Xf4t4JfQeEIJy1MUqereOkoxTHuBloO78oDD7g6gPCG?= =?iso-8859-1?q?NesGG+kOfGpHm6zYYaPMyTdnLp1nKCWlpCMOyggZ2pxl0vlZgdg4Wla+6Pp+?= =?iso-8859-1?q?bTBv1dqpp77RPTSJ6coD6yvn7yI6nwm3AuATAXv72Hg58NrpwlAikAmcP/l4?= =?iso-8859-1?q?gcnMSwbIoQX/w0SHArCpOXnGqyczSLxRCs0ZhjGPU0bmCkZzqyr6nyzSp2pb?= =?iso-8859-1?q?KP2/vSZVivcj00e+4nczxYvF5tbRbKwIwiHbAK5kF/gLHe/MH2du4qVMcsiB?= =?iso-8859-1?q?q9mgRIrq7qGoM7dCLlm7V+jyfDtMrAc48or/UDPTlgfyrhTS+t2SLysIFxiH?= =?iso-8859-1?q?urIW9TijfwH4294cZs+oBlvlgF99U+K/xwIUvMtWc5VhrYm73phQuswRjqp4?= =?iso-8859-1?q?b/TjF0pKIuh74fyp9bzO9TACU/QrHJySuIQzZr6pT6n8F2YhCSW9831oiQJw?= =?iso-8859-1?q?xuvE57BBYXsTXCEip2RF6gELEIHa19G6kNHnybSGLGSjb+xERrIV64f4IPbz?= =?iso-8859-1?q?3Xtm+5Dhhmb8y2jS/GyEjw8oLhKOzlPlK8JI1/xMdILg7q4bkV3f5GDZmUb0?= =?iso-8859-1?q?k/JH07wzUfGBIRz5jS+/+eGiJdRXnOXklIHO88YJQadswBbKI1+K+YtoxRtB?= =?iso-8859-1?q?m4jD5dOGspy0APXsHtACj9iubuEl6UMdDVUdXQMEQqUCOKc7xOkG+lwsuyO4?= =?iso-8859-1?q?KgXfjK/GjTrw0LfJr2gJww/7UEs5cOhBPB3LIseer9dGeq/Q0rmEY53AlG1E?= =?iso-8859-1?q?o/eq/p0CAPIG+NIKWeY9LTFhLZWoPJ/pV2tErXNsMnyZjR8PQoJjL/sBjNpq?= =?iso-8859-1?q?PBrYx8LJwPU+nKlNedLCnu13PQN5u+6tUddsOWKuJm1uxGU/iBILnAGN2/VJ?= =?iso-8859-1?q?kvI2X8ddHmNcX233wdjxN2xL1K8MeT5y5wlLc5qIWGM0xn1BR2EoqtnpoRni?= =?iso-8859-1?q?q43OpbpYeaH7AirNHN8/ouNPjSj5mZbNWmb3mRj/UsiKTQ447TRu3MyQHmAM?= =?iso-8859-1?q?KUCaml1yLzd583ptlKlZD5uZMNd6lrcgF7MIrs8lsTGoLu5oPFy+GfTvCh8r?= =?iso-8859-1?q?y9PHQrB/6Pu8IzP1LPxSA+XLdaGAllKNkNyYSWRgSK/3pYma9/9na7w0t/l9?= =?iso-8859-1?q?tL5pSgMJicfhV7i3vFo+OD7x4aIYj+8WOwraB33J6yrmps4sSxFNjXHh5EPe?= =?iso-8859-1?q?3XOf4MGhvb4A0nEpAR+kOdqcEGLwTbbbQ7kl9oFw8jcBGIdZZlFe6s9awjY/?= =?iso-8859-1?q?HANdlr1DinFmNSz6hOyD1ulWop/XWuZQLa1GRvR9hEESB8+0CynVas++uYE0?= =?iso-8859-1?q?6dbdwtxsP+ziqYUVB?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8708d87-0968-4ada-e949-08da59eeb9fd X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5005.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2022 16:45:08.5266 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: SvKOR98p8GAqhFIFgsku7f5sTv8xp+JJEcg76272t09gzppGQF67VasKSJiUe8+OdpC1nT3AUA6YelQB05vuhQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6401 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Abel Vesa In order to replace the fsl,scu txt file from bindings/arm/freescale, we need to split it between the right subsystems. This patch documents separately the 'ocotp' child node of the SCU main node. Signed-off-by: Abel Vesa Signed-off-by: Viorel Suman --- .../bindings/nvmem/fsl,scu-ocotp.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml diff --git a/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml b/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml new file mode 100644 index 000000000000..a8972acb1b01 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/fsl,scu-ocotp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX SCU Client Device Node - OCOTP bindings based on SCU Message Protocol + +maintainers: + - Dong Aisheng + +description: i.MX SCU Client Device Node + Client nodes are maintained as children of the relevant IMX-SCU device node. + Detailed bindings are described in bindings/nvmem/nvmem.txt + +allOf: + - $ref: "nvmem.yaml#" + +properties: + compatible: + enum: + - fsl,imx8qm-scu-ocotp + - fsl,imx8qxp-scu-ocotp + +patternProperties: + '^mac@[0-9a-f]*$': + type: object + description: + MAC address. + + properties: + reg: + description: + Byte offset within OCOTP where the MAC address is stored + maxItems: 1 + + required: + - reg + + additionalProperties: false + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + imx8qx-ocotp { + compatible = "fsl,imx8qxp-scu-ocotp"; + #address-cells = <1>; + #size-cells = <1>; + + fec_mac0: mac@2c4 { + reg = <0x2c4 6>; + }; + };