Re: [PATCH v6 0/5] imx93: Conver to OF_UPSTREAM

2024-04-17 Thread Fabio Estevam
On Mon, Apr 15, 2024 at 9:55 AM Peng Fan  wrote:

> ok.
> Do I need to switch back to only convert i.MX93 11x11 EVK to
> OF_UPSTREM?

Yes, please convert only the imx93 evk board for now.

Currently, on the dts/upstream repo in U-Boot master, only the imx93
evk board is present.

The Variscite and Phytec i.MX93 boards are not there yet.

They will show up after the dts/upstream is synced with kernel 6.9.


Re: [PATCH v6 0/5] imx93: Conver to OF_UPSTREAM

2024-04-15 Thread Mathieu Othacehe


Hey,

> Do I need to switch back to only convert i.MX93 11x11 EVK to
> OF_UPSTREM? 

That could be an idea. I can take over the switch for the other devices
when I have some time to perform the debugging.

Mathieu


RE: [PATCH v6 0/5] imx93: Conver to OF_UPSTREAM

2024-04-15 Thread Peng Fan
> Subject: Re: [PATCH v6 0/5] imx93: Conver to OF_UPSTREAM
> 
> Hi Peng,
> 
> On Fri, Apr 12, 2024 at 10:40 AM Fabio Estevam 
> wrote:
> >
> > On Fri, Apr 12, 2024 at 10:24 AM Peng Fan (OSS) 
> wrote:
> > >
> > > A few nodes were added to soc and board u-boot.dtsi(lpi2c, usbotg),
> > > those nodes could be dropped after upstream linux supports them.
> > >
> > > To support OF_UPSTREAM, a few driver changes are included.
> > > For TMU, still use U-Boot node, I will prepare a kernel update, then
> > > back to U-Boot support.
> > >
> > >  Mathieu: please help test the boards you maintain when you have time.
> >
> > The series looks good.
> >
> > I will apply it after Mathieu or the Phytec folks confirm this series
> > does not break imx93-phyboard-segin.
> 
> I applied patches 1 to 4, thanks.
> 
> I dropped the last OF_UPSTREAM patch as it is causing boot issues on
> Mathieu's tests.

ok.
Do I need to switch back to only convert i.MX93 11x11 EVK to
OF_UPSTREM? 

Thanks,
Peng.


Re: [PATCH v6 0/5] imx93: Conver to OF_UPSTREAM

2024-04-15 Thread Fabio Estevam
Hi Peng,

On Fri, Apr 12, 2024 at 10:40 AM Fabio Estevam  wrote:
>
> On Fri, Apr 12, 2024 at 10:24 AM Peng Fan (OSS)  wrote:
> >
> > A few nodes were added to soc and board u-boot.dtsi(lpi2c, usbotg), those 
> > nodes
> > could be dropped after upstream linux supports them.
> >
> > To support OF_UPSTREAM, a few driver changes are included.
> > For TMU, still use U-Boot node, I will prepare a kernel update,
> > then back to U-Boot support.
> >
> >  Mathieu: please help test the boards you maintain when you have time.
>
> The series looks good.
>
> I will apply it after Mathieu or the Phytec folks confirm this series
> does not break imx93-phyboard-segin.

I applied patches 1 to 4, thanks.

I dropped the last OF_UPSTREAM patch as it is causing boot issues on
Mathieu's tests.


Re: [PATCH v6 0/5] imx93: Conver to OF_UPSTREAM

2024-04-12 Thread Fabio Estevam
On Fri, Apr 12, 2024 at 10:24 AM Peng Fan (OSS)  wrote:
>
> A few nodes were added to soc and board u-boot.dtsi(lpi2c, usbotg), those 
> nodes
> could be dropped after upstream linux supports them.
>
> To support OF_UPSTREAM, a few driver changes are included.
> For TMU, still use U-Boot node, I will prepare a kernel update,
> then back to U-Boot support.
>
>  Mathieu: please help test the boards you maintain when you have time.

The series looks good.

I will apply it after Mathieu or the Phytec folks confirm this series
does not break imx93-phyboard-segin.


[PATCH v6 0/5] imx93: Conver to OF_UPSTREAM

2024-04-12 Thread Peng Fan (OSS)
A few nodes were added to soc and board u-boot.dtsi(lpi2c, usbotg), those nodes
could be dropped after upstream linux supports them.

To support OF_UPSTREAM, a few driver changes are included.
For TMU, still use U-Boot node, I will prepare a kernel update,
then back to U-Boot support.

 Mathieu: please help test the boards you maintain when you have time.

Thanks,
Peng.

To: Stefano Babic 
To: Fabio Estevam 
To: "NXP i.MX U-Boot Team" 
To: Mathieu Othacehe 
Cc: u-boot@lists.denx.de
Signed-off-by: Peng Fan 

Changes in v6:
- Update the serial lpuart patch, to rename per_clk to clk, also change
  the input parameter u32 *clk to u32 *clk_rate.
- Link to v5: 
https://lore.kernel.org/r/20240411-imx93-of-v2-v5-0-9eb3c64ff...@nxp.com

Changes in v5:
- Correct uart clk checking
- Link to v4: 
https://lore.kernel.org/r/20240328-imx93-of-v2-v4-0-338d15a65...@nxp.com

Changes in v4:
 - Convert all i.MX93 boards
 - Link to v3: 
https://lore.kernel.org/r/20240328-imx93-of-v3-0-4e7f341ed...@nxp.com

Changes in v3:
 - Update patch 5, to drop the imx8mp-evk changes which are wrongly
   included
 - Link to v2: 
https://lore.kernel.org/r/20240328-imx93-of-v2-0-909f5d37d...@nxp.com

Changes in v2:
 - Add a new patch to sync clock header to avoid breaking
 - Drop the Makefile change which change including order
 - Link to v1: 
https://lore.kernel.org/r/20240327-imx93-of-v1-0-afab6b314...@nxp.com

---
Peng Fan (5):
  gpio: imx_rgpio2p: support one address
  serial: lpuart: use ipg clk for i.MX7ULP
  cpu: drop imx9_cpu
  clk: imx93: fix anatop base
  imx93: convert to OF_UPSTREAM

 arch/arm/dts/Makefile   |   5 -
 arch/arm/dts/imx93-11x11-evk-u-boot.dtsi| 119 
 arch/arm/dts/imx93-11x11-evk.dts| 322 -
 arch/arm/dts/imx93-phyboard-segin.dts   | 117 ---
 arch/arm/dts/imx93-phycore-som.dtsi | 126 
 arch/arm/dts/imx93-pinfunc.h| 623 
 arch/arm/dts/imx93-u-boot.dtsi  |  80 +++
 arch/arm/dts/imx93-var-som-symphony-u-boot.dtsi |  22 +
 arch/arm/dts/imx93-var-som-symphony.dts | 323 -
 arch/arm/dts/imx93-var-som.dtsi | 111 ---
 arch/arm/dts/imx93.dtsi | 906 
 arch/arm/mach-imx/imx9/Kconfig  |   1 +
 configs/imx93-phyboard-segin_defconfig  |   2 +-
 configs/imx93_11x11_evk_defconfig   |   2 +-
 configs/imx93_11x11_evk_ld_defconfig|   2 +-
 configs/imx93_var_som_defconfig |   2 +-
 drivers/clk/imx/clk-imx93.c |   2 +-
 drivers/cpu/imx9_cpu.c  | 224 --
 drivers/gpio/imx_rgpio2p.c  |  42 +-
 drivers/serial/serial_lpuart.c  |  42 +-
 include/dt-bindings/clock/imx93-clock.h | 208 --
 include/dt-bindings/power/fsl,imx93-power.h |  15 -
 22 files changed, 291 insertions(+), 3005 deletions(-)
---
base-commit: 777c28460947371ada40868dc994dfe8537d7115
change-id: 20240328-imx93-of-v2-f879efef737d

Best regards,
-- 
Peng Fan