mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vitaliy Sochnev <sochnev.v.74@gmail.com>
To: daniel.lezcano@kernel.org
Cc: rafael@kernel.org, rui.zhang@intel.com, lukasz.luba@arm.com,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	ansuelsmth@gmail.com, linux-pm@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	Vitaliy Sochnev <sochnev.v.74@gmail.com>
Subject: [PATCH 1/2] dt-bindings: thermal: airoha: Allow sensor indices for EN7581
Date: Sat, 31 Oct 2026 16:19:11 +0200	[thread overview]
Message-ID: <20261031141912.1664575-2-sochnev.v.74@gmail.com> (raw)
In-Reply-To: <20261031141912.1664575-1-sochnev.v.74@gmail.com>

Allow either the existing zero-cell form or a sensor index that
selects the main or CPU ADC.

Signed-off-by: Vitaliy Sochnev <sochnev.v.74@gmail.com>
---
 .../devicetree/bindings/thermal/airoha,en7581-thermal.yaml  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/thermal/airoha,en7581-thermal.yaml b/Documentation/devicetree/bindings/thermal/airoha,en7581-thermal.yaml
index ca0242ef03788..e7be20d1bd1ce 100644
--- a/Documentation/devicetree/bindings/thermal/airoha,en7581-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/airoha,en7581-thermal.yaml
@@ -24,7 +24,11 @@ properties:
     $ref: /schemas/types.yaml#/definitions/phandle
 
   '#thermal-sensor-cells':
-    const: 0
+    description: >
+      With one cell, the phandle argument selects ADC 0 (main) or 1 (CPU).
+      Zero cells remain valid for existing device trees. Only the main ADC
+      has a hardware trip interrupt; CPU ADC zones with trips need polling.
+    enum: [0, 1]
 
 required:
   - compatible
-- 
2.55.0


  reply	other threads:[~2026-10-31 14:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-31 14:19 [PATCH 0/2] thermal: airoha: Expose EN7581 CPU temperature Vitaliy Sochnev
2026-10-31 14:19 ` Vitaliy Sochnev [this message]
2026-10-31 14:19 ` [PATCH 2/2] thermal/drivers/airoha: Read the EN7581 CPU ADC Vitaliy Sochnev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261031141912.1664575-2-sochnev.v.74@gmail.com \
    --to=sochnev.v.74@gmail.com \
    --cc=ansuelsmth@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=daniel.lezcano@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lukasz.luba@arm.com \
    --cc=rafael@kernel.org \
    --cc=robh@kernel.org \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®