From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.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 F389421257E for ; Tue, 23 Jun 2026 18:16:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782238602; cv=none; b=swcxECjDSneupX9AIoeQrAR/SqELd3Sv/c/Fmn5JbAQKRmIiEsMReQthm/KuhPv43529rIVh7pUYrsYF7DHX0HP1T2GTvt+6xKo2laT6sJigDbWtN9IBD+Yod5hSU7zFZw/FzYP2Ee/oL0e8uUwUbYyyhwn23cqgHi67TdZQvBA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782238602; c=relaxed/simple; bh=v/Jq4x0ikLZAY+sHdmkdAGe7Bx11aQjbFFTuibl2AI0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jjHTK2hDBvCCWtzJ1UvBIJcSSS0WPzHiUROWMVRJDwiuYrp7adFXE44A0IRWsA2S57IVt+SqVC3rw44TVI2n5gEH0VDCuNhe6gkN4G6CVazG93D3z2gnK8p06/94G+/s/qb0aIL/zticUoROro9xxOYPiJlLAolb2Dc+bPYN/U0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Jme5FcVy; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Jme5FcVy" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-46019edc13dso121246f8f.1 for ; Tue, 23 Jun 2026 11:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782238598; x=1782843398; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hp0RP7mlwmSy+hW/y528ewOP23RYH5LVdeU7dyCxrV0=; b=Jme5FcVyZF6oWSwNaRx3F8qjTqms6v8jOKHEdxBgcFjVZMWaaYCqb0QZbNBlk0e5tI qxiz83JYkH477dxLKgLqudS8J1rlDNs/Bkb8pgTCWHBz86Jx+K/cBAKU2qZuplAN0IBK sUXLD5u9Mp/6C8ZLn5KPpBZpkWI/fzrPq3RfNEq6C6JT9R/VozG19rqfshMohcCVxswQ cPvqTsTIRPvN0MHhKOv7KV0FBMIM7uBYLQFGc3t9VWKvgqESQ7C0ykKfDHdxnmPpIj5w 3Q3IXmY8WmTn8Ll0jq++m0dIE4HiaKb5G+DYWPvwMEiAwjTkvHp0z47VpOkOc9DQVD4n cajw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782238598; x=1782843398; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=hp0RP7mlwmSy+hW/y528ewOP23RYH5LVdeU7dyCxrV0=; b=L5PGqk8N7pMXXBDsBZTaCZQNH9GdPxyycgGNL34PeZ5kdhuo484DP5iEgKXY6NDkI5 0sm95yARjbcx4jidY8UhwKltb4mToEufrLeMF0gszaifGP9P3uMosRraWHJ5fP5U0/E9 IJfh5+UWJpEFEFlXKnBBf9kD+DEa+rFHCSyFFWbj+9S/K+/1tO5+LyxY2kgNz1WpDQS9 mszbG+MzTMBp4e+t+tsiLL9TJerx0nXC9BWer/DGGnks8YHzEPFrGwOSZeAS+1CYaDPR EZf+eJjh9CoPh/JKL2GHwrAyW20csrL58vd92X3t6rAHou2JY5SMRtF1yEaKWWObYnj5 iFSA== X-Forwarded-Encrypted: i=1; AHgh+Ror0rCLPoRHA6bi9mThemhtIDZjzOQ49luz4W+IjJMY7HLUcvYDMlUxJSlaBt/w8JWqEL5yinpla+w5@vger.kernel.org X-Gm-Message-State: AOJu0YzcNclZHKSJJp+qYRTonSAtEyWXX7pidqdTlLyOdJt9h9AZi5Rs 1KcTN2YNnYKJoUqTH9y/FnYsEeVDVb0fdA5bK1pSkVoKLcA0eslLlRb2 X-Gm-Gg: AfdE7cli6kYwdrYoi36fiWMilk84rxY8c0CDDhy4iusUNDQOJ2w65lQQYHALn9tGo37 77jPqc51FsG/V6OTseBmPKJnCESIS5IhcfXW86vUJNiuC8caT62MIenmuFRYt9TuLfbozmQSsbB dUuP0TKtDyOttD7AW2uQI6xxYINOVv9kFAGF2+sXuZpydFUngy/DU8vImEZj/G2M7HvaGOFiFqr 1Et0xHS7ahbRVpoJFWP7ce9jziNR4Dz4RfJUWx3UUDZR8uob6oLUSKU/O+4ml2Hlp5D3x1jVrI5 /kK9T1Atk9wejvEiC0OUFRdK18m3STw4cDTwZMEHFo8g23N3rnVynYWqnIoq9m5m7VvlIQoAUrn 0yBEmoXynfWcIAeM/tySB56+EtZhNheBxJNcz/VgX6z2j1y+O2E9rSNJAMQa3eDRz8xoiNoLe0H bFNQehQpzXccOBmRzOipo01CAhO/CHVjq9BUWPq7/bT94T5zlMFUWM39leQk9srN6eUxLv5YIF X-Received: by 2002:a05:6000:2004:b0:45e:dacb:8885 with SMTP id ffacd0b85a97d-46adb0b697emr6229006f8f.35.1782238598308; Tue, 23 Jun 2026 11:16:38 -0700 (PDT) Received: from flaviu-Aspire-E5-572G.. ([5.15.86.252]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-46666c57b8asm38433933f8f.26.2026.06.23.11.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2026 11:16:37 -0700 (PDT) From: Flaviu Nistor To: Javier Carrasco Cc: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Shuah Khan , Flaviu Nistor , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re:[PATCH 1/2] dt-bindings: hwmon: chipcap2: Add label property Date: Tue, 23 Jun 2026 21:16:25 +0300 Message-ID: <20260623181625.5697-1-flaviu.nistor@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Mon Jun 22, 2026 at 7:29 PM CEST, Javier Carrasco wrote: >On Mon Jun 22, 2026 at 2:21 PM CEST, Flaviu Nistor wrote: >> Add support for an optional label property similar to other hwmon devices >> This allows, in case of boards with multiple CHIPCAP2 sensors, to assign >> distinct names to each instance. >> >> Signed-off-by: Flaviu Nistor >> --- >> .../devicetree/bindings/hwmon/amphenol,chipcap2.yaml | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/hwmon/amphenol,chipcap2.ya= >ml b/Documentation/devicetree/bindings/hwmon/amphenol,chipcap2.yaml >> index 17351fdbefce..f00b5a4b14dd 100644 >> --- a/Documentation/devicetree/bindings/hwmon/amphenol,chipcap2.yaml >> +++ b/Documentation/devicetree/bindings/hwmon/amphenol,chipcap2.yaml >> @@ -33,6 +33,10 @@ properties: >> reg: >> maxItems: 1 >> >> + label: >> + description: >> + A descriptive name for this channel, like "ambient" or "psu". >> + >> interrupts: >> items: >> - description: measurement ready indicator >> @@ -72,6 +76,7 @@ examples: >> <5 IRQ_TYPE_EDGE_RISING>, >> <6 IRQ_TYPE_EDGE_RISING>; >> interrupt-names =3D "ready", "low", "high"; >> + label =3D "somelabel"; >> vdd-supply =3D <®_vdd>; >> }; > }; > >Hello Falviu, thank you for your patch. > Hello Javier, thanks for your reply. >Should we not add a reference to hwmon-common.yaml (with >unevelautedProperties instead of additionalProperties), as label is >defined there? I believe that Krzysztof Kozlowski did something similar >for the shunt-resistor-micro-ohms property. Could we follow suit here? > This is a good question and I am happy you asked. I also thought a lot about this and the reason I decided to go for this approach is that by using $ref: hwmon-common.yaml#, I would have to change additionalProperties: false to unevaluatedProperties: false, which will evaluate in case it is used, also shunt-resistor-micro-ohms property which does not apply to this sensor. At least this is my understanding, but of course I can be wrong (I see lm75 binding also uses $ref: hwmon-common.yaml# but shunt-resistor-micro-ohms does not apply). >I am also not a big fan of a name like "somelabel", and a more >meaningful name from a "real" example would look better. I know that >some examples have already used "somelabel" as an example, but others >have used more meaningful names too. > I will have to send a v2 since for the label property description I used "channel" instead of "sensor" (detected by Sashiko AI review), so I can use in the example section a more meaningful name like "Room" if no other suggestion. >Best regards, >Javier Carrasco Best regards, Flaviu Nistor