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: 13570366 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 9ECA120DE7 for ; Sat, 24 Feb 2024 10:15:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769713; cv=none; b=pmN1ad2pRMJUbCCurF9ry/rW481AlJb4mICSnPwwieE/I9qNUpgqp7TZTL35DWZ89MRkhMhnqoxuEdoyZweJMmxhEtlhF9wXNYbPo1hvWLv/YHIZGMaiDjyQ/yH6QTl/rSdmu0eIDSsZOVzuJMCsoGi8pZ+/q4zuF2+8JOFD/6U= 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.43 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OSLVfP8Y" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5645960cd56so1446552a12.1 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=Tu+VPo/HtWNTZuyfIPsXxiQJRiYRo6oPN3hT+PMfG/719YWX61vZeLFFduZbMHbt9E Gs7dsgO9m8HldeOaXJ6/YKsucSixTQ3S8yPuMIYgjCsYUnoR2nttSI45hZrlLIsUaTVA Q8CwE9sGwo3XIuKw0oBONP9IevgIne5bd4fZdcujktjxAScJB/Vl4BnEaCoR1iwoluM9 jQCJACH/5WUu/iDz6ew27+R4teeHM/dlsLLS0ura6jvPtGRB4EEYu+tQMyjQ8seV+sj4 DrXWa3vntP6tsA3EQHjEegtKAz8w457SBj4KoDuBGpfoKqIIMB+iUPxMEFwdK4v7/hwQ K9cA== X-Gm-Message-State: AOJu0YxN5KVfqSpONA9AD0gnJpmSFcJN1MewpuqvLHHAK3eJZgKVr0/X wc2VtZM2RGkXWDbiTAIFobX4VZ+s/KESrKGijgM+zQLRqOPtvRxhrPxGJfsMF8o= X-Google-Smtp-Source: AGHT+IG1Jc9nJsRD/qjiQJ+nR8ppw8RruWeau58pKNYnGma8+kfMmhPve9+BI7tDLooWCEdf/kBISQ== 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-hwmon@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 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: 13570367 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 3EAE3250EA for ; Sat, 24 Feb 2024 10:15:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769716; cv=none; b=ks/9wii0rj+vPc0B6FTpTb+0a+E2P+fKeN1negpKS1h9R95dENmoCf7Is9zqcqDp3gmlGLmz6Bb2G8exviuLbchNwgxxTkp/bUlxh32+m5lE1vLYcRmezhep4P/vsgQiSQf2zLCCTTrLw6jGBqewBvq55owsQUXcQ9N5T5kQuJ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769716; c=relaxed/simple; bh=nPQPdZdHWxEYvyb9kVY8THmiKsCdd6pfv64gWqI0Ddo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Nu0RvDzqT8PUgQ5fpzRwH9F2Ra9XqtpesTVcP7DvGP/u/YsI6C9yWuwSP3jRAbjjcWGIBes87jDZ17+jfdav4CQ81ioigBQ4hYBXANz+5naj4wZzUmZMZYlRB9+4pPwUX5GQS4XM6FeKSSqbEkKV26cDpyBxPMPJYnSLr4usPds= 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.44 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="prIpvrHg" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a3e4765c86eso169151166b.0 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=quqXs4Yw8f4xEDws7RYYh6bLg6ZiUNCdXfV9SbvFg5iumtFVjgiIYB0xfiGH+7JUhg E7JCRza9HihzY31N7ruoNSfaWscGZZGYq5lFkKL16n53H6nArPEF+7FQh/qMji1xebf+ VDoPkRB6Ir7YCYCya1MLa1jxsTkrBIlX8RhCZjhdsxxi5xvcPMKRtxP4HWmw80+jKrgo 7koJLj4wTrOqUD9nRoEjuj6QL/gvT1z+HtHMBBS3jtuL31SzS7+oVLlsUOH6EZJcpihg Ay1ntGUtV9XYdTeBK1CPwwCuJWE7XjI/6Hi8eerLy9Z/kttUIJQZjdQ+iQVU9bkov6vN Ytcg== X-Gm-Message-State: AOJu0YxOXBiq2EcRSHHUsG5by9a4hl++/Id0mhANmhZuIM8IZ6eBdmCn Ro95wmfwfcymFbUSpLq1RXYimzcfGdRaQuDD6NH+l8maIAPG+8BiQZtZmgNNcy8= X-Google-Smtp-Source: AGHT+IFd1wsOSbtmEoZPY9UWgY8TgFvSNpdgsrKO4NoWFMg7r9o2S+W7m1WEBECqg9wsum4bNWSNrQ== 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-hwmon@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 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: 13570368 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 9617125755 for ; Sat, 24 Feb 2024 10:15:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769718; cv=none; b=AQttCcc8XILoPCQ+qklqZmBnHSmu4+zUZc3QwJ1WdM5anffQaSRxdtyofg4dZR/VIzKLidSUH/c/fFKdS4GCXLwOtzXsSziDAnHEcDXwjywbyXyhUxSvT68Wk8bEqowPE0MXCaK9sXQsPkPKJ62VELtJyvkggOiv+q2w6OIkvnw= 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.218.48 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CbTWJhpj" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a3e75e30d36so311270866b.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=WOGIRHGCL9xgjBYMjHXYQ57NqZxvb7k0CGSvOnLEjcvOOAXKWz5TLWDXcxsfxvmG5/ MWgBl++WzgA22S1yaWXow0yVRYkdUZcpUIuuTdAgteteYeBDwO48Ojp50q9uCWZb++G0 UC6woN6/MuaHs0hpu5pVYn/28TdwubGAfHP6CXXLjX008GEhWApIFGSY+Gj5/VRS0UwH PQVC2H8VFmwAgzW8R2Nv8iGtwqfO9Exslk3hoRtwy6VB9M0KK5lRypB5cq5HSqvtnWbS wygvLSRCLnk5P1roDTycg48UdxjZTMICa0EJo6Wu8kHSTb0oaJm2WLD3ZWzRzRW/RKTL hpxA== X-Gm-Message-State: AOJu0YzhRWJNpGHIXgrl2yZ+QAGWi2ttBqwX1kG225NiXYXqt2+2T5d2 YhRls7klG4ikd/a2ocSo3I0uyFWrr3pOOA8IKG1FYsTcvpUWFzRJcu3rG28In2Y= X-Google-Smtp-Source: AGHT+IEQkkgmNZcrnS6PKnhLfh9Q9KajTYDqiFmuPq0DUD3CeYTp2cuohA1UxwuoTh0gCUUayDI25Q== 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-hwmon@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 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: 13570369 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 DFEAD2C862 for ; Sat, 24 Feb 2024 10:15:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769720; cv=none; b=idlEJE/gvZGWV1hFtxYzk+Go1lHVcktaMAD8ukoG4NczFtP4mFNAbdMNisH9PJyzsF1UOBPs73HQmmvWCW5cVepEilYLE0Wy7Ccb6sxyqH8GAkllBuf1cQS5GCatY+AUReBzmRCeT+iXKYjAIuLIp1Pfe+EsBqfK96KO+pDlZuk= 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.46 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YKCVCh5g" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-563c595f968so2082161a12.0 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=d+iXazdyjowsTJi4MQ46aR+HQJp36xfkuiXYZ0M97GbAwKo43+em5tEn8bd4HIYbZB PJFNXtreRloMKPacgvDbbD19OXrsrWPpcCRF9xxQKGxg+qcYFn7HXhL75dxVz116+oqY 87XDoM5/3PWg5CJEglBIYKTL8YGc3gwOcUJilGYW3fC051xrZxDxCAjzuia/Fo1lkQK7 2rlXouzL9ElF/382HlI2h6EPxdRdC/zCUd27frgj0AebZ5q4q8L7e2LyiV4QQIfTe+Lj PmVzMPdPfHJnGRNQ477VsMOu6AUOYwALLZGR8PgZIOjkkdp2q6vhHKT4Uf6oovlvXduq MIlg== X-Gm-Message-State: AOJu0YxZ8+M5Lq6akjJjLngLa/YzpSK7IXo2Qt4sM0IX1yTVPqBpQo5U VLnxgbDr1B7N+RDMWRGP28aWaDMDbU0to918nb/pCYl9zpLbErrD3o/ArCW3fp4= X-Google-Smtp-Source: AGHT+IHuHnxXW77Q82v5PHyOSddDwM2zvBrQWex+4T6D3oGXMA4jJqVAWeWRWOB6tkf/ibD0LH4EsA== 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-hwmon@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 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: 13570370 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 7C2AB3B79E for ; Sat, 24 Feb 2024 10:15:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769723; cv=none; b=JN0o5F5IbhoZnOdMFqqSZWY+Ymr1BWXb3OlG7hIVHK30u+VQBF8IpgPw1bvEw/0xlCQsHJvonWvjjjOzKEetugdK3kqnwuQ5HvQgUvbY+YjxhtRkSrOKerRzNnXlj3tDLbPoIlB6cUGVvFrPnkE3/VeBjMFiwaUeK8V+/2C8cIc= 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.54 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JAAQG0mE" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a43037e40dcso7278066b.3 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=NsIXmirecx+y6yKFDv51iJTV5IDakd390x541NOOpi0Elsd5ym2UxJy6QJc5wEAW6q 0ORfZFilDVrn1pq1x4UP2pk2T0myHLFlHOwH1g7KLQIACrPQJA0YC0d52T83E6RqNfGD gqkZHsZ1k6N7W94u/loX63Q20Fy4vyuc8blNEFligaTcwHlriNlxVxylBCHL/gLwTNQW lbRo2oUuyEkIKhP8pzauIrPyDEEKaItm/z0QSd1tyaACgnc7Bu8B/82WDPWKCFy7MUsI Iir9N3fe7sFzz/gwVPm7/ckQK/7Ala+IkHXIsq7GDeH9L4yQWEnYBjh9XSEOBHOn/Vtj 1XBA== X-Gm-Message-State: AOJu0Yxk+prCZWDGLxC2ActapRX8jfys2jwjALaUaPgIIS9XqJzeYRjr tHF+oJeD+6rrFcMogEO9gvmwm4abe6JHPZQXROaIQvTZNWJg4Vdgg7ZAJln67A4= X-Google-Smtp-Source: AGHT+IH+kGB+BzPXsM3MGemhXXB3MJHPPe93VL6CRDE7bReLc3faoHtHV6yMiGYLraW547PgU7DiOA== 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-hwmon@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 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: - |