From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 6E851385D7E for ; Mon, 24 Aug 2026 18:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787596751; cv=none; b=dLuJEpnm7qz5rD+Ew7bI/22dKvG9WxbjILfhrdIxFhAGqW0Km6eDyIje8t+x1ABk+wijyc/STZZRLyjwYU712Om0BMNBXdZfyetmvo6hHPmP9H47k6skcB2aN6GoKmo6MO7qJWoBla8jduHxB3f4/tFEt/9D1RzTDxZ6vovw5HA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787596751; c=relaxed/simple; bh=O3UXywBmTQzj42EhSFesy4w4MZCGG2xsS0Sf+bwGzkI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=vFe6NNxhx76bnzUhuC8vT7DYrW9hq8zckoOVFzp3eODdHtzf4xf6Jxhi/EbqSLtcchdGe6Uqppf0cJTnZr+wbi2ysBQBTu4P1ckqHuBTQ2aTpywUByAHnJGYcJwVwYhynzYdKyrmkNNpgoJo594aytfd3b5acD7M5m9vpXGeXUc= 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=QYqynPWV; arc=none smtp.client-ip=209.85.208.41 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="QYqynPWV" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-6a051b737d8so4824054a12.1 for ; Mon, 24 Aug 2026 11:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787596747; x=1788201547; 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:content-type; bh=+SSHM+dMzftRd72hGlvvpR2crpi5QEgfnmH3X3t3vsU=; b=QYqynPWVWavJVhftKUBA0EcPHjzBjGF3Owob65G4PJ4cFPYRMD9/WKH0B2z6DgKsoq /qHy9mK/FVefLvZHftyquuKmrdfG8pRGosfncya+/qDdanxhx3JzVS57FXaonhkFNhSD uVFQRnI8kAFLEXK4U81oWTKql6eZCe0YolXIrnvyyJPoAbqDgZrDP4mBSPjkiC7WPe4o bdpvSUNtYZlLjYSV68DtOOq/UWw5Ag2TOuTTzuDcrSC3yeRcNHynVj96qHvY5Afcro1a cSO5pzTLgVp37TMVDpRkYmIuBF6UKNRLvMWvljLv3pJB5zgVe7SAJs9+ZuDXClxS8san 02EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787596747; x=1788201547; 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:content-type; bh=+SSHM+dMzftRd72hGlvvpR2crpi5QEgfnmH3X3t3vsU=; b=MLk5OqnRMZ1NdLyCnHPQjFRaY6zrO9u1yq+WNHHnijyGSOoUMngGRHjsPF+Em6PPEz 7Uz+ipMukF1gNrEzEJdcZ3/CY/2IfU9971x47UfmTSLjcYFqsDFLMJqXpC5pcVXWkuV2 oeyLDozJWmYq4oeD5JDa3B2wOaQliXLAxbgCHKtZbmwJ3JnBJoWZKmbkIi5tFEpAo8eK kwSmQLgyQJn0zml1j3rBr++mqRPrTFMIISZq0r2ehKtJTmjd8TgaFew1YLYfSeYno3zW kNDY7EGUhsz6J1SJB+j6YgPpWIS3KIbZlURYVO5RgEkGHlW/8iv5VChsAymXyuVC/4cA WkCA== X-Forwarded-Encrypted: i=1; AHgh+Ro8tUAsJk56dtuJMuN+rAES7d8dr2g0FhqnkoroTyKWIlBCHiY4D0sRuFM4wB1CPIcOt9+0D5EhayEi@vger.kernel.org X-Gm-Message-State: AFuF++lb04WgGnDvfuTilK1fhI1InBCWapl+Lf1aqoBKl4vQ6QJ7aCoG XZS/4wRhBa6t8ZgbTF4I99wEAURrUj5gPk1U911lBF/rcI6bqSMtHup0 X-Gm-Gg: AR+sD13WhR0Wh7QAw35RaB44HCNrdoLlXtSnk6+C/rpEqR3LiZ96vhSew00/VJoDMDD ySLSRsS7mIGS3nfAHPv8cDpBbw8j6NDhHWrvp3oyW/UM392dFFi+dwfb+RFZcx2p8rqS6SRSoHA /+/7M7qIBqHoccEjR3R9KEFMw730ElEszOqJ2EEhRttAz9j2hvKAbH5yCWSVbE8tCRFnvnsNWwd RTidb6cULWUl1TQs2uCKjdnPCfd6QH80Jc6IenlnCQBnfMkb83Q8aMyGOgjIrZCJya+9zrbY9FU MNMkJzzyoMQc1sCgTZnUPCDQeDfbQ01AbWOWOfOfCACt/PJD5L8fzkBFyEiXtH/DP/odivVdurc /vGY7e5nu9v/87c7zcxaBB3WrMtKXma/0CdVfD8w1xswhdjw++Ymywlh1NYPOtjrfW+M6Uu0PuD r2onO1t0F0VnGdpqFADsl/KB9XsrumFpOVHvbf2G9vTmWREcM7dpXk5LjLOBbW2G1hzfAXyu0oZ 8QkOSzpmKXTU7+2qybncvZ9BwvglocCIk46Aqx7cT0qiA== X-Received: by 2002:a17:907:3d44:b0:c20:1c9d:8d4b with SMTP id a640c23a62f3a-c24e58d101amr38617666b.2.1787596747403; Mon, 24 Aug 2026 11:39:07 -0700 (PDT) Received: from flaviu-Aspire-E5-572G.. ([2a02:2f08:440b:2900:8e59:1937:8c58:aeb6]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c249673d43bsm1307499266b.47.2026.08.24.11.39.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2026 11:39:07 -0700 (PDT) From: Flaviu Nistor To: Guenter Roeck , Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Flaviu Nistor , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: hwmon: national,lm90: Fix channel constraints for temperature offset Date: Mon, 24 Aug 2026 21:38:59 +0300 Message-ID: <20260824183900.8983-2-flaviu.nistor@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260824183900.8983-1-flaviu.nistor@gmail.com> References: <20260824183900.8983-1-flaviu.nistor@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Limit temperature-offset-millicelsius to remote channels only, since channel 0 is local and this property does not apply to it. Channel 2 is only valid on devices with two remote sensors, so reject channel 2 for compatibles that do not support a second remote channel. Signed-off-by: Flaviu Nistor --- .../bindings/hwmon/national,lm90.yaml | 29 +++++++++++++++++-- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/national,lm90.yaml b/Documentation/devicetree/bindings/hwmon/national,lm90.yaml index 164068ba069d..a7f82b202b86 100644 --- a/Documentation/devicetree/bindings/hwmon/national,lm90.yaml +++ b/Documentation/devicetree/bindings/hwmon/national,lm90.yaml @@ -113,6 +113,29 @@ allOf: properties: ti,extended-range-enable: false + - patternProperties: + "channel@0": + type: object + properties: + temperature-offset-millicelsius: false + + - if: + not: + properties: + compatible: + contains: + enum: + - adi,adt7481 + - dallas,max6695 + - dallas,max6696 + then: + patternProperties: + "^channel@[0-1]$": + properties: + reg: + enum: [0, 1] + "channel@2": false + - if: properties: compatible: @@ -149,7 +172,7 @@ allOf: - onnn,nct1008 then: patternProperties: - "^channel@([0-2])$": + "^channel@([1-2])$": properties: temperature-offset-millicelsius: maximum: 127750 @@ -172,7 +195,7 @@ allOf: - winbond,w83l771 then: patternProperties: - "^channel@([0-2])$": + "^channel@([1-2])$": properties: temperature-offset-millicelsius: maximum: 127875 @@ -186,7 +209,7 @@ allOf: - ti,tmp461 then: patternProperties: - "^channel@([0-2])$": + "^channel@([1-2])$": properties: temperature-offset-millicelsius: maximum: 127937 -- 2.34.1