From patchwork Thu Oct 10 15:42:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13830462 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2F542CF11FC for ; Thu, 10 Oct 2024 15:43:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7D28610E963; Thu, 10 Oct 2024 15:43:41 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="IqdY4YPX"; dkim-atps=neutral Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010066.outbound.protection.outlook.com [52.101.69.66]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9FBD410E0B5 for ; Thu, 10 Oct 2024 15:43:39 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kUVeNmYoZ6IufJdoyc+Pz7aZgCdFDsWgUZOQ5lf0RsLkFVSFhsz1UltSJOrzpFS9YAK1pIJAVmkr/tmsx1bGk9MJk0uzBUOnX8XBiBmOooSYboCNgveFBc2R5f5ooMp+CVG/2d1eLz6hddYpD1n2GOu1ExPG7l9NodH2w8TOW9Qd+1C8FvXhdpQtqo9KsH1QerSRBxeBBD7/tyJSUN2Do0/BE2aGh2iCk4YW6hmFvCf8VQ7aufAR3qQyzgCkWNAUWSJsqEtP7f0CAf+GLRrVlMjN4UC2+tw7R/CHEUqKgqDBl+w2Vjrz4zxXXUXxZbwn2gOQ/OjuyIKWoeTnZTlrAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=lkJ3yT3khb9cmV759E9G8LoNHwccnKEQB5tsWz1n9o4=; b=IR4LxPeHj2mVFWKK6GAM+Lu4Q/wQkM+xmDSFqtHIVLCKxGgcHJdZS2esEihgiZc0BncMrMSYz8CSzeXBjOMSupBzoXuOmVLA5Zja6G0Ej5ZnRjQEd6+nom12KNjEuJrxrB1Q9kbPBgvEGGYdsSV36EvIHlrcVKfwM7O65d8ipEzu50rz7f9BNstT1AtkzgvN4Jg/L67ne3lj0r1Fj8l/ZGkPFz/BHkNzL5TFSEFulrE4xu7GWWQYF8f58nzCgDr68uFcx/DJjTpbssGk+fGCwZ7ISoCCTNIJNjcaR7P8xole+htagyzBexlDAVxIDeyepPNq9kfO75+pfcDrewQTyw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lkJ3yT3khb9cmV759E9G8LoNHwccnKEQB5tsWz1n9o4=; b=IqdY4YPXx1jFIGVOviQbP0+6Gr7nc22R8PjGHBoMjN8Fy9wnamC8zeUZ5qsLqB8+s27yIrhHORU3CHDaqbcZ9KN+baCZXUh1LqpfzLol+tZBzRvrOFbPz+Y30/P+VDL6ruT66rdjTISYhbSatqt4sfRYoH06DyRtzGe3N7FxV3RN6ItK025OB+k1LkjICff8MtV2h36DDuY2PpICeNKXNSAa7Tbja1lC8AqQBu0nvqUe5eXCFnlz9jOVjOVw6OTR2099ZRb+i5mR6iRNorrLZ/Vgnm4+7T6aAT3Mu52mW1VOzo/bL1CjAIlk2JfIiV0w+MuKanH+Gf7cmJJpmtSV+w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DU2PR04MB8984.eurprd04.prod.outlook.com (2603:10a6:10:2e3::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.18; Thu, 10 Oct 2024 15:43:32 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8048.013; Thu, 10 Oct 2024 15:43:32 +0000 From: Frank Li Date: Thu, 10 Oct 2024 11:42:40 -0400 Subject: [PATCH v2 3/5] dt-bindings: nvmem: convert zii,rave-sp-eeprom.txt to yaml format Message-Id: <20241010-zii_yaml-v2-3-0ab730607422@nxp.com> References: <20241010-zii_yaml-v2-0-0ab730607422@nxp.com> In-Reply-To: <20241010-zii_yaml-v2-0-0ab730607422@nxp.com> To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Srinivas Kandagatla , Wim Van Sebroeck , Guenter Roeck Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, linux-watchdog@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1728574994; l=3578; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=ob1E7NL3APs+jPRTzbWg/SPQjt1E1mSWENnsoizXz90=; b=M2lfPlb5yR7wGVgk3E4IAg460TIiqBA0F4Ebkr4/q4uMrgfRJ7j6Dv4z8nd3KiRz2aOTI1JZE usbFtGUzg2BBC+7oqJ3eRUWWQXKYy7F74lnGXXbTwt2gs47VFFxJVqP X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ2PR07CA0022.namprd07.prod.outlook.com (2603:10b6:a03:505::24) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DU2PR04MB8984:EE_ X-MS-Office365-Filtering-Correlation-Id: 0306761d-59ce-4190-a61d-08dce9424b77 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|7416014|376014|52116014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?jHFnnlVYFF/uhInW6O/t1xE1ut3s71l?= =?utf-8?q?F4CWqVthR5o8kVsy/lGShKgmlxBi4D+MALVVAs6HXmhinjh5UC3JrTpnMqmw3AbPa?= =?utf-8?q?C/GeeVFMNZ18zjha/C5ksfmY31m2WQJSKMMN0hbuFc4d2XFWjnDiWxqfYEzEs4TcT?= =?utf-8?q?X5z4Ed7YxWjd5huJcwPluZy0X3V+iDqs6LQFJ+e3comp1Rz+zM56mpVB7CHE1OMGx?= =?utf-8?q?Mzft2y+JazWH/zA2332L1d31nPeH45sUnhbEW6UEHQ/p0CGGeIay88MZyuMqOvq07?= =?utf-8?q?K0V/b0pB8pHwnigai3D9HMVRIIRHu5DuM7QdEA+OqPMgVrMyRMbH+XK3lS3pXH+T1?= =?utf-8?q?AvLPM81giT/wmi7x6DV2TZk12ik32Tho6sDvq9hKx9UcNQstSph7JDuwQ6PWbvJZi?= =?utf-8?q?J+pewuWsSaFfWTr4S8cY+sdSaiShN+6Ug5e+v0dUYlTMx2NmPf2N61WAu47Dg/fJe?= =?utf-8?q?cs2eQY2AcmZSt8uQWiVx0pN5awtBwkbg841NuMnEted5/zXDX6UEOjKfx/qPLN3+3?= =?utf-8?q?Fp/570/32txv6jwYcnH2cfTMPgfsGqJW83Vr7LmkiiorTj4D9Epfxj6B7X3zk7PI3?= =?utf-8?q?R+zVM4LKTA/WPCeErsVnI/cgZ0oNVBqSSSchpz2+p+zDAt6UCoITWk/sv0HTXCUhR?= =?utf-8?q?DEqPeR7aVYNrH1z5YbzcA4a57ZYb4D7sBDSVjqgUWSAQraUCgctJi98ZtoYVUG8Ns?= =?utf-8?q?iswTmygZX06Ebq11zkzyzaXnSygXLzmj02DzcG0w54GGPoMHls3QkqJzj3svhLhpl?= =?utf-8?q?++FvCnFdVJhF0YSIgRPiAd3tQ7EFUlq2rDHs3JDxcXmUrygLjg1IOfge3aeSn0vl0?= =?utf-8?q?0T1ukCThxs3l3fh61HrljiKRLfMXY4SqW/8Omi/6zf78TaHUbjmJ2CM5/GdGmwSxO?= =?utf-8?q?eqs7BKjfRjH86JamvMdd/86em/+O2K2Qj47a3iRDs+rngjivCXtl6c2tvdtUrY4M+?= =?utf-8?q?P01TwMd/TXCO4afEci63gD2QlW0Uqw3ccGWfgwzngrBuiZ3g5vErCKxrmY+if1JB9?= =?utf-8?q?2L9m2Erg7ddX3QWjbEvSPl/+wYZenU5JorWh3K8+6Y/AOft3lFVyWve3KYw6Q81WB?= =?utf-8?q?7pny5EkPibuxKZ6Qe9UgNTPDE+iG7nwkY/nyhPKpKemTR3YMTqu+2G31QvGkOq1FD?= =?utf-8?q?9yg3vzgq3kWoPkBM7HEvR8wQPzNc2W7jndEs+kvzon3tlGhFNL/jKWyGi2aAJ/4Kr?= =?utf-8?q?PaDg9Uc2l068OMMLb51d7mels/1ewDXDtK+IOKWMRhthUrF8e1BjUFe5o=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9642.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(7416014)(376014)(52116014)(1800799024)(921020)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?JegOwSmmMuVN0O84nUEZvnHipJio?= =?utf-8?q?538EcOJL/KK94ae3Ti1zweKjyMRzPWKAq1yjhUsO2VeSESQyuChQgUPe+PHIwd/Mh?= =?utf-8?q?i6kLItSfjVmmWrn5FSTiTpdfcreqLtqgFD7B3KapYz1lTP5bWBU3+ydYCzQe++bIr?= =?utf-8?q?wreMFxXhYbcM1BL8NPYNnSAe8G4vrhvIQDLqMKzWrAr50D8JcbDkyk6KH3asotxBd?= =?utf-8?q?ofOClJKe3MIYG9q4PrSex8di8LxXofTH6mPgwVqxJlIKYRRHKoJCZzc3f1RsamrhV?= =?utf-8?q?LjTZhL1wjeMNJgdSvmU2vEY23xuZm8EL0tB2640d6vzFwyh38UbK43qUnDQcMEgr1?= =?utf-8?q?5iNPgMLdeAE8z/SooT38wkudJ7BcTDoEYCPh+BT8U4o40nWJhIxpzKG+vv/+iApwe?= =?utf-8?q?mR7w4Gy1mTpzSI7vFk9LbNT9FspqHK82DpBFXiHGMHITUvxaIueoyCKXNCmD1cYEG?= =?utf-8?q?C4lAiepXolFTcAJr79j/azgr6I/hOvVDU4yINXx5UFMqX2HNIS/QMLzwc2Kei7sOu?= =?utf-8?q?/WVA3mgWvM1b7/z09m+466HqKggGk7sY3mHsGqZ9cxDFTbNiHebh6MbOf87nuXXr4?= =?utf-8?q?8E7VieOHMU9fjqNKpmH+VZXBzfg5tELw63CTTLMZedC19MC7DpVlwAY8Z77V09fYq?= =?utf-8?q?fyj338FMppIWGV2c4IGhEu5NQ84I+hRvM48KIqwhrUyWcuKw/1p+GllerkRE62VPy?= =?utf-8?q?/itXNz1CI3179G4MTudc4OmunuRZ+La1vfPNkaB+3tPMa1FNCgnaV1AAaiIeJm+UL?= =?utf-8?q?hrCdtnIFRY0b00eAPg0LWDOMOwCqbWzMJ3RKUe3fl+DMtMtuKPrndQlrzISuVdyX8?= =?utf-8?q?/ScgJUSwoi0gr63prii1lyRRNyCfiAJ6ahdd+uAh/OALQTDdbl55J1Js0j4RcyL07?= =?utf-8?q?M0XStbMVpbAugOLPkPINSFbQBwUDdsKObo/qocF1XbJMcTQQS0SqVM68OTAadcQKu?= =?utf-8?q?hL2ZVHA/eLGFgfH7zexUgSgQv4tApQkQCzxJomdQtqS5nO2H+F4TzMiAK3AIbu5Jr?= =?utf-8?q?gJDFt4FlLoJQWb985GI2sY6kaSOWpKgXbV/EXVM5mNq2xFkpnyUBVPUA4lrzaofdn?= =?utf-8?q?0ZtAabmeZFQDa4ZtLwDH8CQUmyjqfU/dJovGCH10TsCt7v3KQQix4lhnxl0+HJySo?= =?utf-8?q?xjTiQSe1iEU1JHt41R2UpsMX50jdh3C0KXU20ET/sdNpkse+yOFNer7wARArNkVx2?= =?utf-8?q?xmtZnyA67Cb8QBS9BXtqWon6ENhqhMBMFczGtiJyteT0b4RnRiQ93VfnWVUkTjdCb?= =?utf-8?q?XV2i7AuzDvpdwBKQ5ooopP/rEPeabOH51kR7BUZyRnjvdqvxeevWzFhn8A4h/agVt?= =?utf-8?q?kukCtK1gt+Kc2qaeS3jmm+DP+evSKqcfXda6s7VAaaCrNR2AxI6JHRhADhKxJm+J7?= =?utf-8?q?3Qmwu+v3HumufIXI2LWl4XQMjxmCwnD45LQF12FxFodcFXRerCDRUnxIjQ50reiJk?= =?utf-8?q?I/MV5kE1W5XR/pxfRiY2NHuw5HMiRsos94tvZUWbUdikU3BJGfiRD1rY=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0306761d-59ce-4190-a61d-08dce9424b77 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2024 15:43:32.4103 (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: VCl7bm3Od/Z0b7676nzt0LyImvpJWV8WT7iE4DMfih80k0YYndBNuiuWywBeLRE1opWrQbfD3pmUmGjMMs6KHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8984 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Convert device tree binding doc zii,rave-sp-eeprom.txt to yaml format. Additional changes: - Add ref to nvme.yaml. - Add reg property. - Remove mfd at example. Signed-off-by: Frank Li Reviewed-by: Rob Herring (Arm) --- .../bindings/nvmem/zii,rave-sp-eeprom.txt | 40 ---------------- .../bindings/nvmem/zii,rave-sp-eeprom.yaml | 54 ++++++++++++++++++++++ 2 files changed, 54 insertions(+), 40 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/zii,rave-sp-eeprom.txt b/Documentation/devicetree/bindings/nvmem/zii,rave-sp-eeprom.txt deleted file mode 100644 index 0df79d9e07ec2..0000000000000 --- a/Documentation/devicetree/bindings/nvmem/zii,rave-sp-eeprom.txt +++ /dev/null @@ -1,40 +0,0 @@ -Zodiac Inflight Innovations RAVE EEPROM Bindings - -RAVE SP EEPROM device is a "MFD cell" device exposing physical EEPROM -attached to RAVE Supervisory Processor. It is expected that its Device -Tree node is specified as a child of the node corresponding to the -parent RAVE SP device (as documented in -Documentation/devicetree/bindings/mfd/zii,rave-sp.txt) - -Required properties: - -- compatible: Should be "zii,rave-sp-eeprom" - -Optional properties: - -- zii,eeprom-name: Unique EEPROM identifier describing its function in the - system. Will be used as created NVMEM deivce's name. - -Data cells: - -Data cells are child nodes of eerpom node, bindings for which are -documented in Documentation/devicetree/bindings/nvmem/nvmem.txt - -Example: - - rave-sp { - compatible = "zii,rave-sp-rdu1"; - current-speed = <38400>; - - eeprom@a4 { - compatible = "zii,rave-sp-eeprom"; - reg = <0xa4 0x4000>; - #address-cells = <1>; - #size-cells = <1>; - zii,eeprom-name = "main-eeprom"; - - wdt_timeout: wdt-timeout@81 { - reg = <0x81 2>; - }; - }; - } diff --git a/Documentation/devicetree/bindings/nvmem/zii,rave-sp-eeprom.yaml b/Documentation/devicetree/bindings/nvmem/zii,rave-sp-eeprom.yaml new file mode 100644 index 0000000000000..d073c51c2b9a9 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/zii,rave-sp-eeprom.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/zii,rave-sp-eeprom.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Zodiac Inflight Innovations RAVE EEPROM + +maintainers: + - Frank Li + +description: + RAVE SP EEPROM device is a "MFD cell" device exposing physical EEPROM + attached to RAVE Supervisory Processor. It is expected that its Device + Tree node is specified as a child of the node corresponding to the + parent RAVE SP device (as documented in + Documentation/devicetree/bindings/mfd/zii,rave-sp.yaml) + +properties: + compatible: + const: zii,rave-sp-eeprom + + reg: + maxItems: 1 + + zii,eeprom-name: + $ref: /schemas/types.yaml#/definitions/string + description: + Unique EEPROM identifier describing its function in the + system. Will be used as created NVMEM deivce's name. + +required: + - compatible + +allOf: + - $ref: nvmem.yaml# + - $ref: nvmem-deprecated-cells.yaml# + +unevaluatedProperties: false + +examples: + - | + eeprom@a4 { + compatible = "zii,rave-sp-eeprom"; + reg = <0xa4 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + zii,eeprom-name = "main-eeprom"; + + wdt-timeout@81 { + reg = <0x81 2>; + }; + }; +