From: Rob Herring <robh@kernel.org>
To: Konrad Dybcio <konrad.dybcio@linaro.org>
Cc: linux-arm-msm@vger.kernel.org, andersson@kernel.org,
agross@kernel.org, marijn.suijten@somainline.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Gene Chen <gene_chen@richtek.com>,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings usb: typec: rt1711h: Use a generic node name
Date: Mon, 20 Feb 2023 20:01:26 -0600 [thread overview]
Message-ID: <20230221020126.GA797846-robh@kernel.org> (raw)
In-Reply-To: <20230216121211.3964433-1-konrad.dybcio@linaro.org>
On Thu, Feb 16, 2023 at 01:12:10PM +0100, Konrad Dybcio wrote:
> Node names should be generic. Use typec-portc@ instead of rt1711h@.
What's generic? Others use just 'typec' IIRC. We must first define the
generic name for everyone, then do this. It doesn't really work defining
this in each binding either as there's no checking a generic name is in
fact used. We either need a class type schema (which don't work when
devices support multiple classes) or a meta-schema checking $nodename
patterns match a set of known node names.
>
> Fixes: a72095ed8e65 ("dt-bindings usb: typec: rt1711h: Add binding for Richtek RT1711H")
> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
> ---
> Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml b/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml
> index 1999f614c89b..7431c25d82ce 100644
> --- a/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml
> +++ b/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml
> @@ -17,6 +17,9 @@ description: |
> support for alternative interfaces of the Type-C specification.
>
> properties:
> + $nodename:
> + pattern: "^typec-portc@[0-9a-f]+$"
> +
> compatible:
> enum:
> - richtek,rt1711h
> @@ -55,7 +58,7 @@ examples:
> #address-cells = <1>;
> #size-cells = <0>;
>
> - rt1711h@4e {
> + typec-portc@4e {
> compatible = "richtek,rt1711h";
> reg = <0x4e>;
> interrupts-extended = <&gpio26 3 IRQ_TYPE_LEVEL_LOW>;
> --
> 2.39.1
>
prev parent reply other threads:[~2023-02-21 2:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-16 12:12 [PATCH 1/2] dt-bindings usb: typec: rt1711h: Use a generic node name Konrad Dybcio
2023-02-16 12:12 ` [PATCH 2/2] arm64: dts: hisilicon: hikey960: Use generic node name for rt1711h Konrad Dybcio
2023-02-21 2:01 ` 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=20230221020126.GA797846-robh@kernel.org \
--to=robh@kernel.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gene_chen@richtek.com \
--cc=gregkh@linuxfoundation.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=marijn.suijten@somainline.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).