From patchwork Sat Feb 24 10:14:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 205805 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1076937dyb; Sat, 24 Feb 2024 02:15:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVn5vRyNDN8bPagLkn7g6eRKuKQQDURn32YCavXhZw94zYSFmyjL6lffPnr4D390dz4Utukx9T58oJ8REfcUuLXkp0REQ== X-Google-Smtp-Source: AGHT+IE5h7UAUxmXbZXU2Z4qi8ti17SqEJ9FYCilryt0P+nOEVbqpX+/qVldHDx/+r8tzj3nYqC5 X-Received: by 2002:a05:6402:1a5c:b0:564:7921:37c3 with SMTP id bf28-20020a0564021a5c00b00564792137c3mr1395076edb.19.1708769749931; Sat, 24 Feb 2024 02:15:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708769749; cv=pass; d=google.com; s=arc-20160816; b=ELjB2rdqQX+Tfu6LyyYnh/cfykbKyQV+TMAhGIGSv7sF9HzcjL6iBUlTaPGcx1sElz tXi8v2GaQ+alHfKJHKhgLNYx5wkQ3kELtrimpI4dGLtCTaE/+bhs5Z5BzmKUcMWDjAS8 uZNXcmFz+cCcvQTe5cBcWqmQZ/Zw9JfWszxjH8keoTNyPGDCzdNEYqPhLU9wyvkTarY8 1qbZ5O4dxDzrmmmXUc3uAcEDOAp7J7O4ZSkTpWRQI7DYguo78/7LUFCSJDap6r4gArn5 Z4ReUwOJZqSX3Uvqbb+UrJaUWGv1wVLvUeeXhVrBjvVDgMZAbaGuAEDSs9DImONkNp5O vShQ== 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=D3hgZ3Hoy35cVx71s4NjThIl/1iE3rrM7PF8rQk+MLU=; fh=EmMoLqVVguf+EDMMvStEIrmdnywVa4BQulHjy4JOzhs=; b=lEIyba+RQPtU88/IjpI2pKvC9Bll522aL3TYIDEpBspyoKZaHrPfhJMD42GmLDTBj1 9365rpEHf/j6hpmB60Gw+I/uyOW7SpnHxkJFu8JAvVlJCGBHsyQE5LClibDSNDO23gGo jzdT4GInGHbz2iVot/635exIRtqpcwvHPTypXFEZdLLMH5XvwVkLHV2t4r8j43CUIRnK S5QyrIqEWpZXy3fDyzHcYTKm+grujprhOqgrLXmPaX3Aq3UrkZyt7c24ZmjMttkxJfj/ zny+3z8ZTRfNZ48pNhcCYWlt750jxqCnYTp5jz9QiGiwnmuyw6iAHvOTTZUIRbYqge8l ywYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OSLVfP8Y; 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-79553-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79553-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e29-20020a50d4dd000000b00565870b4d35si353495edj.658.2024.02.24.02.15.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 02:15:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79553-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OSLVfP8Y; 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-79553-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79553-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 60BCE1F21A1C for ; Sat, 24 Feb 2024 10:15:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B85F25575; Sat, 24 Feb 2024 10:15:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OSLVfP8Y" Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (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 74C8A1C2AE for ; Sat, 24 Feb 2024 10:15:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769713; cv=none; b=IZiX4MKWEeRBP1D60NYKSyHgcpscBedBs/SgtHtFXvXZKub6+R/HehfYQJ4oVBIYp4qwrYIMU6+q1k5JX+a5Uk237HIctTWAcYwG/VwbnmESh0LzxFllfIH75XiZoxboX4lesONX69l8mq4DZYtcX2G9pL8WxkO+Qhf/lyF1Wa4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769713; c=relaxed/simple; bh=l4m2dqEyrF9Sv3N7Zx/W2SjiPgbLZ6B/2YNlzjOwnJk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=N1iIKtpwOf2IqEV7+GIwGA2TVlrg/PezMf4NFtcr1pY5A5kaQKpBUrgevRGL0IAE6DopzlvGlhtf1Y9K/zS9ZlagbJfBRwn3IEb4K7NUzaG+zvL53qQonIsoHNon56DgxGDzKu69PT1fhjLXMOUwvVHvpUeaKt365pbNGpQY3lE= 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=OSLVfP8Y; arc=none smtp.client-ip=209.85.208.47 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-f47.google.com with SMTP id 4fb4d7f45d1cf-564fd9eea75so1627038a12.3 for ; Sat, 24 Feb 2024 02:15:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708769710; x=1709374510; 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=D3hgZ3Hoy35cVx71s4NjThIl/1iE3rrM7PF8rQk+MLU=; b=OSLVfP8YYsTvhcXYCgUeI2Yvzy5I/K/FxU9zyeiX8Y3eycoqmFhp2IUpGmN55V1Sf7 7B8MVvFdhsZFkgMAAKPtq9JeCUxonSbcM+OPekOUyf1tVMGICus1GncUPolP4ilQUU0z 00pX6r7b1TtOh0hfb7D5MhmN6GKGNYzBKjUBnOLhQOXlcwdp/ww9A6OyG/Ug9gxPWpke Qu5sJPFLQ+1Lj/mzHqYSj1qxFtHXROqBhxC3CQp9GdN+b+dXv6FjtRUVqCgOBzKclBed VsggnliBxUCsZ+tpGcTbCQ0UY2BHt4mkw2lg930Bg+cAKzX9hBk632goOLvfKmPxjxwT vQ7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708769710; x=1709374510; 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=D3hgZ3Hoy35cVx71s4NjThIl/1iE3rrM7PF8rQk+MLU=; b=uUJiFu/zlXVemm6OPph9PoF4bXZQs1dAsxVKpXrBuwfyjSjLcGIFFXnxmggdLttSHQ aPsvSdcuRCj/gPquILPZLPn1hXAYNrpo+Ci0i+CtU4t0ksznZAB7LdxjZaeELjG2liQX zHe8+Cm7H0Z7klzTQ/IadmVJhh8h1yv9n7ITmo0z4M8Rh3sQP0sBXBaTz8gtGfFpaLSR GgZwfThS1f5VSo+qI3n6yWBZXH85WM9BgtfajjVlhrBqOsPEU8th2iGLzCPumHkehSHB lzwFnVhwyeElicOIQJ4T+qnl1Q6tBDeI1XVGOcdmmfkvyqht7yLZ+DJqIbcZLmAt8NXx bQZw== X-Forwarded-Encrypted: i=1; AJvYcCXr7e/H/ZcoVQVHv5vQeOgCznBqUtPm2psOQb8PoDEW7DAXoZRci2/s6quvH3Jdk+MvgERPDm7VkaZ1iFY1e54EY4eVv7z2p3HWpXXq X-Gm-Message-State: AOJu0YyjaTt7ku+qcdYP17SI0F70Fzar9i5YdNKF2LFljOSrX8ElbmlC Tl/+UkeNB0+m1T94gKHUEUCR+F1kpNb1pH88cg2d4UukbN+gG6t7jXWVk++Pfhg= X-Received: by 2002:a17:906:528d:b0:a3e:e9e1:1c08 with SMTP id c13-20020a170906528d00b00a3ee9e11c08mr1404530ejm.66.1708769709910; Sat, 24 Feb 2024 02:15:09 -0800 (PST) Received: from [127.0.1.1] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id p10-20020a170906140a00b00a3fb4d11809sm446545ejc.204.2024.02.24.02.15.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 02:15:09 -0800 (PST) From: Krzysztof Kozlowski Date: Sat, 24 Feb 2024 11:14:50 +0100 Subject: [PATCH v2 1/5] dt-bindings: hwmon: add common properties Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240224-dt-bindings-hwmon-common-v2-1-b446eecf5480@linaro.org> References: <20240224-dt-bindings-hwmon-common-v2-0-b446eecf5480@linaro.org> In-Reply-To: <20240224-dt-bindings-hwmon-common-v2-0-b446eecf5480@linaro.org> To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Delphine CC Chiu , Michael Hennerich , Robert Marko , Luka Perkov , Zev Weiss , Eric Tremblay Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-i2c@vger.kernel.org, Michael Hennerich , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1227; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=l4m2dqEyrF9Sv3N7Zx/W2SjiPgbLZ6B/2YNlzjOwnJk=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBl2cGk1mrABmK/45aoXvbUnmt7qHzmfLpSgn1XO MtfKpDW7/yJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZdnBpAAKCRDBN2bmhouD 111UD/9epRcrbGx22v3j4QZLTCLtiZeS8wQrhzXUsv+JoiwP2RDezh/W/JfG+WS07FzlofqISSK TdMIH3axFn5l0afm2Oa1SklpIwo/y++/OWIAJN929h5Wkn2WTO8y06zBO8H1dUjBTQ7mea/KBOg T8UwyPnLGB9CcQ7g5ucWEu9+rUaoEt6Bj1DnSI5+qIgigC3B4+wGsDSYlNuVb7SGssyZ7LpQo4F vhDDnsc8P9SmuRSvIH1PfNVdOXuwfgMTUjKbMTiq9+IxQHT/PfNGbpojxpeEJW1ZTyocUHYUq+o aL4J647n094EGwFmBwno0GdK20X/jgshw9MQY9WmGftwPOyXkgB1rH2LmUFQJprCfNt+KeTFBi/ ULDOrZNcuEQI4yOI6OE2JqKGjfiUBSEkjuKNicRIDB+6uV6xMxRYMEiwK8nB7ztylAp9cw2lY4B QQtx8K7nG4iUoAQWQm/gjssQujTYecLYsbIB5A2nL7rr20cMFCNi8f6zWsR7Wcz84jY4W3YgMLo rC7eGBGJsOhtJi4iz0OwNnGH1eeKzTfPNPmpitNOCUMbIG5W2ZmJaVKMjY/fduNMTkMIHPnpqPW BPYweBv17WupEz22XQKy99PGhFYZP47V8C9lOvxjjxNWrnqBZ9/J5Y4OtUdWy3Rmlk8CPrUcLar rb4PuANXHBzL6Eg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791774949155887232 X-GMAIL-MSGID: 1791774949155887232 Add a common hwmon schema for two properties: 1. "label", because Linux hwmon core code parses it. 2. "shunt-resistor-micro-ohms", because several devices already use it. Acked-by: Guenter Roeck Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/hwmon/hwmon-common.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/hwmon-common.yaml b/Documentation/devicetree/bindings/hwmon/hwmon-common.yaml new file mode 100644 index 000000000000..dc86b5c72cf2 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/hwmon-common.yaml @@ -0,0 +1,19 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/hwmon-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Hardware Monitoring Devices Common Properties + +maintainers: + - Guenter Roeck + +properties: + label: + description: A descriptive name for this device. + + shunt-resistor-micro-ohms: + description: The value of current sense resistor. + +additionalProperties: true From patchwork Sat Feb 24 10:14:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 205806 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1077003dyb; Sat, 24 Feb 2024 02:16:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVMgnezNe5H6v4vYi0w3LZheDf9TLgO86Rhu1R/RtgMcXiDDmM2s6iWdddL4Id5DAhUV89hbq6tmvAigQdSuaPMBvT27A== X-Google-Smtp-Source: AGHT+IFEukAKEsA7/Zt9q2PiFII3itox2AylH+KGcnj936oFB8qcp1ijSdmnp28bypqGxr+YdYUs X-Received: by 2002:a05:6a21:1394:b0:1a0:ee92:b6df with SMTP id oa20-20020a056a21139400b001a0ee92b6dfmr392180pzb.9.1708769764590; Sat, 24 Feb 2024 02:16:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708769764; cv=pass; d=google.com; s=arc-20160816; b=TgqWQ00GDljh3DyZ5/ZmN5OGIzI7Ia3qegUZzaj5weRMLZm1wkZLkupdWiYeEEc9gG M39arT2srUIsrfUjRtLsDtnRToQktlEki4B3y6zu0wkiy/DQx/Z+7hTCmzFXxhkjsdhF htkUG1TSBEhIjO/rDa4mHrvI1MkfSx2fxqIOS7oMxwEJ0hAqCjemQILiFQMvTbWzwMJ/ rblLPeN6/rzyTOGlnYPDS6OQUEkhGdc/GnFyQ9PRhgJFmclt2IFfaI7FvRqlmh8icnCz PHYybsg7Zca6wGNeX9LXg54BQd3HqsGYv4gYLeyPldpatX0m1/IW05z5G3Ij/WwGGwjM uDDw== 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=mREQhNxJ9n5S//Gh3G5cSj1rmAQc6jGJZXGvN6gjkRg=; fh=oOvwQ/PlWzV1McBfYjHBMy8/cmKj7wK1wbUdaCQ2zRo=; b=zmUWGhLwwXarpH5zHrvir+xuYzvDLznySnhiJuEuPaHXSYiWn76ztTUrNNKRTKE6hc L0luEEJZJjEAR/frFEnWj2jhkmxx/hlwdrCsyopCywmhKgmvSeJbQLFT7G4DNWDdT8pW jUahL/hoL4l7j5IKLlN2BtBgYUWjTtQhsjGY3+fTqeFd3163AAZHscp/mCPlccKSs5Bl lyfCo7otqh1uolRPMoSZt0WKKQgyhGip1EmkoF6RjVHuKszKwk2UtEv52BKmm2S+1Fo/ QrBUOKKghkCE5Y0i8V3VGLW5eCOSEH1tG57kyXN8y2+2fCrZJOakOO/NJxZrEmQKPEJl jhrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=prIpvrHg; 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-79554-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79554-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lk13-20020a17090b33cd00b00299489ae52bsi2553133pjb.12.2024.02.24.02.16.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 02:16:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79554-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=prIpvrHg; 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-79554-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79554-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5B103281E3C for ; Sat, 24 Feb 2024 10:16:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B728729437; Sat, 24 Feb 2024 10:15:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="prIpvrHg" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 1A63D241E0 for ; Sat, 24 Feb 2024 10:15:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769715; cv=none; b=TC3d2fBWCL5A/D341TrZWwQoR/1ucyVaR7iMF2ZlCFbXyp93IocoyRV2+klI0vWuWgJjyiDWFaI+b/IqnnVZW4eBfACnJrVVBW5aDRjH6GtKcSMHS2Q7eAK7Lb/t6EPTRVEqGUcVyQ4Ga15Cdfk+giWRH8bV2bbExDYMRBxe+QE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769715; c=relaxed/simple; bh=nPQPdZdHWxEYvyb9kVY8THmiKsCdd6pfv64gWqI0Ddo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MalFV3NvVU75U3fhpKztkYv6en1rPN+EEKqgRdGdBH6vgQFiZIvURlg8UgYitba738tlSDQc7mTvRGG+RwxjRXvagwZquXom5tUZBNQ5gjyB2CCye0QqiJqiUN8+Ey4sZTM/X4S20cd+wLI8oR1MZyU7rhgxAg8OUcfQikOJxgY= 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=prIpvrHg; arc=none smtp.client-ip=209.85.218.50 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-ej1-f50.google.com with SMTP id a640c23a62f3a-a43037e40dcso7268266b.3 for ; Sat, 24 Feb 2024 02:15:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708769712; x=1709374512; 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=mREQhNxJ9n5S//Gh3G5cSj1rmAQc6jGJZXGvN6gjkRg=; b=prIpvrHghOPPve39TmalmxRn/3lJ7EM+1hcLaXK/Rns9rtYVIcPwcIx/rOrtJMy48A 4wzDRirL6ChYjgqZ4xEK9+qdCxcfH1WSVLw0VAoCGjKBXSCL+mJ/AbuXbD/LoXkJn5xa 1OtuHE4IaDyDTmsfwOlr9+6QxCs2feGSpcV0722ZQcrhxEN7z4UFB4OiZAoHFIPCPXeW GGMpieLXa2BZRu6UJO/AcF9EoMAqttBFNZ+0f5o1V80baGDm15/X8CCeg426t/k5dbTX /YC5k+QJbZ3M4Ot0AYi1PvSJz6gS7f8DAOc9k9Q3n7VajcIqSsE5PS7VmYyqNZvzw9+D LQHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708769712; x=1709374512; 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=mREQhNxJ9n5S//Gh3G5cSj1rmAQc6jGJZXGvN6gjkRg=; b=n8BxMQujEOU33TXDmCIRu5spRQdyurCYcCjMLPyAt6dKfAllWkCRlcETEm4xH6OUmU A98KJ8sKPY/dxtCYUo4N45SpKxfjM3dRoyyVIltCu+QV8ypGlbAOxHj2+5I6Zhsdbz+X 3HbFZHxROqqu71538/R6m2VPvSXRYBWk4mnvQ02PRO37XIBoByafoVUJ6M9e564rl11n IkaXfn9TVIwXIwOkeZ0g2Q8qKN/qB78+3JLtfSQPnv9ZCo2nXu/bPLuvH+nyzgrsZKcW ClnOgc9ddgH+/BWHiqyh8rDEPSUiy4ZjErelu9MaUVqd+o9Vf/VyuhFcfHa3mGtoF1mc XcSQ== X-Forwarded-Encrypted: i=1; AJvYcCXAZkh6jHlzt9TGYxCSQuYeA3fNMRj8IYhxQ2DFLEhONDk1JBuvmn44jYCpmO5L0b+0sVpqLOin9W9tY6nBwqT4yWZVSqUqbduBlRPY X-Gm-Message-State: AOJu0Yyz46FlC4x1pzgtRpGNDMVQ5P906PeL3f7KABqcPrteyc7JVsuS GiviHerqm1YD2GGhOz1Mna3yN2u/FlfPgCcJQLNXlcqaWRz3cIp0RGXwkBWgIic= X-Received: by 2002:a17:906:36cd:b0:a3e:f79e:ce56 with SMTP id b13-20020a17090636cd00b00a3ef79ece56mr1239936ejc.45.1708769712523; Sat, 24 Feb 2024 02:15:12 -0800 (PST) Received: from [127.0.1.1] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id p10-20020a170906140a00b00a3fb4d11809sm446545ejc.204.2024.02.24.02.15.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 02:15:11 -0800 (PST) From: Krzysztof Kozlowski Date: Sat, 24 Feb 2024 11:14:51 +0100 Subject: [PATCH v2 2/5] dt-bindings: hwmon: ti,ina2xx: use common hwmon schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240224-dt-bindings-hwmon-common-v2-2-b446eecf5480@linaro.org> References: <20240224-dt-bindings-hwmon-common-v2-0-b446eecf5480@linaro.org> In-Reply-To: <20240224-dt-bindings-hwmon-common-v2-0-b446eecf5480@linaro.org> To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Delphine CC Chiu , Michael Hennerich , Robert Marko , Luka Perkov , Zev Weiss , Eric Tremblay Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-i2c@vger.kernel.org, Michael Hennerich , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1077; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=nPQPdZdHWxEYvyb9kVY8THmiKsCdd6pfv64gWqI0Ddo=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBl2cGl8NOeF+9dZUBWDwTidWtC1yRuSeA3fnNSy e2Jh611ReeJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZdnBpQAKCRDBN2bmhouD 14aAD/9kk8lq9D1J8Tc1aqIqvQjknqi/C4lVAcN5JYC3LItTfjbXUVJ18LqJuGtNziJm3ToIh3d 33neu5DvxlS2CDeOH/zu6cUTxPXBy0HZbojnfNmQsooD6eokCgIpKERDPRuFfDXTeyoCjh61/FK ZMJFW9S4zj28QhXq2ILZvnhmbmgZXiV+yHbwOU2nwwGw/66n1xd9gtdN80hQpHb90yCxpD5f9Bp Z6lfZzeqA2+bec9tfF9jd4leJxze0SB7Db5F4mxq7k29m078egSWfHoIkalBfLwuH+bvffvwWpl t29oA+2R7QE9eD/0rHNLrejFJ8jYqFnIXsCKwWSErDwyiLhVLQesad3cJcRsRyROwyuOQpG+IhR GGJNHL/2ZZleLIaV7fJVyvXQw1+215JaBQ/ZwYRjF/aUGpqPmjA6Ue03/frs4nAzxr12/bMyiNh aQeu/pEJG/SzksBkvW3FFP0j4GNEEmGV3jPPs2PhjWLlC27mXrrNCLXZTLh5Kxj3qLdftE8s+9L MBcpkpt2g9hX+5p04IxXA2BohfacwQ4xBLe4VnIZFZgXb/158NOfhZeo+9jANq+Pz6xuFJ0K4SA +7lumA3JpWTJ4tY7sSxC/L79FBhvPxev4QZxmXwbbkMu2Noxj3VadO/nGKZAcCOs/hPBvxNBFFR Os+S9u+Z7PkVbWg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791774964822686014 X-GMAIL-MSGID: 1791774964822686014 Reference common hwmon schema which allows to drop the "label" property. Acked-by: Rob Herring Acked-by: Guenter Roeck Signed-off-by: Krzysztof Kozlowski --- 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: - | From patchwork Sat Feb 24 10:14:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 205807 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1077105dyb; Sat, 24 Feb 2024 02:16:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVNIqVpzjSl2Ls5oHLWPn4LtxnPw05LmGq8sP6oDEF59Y2PVs7TT59njoSLbChjdzEvr9cYGZouEtbPtlByYhi6QKFnqA== X-Google-Smtp-Source: AGHT+IEovjYrYTYrgDseyzFO4Uvmt7b7oa9b5kmc0oIoPeWTqZuZ4Lb7ws4bVJYe5ZtDiq4qyMfQ X-Received: by 2002:a05:6a20:9c8b:b0:1a0:e4af:3c12 with SMTP id mj11-20020a056a209c8b00b001a0e4af3c12mr2980731pzb.48.1708769785101; Sat, 24 Feb 2024 02:16:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708769785; cv=pass; d=google.com; s=arc-20160816; b=Jfy6PIuoraT4TrSH29X1l2U6iSc0mhmj/4nMzgd/ltb3mppKPUzJFTCVYBQUE1d4c4 JpIjYLfHYPlzeehgv1D9XPNmf0mmLMLViTojmyLO6n2yMaXwBjsJ45I3xPhHqx6aifwz A+8SLHq15RCITaVsHG1wSO+yBvjA1t4+45X+R3nRjA5BkZ+FlbPHzJT4/qbnW9KsONYg 3aRyepFi8vhO/pdX+CIPykFzxLAeQFlLs38f09gsr6xnspoYuid/HnTx861/8uR09gkj 6pAfI8bYNdwHXIKXaRI4oms6QRxKFd0u/b09eAn9GSGNvRlu/L6pQK134t+kfg9SQfRa Y6CA== 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=akOZ+Etv/crirPuIpt8FIJQFJ0/ZKt/kX9vyEh8RWUU=; fh=Lkkvmo3DyznLkKkgAHZYvX0b+l2a7KU+qmga8YiDqcs=; b=gIMtpdrA+kiTuq54EqsYdQsG1fad9uznmY/lu+jO3bGy9CIWBf7pcwTfAo2hoFudCO Iq83FojFO3zagTD91sdCCMnlHpVMQBDcG0NiLjO2o4fIKrHYbXNigAB9MrHl3y+Wfsaa xBhyeLig88NJSvU5AHkfvuQoEEqjHNxEtb/wmy/ONY8p2/RE9cFkUN71do/loPdVyNF/ jv5sVX0CJmi0Jea1jQd9tO86UWp8N0aGrCqhlWxE6+mUqRyEKy/gCKQkTYWw9QWjPE3T yDzirhxEwdxOp/iGj0H3Sm/SkKe7Pkv31dKjbbG7QWZBHGn8gViB5l1d/x0d/ICGHepM IvEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CbTWJhpj; 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-79555-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79555-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p14-20020a63e64e000000b005c220a94525si711532pgj.90.2024.02.24.02.16.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 02:16:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79555-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CbTWJhpj; 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-79555-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79555-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id ECD02B223DD for ; Sat, 24 Feb 2024 10:16:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34D792E3FD; Sat, 24 Feb 2024 10:15:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CbTWJhpj" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (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 7B2A51B96E for ; Sat, 24 Feb 2024 10:15:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769718; cv=none; b=Ap+EGl2ApnjkT7qlb6pWm/1O48fhaIC05neQF/gEyWrDhgQopwfjiA3+qMeYgDFw9gAcwe6Qe+7r87y6fjMBR1zmaxxA57Z11bAfVGpZ5QUrWO8jeq+4vs3ljFRBiQBwt7GqBqO+FRtVKso8lakoJbXL7pU+fmXca6vzY7lqgcA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769718; c=relaxed/simple; bh=b4z6PcGKaAJfc3AuLePfjOUzLtz9bdfMX2xHlkhOMyo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Mxu4wxzajG5eLLsmAnwqx3NemDkvYVSK19YTy5vkdkulqIXq5hOvPB9nyX/FNpdCxWqL3sbrq7bnMSrYX/3DP58ZSp0cxcUG1zpyWBXfzVXCT7tRwrMmr8HBtFaoUw2DIYApkWTlytgsSAxfPADrWeSej0Z2EHS1fAG01heAooY= 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=CbTWJhpj; arc=none smtp.client-ip=209.85.208.51 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-f51.google.com with SMTP id 4fb4d7f45d1cf-565b86c9943so82440a12.1 for ; Sat, 24 Feb 2024 02:15:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708769715; x=1709374515; 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=akOZ+Etv/crirPuIpt8FIJQFJ0/ZKt/kX9vyEh8RWUU=; b=CbTWJhpjNQTR81IkU2G1kKwxhkaAr5MNzBt+RwNYlaJ/xj6R5NwPq1GP0SHtfJnquu PhEI3QjsX58qIkI2lQ64TAD1GbwZKI2PlLV7+xM+iVYyjxk7ldlRSAmxbZCY2oUuGMnN iDLu0oI1Uk7WKUy/brM2faVmTdOnPsVxWz6Z6W2V2yev4ALQ0YjVBPtnIjOG6QPe7FCn 3DTldsAb5y+2UOjznXvOtQ+4nNPI2V9eF0WhQfZrehky63R6g6IH4ccxA+SImHTfkS9r dXvBtUfyyB78p9H2kFslJH5dWMie9tXesUFlaXNtDUZ9d8I3w28Jx42sFsM+BJZWcsgZ VKCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708769715; x=1709374515; 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=akOZ+Etv/crirPuIpt8FIJQFJ0/ZKt/kX9vyEh8RWUU=; b=tF5jYdJDdnrjcpyIYQx25oFv6UZlADWWd528rI3TCpDjw7IQjO8HhLq5WqF2xrYpji M82LTKJ2JWfcVrntzbw871G+5rcgULle4F9766eIIYRzECFo4wcXel02/STt7L48mKbR 1D4iOxk9nSTspGRoAJ4LC4tEIpzZsF7rNmsuVnZWcfR7fAArw5ivAhABbKI4LzXu7hh4 cNopW5NwZcTaf6GOh5P65Tq5Tm2pyTrMk6KfLaqIzrbnsmxipm/7Kew7EtBJLdtASxzG QajW12Gqo6Sz1cJYehu5Hgr95FHQySCkDXMPfkv5QcD30loa/fGTOWxbg7maoDG3GrC+ +nPA== X-Forwarded-Encrypted: i=1; AJvYcCVbe6zixKlWRUsmH9MmG+mvnRSwGpDAIcuUwS7tZ3EbpTtKXk9/mfA6MUg543Kd/WRuJ2E/WGuNRJgIUvD2ybbfAJhaONy8/ZuslU5G X-Gm-Message-State: AOJu0YyzYqG2CB7pSJ7lkrS4KZW+gxZYY5feKlK7Z3VO2AMgFNJSXJwQ 3R3CBR23M8bpiMCrnM0Loyyn9Gy6umJEG0obRWoYpLF95i68IkI+0BWbxgMNYIg= X-Received: by 2002:a17:906:354d:b0:a3e:b57f:2b8a with SMTP id s13-20020a170906354d00b00a3eb57f2b8amr1785296eja.10.1708769714998; Sat, 24 Feb 2024 02:15:14 -0800 (PST) Received: from [127.0.1.1] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id p10-20020a170906140a00b00a3fb4d11809sm446545ejc.204.2024.02.24.02.15.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 02:15:14 -0800 (PST) From: Krzysztof Kozlowski Date: Sat, 24 Feb 2024 11:14:52 +0100 Subject: [PATCH v2 3/5] dt-bindings: hwmon: adi,adm1275: use common hwmon schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240224-dt-bindings-hwmon-common-v2-3-b446eecf5480@linaro.org> References: <20240224-dt-bindings-hwmon-common-v2-0-b446eecf5480@linaro.org> In-Reply-To: <20240224-dt-bindings-hwmon-common-v2-0-b446eecf5480@linaro.org> To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Delphine CC Chiu , Michael Hennerich , Robert Marko , Luka Perkov , Zev Weiss , Eric Tremblay Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-i2c@vger.kernel.org, Michael Hennerich , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1249; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=b4z6PcGKaAJfc3AuLePfjOUzLtz9bdfMX2xHlkhOMyo=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBl2cGmJS3cc23ffavegFg3/laqnuPoh6k8wxCnZ jb5M+RGOwmJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZdnBpgAKCRDBN2bmhouD 1/00D/4qSBs8hO4WNlYP/GyQfTw3qDcEdVvwsLg6OFXkqYeZPsDgbhGnAcca78eLHOONkrm3XCd fTjSERa2iOcIu67Fk0rhrRt1dz1H4JL0kEOEOPt7z26XxiKK2zVYNH31dcnwr5mVWzO3v1H3fVa Q2mHeQ2Q/aQESAF5NyePCTLv6gXheagVlEB9o3h4djPCnqTq7qmg3pt+zyJCPrTP32w4FVjqAxz VBUh5KJD+5d9fquaPAdlJtPxVp4qQCSVReoROwbzjO4Xottwqvbh3tbnvoOuhdvGiOGARMHCRBB +JmBIyCtLd4JkVVz0CBnLmY/WCkQ7btK8m1a3Ruf2RRyhKyccaQmtmh0001K5SwbZMK2Qr/vCI/ 6BuVR4il7zDnN2pxzFrpWmTaD87r8s+VrPPNB+KEPqvoR+bzi8bYQLs13qgbgwdf08OwvFj8pgT RPfcT8x/tF5BSLoRuoz4UJGkwoOi5K+O1MDjaLpcxF9cPqznziUEl4BQ0LMpZLBKk9srSlqyr5C PHz5eJLd53KNmtRGOkVi9LgRfQifTt4PLCPlkfTQmLe8kZX0eSgFOPj8nHAxNd5W5YHNZjKPe72 M+CXRDDtF6U0RK+T9ijDc2UbunYDdxOSjQ461w4m2dy0IqcqEuW3bqvkF4+nKW+BR6vzUXcunMy m5BVg/CZOJ5MFCw== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791774986261001127 X-GMAIL-MSGID: 1791774986261001127 Reference common hwmon schema which allows to drop the "shunt-resistor-micro-ohms" property. Signed-off-by: Krzysztof Kozlowski --- Changes in v2: - New patches --- Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml b/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml index ab87f51c5aef..b68061294964 100644 --- a/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml +++ b/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml @@ -33,10 +33,6 @@ properties: reg: maxItems: 1 - shunt-resistor-micro-ohms: - description: - Shunt resistor value in micro-Ohm. - adi,volt-curr-sample-average: description: | Number of samples to be used to report voltage and current values. @@ -50,6 +46,7 @@ properties: enum: [1, 2, 4, 8, 16, 32, 64, 128] allOf: + - $ref: hwmon-common.yaml# - if: properties: compatible: @@ -107,7 +104,7 @@ required: - compatible - reg -additionalProperties: false +unevaluatedProperties: false examples: - | From patchwork Sat Feb 24 10:14:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 205808 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1077144dyb; Sat, 24 Feb 2024 02:16:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWQE9ZbgwggxNeVVFAhEvDbmlsH42O4CTF6OdR5Mmmb7AFs56+PKJnMyFtwE3PHXymw9S/yHr2dAC3ce2yhj4ljFVQBcQ== X-Google-Smtp-Source: AGHT+IF7/hK7j6A6KJRqYaze9jgLGMKyBlV1XqNvEeNZzeSFELB9Fs/syDNKK5o6Sposfo4eX8tT X-Received: by 2002:a05:6808:e82:b0:3c1:827a:7444 with SMTP id k2-20020a0568080e8200b003c1827a7444mr2272530oil.18.1708769794539; Sat, 24 Feb 2024 02:16:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708769794; cv=pass; d=google.com; s=arc-20160816; b=zh7x2QhcsR+K3vQeIFtpCiDMpGD9O21dMsbVOMAlkkC0zkCrJlzeXNt9YAxvU+6VBd WKTuBFvLXiX7uVVuw3+y8XeW0xw6bqUCCZxf/lUgWm3BUtMjFWFsdH9TkERL4NZOytuM MGT+fyGX1GWsSjsPDTaAlY5Ni+aP8FcK48Sdjpi8gDL//XO6vBgddcp6enHzmeObKMwM iB7vKGjlEQcd1bKG8XnviIuWXXftbHBcsOP2Qt2n0k+mOMZp/ov2hmbxpV9IwCa444q4 OoX3EvkRgxcV7C1uWE+Wwkkv+bOUNiqup8LZnQCZ/I7ZULygsqTrqjIknQT6osnMhHGN FqrA== 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=CzTFvA5VYY95036xye7AAeQU1pMkC2skTCxswO20aS0=; fh=1V/GUv00M/E2WY9ZFv+jKxmmo+6kmlsI/qAP0it2RXc=; b=R6haDgY+wU6o6GP6+gUaCAoPr8BOY1FLmYB2VHXFhkY2sNDxIvV//BNOSy2Cr/mlUj MbsKI9tQ4lWauhgUQKf5s4JMDcZIZQRIf2CGf4mqb4HItJEL1peQMa1YJh2BMAoBwaxS wOv4kgTxfzhK0Z5bhH0W8BXetWfF6J7j3Z7Qbl1IRsifSlfRRP2upTlckXHegAg2oJtl X79nssEVidUc84TnclYeBVp1QNxg4sfnHup6Dk6D/mikkK8oZyf+tORAdUTFeD3yvjmn V/JDwdaxhWhCwTI40nHae1prQwgzy5iuGGBGd4EIG8ovp4c92Mip62JAn1xaHQgPZnP7 /EiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YKCVCh5g; 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-79556-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79556-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e6-20020ac86706000000b0042e58bb098csi756063qtp.732.2024.02.24.02.16.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 02:16:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79556-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YKCVCh5g; 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-79556-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79556-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 544801C21616 for ; Sat, 24 Feb 2024 10:16:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 717B6219E0; Sat, 24 Feb 2024 10:15:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YKCVCh5g" 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 E90AB2CCA0 for ; Sat, 24 Feb 2024 10:15:18 +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=1708769720; cv=none; b=hIUdwkt8CmzqYEDfkmJXRlcMJWsNg4TLdJ96pc+s5UqF11YjwAqnmChpZAU76igiaE17Es0xjb2gexiye5Muk6y3tukEaa9kZVFx4y+xLdn8QeWThGjveP56tEyhwJtUEDHc+swwGcZbWNCZ37QM+Z+PKh1HCkkkd1Rko0EW+ho= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769720; c=relaxed/simple; bh=aD83uepM0Darh5WwNGaHTFt9aEgQZZROelPmA55Mti4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MnujJ8KleGghkUG0MMODdFp6gcrnJasXr5K94UKicNHXTCpbQv9y8uIZcgtJb7+x8ey1K/omDqnAnqUvrMDbpuQEYDIOuKmSwJyRmi3wcVErPp99X/LliEMitgM2zYDCrqYdn1FxRPYWFBzZ1aHrODI0oyge4iGdLRKf3fEhi+I= 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=YKCVCh5g; 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-55a035669d5so2652597a12.2 for ; Sat, 24 Feb 2024 02:15:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708769717; x=1709374517; 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=CzTFvA5VYY95036xye7AAeQU1pMkC2skTCxswO20aS0=; b=YKCVCh5g+jnQgg4V83zhy0Yz44sawZswlbpY+59U5BYVngnSKD+fm0FgvcZuNYHJUC 1Z2tPWPUcOvd7qWF4hDt8ALOInrV0EJdIl1FXDHkGH5+ybWiwjF3Sbs3H+Gw7k2ppfLy jMzvYA6dhoj08DZvu5BbyhDUeRNTVlmLh7r1XEsXOnqyNOwBItD6HcmxJAXJeA+LhLnv WIXLsm8PUghWYsAFP7+x3S4cF0iCruLs3KwrQgtVpVTuUig8b06NmHyAWvvGKtN1682S GTkf8yTz0TAIlFET6dXubSyZJNbb4QbN77Aq9dN8LJtX+NKy4IXInTxRL8NV73F/ZNPE g8hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708769717; x=1709374517; 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=CzTFvA5VYY95036xye7AAeQU1pMkC2skTCxswO20aS0=; b=WIYFinRBVKA2MrmUNO1lY62qqFS7LsGrAzZVFQY6cX+Ae++xn4/FTjWF4+EDPaHA4m DTu3OR95mYS4pgrhbspNfLHhEDZVuCjUmEN5o6k4oLwcFdyPEEdG0phq4pX0sZxZ0he4 8naFUpfKTYqYDjY/O57QwBTUjkAmNS88RqS/GdB9OaPUCANCTTi7hQHsFsbuZfQaZ62U 00pk6jXtlFgzZSp4hMJAvUARiWZMy7zBEW8yJ6BGMYEpGBlLX3Yt/vWROH8Dsxyj3nRx 4srxhOFFxP0/t6cJZxJ8dJrupJgN8MxBwqHaVE730oyGvzI/OXVERXwdNMaihxUDm2IA GzVg== X-Forwarded-Encrypted: i=1; AJvYcCXX79VDNCf7IL7WnJ/ApJxrNBNcAfumTTWs2pCASo0C1H2DHfNIhJaMT/51CNUgtKX/PC8TxA3/Zi6CXwE+TD1BfOkTMEDkGEC9oH2N X-Gm-Message-State: AOJu0YxTawUK6cbbep5jRpGJ/ZmTFujrUL43jStEu4WY9KaASpQEsGVL 8rwOncg19BPztFvSPqB5vEpX7XYyz05xmikHwi0K0QBOk9cR3IXMwT/BbQPw9fc= X-Received: by 2002:a17:906:d04c:b0:a3f:adcf:7f58 with SMTP id bo12-20020a170906d04c00b00a3fadcf7f58mr1271974ejb.21.1708769717451; Sat, 24 Feb 2024 02:15:17 -0800 (PST) Received: from [127.0.1.1] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id p10-20020a170906140a00b00a3fb4d11809sm446545ejc.204.2024.02.24.02.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 02:15:16 -0800 (PST) From: Krzysztof Kozlowski Date: Sat, 24 Feb 2024 11:14:53 +0100 Subject: [PATCH v2 4/5] dt-bindings: hwmon: lltc,ltc4286: use common hwmon schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240224-dt-bindings-hwmon-common-v2-4-b446eecf5480@linaro.org> References: <20240224-dt-bindings-hwmon-common-v2-0-b446eecf5480@linaro.org> In-Reply-To: <20240224-dt-bindings-hwmon-common-v2-0-b446eecf5480@linaro.org> To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Delphine CC Chiu , Michael Hennerich , Robert Marko , Luka Perkov , Zev Weiss , Eric Tremblay Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-i2c@vger.kernel.org, Michael Hennerich , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1004; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=aD83uepM0Darh5WwNGaHTFt9aEgQZZROelPmA55Mti4=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBl2cGnMHl7JvVmjVNpXVQbkA024o3WcnyxoDo7s lo6+7T2DHWJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZdnBpwAKCRDBN2bmhouD 1yUsEACZkgw116288idb0nBcbCgrzlAo9PqGWcTHRDqQXYPsHYf1Zs6n8t4+hwvHpRSbLVx+pWM TLYFoM326csLHXmawzl/9D6vfjdnxZhay5QGzCIjjkEHbeXrjXRcBz63G8zVtnuLWglGRBCAuO4 zc+lRb0FwyDjLCfQZH4YpQreQ0E7NLIoH4zisTLElxB9FHDivEXkuYUQ81BWSwgtB143vh4wDOS sYsdbp4s9ssjMmzbmjCSMLk1iUPiPIncPA/EpC+zE/f6ByqNtOL7+q39uNLLx1lxH8RxIuUZBu5 KPfHCAUbF7P+xNV8Tvs61bby1K9Zzm8empLCghDi0rmRjMEwjkMMPoGhU9JxlatXIj9Gzuu8Svm LJUWxLsfho/UGG/S9aplhBzI60W+G4BvufTiNR69KyP9nQU9bI0V7m1G1H3yYUxi/HUW1c+nYHt QxmOcFZcfNc72tl0Q1yvD6LslDUrfocLfRoGoWn7KMct0p+ORasiyF9ZX81rgZWQ9N2kKOaalx2 x9JwHyE+vbp0JXiKfV6LdFbs158sVjqbc0MzvUstiQcAIdmuvipPt6lZt2cbFkfi9yUZWlVSGj5 uRE0yvg7XO7BGTeW6uqZfK/F2Hc/yDyQxepnZAcRvPWj+YGbjKWOoJtTHrXs0m01rsBDRRSDHsN jYdbr9gI/tNlGQg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791774995926692597 X-GMAIL-MSGID: 1791774995926692597 Reference common hwmon schema which allows to drop the "shunt-resistor-micro-ohms" property. Signed-off-by: Krzysztof Kozlowski --- Changes in v2: - New patches --- Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yaml b/Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yaml index 98ca163d3486..853df9fef6c8 100644 --- a/Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yaml +++ b/Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yaml @@ -25,15 +25,14 @@ properties: The default is 102.4 volts. type: boolean - shunt-resistor-micro-ohms: - description: - Resistor value micro-ohms. - required: - compatible - reg -additionalProperties: false +allOf: + - $ref: hwmon-common.yaml# + +unevaluatedProperties: false examples: - | From patchwork Sat Feb 24 10:14:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 205809 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1077224dyb; Sat, 24 Feb 2024 02:16:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVOxCgJTlLFmmqsf8n3Cr4XtkT0Vr4qEWWm4ZI5pN/2LFOcrrsU610Z3CDddKCMQXp+4gwd6Ryf0kse5kIkB/JUhCyDLg== X-Google-Smtp-Source: AGHT+IG8mtFCcZOjnUcHOlNE6D07PNr9xE840VRL3H9MRwKDg8Cg3ne9canQx3H5kzkl32kK4hau X-Received: by 2002:a0c:f303:0:b0:68f:e051:b1e9 with SMTP id j3-20020a0cf303000000b0068fe051b1e9mr2696181qvl.28.1708769811288; Sat, 24 Feb 2024 02:16:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708769811; cv=pass; d=google.com; s=arc-20160816; b=JkrkzCwhfsLP9fPEAbmWpfrno9tvWUSekb45gFUicIbqEFOFcs31Z3s959/kw0kkMP EAcz/BhzNfv/dzwEeZjORw/HWYMUaAAEGE8VMFZMO20WcOMHF2fFeXRTE96TqkpCtZTF 787ftlVVbEeozNYfAqbiseQATHPFZOsIiH1XloZGH8ffmfTzbd7xb/KRh/QJf+tVVucl 0Z4rqvsdJTh+AOBTpu+qJWeKBqlDWlIuVQ3+mj8LNGU5eQ5sj2hMbxR6eQGi/Mec49j8 I5FvCz3b/92LBlGR6yfu+rSVvhzRJFsPMJcyBYMCGZKcm63gVOUp3iPRsGvDHjFmxWYE Lu9g== 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=KXbAugNEprUKrZcZOHEuG4q3QGFsm893pRwYxVtSKSo=; fh=9COP6HlWtc1dhH5pLOvdTmJ9TsYLCyzt2y4gXSX5H6s=; b=sDEXDbyPNX3qtL9Li/S6ty3bZQCInUhJsXtg8zd3lZtHnjqFUQbshyUGh5yYmsqmTK s/6FtyeCo4fn1m3ezvEJdL59N0SWSunS1LGlBoCh5DeFEx8hTE35ut36J3H8z6qYxiCa 2CaiF4zBxyxzRk9lBzLpTTBLa1IQPQZM3vs2U/jTo4Dq8ToKqNB/Znici1+cqZfhaC5e DxLsNMv8CMkJJ8/nAE4M7uZ8ufJrr0UI0W7pDGg9DmI0zryNUrg440nHgwkHah6ViwRo x9d+By1mBr1wlzwAnTSBuBbjsWTovO0Nn9xowiMhNqlADmZPfTyWfiMzJ4V5IrjiVUpU Wz+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JAAQG0mE; 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-79557-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79557-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id iy13-20020a0562140f6d00b0068f737e83e1si760117qvb.175.2024.02.24.02.16.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 02:16:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79557-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JAAQG0mE; 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-79557-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79557-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0C1FF1C216D9 for ; Sat, 24 Feb 2024 10:16:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96C79219F9; Sat, 24 Feb 2024 10:15:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JAAQG0mE" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.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 893E73BB3A for ; Sat, 24 Feb 2024 10:15:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769723; cv=none; b=BimSMsD/teAK0Jyp9nPrDKklVT85bzM0b1emOvl9uswFGLtLqwNcxc4vvgjH42IBYxja5gCDh729ROiBdFJcht8bdCpX0Kb4tgLAZntwLH9+jaha4mybBOwjNixtSu6IgGyklwEUi8Bx+8Gsx06exBRvLr5pAN3YjUFqIqmTYnw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769723; c=relaxed/simple; bh=pl4d9K66V7Tf3bdnPvTpvzc+RCXRErt3N+sOJeBxwu4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=T4M/s2PO/S3d0zAD6XKyXzEskDMrmPCBmfLmV+/502iW+hY7DD2Qd5ihiDWKZri6sqguw1n7Q6gTJBk1kyApFq1x5wK+z9HI1XRpCRgcUnhbggegLNh2CoyWk6+0tlROQZ30IFvk4H4M/svCr8GalpXe3IHkPtPHPOOAfG29Hv4= 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=JAAQG0mE; arc=none smtp.client-ip=209.85.218.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-ej1-f42.google.com with SMTP id a640c23a62f3a-a3e4765c86eso169160266b.0 for ; Sat, 24 Feb 2024 02:15:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708769720; x=1709374520; 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=KXbAugNEprUKrZcZOHEuG4q3QGFsm893pRwYxVtSKSo=; b=JAAQG0mENF/noLeax8HH3y1Sw9zztSWVxVMiYbD5g4IZ+7J+X/naFTaO5chVeppQQs MORS/NMPn88J20o5e98pstaYfyArucYwUb3mSq6g0/WdbhkL55gQA2wVxCXy62zPV27r TeZvRSxX69t/Iophu5Y3Jyv9pOy82zkhJnswTVU3HG37k7SUevpihGfkmU1iokdy/IEu wysODA+Qd4odMLSeWnVevTsISrukPkqzF5FAsZhFJtgb50TJmoFoov/cAvjutv35TLDD 73oGLN64XnisDQMZkAPwNSOmO6RRL8iETZ5brNwALldAxSGlN9Hy5lyDsl74vaurslOP v67w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708769720; x=1709374520; 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=KXbAugNEprUKrZcZOHEuG4q3QGFsm893pRwYxVtSKSo=; b=UJIoaOGu+oSU+YLffopPqRIUo/cfF1LaT5aCR6hQAbwdV7tEt7DuAI7aqXAzhITndO LAhQXtknu24M1MbXz60HXazGWXJERwSgio3M4Y/GF7wvOSKdgYycbUMDARNJJSUs0r6r y0IiQ4qpWI0yO3LVMvzIFVbkNDh/Wc5KPpXlpgFqQLkEYzHvDqRloyqTV3yYDg95GX3L +DHz/o6+Sm2qM+yHBmUZM1HXgDjSU0vRqIkcZsxdfNP5vVVNODqxpOJoByzoJCQG1qKp nUPsQtWhCMw9E7bsY1/7OMLjym77MjR9VXkzVLpVByTEPQ9D1tXWoKn/+mKy8q3UWc4C 5MlA== X-Forwarded-Encrypted: i=1; AJvYcCUUm+xM/YU9L6ckfshRVv+5peq1xDd3SnJ6Joum8A3ZwGQbD2G9nHS83PPEHjCn98FBl5Tj9Hv2mZZkOQ0pEs+o6uNzd2QdjwHw1Kqh X-Gm-Message-State: AOJu0Yyz3ROxeZH//pcybDtigdCGRZ7qZrJ0u+DlEf/UeZ6inWEVPHXY 8ZuZI78u0Ktxp0rlJIeqXCLhj4ZvwJjyBG3jinpCAFH6e3gaX29IKKsh+wvvsGc= X-Received: by 2002:a17:906:3ac2:b0:a3f:98e4:7dc9 with SMTP id z2-20020a1709063ac200b00a3f98e47dc9mr1305769ejd.28.1708769720014; Sat, 24 Feb 2024 02:15:20 -0800 (PST) Received: from [127.0.1.1] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id p10-20020a170906140a00b00a3fb4d11809sm446545ejc.204.2024.02.24.02.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 02:15:19 -0800 (PST) From: Krzysztof Kozlowski Date: Sat, 24 Feb 2024 11:14:54 +0100 Subject: [PATCH v2 5/5] dt-bindings: hwmon: reference common hwmon schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240224-dt-bindings-hwmon-common-v2-5-b446eecf5480@linaro.org> References: <20240224-dt-bindings-hwmon-common-v2-0-b446eecf5480@linaro.org> In-Reply-To: <20240224-dt-bindings-hwmon-common-v2-0-b446eecf5480@linaro.org> To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Delphine CC Chiu , Michael Hennerich , Robert Marko , Luka Perkov , Zev Weiss , Eric Tremblay Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-i2c@vger.kernel.org, Michael Hennerich , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=3852; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=pl4d9K66V7Tf3bdnPvTpvzc+RCXRErt3N+sOJeBxwu4=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBl2cGoJL6c496xU7gDPRNsomhMCeQtSoy6uVanx Bdogu/jA+mJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZdnBqAAKCRDBN2bmhouD 12WeD/4kJDkyUG3csaVQIZZbzWFny9m/QYNGh96LI5CR6lUmpbXqAfpn3NPtxtUtW4V7NRueuo+ 9hgYiPBPzSL9thNpNpuSCKB3xhmuS5x0iet8j4HDcKNM1duYScjP48DaQwgfFFEEhO7fZzfTrxS ebexnHIZFmwqnCeIlrSSZ3+TJ0luk3fHE50xdcsZgZQT0kDfI8BlBBdQWRsgvFZ7BLKdT3SVRxu GlIDKf+V/N5fh6cMEElceU+s+NuNFmI/XtqXeMrAHuTL80WqkuBkeDGIgAv3A1t2olerQv5/Pi7 Hl5cqJWf42QVvEQ2yxqV6TCy/pPkjGxbEdxG7uuyz7IOrPpozBeZdZ+t++8g7KAqOgojE0do2Wp cydnwVkejcGGLD8G47sBiuhYcLy1hEDDlF0ZzSpaJzTDwdHAxNOcnNcbscpCKRU4LDzlS8qg3qV 4rR36HwgIwv1Xu4UPcfE4HlapcP0dr19X+BQWaeT9bVrV/bfOHMHAULLQxjfjh8o+L8ay5QsvPr ZZtQfS/mL4flyPxTKBhInG7IRwYKgzjRzm22XpMFHAoQOE0+gQYpdfbpWtxriWgHxqeZe9ndiyZ pFxpaUBOSx8XAY1VNLYykYQS3/HQDw/DySMoNkEDjR74LOZBT1ih3o71UiLcFkpQCpjAc8tSBXD 1RVxUQzAJRwuVxw== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791775013743326411 X-GMAIL-MSGID: 1791775013743326411 Reference common hwmon schema in the bindings which have and customize the "shunt-resistor-micro-ohms" property. While this does not make the binding smaller, it brings common definition of that property and also allows generic "label" (parsed by Linux hwmon core code). Signed-off-by: Krzysztof Kozlowski --- Changes in v2: - New patches --- Documentation/devicetree/bindings/hwmon/adi,adm1177.yaml | 5 ++++- Documentation/devicetree/bindings/hwmon/adi,ltc2945.yaml | 5 ++++- Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml | 5 ++++- Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml | 5 ++++- Documentation/devicetree/bindings/hwmon/ti,tmp513.yaml | 5 ++++- Documentation/devicetree/bindings/hwmon/ti,tps23861.yaml | 5 ++++- 6 files changed, 24 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/adi,adm1177.yaml b/Documentation/devicetree/bindings/hwmon/adi,adm1177.yaml index 2e45364d0543..be7e9e91a3a8 100644 --- a/Documentation/devicetree/bindings/hwmon/adi,adm1177.yaml +++ b/Documentation/devicetree/bindings/hwmon/adi,adm1177.yaml @@ -46,7 +46,10 @@ required: - compatible - reg -additionalProperties: false +allOf: + - $ref: hwmon-common.yaml# + +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/hwmon/adi,ltc2945.yaml b/Documentation/devicetree/bindings/hwmon/adi,ltc2945.yaml index 5cb66e97e816..6401b0a9aff4 100644 --- a/Documentation/devicetree/bindings/hwmon/adi,ltc2945.yaml +++ b/Documentation/devicetree/bindings/hwmon/adi,ltc2945.yaml @@ -31,7 +31,10 @@ required: - compatible - reg -additionalProperties: false +allOf: + - $ref: hwmon-common.yaml# + +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml b/Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml index e62aff670478..8f0095bb7f6e 100644 --- a/Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml +++ b/Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml @@ -25,7 +25,10 @@ required: - compatible - reg -additionalProperties: false +allOf: + - $ref: hwmon-common.yaml# + +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml index da8292bc32f5..09395283b0a3 100644 --- a/Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml +++ b/Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml @@ -38,7 +38,10 @@ required: - compatible - reg -additionalProperties: false +allOf: + - $ref: /schemas/hwmon/hwmon-common.yaml# + +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp513.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp513.yaml index cdd1489e0c54..227858e76058 100644 --- a/Documentation/devicetree/bindings/hwmon/ti,tmp513.yaml +++ b/Documentation/devicetree/bindings/hwmon/ti,tmp513.yaml @@ -72,7 +72,10 @@ required: - compatible - reg -additionalProperties: false +allOf: + - $ref: hwmon-common.yaml# + +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/hwmon/ti,tps23861.yaml b/Documentation/devicetree/bindings/hwmon/ti,tps23861.yaml index ebc8d466c1aa..f58248c29e22 100644 --- a/Documentation/devicetree/bindings/hwmon/ti,tps23861.yaml +++ b/Documentation/devicetree/bindings/hwmon/ti,tps23861.yaml @@ -35,7 +35,10 @@ required: - compatible - reg -additionalProperties: false +allOf: + - $ref: hwmon-common.yaml# + +unevaluatedProperties: false examples: - |