From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.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 E3178384CD4 for ; Mon, 24 Aug 2026 18:39:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787596748; cv=none; b=jzmqd/zRBRUn67Z+OcegNqb8Zjg4IBg6zJNFDA4uAHO5GKUhIWt8immXoYdFoxARQryfBZMl2lGP4deMmtlLl0Z9H73ep51j33ii6irp6HH62vx01HFZHP3HES6D0rml4PzcQnAqNidFmO/En/4JPOHoukVQmOUDotjINI2pMXQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787596748; c=relaxed/simple; bh=UcyJEQg7H2gnviO8EH9JS5mN+ToiD8s+ifVtmSch4qY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KZcT4JEgDlbSO/GiBNFjErHHeUd1RKS2FncOJoCfS2DX88sVhdI/GIusdS6V3qBBx4GNACQgcE0cLEHwBLVUW0alf2r8XK9Gw2YoFhT98+1J+ed/2f1U9bwDSx4uroK2wMaSdYcoLQXkhKs6veVAezei1roYqh93CNWfUMjP8r8= 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=XlfIu31t; arc=none smtp.client-ip=209.85.218.53 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="XlfIu31t" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-c1c26d7e951so581415966b.0 for ; Mon, 24 Aug 2026 11:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787596745; x=1788201545; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=/HoRsXIEXKhVImHPPPTxpEdfN4hjRFo5aCqfJBTRCVE=; b=XlfIu31tPD0clP4x57yU5sm6th9o1NaZ2fdp/ZIfKZSb7IrCoYOj0aKvkQ5D4f1C/S IS0WWSzF8ut0M7LXk25nPSXHcxgXSwLfCpChGHtiiefRY8uI9SSmbBYKTGwU5SZhDWey KNh/8hHnoh4RMj4wNF9KyvCfYmGVWbxnZB4gtkauP1Zzj/G/bfUt7TMgPHHRRXK7U9M3 J0CaCrY+AiZJKFcM4AQhQ7ANoGI8bMIsGlUEN37nwy7JujUfbT9LI7v25pEuKRxBUta8 elnSHrJPrZGvgYKGe6G7r5uyzRkMl20eDIfOSD4mGtDf7qSvPnAFZaZFDBWMLkwduBiF NtAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787596745; x=1788201545; h=content-transfer-encoding:mime-version: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=/HoRsXIEXKhVImHPPPTxpEdfN4hjRFo5aCqfJBTRCVE=; b=TjcsQ3M1+DyS8yrmHMtlvDroPoW/Npzal+xjNHeZTyyV/DhubnnJIVDDGbvcrJU3MJ 2qiuwWFO2I+lDuHcJDhT3zWeG7oPSBgNrHfWp3x5yzTAt5kmbQ1ZCUfazArpY4Ht/Xi2 Q0rDegjsO2rRNgoAR9Immxv2uzBzMA5bF5T+Cnd/eowhAWU6g1/rPXZ2VABK9jws893D Hqjxt7kduy16kpWmLFPJXlu7+Rrf/x9T55PdBklY1pA51B1Sgceo2saAFJ/7lYvj/auM OPrliG0Zv8/4ijaR6edS3ympMsKwW+KzXCZEFqmaJYHxTINTSrQwHoMlPgDFyZYXsg3Y akbw== X-Forwarded-Encrypted: i=1; AHgh+RrUy1H/EucQD9/PWITOFII+i2bst35swh0aoAJkJhWinMyQOLuyOG8gImBBZZguQMWSunfpOnQjy3eIujg=@vger.kernel.org X-Gm-Message-State: AFuF++kXPxQtBiUqPirAfmE7/+xNuSGTIRfODZnziUKM4FEaHg5EwjAi zw7dTKNLGtlk2WuHLs3KhpktGI1XFY0/OU6VrvpgkD/7nr5767yyX73CI8oRlsYA X-Gm-Gg: AR+sD13GwuhLD3UB7gyRbZNOnQ4wytbX4LVDes8H9e4tEf3OrAvwXZSMKkMTbHcvtfg wh2Vq+xrIDsJsaYLIUd1afuBSY+2+cemIChwTJX6zDDpf3+lHHioKksxHnwOzM6RNrZmeHr7RM6 C9DoYiG40UywKwZOp+SqXkNbgbNOhLvGOjaiOrYvffjNNW39dqJNCzHa+va43veKDBx0l+RIIGi QB012i4SmYJ2o95jYbNAY4pm8Pox1sjGpS3xfSavntuDAuj9iQhXQbpf4eJDokd2ixosZB2o5f3 shYoidDkYvQZo9i3n2vT6B1omtqn2x/IgezLPlreYzVAs+ePYLnTYP44o01uycV7kJkdo75l/aE fm8mtKtdv+ud7pJfC5LYTMcq8gZSLuY7Ac0hD7p5lrBdZpIkOLj2CoiZpkuYWgXJR8qTEr8sXe1 FJ1JtAySDjF9AVZgeI8Aojrde//yqWTlFcxsyHpAfQCYflJMioHURh/tiUGvzbf6xVVVUpa/z0C j6/m0WtXlkhSPopoRtCRaIHyrSWtdE2LChVRFXw5ziyQw== X-Received: by 2002:a17:907:3e2a:b0:c21:7feb:4574 with SMTP id a640c23a62f3a-c246a2cece6mr2862354366b.1.1787596744812; Mon, 24 Aug 2026 11:39:04 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2026 11:39:04 -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 0/2] hwmon: lm90: Fix DT channel constraints and reject unsupported channel 2 Date: Mon, 24 Aug 2026 21:38:58 +0300 Message-ID: <20260824183900.8983-1-flaviu.nistor@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The intention of this patch series is to fix DT channel constrains in the dt-bindings and inprove the driver to reject unsupported channel 2. dt-bindings: Forbid temperature-offset-millicelsius on channel@0 (local sensor). Rejecting of assigning temperature-offset-millicelsius for channel@0 is already implemented in the driver. Reject channel@2 for compatibles that have only one remote sensor. driver: If the sensor have only one remote channel, reject a possible unsupported channel 2 and return an error, similar to miss-assigment of temperature -offset-millicelsius property to channel@0. Flaviu Nistor (2): dt-bindings: hwmon: national,lm90: Fix channel constraints for temperature offset hwmon: (lm90) Reject channel 2 on chips with only one remote sensor .../bindings/hwmon/national,lm90.yaml | 29 +++++++++++++++++-- drivers/hwmon/lm90.c | 5 ++++ 2 files changed, 31 insertions(+), 3 deletions(-) -- 2.34.1