diff mbox series

ARM: dts: imx6ull: Use the correct name for ESAI_TX0

Message ID 20211118100605.1139255-1-festevam@gmail.com
State Superseded
Delegated to: Stefano Babic
Headers show
Series ARM: dts: imx6ull: Use the correct name for ESAI_TX0 | expand

Commit Message

Fabio Estevam Nov. 18, 2021, 10:06 a.m. UTC
According to the i.MX6ULL Reference Manual, pad CSI_DATA07 may
have the ESAI_TX0 functionality, not ESAI_T0.

Also, NXP's i.MX Config Tools 10.0 generates dtsi with the
MX6ULL_PAD_CSI_DATA07__ESAI_TX0 naming.

Add an entry for the correct name and still keep the old one to
avoid potential breakage.

Fixes: f8ca22b8de32 ("arm: dts: imx6ull: add pinctrl defines")
Reported-by: George Makarov <georgemakarov1@gmail.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
Hi,

I have also sent this patch to the Linux upstream dts:
http://lists.infradead.org/pipermail/linux-arm-kernel/2021-November/697319.html

 arch/arm/dts/imx6ull-pinfunc.h | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Otavio Salvador Nov. 18, 2021, 11:33 a.m. UTC | #1
Em qui., 18 de nov. de 2021 às 07:06, Fabio Estevam
<festevam@gmail.com> escreveu:
> According to the i.MX6ULL Reference Manual, pad CSI_DATA07 may
> have the ESAI_TX0 functionality, not ESAI_T0.
>
> Also, NXP's i.MX Config Tools 10.0 generates dtsi with the
> MX6ULL_PAD_CSI_DATA07__ESAI_TX0 naming.
>
> Add an entry for the correct name and still keep the old one to
> avoid potential breakage.
>
> Fixes: f8ca22b8de32 ("arm: dts: imx6ull: add pinctrl defines")
> Reported-by: George Makarov <georgemakarov1@gmail.com>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>

Have you verified if there is any use of the old name in the three? if
so, a patch converting it would be good.
Fabio Estevam Nov. 18, 2021, 11:35 a.m. UTC | #2
Hi Otavio,

On Thu, Nov 18, 2021 at 8:33 AM Otavio Salvador
<otavio.salvador@ossystems.com.br> wrote:
>
> Em qui., 18 de nov. de 2021 às 07:06, Fabio Estevam
> <festevam@gmail.com> escreveu:
> > According to the i.MX6ULL Reference Manual, pad CSI_DATA07 may
> > have the ESAI_TX0 functionality, not ESAI_T0.
> >
> > Also, NXP's i.MX Config Tools 10.0 generates dtsi with the
> > MX6ULL_PAD_CSI_DATA07__ESAI_TX0 naming.
> >
> > Add an entry for the correct name and still keep the old one to
> > avoid potential breakage.
> >
> > Fixes: f8ca22b8de32 ("arm: dts: imx6ull: add pinctrl defines")
> > Reported-by: George Makarov <georgemakarov1@gmail.com>
> > Signed-off-by: Fabio Estevam <festevam@gmail.com>
>
> Have you verified if there is any use of the old name in the three? if
> so, a patch converting it would be good.

There is no in-tree user of MX6ULL_PAD_CSI_DATA07__ESAI_T0 in U-Boot
and in the kernel.
Otavio Salvador Nov. 18, 2021, 11:54 a.m. UTC | #3
Hello Fabio,

Em qui., 18 de nov. de 2021 às 08:36, Fabio Estevam
<festevam@gmail.com> escreveu:
> On Thu, Nov 18, 2021 at 8:33 AM Otavio Salvador
> <otavio.salvador@ossystems.com.br> wrote:
> >
> > Em qui., 18 de nov. de 2021 às 07:06, Fabio Estevam
> > <festevam@gmail.com> escreveu:
> > > According to the i.MX6ULL Reference Manual, pad CSI_DATA07 may
> > > have the ESAI_TX0 functionality, not ESAI_T0.
> > >
> > > Also, NXP's i.MX Config Tools 10.0 generates dtsi with the
> > > MX6ULL_PAD_CSI_DATA07__ESAI_TX0 naming.
> > >
> > > Add an entry for the correct name and still keep the old one to
> > > avoid potential breakage.
> > >
> > > Fixes: f8ca22b8de32 ("arm: dts: imx6ull: add pinctrl defines")
> > > Reported-by: George Makarov <georgemakarov1@gmail.com>
> > > Signed-off-by: Fabio Estevam <festevam@gmail.com>
> >
> > Have you verified if there is any use of the old name in the three? if
> > so, a patch converting it would be good.
>
> There is no in-tree user of MX6ULL_PAD_CSI_DATA07__ESAI_T0 in U-Boot
> and in the kernel.

Awesome.

Reviewed-by: Otavio Salvador <otavio@ossystems.com.br>
diff mbox series

Patch

diff --git a/arch/arm/dts/imx6ull-pinfunc.h b/arch/arm/dts/imx6ull-pinfunc.h
index eb025a9d4759..b492164e8cfb 100644
--- a/arch/arm/dts/imx6ull-pinfunc.h
+++ b/arch/arm/dts/imx6ull-pinfunc.h
@@ -82,6 +82,11 @@ 
 #define MX6ULL_PAD_CSI_DATA04__ESAI_TX_FS                         0x01F4 0x0480 0x0000 0x9 0x0
 #define MX6ULL_PAD_CSI_DATA05__ESAI_TX_CLK                        0x01F8 0x0484 0x0000 0x9 0x0
 #define MX6ULL_PAD_CSI_DATA06__ESAI_TX5_RX0                       0x01FC 0x0488 0x0000 0x9 0x0
+/*
+ * As per the Reference Manual the correct name is ESAI_TX0.
+ * Keep the old name here to avoid breakage.
+ */
 #define MX6ULL_PAD_CSI_DATA07__ESAI_T0                            0x0200 0x048C 0x0000 0x9 0x0
+#define MX6ULL_PAD_CSI_DATA07__ESAI_TX0                           0x0200 0x048C 0x0000 0x9 0x0
 
 #endif /* __DTS_IMX6ULL_PINFUNC_H */