From patchwork Tue Oct 8 22:00:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 833880 Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011022.outbound.protection.outlook.com [52.101.65.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D559217329; Tue, 8 Oct 2024 22:01:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.22 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728424901; cv=fail; b=IiYS+xgWS7IQ3WGzZLBztZPHEvp9T+0jG2TsQrjIAx+kjgnrZpLsK8hXBIitb7V+LrkPDB+Cwk5jbfDmDuIE4l2UYByrGLy2lYw3NGskPHiRit8iTKpT155ZgNWquEehq1Pb/ODB56rtqXMCnTCb8jK+lJ6w2fKSGbhWBAsMyoQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728424901; c=relaxed/simple; bh=Fp0UvGpveRY4bFlNFYximIwtARutC4Lw3e7oWFnlL7Y=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Yptx8ZSBAiybvrblora6iaNhQZcuLccqMA8Wq4E72uEZWG4DFmGPA0nDnpMfdmsMkdn8mmWxZdM+/yw6eYP6W8M715nsPwURTeCYokOqdQOYR3bER/mGCtbxGj4m0GO5sodJjR/Dyn+pQfGefXaZARH5RQBgwTa8osdnUl8vRiA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=awiUd90s; arc=fail smtp.client-ip=52.101.65.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="awiUd90s" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GnhN6Q8BS3uyOeXjqxYrcjpn7dx3SGXAf33b2E0IAsXCVh2Xu2wsp/UKrtQcNcXdoSLGCggSNXutHQyu14qUk47WNspv/GeAuzsd7+nf3CbKUmFU9MGWy2fkjNM/1E0rsxcqof3kdVzobYDRrVO4uL6QVfk0ijCpuDJm7Mh11jHGupQntulIOlRKP41qUgDWcVIk6OElb0OXUzhQH8EsjxNSAIAEy6Xn0dfhfxl2+32FK6GSwBMm0KIgT/0pjAL/NHzozl8HEB8hyRXo0A3S1gDWSqfMX99U7FuDV3i0OgMO6Jng/tSvzEyL6hVf+N6532pfTqBS92td6st3HIo1Dw== 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=B2odmee2S+ox8BT/ZTjQt5ajl2EZBBKW2iYWwVyGNGg=; b=HgweEbEBwZsEOqcuU1fGAT1CPC2QjZiafSyK9sWgwEkBmhzEIqoewomfC7rrGzmB2FVSMLPcIjfUOeqDPFLt4OFir9KCSFjavbMNjlTOydvHdBZvuHrer7C2uSMuBrbylluuSi5+i2rRjUxKHZLZBx88KJbD7e/f4ZWJE57/ShwLTYOju1OWRH0jEcWK6pCDYdku0gpEGe8Rt+kS7koK6/HmYIdH67c3AHf0SH6vnpZQrQzqMCkcky822pjp+42A7/P0Cc4DQyFpXSHAUA4gPkqKON2iDBH5IB3w4Dpq08GBFa31m/dVSReAiolLy5I2QsZfrpm5KT6+x6euOY+sKg== 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=B2odmee2S+ox8BT/ZTjQt5ajl2EZBBKW2iYWwVyGNGg=; b=awiUd90sLxyTGEyYCnUM1UYwYkVqyTJizicIR6vfgTO1w94TX+NtNP1tHhlyMUwkgwOGvTMKtGTrXQE3V1/mXJV+gr4ekFDrGAeGBnp+9vUAufx5lIv6PQk+Q7bKYvCGfkpNpJtjb3cFhqO7VIvXXZyTpCHhsp1JXgVnlP5a68ZzXv0ptSnnm6DaP6Y6Y67pqfs+AVuCWGHbnfG/hy9cxnMdsHbRDbw8ThJddOoDMVYeYUO9cHgVFiMObT1GHF+oVAmRV48Zj8CsJM2lWkLWDmtczpuspJk5a/EhbS/akAErsPr94VBgbNXGypDH9luHCK0S+fmzdXA4AJUihF1CWw== 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 PAXPR04MB9667.eurprd04.prod.outlook.com (2603:10a6:102:242::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.16; Tue, 8 Oct 2024 22:01:37 +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; Tue, 8 Oct 2024 22:01:37 +0000 From: Frank Li Date: Tue, 08 Oct 2024 18:00:59 -0400 Subject: [PATCH 3/5] dt-bindings: nvmem: convert zii,rave-sp-eeprom.txt to yaml format Message-Id: <20241008-zii_yaml-v1-3-d06ba7e26225@nxp.com> References: <20241008-zii_yaml-v1-0-d06ba7e26225@nxp.com> In-Reply-To: <20241008-zii_yaml-v1-0-d06ba7e26225@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=1728424880; l=3603; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=Fp0UvGpveRY4bFlNFYximIwtARutC4Lw3e7oWFnlL7Y=; b=5t3LDPqln8jHdXCOcNtdGw3me2q1/jr30++l3N9be4M0T35tAA7P9m2fhz9ICOE7CPX4lwvAE aa9phNo7jzCA/3HK2sAuZdVUEXxgFJG0MxoJSZC7XMQfKa09L/xy7hc X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY3PR10CA0017.namprd10.prod.outlook.com (2603:10b6:a03:255::22) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PAXPR04MB9667:EE_ X-MS-Office365-Filtering-Correlation-Id: e92fca82-ccbd-4c7c-6f41-08dce7e4c7fa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|366016|376014|52116014|7416014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?R4aDGBARWeSfVd+7cxKoJ1sjhoEJdtS?= =?utf-8?q?n49GiKiIB1KhLUvG0d7DiXh5cNlDQSQmQg25vAMEahL/yFlgIeyyjAxmEBMA7xVU+?= =?utf-8?q?etSyTYRH7pcQTe3aJtWcUnKZJn+u0uEEqHUxSJi3udw7oP4ya3bz3x8kRVFJNdAK/?= =?utf-8?q?NwNCnslt0fDzbLVY5jpPkphA35BU8qqKs9Go8ff0DiIwXCLspIFCq1QXyav8uz2ri?= =?utf-8?q?+3UbDL3tHBFzmzbUfCTNaF2zqMb6Fwq7mNMhp90yR4bI59cRHtfmCz2MBeoNinFA3?= =?utf-8?q?1eQV41E+zO87sd4sjgzqzkJX9DOd5C58AEdmd0dlmf/Ae0ULocJFy05HfHxHCk6Jj?= =?utf-8?q?ktYJFOWkXw06taI+Nynkb6xzGuO9kwvMDiRlbFCeE7GbNmCnbsYK+j4Py19gxedGQ?= =?utf-8?q?KUn2rrbJ65jxMHZa380qu0z+dNDCGVvq8c9eOdpladV/bBmhnUusRi0tbJbO08Lo1?= =?utf-8?q?GGCKs6lZPgsiz6F3/X1qVHvzu6OM8rZvL+3XfQnlmoq3VmCZCSmzSQ7gsZKrIZQN4?= =?utf-8?q?oF8RcqPTh+s9N+EBwrTJIByrmoIW9a7/YSJTuhTy/9j6szO6cNgHqpffwEPV3uG82?= =?utf-8?q?SzM+9qKB9fn/uUSa4NW8dEdyq3ct6WEWMBY263xfULZGNZhc/xsKAxtSvUrrd3xKp?= =?utf-8?q?LPftEGus3Hyn3DGYEi94DqME5iEwu+HSKCspipaalsP9qE2vyO5rhe8MGhKebyDZE?= =?utf-8?q?kVhRGYZGufDcA6J1ldaOIKajywvsbKYwiZa0OEiba4D3q0epD0gwXCd1VJ7uf6rMo?= =?utf-8?q?yLmZRf9KK/Un+JfZ9278xFqUqhvrk2P+GIxpROdZmdnZZrlX9/T1DrZAdiLIdrGVe?= =?utf-8?q?46vgmCIYp52attuCMSXle/EzmUa945qi5awd57AscmGDVb333DluhZWYzQYDporjo?= =?utf-8?q?NUGIn3AtuGI00jaF/2/EBuEzABmyw1MFOL64bNjbnp7IIt7IWhdTafOqk5ZTlE5x0?= =?utf-8?q?cRZInvx9e/p9NXb7oS33yGtzCK/YdAg9jg0e1TozSgc6xaTIP8M+ZdUEdHCUJ9Cxi?= =?utf-8?q?2o7MK1Ye+I6ZODZajNB/tnXmQcHU3gk4sdgL9vKoNz5qKhubJT2kcQewGtasA937d?= =?utf-8?q?/d4cF8+W88tlmZLiHBRcnBd1bno2cdMxl55v89C0ChaX5+u5KHZq4ldbJojWMiziJ?= =?utf-8?q?ydszkHuWySjzA6DEsAJUjTN3guJ/VaQjILHlDC+LexMPTOf0JhyfX4jXxdr9IhSGA?= =?utf-8?q?Ud+bAopWbsAaU8almrVouhGPP8cgt64xPZz2g6aCk0tFuyTkVpXqx6o2aQts6IU+q?= =?utf-8?q?FkzmWGFjzsQaxiS6EZ8JmKQxeUgO9wJUehoI7uj2XDXmK0C1bT+siEHw=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)(1800799024)(366016)(376014)(52116014)(7416014)(38350700014)(921020); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?+Jwq7SF+TE5cyz6mSYvGByFKquQc?= =?utf-8?q?HHyv0aA8Q3yPjPeccLmE73euYPryWTs0Ojaen+VwHbCKOICi5qli5EOr5l9t9ZBjT?= =?utf-8?q?d+K64Q5g5mml8T3M/84vA7LFotocOFNTgV+0x3WIBLrZfnbX5GoGqKk8bMmlFNi/9?= =?utf-8?q?K1zU17NJeSbtlpSp00/B178A2m7FDmgOC6mCvQOLRUWLcf7arLJzdrX0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vaevU1Tof4U?= =?utf-8?q?5cXIE5u0rNELAARonaUZTrLLEqKZGDYHuFIXvOr+YY7sFZB0kG2UhH27lSsFbHSrF?= =?utf-8?q?49DQoPVcV5Yc2M6ceXc/4v9e9/EkPRbvrJWNx125gPEWkOFUeGlL+5r6AZ/t296Jv?= =?utf-8?q?blELIiA0UOgO8zIA3/9LgJy3d3VECbLfD/XSWfk1pxj00VbQhrSy1bDlFn3xgRWJ3?= =?utf-8?q?oWAqFhLRssXzn9dke4JbrQZr9ChMknAPbDfn8coq1u1+DcCir56QEY8iy9btNnhnn?= =?utf-8?q?entYbxEPAP7+qt6NY4A5aWsa4WlN816iF609XRyFIOnwodqYUUOybp3YLWnhxRd3b?= =?utf-8?q?T3PmqctmZ5SmPK2v62Vo2Qv+YneabRbscaLL4q1KN8m64rY1SEBQ9twKk59ypTYLM?= =?utf-8?q?u29KfWqy8kkAiPiZiw7DId+Gr2dg7q11+5h3NHitkD8Ex8W34ghwfRmo=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e92fca82-ccbd-4c7c-6f41-08dce7e4c7fa X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2024 22:01:37.4255 (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: zE1yogB8BBnpvNcvd3jyP+DCdaLVDhqUYh7S4UJHf/W0OciWHt4G+wNYxrCLpaHRusGvFkLyRs2M4xQ77pTQvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9667 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 --- .../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..3ae26f1cf7acc --- /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: + - Srinivas Kandagatla + +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>; + }; + }; +