[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zs0BdnJM536YQd-B@gaggiata.pivistrello.it>
Date: Tue, 27 Aug 2024 00:28:06 +0200
From: Francesco Dolcini <francesco@...cini.it>
To: Frank Li <Frank.li@....com>
Cc: Francesco Dolcini <francesco@...cini.it>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
Emanuele Ghidoli <emanuele.ghidoli@...adex.com>,
devicetree@...r.kernel.org, imx@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Francesco Dolcini <francesco.dolcini@...adex.com>
Subject: Re: [PATCH v1 01/10] arm64: dts: colibri-imx8x: Add usb support
On Mon, Aug 26, 2024 at 06:14:58PM -0400, Frank Li wrote:
> On Mon, Aug 26, 2024 at 11:59:13PM +0200, Francesco Dolcini wrote:
> > From: Emanuele Ghidoli <emanuele.ghidoli@...adex.com>
> >
> > Add USB HOST and OTG support to Colibri-iMX8X carrier boards.
> >
> > Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@...adex.com>
> > Signed-off-by: Francesco Dolcini <francesco.dolcini@...adex.com>
> > ---
> > .../dts/freescale/imx8x-colibri-aster.dtsi | 26 +++++++++++++
> > .../dts/freescale/imx8x-colibri-eval-v3.dtsi | 26 +++++++++++++
> > .../dts/freescale/imx8x-colibri-iris.dtsi | 26 +++++++++++++
> > .../boot/dts/freescale/imx8x-colibri.dtsi | 37 +++++++++++++++++--
> > 4 files changed, 111 insertions(+), 4 deletions(-)
...
> > diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi
> > index 49d105eb4769..1199e311d6f9 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi
> > @@ -23,12 +23,31 @@ key-wakeup {
> > };
> > };
> >
> > + extcon_usbc_det: usbc-det {
> > + compatible = "linux,extcon-usb-gpio";
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_usbc_det>;
> > + id-gpio = <&lsio_gpio5 9 GPIO_ACTIVE_HIGH>;
>
> Not sure if I missed something, CHECK_DTBS report below warning.
>
> arch/arm64/boot/dts/freescale/imx8qxp-colibri-iris.dtb: usbc-det: 'id-gpio' does not match any of the regexes: 'pinctrl-[0-9]+'
> from schema $id: http://devicetree.org/schemas/extcon/linux,extcon-usb-gpio.yaml
This should be `id-gpios`. The binding for "linux,extcon-usb-gpio" was recently
added, and this was not tested on the latest next (my fault), but on shawn imx branch and
the old txt doc documented just `id-gpio`.
We'll fix it. And thanks for catching it.
> > + reg_usbh_vbus: regulator-usbh-vbus {
> > + compatible = "regulator-fixed";
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_usbh1_reg>;
> > + gpio = <&lsio_gpio4 3 GPIO_ACTIVE_LOW>;
> > + regulator-always-on;
>
> Needn't regulator-always-on, because reg_usbh_vbus referece by other node.
Is this an issue? we expect this regulator to be always on, therefore this is
described this way in the DT.
Francesco
Powered by blists - more mailing lists