From mboxrd@z Thu Jan 1 00:00:00 1970 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 6A2B6385D7A for ; Mon, 24 Aug 2026 18:39:09 +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=1787596752; cv=none; b=JCVGF/W8/yhra44UlxSchA/+bXTydmFuISooi1fNZ/kpHYJCc7Y2ds+xjPeGNYqZym7omP+5RZga6v2hVsavZO9Tt+PDcEWZhOWBM3vy5emE6DnylME1/zBhm/LlagI4Y+9HuvuubtmbT0l+X3vuHVgyPlqOmPCUIWTh1H8ydyU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787596752; c=relaxed/simple; bh=O3UXywBmTQzj42EhSFesy4w4MZCGG2xsS0Sf+bwGzkI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HUmyMD6l43+Hs8raGRGt9hQRR885CYuFPFfTseyeWNxZF21kAjBr+/sFBlkC1zu5EWPojoOF+4w1IvpsxQWzG0AdnzZWOkeHAaOhAXwbQgMIzkbmdRE7lvXgF77EZjUUf9rL3hG03CaVtLLn68xMU1Bvfca9/M6/d0N7I2M5wyo= 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.218.54 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-ej1-f54.google.com with SMTP id a640c23a62f3a-c1c50c1e29bso626588866b.3 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=BNdsSmXfJ3xn4amZQSfmFGz9DtT0+NWISCzIOfO2A4MAbeceUG0rRlO+Ez8Ur73ib1 c/3IXJeuY1GaZD13DlKK9oR0MOlxZezFeImmPhNYiuRxZguyI4o+V72EusMyxa3UNNzu RS+a6htUbidOn466EE+fEfTgwbrXsYZrcvW2Ac3MaPJ7wnWLtNZQFSFvcBz6Axx3ghXk xLP0C422Kdbf+BtwHu2TGer+JZdfBmsxfT37y8i8q9os6QSanlnL/uVXHLF3qk6XEtDC QRyu/Xaq2f17c6G442vGDMjigxGQDV3cAWyQEyGqYykUbBbl7E6rxljsYyzeUoDRbLON aR1A== X-Forwarded-Encrypted: i=1; AHgh+Rqg1PowSJBA8v+aIFKb6g/8uAfsavW1mkMjORzoe3yq4509MWYeD5YnDoYDwnA35kl86iAdfAf6vyEB8Jk=@vger.kernel.org X-Gm-Message-State: AFuF++mRBsV+dbbWeR8SbO4YG3KNy6igUiH1QRv7OHARsGS3wCTF8NYl olyX6xoIpyHqC63KATo5nl+dYjhvPOYR/oqQz4IKshSaNm/QpTECt16k X-Gm-Gg: AR+sD11PpGKvYRwmhFBoY4ZUWp/80mlu3OlYtDNtKG2P5fGWeUfgrna0RIsmWY7YLm0 MFZmTo8wSQDeGOF4FlMaxa9BXdCq3GwCM8KusbYqLEVcnY7JeFq7oXYzeekMaTwWkmdH03jU7nQ jsrOwjCmvaIzw81K9YBqBV5aeP3tn4G1d9ruIK6nZi8QU3fnWo8h3evXuHLDe/lrGgbZGjqOfn2 Ni6ZkqA0G7tOvBTU0m4/8Kx2ScItL0kzbMGXPTWp+bNUaM9GwWZHd9PAsG1G5c4iYHhq1XsONLJ 8NC513KuvRd+IQ6D9R6gBXUGad/zhvEpEen/AD8TrUJ3vLwsV3tnszD7dYbWToL+5h2yb29lO2N kuJHlyXfYvJERgfNnlAmUzEHIDAMMsdafymfxeunyuBVM7AvJYaCYYi30ukGAvFvsBus2OXPIFb +KE5UpdzMDGUQwbVJgxzrbST4xWVuY9FqOQAaMaZD7b5IIaXyUVqUhmiVT0QGPKjtICIwsv6rLz jLoSf5U4Mj7YktlAmxllfRjEgL3yAd0Pi/j1JzRuLXLsg== 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: linux-kernel@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