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: 776068 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 7CE8D1C680 for ; Sat, 24 Feb 2024 10:15:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769713; cv=none; b=RNVhetHL+QAOFd2pJPiyEgmnWeWat1quDmEeT8P2hCZkud1BXYFq0GP9FhUteEfrO1JoAGFXHtEXsJIqJpE5Qg86sv9hOXPCEf+e3bRkW7KbQVwta10LUkBhTPCXfnxHzAPMXQTjUXDQ0y5evI2+/Cg616keqC0QA+VQFupxsXM= 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.53 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-f53.google.com with SMTP id 4fb4d7f45d1cf-565a2c4cc1aso477478a12.2 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=jbIukGUcBHVnYwAimy5lRFJEF8bcJQ3QrluQmwhz7LKLdRE75GJn38qQJMCCWxcQPx bOBYe0J1YFtPqEFUSZAN7U7ZkTpPiDJIiH9IdBiFdf0Tdvqs0abgyfw5xLv8RIe+6bRH Hdk+ZA3E3i1Rwym05mlFbnfsaXUtgJsrayYnkiajM64CZsf+OG+wXVuziPc8C0b1GVE/ DhR8XTaXieFR1J5tO0/8xmHnTc2vBEbP5O0FW0Ev67ACr6b17YCFhKow/K264IEPFFOX po3rXji7a51Pne2ocI6uMoGGqeLvokvkjGgSWWEZCGpI5f/uFlgcjrhOoQmJbPsWI82z nQfg== X-Forwarded-Encrypted: i=1; AJvYcCX8H8w4Io/HpUxyk99tHvmu5FN+Q9q4AHRaDuJDermHcV36JYDeD6sdbFiEYcxIiw5psWTMpjURtf3mDNZEKSr4LmJeTUtFiqcY X-Gm-Message-State: AOJu0YxOSCaGDuJDSqG48nckJGbgq0pcL+pBnPw6BJrzud+/xy68VEqS FqfOvmb+tcDQaZdSU1kCUpiPOCGOWTswZYgUYCh4vSdj6YgiJYH1UMMu/a4ArbM= 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-i2c@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: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: 776067 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.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 8BC2E2574D for ; Sat, 24 Feb 2024 10:15:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769718; cv=none; b=rcHsls5rhItjY12Y4lQULxuiO7/ix2Lk1+Z7WUO8hPiMxzV6WJEYmjLX5ZUOxTDpqytwNofZloQ57dZ7TEPpSdncMIjYHzaWaGXZHDN83ru4/H4dKwR+Be/ERK3sy2uBfDb0NBW8Ag0H+HylstFjM51M/jtGmhEdmQgbd5/PQ3I= 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.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 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-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-565b86c9943so82437a12.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=eTWNHpuq1cxUSk5yZFWeSm5BsJCEAO7hnCm+pF5j1sDwZORtqlu309UmgxTn9l+6pX 7qqvZFIjlrRauR093bgGZgAF+UiQMMmX2mLkgX+lIEREQyiP3Ku/7d/OTLGgcgv8no6R W5Dnz1O9HRSPFyy8keYCPkbuyrgOZIymUUu/sMF5zdParMO/c+JqhESMV/pw5SYRyCD4 jKipDeMxDndWZzSw7lUwO8Lj7H1NVyRzHwUJYGgllG/zyDjOgS/EPOFkpHDh//z79ar3 dNrMwHD0uATFDWMYKl6nC4QshqQM3CVNZaaHyz+/J33rk+sgGyB03StIkUJe8JcarbqS yRuA== X-Forwarded-Encrypted: i=1; AJvYcCWtF31anb9vzIu+MogbQoYlTU2U7qs/KlA5gcIzHBlGgpd2Tyg8Itql5dH6GoEOLPsmC3v5DpByGRud4+BaXdBYkt+PdPsuIGpj X-Gm-Message-State: AOJu0YzlHi+J9E18OZyVWEeBOxdzLVghdqDYUi4Alao6K6HEW1WiyRpY JxKXWRM5xsv+5LE/ixOcy7zFrpihWHS5ikQuhaLtiyb1mYJ4JUVBy0QH2ulcRw8= 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-i2c@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: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: 776066 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.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 912243C06B for ; Sat, 24 Feb 2024 10:15:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769723; cv=none; b=CcQ7XclMJ/TbgqCXWbFvrAyRy3JOS+5o+MXwLZEfQzFu/djDVgCPCzr55rYSXMX+l1/zHdhiaIFEubJLnzFdtM6p09skPZDJ83gzYCLl0GylQt8FkYUKkBh5dXoCZI7A9zPLW43ub9CtTQs78CuXOMWl4bHaHB668aYA0l139GI= 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.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="JAAQG0mE" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a3f1bf03722so149640166b.1 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=FWl9smurGgj9yQr6OgKf09M+OOsIzXSEzn6sRJ5KuGcAelnoA3mbB58uD+elP5NVth YReT+VwtvlSvXMZqeRYtRJi/NZoXh3troXmN7SDjgs5kes6amuLt/2dBse/HF0OTolTs 6j4plJZwkw3R3/cbf4+M5Jmf6GWZsfzwxWNd+CuUHBekefU9UABW2fzBfyUXwOvhplFH qPwgrmCxCh8dprngyDFiK0Zl/aRNJu+d75rp98CpP1GbneA8l23GX+SPH9IVMUCGPfr7 jhOV/ZM9IuosxDP9k4FFgeUWiiG42YOy4i7g6A8qUlofSmXxScbhLHQiOhzciPghG7Sr 1Abw== X-Forwarded-Encrypted: i=1; AJvYcCU5GwPnuam1wFA+yzjVvPZsi2Je7rpYATjdsEQXOL4B63XhF2tv7gzupQeJmCsNTjhDkyK0JSa5XbydB7LRF+efT8psgjBel3U9 X-Gm-Message-State: AOJu0YxjRizKTVla8IJxXnWCaGD2gPhQ4k2oNqSWL1BdoIyvLTSKkzGZ z8wMcCnzgM03ExVO8qdMY2h5kNYUaZt1ggStr1i1e9cRTx3/ybtzar/qvKihqhI= 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-i2c@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: - |