mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Christian Marangi <ansuelsmth@gmail.com>,
	"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>,
	linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/5] dt-bindings: thermal: airoha: Rename and Document AN7583 support
Date: Sat, 24 May 2025 08:30:53 +0200	[thread overview]
Message-ID: <e19ee6c5-447e-43ee-bc63-df15ff2f6031@kernel.org> (raw)
In-Reply-To: <20250523182939.30489-5-ansuelsmth@gmail.com>

On 23/05/2025 20:29, Christian Marangi wrote:
> 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%)

No. I do not see any reason to rename correct filename (how we expect)
to incorrect (wrong format, no vendor prefix, not matching compatible).

> 
> 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

Don't stuff completely different devices into one binding. They are
completely different if they have completely different programming model.


Best regards,
Krzysztof

  reply	other threads:[~2025-05-24  6: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 ` [PATCH 4/5] dt-bindings: thermal: airoha: Rename and Document AN7583 support Christian Marangi
2025-05-24  6:30   ` Krzysztof Kozlowski [this message]
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=e19ee6c5-447e-43ee-bc63-df15ff2f6031@kernel.org \
    --to=krzk@kernel.org \
    --cc=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®