From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Sebastian Reichel <sebastian.reichel@collabora.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Sebastian Reichel <sre@kernel.org>
Cc: Tony Lindgren <tony@atomide.com>,
devicetree@vger.kernel.org, linux-omap@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] dt-bindings: hsi: nokia-modem: convert to YAML
Date: Tue, 26 Mar 2024 08:21:05 +0100 [thread overview]
Message-ID: <58ec79cc-150e-4fef-bb4b-9d29901e9a04@linaro.org> (raw)
In-Reply-To: <20240325-hsi-dt-binding-v1-2-88e8e97c3aae@collabora.com>
On 25/03/2024 22:45, Sebastian Reichel wrote:
> Convert the legacy txt binding to modern YAML.
> No semantic change.
>
> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
> ---
> .../devicetree/bindings/hsi/nokia-modem.txt | 59 ------------
> .../devicetree/bindings/hsi/nokia-modem.yaml | 101 +++++++++++++++++++++
> 2 files changed, 101 insertions(+), 59 deletions(-)
>
> -};
> diff --git a/Documentation/devicetree/bindings/hsi/nokia-modem.yaml b/Documentation/devicetree/bindings/hsi/nokia-modem.yaml
> new file mode 100644
> index 000000000000..c57cbcc7b722
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hsi/nokia-modem.yaml
Filename should match compatibles. nokia,n9-modem.yaml or nokia,modem.yaml
> @@ -0,0 +1,101 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/hsi/nokia-modem.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Nokia modem
> +
> +maintainers:
> + - Sebastian Reichel <sre@kernel.org>
> +
> +properties:
> + compatible:
> + enum:
> + - nokia,n900-modem
> + - nokia,n950-modem
> + - nokia,n9-modem
> +
Aren't hsi-channel-ids related to hsi-channel-names? If so, they should
be here with constraints.
> + hsi-channel-names:
> + items:
> + - const: mcsaab-control
> + - const: speech-control
> + - const: speech-data
> + - const: mcsaab-data
> +
> + interrupts:
> + items:
> + - description: modem reset indication
> +
> + gpios:
> + minItems: 3
> + maxItems: 5
> +
> + gpio-names:
> + items:
> + - const: cmt_apeslpx
> + - const: cmt_rst_rq
> + - const: cmt_en
> + - const: cmt_rst
> + - const: cmt_bsi
> + minItems: 3
> +
> +required:
> + - gpios
> + - gpio-names
> + - interrupts
> +
> +allOf:
> + - $ref: hsi-client.yaml#
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - nokia,n950-modem
> + - nokia,n9-modem
> + then:
> + properties:
> + gpios:
> + maxItems: 3
> + gpio-names:
> + maxItems: 3
> + else:
> + properties:
> + gpios:
> + minItems: 5
> + gpio-names:
> + minItems: 5
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> + hsi-client {
This should be "modem".
> + compatible = "nokia,n900-modem";
> +
Best regards,
Krzysztof
next prev parent reply other threads:[~2024-03-26 7:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-25 21:45 [PATCH 0/3] Convert MIPI HSI DT bindings " Sebastian Reichel
2024-03-25 21:45 ` [PATCH 1/3] dt-bindings: hsi: hsi-client: convert " Sebastian Reichel
2024-03-26 7:18 ` Krzysztof Kozlowski
2024-03-26 12:45 ` Sebastian Reichel
2024-03-26 12:56 ` Krzysztof Kozlowski
2024-03-26 15:15 ` Sebastian Reichel
2024-03-26 16:08 ` Krzysztof Kozlowski
2024-03-25 21:45 ` [PATCH 2/3] dt-bindings: hsi: nokia-modem: " Sebastian Reichel
2024-03-26 7:21 ` Krzysztof Kozlowski [this message]
2024-03-26 13:00 ` Sebastian Reichel
2024-03-25 21:45 ` [PATCH 3/3] dt-bindings: hsi: omap-ssi: " Sebastian Reichel
2024-03-26 7:26 ` Krzysztof Kozlowski
2024-03-26 13:34 ` Sebastian Reichel
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=58ec79cc-150e-4fef-bb4b-9d29901e9a04@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sebastian.reichel@collabora.com \
--cc=sre@kernel.org \
--cc=tony@atomide.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®