From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: "Rafał Miłecki" <zajec5@gmail.com>,
"Rob Herring" <robh+dt@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>
Cc: "Rafael J . Wysocki" <rafael@kernel.org>,
"Daniel Lezcano" <daniel.lezcano@linaro.org>,
"Zhang Rui" <rui.zhang@intel.com>,
"Lukasz Luba" <lukasz.luba@arm.com>,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
"Rafał Miłecki" <rafal@milecki.pl>
Subject: Re: [PATCH] dt-bindings: thermal: convert Mediatek Thermal to the json-schema
Date: Thu, 16 Nov 2023 15:38:35 +0100 [thread overview]
Message-ID: <b475d496-c97b-4178-9cdb-6f7d640e9877@linaro.org> (raw)
In-Reply-To: <20231116120225.29999-1-zajec5@gmail.com>
On 16/11/2023 13:02, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> This helps validating DTS files.
>
...
mal.yaml b/Documentation/devicetree/bindings/thermal/mediatek-thermal.yaml
> new file mode 100644
> index 000000000000..0e036b22b82b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/thermal/mediatek-thermal.yaml
mediatek,thermal.yaml
> @@ -0,0 +1,98 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/thermal/mediatek-thermal.yaml#
mediatek,thermal.yaml
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Mediatek Thermal
SoC? PMIC?
> +
> +description: >
Drop >
> + This describes the device tree binding for the Mediatek thermal controller
Drop redundant part. Describe hardware, not the binding. There is no
point to say that a binding describes a binding.
> + which measures the on-SoC temperatures. This device does not have its own ADC,
> + instead it directly controls the AUXADC via AHB bus accesses. For this reason
> + this device needs phandles to the AUXADC. Also it controls a mux in the
> + apmixedsys register space via AHB bus accesses, so a phandle to the APMIXEDSYS
> + is also needed.
> +
> +allOf:
...
> + mediatek,auxadc:
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description: A phandle to the AUXADC which the thermal controller uses
> +
> + mediatek,apmixedsys:
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description: A phandle to the APMIXEDSYS controller
> +
> + resets: Reference to the reset controller controlling the thermal controller.
> +
Not tested. You miss constraints. Drop totally redundant description.
> +
> +unevaluatedProperties: false
> +
> +required:
> + - reg
> + - interrupts
> + - clocks
> + - clock-names
> + - mediatek,auxadc
> + - mediatek,apmixedsys
unevaluatedProperties go here.
Best regards,
Krzysztof
prev parent reply other threads:[~2023-11-16 14:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-16 12:02 [PATCH] dt-bindings: thermal: convert Mediatek Thermal to the json-schema Rafał Miłecki
2023-11-16 13:27 ` Rob Herring
2023-11-16 14:38 ` Krzysztof Kozlowski [this message]
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=b475d496-c97b-4178-9cdb-6f7d640e9877@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=matthias.bgg@gmail.com \
--cc=rafael@kernel.org \
--cc=rafal@milecki.pl \
--cc=robh+dt@kernel.org \
--cc=rui.zhang@intel.com \
--cc=zajec5@gmail.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