Message ID | 20240216-dt-bindings-hwmon-common-v1-2-3c2c24ff1260@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-68195-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp360309dyb; Thu, 15 Feb 2024 23:56:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWztxvKY83GNbX1D4/zO5zDhMHvazt2E+fwLGlm0y0aFwnkaE9LnOJ51xMlFT/1E6iA8QwAuMSZWyTX2YohfznTTaf+FA== X-Google-Smtp-Source: AGHT+IHqCqkEleJZkmubd3sdOy+sJwePsDP8+dsWsvok0wR/qf0tWRVRKlpVbNOVpzHCquMNIdj6 X-Received: by 2002:a17:906:d0c9:b0:a3d:e668:c75 with SMTP id bq9-20020a170906d0c900b00a3de6680c75mr423436ejb.10.1708070207902; Thu, 15 Feb 2024 23:56:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708070207; cv=pass; d=google.com; s=arc-20160816; b=eUw1NiVt3QX+uFlIV/r9ssE/2DW+RHiFDwGNTH9Y7pF9x3HYeN82edPUcTd9onHdsH YMUf+NfeJ8ur5Huwrw0WHh/Vn1r+2jwwy5pp4IDxOYZzvoNnZYGVlmumrckUBDEPyzOW OJUOlNmBVMLD32HKNRHrpbAty9mG33su180zNM5uN4jsJRLQBItYER+Ipr8dX499469m ECRCPopIhMClL8klXITjK8maxUC5xNdaWOJhzv8mxg71D96Z5M//3Xj3eA2nQgP+M56B HHoeVMzeLrTVlbluLQf9AuLEyKjJiHqNOg1LpygHRoBvpXxC5/Abbh/vvm73lAXF+v9f fxYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=4woXQ1xn8Jnb6pq3jxwkjqjmVUPaNj/HjXqJl0aJYaQ=; fh=E1iUvLvgARC8oyfztH7oW+Q/UqO5n1Pi/zIrOfG6mNs=; b=Y4aMX4Kbh4r9cBl5XDVd/U2dGr6ZEe1L+A2P7OWP27SrX2z0QQo+CtjM4SOrKc751y FM4tTF5upR0nzZGvgp+RnLrcWMMA9jmXjJwuuxCiAcoKssH2xXSh5R2nqGiX1OsdWU3l R8yJXVCJatjKI7DSJb/R4sC/jMGfQqhw7jSEGTtqObSImwHjvLhMi+DLLJSMHVrQiRx5 LH9shetFrVw62sNCwiFr2a3J63aX+yRoVwjJRXcwyZXccyGTMe0icGzXTiawgKPlxIZE TIc7G3Rbu/IWYHsLY+BYrLbTMmqfLk9LbzLPzvjUuTZJB6SCu2ixN3+oQTfecJUkz+Wg NtoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pz82xz6F; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-68195-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68195-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x27-20020a170906711b00b00a3dadc238aesi942595ejj.191.2024.02.15.23.56.47 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 23:56:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68195-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pz82xz6F; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-68195-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68195-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 42AD31F214FC for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 07:56:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AEE41AAD3; Fri, 16 Feb 2024 07:56:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Pz82xz6F" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB15E1758E for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 07:55:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708070157; cv=none; b=fWW/1MP7zE/fbccX6HWLsSzkEkg3TPxIsdGABHABDbLnWSJ4FnPeo7xmSsjJvpmww3TdVONFP56sKTRRTwheNbwUE96xCRL1eDpiNZzMJg6wOeGDVrxCc7tH4JE75e6iDfq8DkbgB38oXxs3Lnn0l5avMfPZo91DOhD3JSf4s0o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708070157; c=relaxed/simple; bh=ZVzrVy1/dsPXa4PwcU5c5D0CsNAw12gX/R30zzhgXlM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=H9hqoXT/oHi2k3BOs4iEGQp6kV4YOqStvob+lwQPeeRHuRPhr4vhHZbiwVhw7gQ71zY5Ln1mO1DWTidSkbSuFArDJj9IPkrINdH5Zz1UBFf75ins7qyJBhVq8eB4b34PeulZ+LImS0aQQAFo6PWpyIgMAlZHbDpBYq+Qj5K4cGY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Pz82xz6F; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-55f50cf2021so2331667a12.1 for <linux-kernel@vger.kernel.org>; Thu, 15 Feb 2024 23:55:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708070153; x=1708674953; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=4woXQ1xn8Jnb6pq3jxwkjqjmVUPaNj/HjXqJl0aJYaQ=; b=Pz82xz6Fy/Y5PzrJYFRkE7HQfEf0n7K2NiwL9Gp+ko9HTzmqxUDyiG5mz/btoGn4kS kl7tiuRGLjHXQDOTWCSsCZkdPhZGtN8j61lJURpKHjiv5q9WL0BBYsxa8oPGdEQkEIMS O2K0CZnPfmB8jPqsOEt1DbvQ/mf482gwdjjgwVJnlMG0yaL413oCiDLHhcX+eaOogF/i RMTRZg506cgTAh+No1C1KBT8BzziPFgJHyiLxPCOoDv3NxPSh2sKKzWmvwCLIWPDwWH8 D8yEagpQc0lEFY67pjRO7BX6xrz/4CmL6hZCjB5oLcboxLOUzHsscL7nQGY8Wx0rirKV Z/9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708070153; x=1708674953; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4woXQ1xn8Jnb6pq3jxwkjqjmVUPaNj/HjXqJl0aJYaQ=; b=M+7U7bbSupPYy/3vcYyo/9nEo+ds4lDDKFQ1idt1ZWeCacob0DYbzrrU5kQvZcLA3V 83foDSyyprVN2bkzWc6eA5IU7tSRDUOWsmpfaC81XRYa+dDPkvBdi39tmemseSnLoZVh 6N9/SEMLQhsEoV7PQ6MAkgSrCkgYlWSERXCtxIdQyXsGKAxJb/+3T5dvHLHShpwNGZ5b lyAeRl0IL4+fkwUcpx+6DV64mCQ1SfITwx6b9R1wIPgKDVyfCbNbz60jqVLRzQLiTjwX 7rAEp6qj3l38by0eZ6XBmuzWOv28x5fdEy12ruQH+ssg507OAJfx2acoRGPublrBuBS0 1KLg== X-Forwarded-Encrypted: i=1; AJvYcCUygDP5hNT4NWS/ecqnQxd77d/pegKx40jLUjbNysK+qKCMafMkZwe1K1o4wNtbbZQkjmgLzR6dZDhDefsOgCO4O2c3yDs1wqFp8/2x X-Gm-Message-State: AOJu0Yz1bynMYfLbZoL6YZ3QOOF74Lh+VrqE2eOYa95ozTAStOQO/Mue FdjX0TarbxVnd+v7ieh+4Ju+x/c+LWg5p4A6E+Og/tlMN/+9mytMdvdzR61yfWI= X-Received: by 2002:a17:906:e28f:b0:a3d:8a86:a8fd with SMTP id gg15-20020a170906e28f00b00a3d8a86a8fdmr328626ejb.30.1708070153082; Thu, 15 Feb 2024 23:55:53 -0800 (PST) Received: from [127.0.1.1] ([78.10.207.130]) by smtp.gmail.com with ESMTPSA id f23-20020a170906561700b00a3d828c54f1sm1300750ejq.135.2024.02.15.23.55.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 23:55:52 -0800 (PST) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Date: Fri, 16 Feb 2024 08:55:47 +0100 Subject: [PATCH 2/2] dt-bindings: hwmon: ti,ina2xx: use common hwmon schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240216-dt-bindings-hwmon-common-v1-2-3c2c24ff1260@linaro.org> References: <20240216-dt-bindings-hwmon-common-v1-0-3c2c24ff1260@linaro.org> In-Reply-To: <20240216-dt-bindings-hwmon-common-v1-0-3c2c24ff1260@linaro.org> To: Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski <krzk@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=982; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=ZVzrVy1/dsPXa4PwcU5c5D0CsNAw12gX/R30zzhgXlM=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBlzxUE4J4/L7ZafIL3OBHnnbATlGtubCb7t6a0z CXacpF2haaJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZc8VBAAKCRDBN2bmhouD 18+zD/sHILZlIo2qTx/705U2YYDxyQVUEUdiSlYq1isRtDYIkEnPxDlSpWLvWA3lNhXrAOOCEUX Cw96TmyKiVq0Dui8aUwB5CFiYD3MBJjsO1h3w7kyb6ViswrguzxQKGFGgmgk/82OYCnoepwT3Cw /gbeQTuyHpllntn1nz1MDIUptm6KNvbv1oFNyyM75ECAKyLSo34t1lTmrLWY7bv1ReibVvF+d1h MMwZqku8OI0RCYvQmFqHR1bFSDx9Nrp502uRSrl80uFygayzg/e5qD6z2AqQqEgiiuxKbaj+5cD m/VFbTwZaaWwrPuA4seTAJVx9VeJM/E6sA/WLCSzijLrLY0W4kuV3Jof8iAd4v9CyEfopzeasFJ vBhJfSTCszXejzRquRM89XgB+kWTaRiQIB3Eqmv8E3J3wc0Ng+P1WOcRGQHHqmcJltA7/M38oq6 TLP+m+joukkIxDuQk4uRgqLYN6hAGzH9eZ2VPtGdnPR2tACqPApj/0kF6ed3WC1JHWPHmOHwnM3 Nc5dC2nD1kYLu7GYCqf7YXJQBS/kxEdThVt3n/pkAJcGwnt74FNB0YuD0heogg2eAiidawfEE2k ZSsRubA2fN3natXHMU9NKiOGsZulVpx3ulxQYXkKGzjmR6412jx49hna4B5Z3yQ1kvlAlzbvNPs 8gAg+ved86Oh1Wg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791041426008257729 X-GMAIL-MSGID: 1791041426008257729 |
Series |
dt-bindings: hwmon: common schema
|
|
Commit Message
Krzysztof Kozlowski
Feb. 16, 2024, 7:55 a.m. UTC
Reference common hwmon schema which brings the "label" property.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Comments
On 2/15/24 23:55, Krzysztof Kozlowski wrote: > Reference common hwmon schema which brings the "label" property. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Guenter Roeck <linux@roeck-us.net> > --- > Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml > index a099bb71415e..df86c2c92037 100644 > --- a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml > +++ b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml > @@ -36,9 +36,6 @@ properties: > "#io-channel-cells": > const: 1 > > - label: > - description: A descriptive name for this device. > - > shunt-resistor: > description: > Shunt resistor value in micro-Ohm. > @@ -73,7 +70,10 @@ required: > - compatible > - reg > > -additionalProperties: false > +allOf: > + - $ref: hwmon-common.yaml# > + > +unevaluatedProperties: false > > examples: > - | >
On Fri, 16 Feb 2024 08:55:47 +0100, Krzysztof Kozlowski wrote: > Reference common hwmon schema which brings the "label" property. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > Acked-by: Rob Herring <robh@kernel.org>
diff --git a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml index a099bb71415e..df86c2c92037 100644 --- a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml +++ b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml @@ -36,9 +36,6 @@ properties: "#io-channel-cells": const: 1 - label: - description: A descriptive name for this device. - shunt-resistor: description: Shunt resistor value in micro-Ohm. @@ -73,7 +70,10 @@ required: - compatible - reg -additionalProperties: false +allOf: + - $ref: hwmon-common.yaml# + +unevaluatedProperties: false examples: - |