From: Christian Marangi <ansuelsmth@gmail.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Zhang Rui <rui.zhang@intel.com>,
Lukasz Luba <lukasz.luba@arm.com>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Christian Marangi <ansuelsmth@gmail.com>,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 4/5] dt-bindings: thermal: airoha: Rename and Document AN7583 support
Date: Fri, 23 May 2025 20:29:32 +0200 [thread overview]
Message-ID: <20250523182939.30489-5-ansuelsmth@gmail.com> (raw)
In-Reply-To: <20250523182939.30489-1-ansuelsmth@gmail.com>
Rename .yaml to a more generic airoha-thermal and Document support for
Airoha AN7583 thermal driver.
Airoha AN7583 follow the same logic of Airoha EN7581 to read the
temperature but lack all the support for the PTP_THERMAL used to monitor
and react when trip point are triggered.
Also the Airoha AN7583 lives entirely under the Chip SCU SoC register
space.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
...n7581-thermal.yaml => airoha-thermal.yaml} | 42 ++++++++++++++++---
1 file changed, 36 insertions(+), 6 deletions(-)
rename Documentation/devicetree/bindings/thermal/{airoha,en7581-thermal.yaml => airoha-thermal.yaml} (52%)
diff --git a/Documentation/devicetree/bindings/thermal/airoha,en7581-thermal.yaml b/Documentation/devicetree/bindings/thermal/airoha-thermal.yaml
similarity index 52%
rename from Documentation/devicetree/bindings/thermal/airoha,en7581-thermal.yaml
rename to Documentation/devicetree/bindings/thermal/airoha-thermal.yaml
index ca0242ef0378..42f93b095783 100644
--- a/Documentation/devicetree/bindings/thermal/airoha,en7581-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/airoha-thermal.yaml
@@ -1,17 +1,19 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
-$id: http://devicetree.org/schemas/thermal/airoha,en7581-thermal.yaml#
+$id: http://devicetree.org/schemas/thermal/airoha-thermal.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
-title: Airoha EN7581 Thermal Sensor and Monitor
+title: Airoha Thermal Sensor and Monitor
maintainers:
- Christian Marangi <ansuelsmth@gmail.com>
properties:
compatible:
- const: airoha,en7581-thermal
+ enum:
+ - airoha,en7581-thermal
+ - airoha,an7583-thermal
reg:
maxItems: 1
@@ -28,9 +30,30 @@ properties:
required:
- compatible
- - reg
- - interrupts
- - airoha,chip-scu
+ - '#thermal-sensor-cells'
+
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: airoha,en7581-thermal
+ then:
+ required:
+ - reg
+ - interrupts
+ - airoha,chip-scu
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: airoha,an7583-thermal
+ then:
+ properties:
+ reg: false
+ interrupts: false
+ airoha,chip-scu: false
additionalProperties: false
@@ -46,3 +69,10 @@ examples:
#thermal-sensor-cells = <0>;
};
+
+ - |
+ thermal-sensor {
+ compatible = "airoha,an7583-thermal";
+
+ #thermal-sensor-cells = <0>;
+ };
--
2.48.1
next prev parent reply other threads:[~2025-05-23 18:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-23 18:29 [PATCH 0/5] thermal/drivers: airoha: Add support for AN7583 Christian Marangi
2025-05-23 18:29 ` [PATCH 1/5] thermal: airoha: Convert to regmap API Christian Marangi
2025-05-23 18:29 ` [PATCH 2/5] thermal/drivers: airoha: Generalize probe function Christian Marangi
2025-05-23 18:29 ` [PATCH 3/5] thermal/drivers: airoha: Generalize get_thermal_ADC and set_mux function Christian Marangi
2025-05-23 18:29 ` Christian Marangi [this message]
2025-05-24 6:30 ` [PATCH 4/5] dt-bindings: thermal: airoha: Rename and Document AN7583 support Krzysztof Kozlowski
2025-05-23 18:29 ` [PATCH 5/5] thermal/drivers: airoha: Add support for AN7583 Thermal Sensor Christian Marangi
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=20250523182939.30489-5-ansuelsmth@gmail.com \
--to=ansuelsmth@gmail.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.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®