From: Rob Herring <robh@kernel.org>
To: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: pinctrl: convert semtech,sx150xq bindings to dt-schema
Date: Thu, 6 Oct 2022 14:06:37 -0500 [thread overview]
Message-ID: <20221006190637.GA30963-robh@kernel.org> (raw)
In-Reply-To: <20221005-mdm9615-sx1509q-yaml-v1-0-0c26649b637c@linaro.org>
On Wed, Oct 05, 2022 at 02:35:36PM +0000, Neil Armstrong wrote:
> This converts the Semtech SX150Xq bindings to dt-schemas, add necessary
> bindings documentation to cover all differences between HW variants
> and current bindings usage.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
> To: Rob Herring <robh+dt@kernel.org>
> To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
> Cc: linux-gpio@vger.kernel.org
> Cc: devicetree@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> ---
> .../devicetree/bindings/pinctrl/pinctrl-sx150x.txt | 72 -------
> .../bindings/pinctrl/semtech,sx1501q.yaml | 207 +++++++++++++++++++++
> 2 files changed, 207 insertions(+), 72 deletions(-)
[...]
> diff --git a/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml b/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml
> new file mode 100644
> index 000000000000..5c21f54b0e2b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml
> @@ -0,0 +1,207 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +# Copyright 2022 Linaro Ltd.
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/pinctrl/semtech,sx1501q.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Semtech SX150x GPIO expander
> +
> +maintainers:
> + - Neil Armstrong <neil.armstrong@linaro.org>
> +
> +properties:
> + compatible:
> + enum:
> + - semtech,sx1501q
> + - semtech,sx1502q
> + - semtech,sx1503q
> + - semtech,sx1504q
> + - semtech,sx1505q
> + - semtech,sx1506q
> + - semtech,sx1507q
> + - semtech,sx1508q
> + - semtech,sx1509q
> +
> + reg: true
maxItems: 1
Some I2C devices have multiple addresses.
> +
> + interrupts:
> + maxItems: 1
> +
> + '#interrupt-cells':
> + const: 2
> +
> + interrupt-controller: true
> +
> + '#gpio-cells':
> + const: 2
> +
> + gpio-controller: true
> +
> + semtech,probe-reset:
> + description: Will trigger a reset of the GPIO expander on probe
> + type: boolean
> +
> +patternProperties:
> + '-cfg$':
> + type: object
> + properties:
> + pins: true
> +
> + bias-disable: true
> + bias-pull-up: true
> + bias-pull-down: true
> + bias-pull-pin-default: true
> + drive-push-pull: true
> + output-low: true
> + output-high: true
> + drive-open-drain: true
> +
> + required:
> + - pins
> +
> + allOf:
> + - $ref: "pincfg-node.yaml#"
> + - $ref: "pinmux-node.yaml#"
> + - if:
> + properties:
> + pins:
> + contains:
> + const: "oscio"
Don't need quotes
With that,
Reviewed-by: Rob Herring <robh@kernel.org>
prev parent reply other threads:[~2022-10-06 19:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-05 14:35 [PATCH] dt-bindings: pinctrl: convert semtech,sx150xq bindings to dt-schema Neil Armstrong
2022-10-06 19:06 ` Rob Herring [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=20221006190637.GA30963-robh@kernel.org \
--to=robh@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
/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;
as well as URLs for NNTP newsgroup(s).