From: Frank Li <Frank.li@nxp.com>
To: Xu Yang <xu.yang_2@nxp.com>
Cc: gregkh@linuxfoundation.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de,
kernel@pengutronix.de, festevam@gmail.com, peter.chen@kernel.org,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
imx@lists.linux.dev, jun.li@nxp.com
Subject: Re: [PATCH 1/6] dt-bindings: usb: chipidea: add compatible for i.MX95 platform
Date: Wed, 19 Feb 2025 12:58:10 -0500 [thread overview]
Message-ID: <Z7YbsvFMb7ZP6xFu@lizhi-Precision-Tower-5810> (raw)
In-Reply-To: <20250219093104.2589449-2-xu.yang_2@nxp.com>
On Wed, Feb 19, 2025 at 05:30:59PM +0800, Xu Yang wrote:
> The i.MX95 USB2.0 controller is basically compatible with i.MX7d, except
> it needs a second interrupt for wakeup handling. This will add compatible
> for i.MX95 platform and restriciton on interrupt property. Besides, this
^ typo,
run check-patch --code-spell
> will also add iommus property.
dt-bindings: usb: Add i.MX95 compatible string 'fsl,imx95-usb'
The i.MX95 USB2.0 controller is mostly compatible with i.MX7D, except it
requires a second interrupt for wakeup handling. Add the compatible string
for the i.MX95 platform, add the iommus property, and enforce the
interrupt property restriction. Keep the same restriction for existing
compatible strings.
Fix below nit.
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Frank
>
> Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
> ---
> .../bindings/usb/chipidea,usb2-common.yaml | 3 +++
> .../bindings/usb/chipidea,usb2-imx.yaml | 26 ++++++++++++++++++-
> 2 files changed, 28 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/usb/chipidea,usb2-common.yaml b/Documentation/devicetree/bindings/usb/chipidea,usb2-common.yaml
> index d2a7d2ecf48a..10020af15afc 100644
> --- a/Documentation/devicetree/bindings/usb/chipidea,usb2-common.yaml
> +++ b/Documentation/devicetree/bindings/usb/chipidea,usb2-common.yaml
> @@ -42,6 +42,9 @@ properties:
>
> phy_type: true
>
> + iommus:
> + maxItems: 1
> +
> itc-setting:
> description:
> interrupt threshold control register control, the setting should be
> diff --git a/Documentation/devicetree/bindings/usb/chipidea,usb2-imx.yaml b/Documentation/devicetree/bindings/usb/chipidea,usb2-imx.yaml
> index 8f6136f5d72e..3678804a3743 100644
> --- a/Documentation/devicetree/bindings/usb/chipidea,usb2-imx.yaml
> +++ b/Documentation/devicetree/bindings/usb/chipidea,usb2-imx.yaml
> @@ -41,6 +41,7 @@ properties:
> - fsl,imx8mm-usb
> - fsl,imx8mn-usb
> - fsl,imx93-usb
> + - fsl,imx95-usb
> - const: fsl,imx7d-usb
> - const: fsl,imx27-usb
> - items:
> @@ -54,7 +55,13 @@ properties:
> maxItems: 1
>
> interrupts:
> - maxItems: 1
> + minItems: 1
> + items:
> + - description: USB controller interrupt
> + - description: Wakeup interrupt
> + description:
> + One interrupt for USB controller and wakeup interrupt combined
> + case or two interrupts for individual USB controller and wakeup
Needn't descrition here. Items: descrption already provide enough
informaiton. Or you can change first
description: USB controller interrupt Or combine USB controller and wakeup
interrupts.
>
> clocks:
> minItems: 1
> @@ -191,6 +198,7 @@ allOf:
> contains:
> enum:
> - fsl,imx93-usb
> + - fsl,imx95-usb
> then:
> properties:
> clocks:
> @@ -238,6 +246,22 @@ allOf:
> maxItems: 1
> clock-names: false
>
> + # imx95 soc use two interrupts
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - fsl,imx95-usb
> + then:
> + properties:
> + interrupts:
> + minItems: 2
> + else:
> + properties:
> + interrupts:
> + maxItems: 1
> +
> unevaluatedProperties: false
>
> examples:
> --
> 2.34.1
>
next prev parent reply other threads:[~2025-02-19 17:58 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-19 9:30 [PATCH 0/6] add USB2.0 support for i.MX95-19x19 EVK board Xu Yang
2025-02-19 9:30 ` [PATCH 1/6] dt-bindings: usb: chipidea: add compatible for i.MX95 platform Xu Yang
2025-02-19 17:58 ` Frank Li [this message]
2025-02-20 10:22 ` Xu Yang
2025-02-19 9:31 ` [PATCH 2/6] dt-bindings: usb: usbmisc-imx: " Xu Yang
2025-02-19 18:01 ` Frank Li
2025-02-20 10:32 ` Xu Yang
2025-02-21 21:49 ` Rob Herring
2025-02-19 9:31 ` [PATCH 3/6] usb: chipidea: imx: add wakeup interrupt handling Xu Yang
2025-02-19 20:26 ` Frank Li
2025-02-21 3:23 ` Xu Yang
2025-02-21 15:23 ` Frank Li
2025-02-24 11:07 ` Xu Yang
2025-02-24 15:58 ` Frank Li
2025-02-25 2:12 ` Xu Yang
2025-02-19 9:31 ` [PATCH 4/6] usb: chipidea: imx: add HSIO Block Control wakup setting Xu Yang
2025-02-19 20:35 ` Frank Li
2025-02-19 9:31 ` [PATCH 5/6] arm64: dts: imx95: add USB2.0 nodes Xu Yang
2025-02-19 20:37 ` Frank Li
2025-02-19 9:31 ` [PATCH 6/6] arm64: dts: imx95-19x19-evk: enable USB2.0 node Xu Yang
2025-02-19 20:39 ` Frank Li
2025-02-20 10:38 ` Xu Yang
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=Z7YbsvFMb7ZP6xFu@lizhi-Precision-Tower-5810 \
--to=frank.li@nxp.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=imx@lists.linux.dev \
--cc=jun.li@nxp.com \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=peter.chen@kernel.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=xu.yang_2@nxp.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