mbox series

[PATCHv2,00/13] powerpc: covert p1010, p1020 and p2020 RDB board to DM_ETH

Message ID 20200605085517.13046-1-Zhiqiang.Hou@nxp.com
Headers show
Series powerpc: covert p1010, p1020 and p2020 RDB board to DM_ETH | expand

Message

Z.Q. Hou June 5, 2020, 8:55 a.m. UTC
From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>

Rebased this series on the top of master branch of
https://gitlab.denx.de/u-boot/custodians/u-boot-mpc85xx.git

This patch set depends on:
https://patchwork.ozlabs.org/project/uboot/list/?series=174343

Hou Zhiqiang (13):
  net: fsl_pq_mdio: Add the compatible "fsl,gianfar-mdio" support
  net: tsec: Add the compatible string "gianfar" support
  powerpc: mpc8xxx: Don't compile cpu_eth_init() when DM_ETH enabled
  fsl: p1_p2_rdb: Move vsc7835 firmware uploading to
    board_early_init_r()
  configs: p1_p2_rdb: Add the default address of vsc7385 firmware
  dts: powerpc: p1020rdb: Add eTSEC DT nodes
  powerpc: p1_p2_rdb: Don't compile board_eth_init() when DM_ETH enabled
  configs: P1020RDB: Enable DM_ETH config
  dts: powerpc: p1010rdb: Add eTSEC DT nodes
  powerpc: p1010rdb: Compile legacy ethernet init function when no
    DM_ETH
  configs: P1010RDB: Enable DM_ETH config
  dts: powerpc: p2020rdb: Add eTSEC DT nodes
  configs: P2020RDB: Enable DM_ETH config

 arch/powerpc/cpu/mpc8xxx/cpu.c                |  2 +
 arch/powerpc/dts/p1010rdb-pa.dts              |  1 +
 arch/powerpc/dts/p1010rdb-pa_36b.dts          |  1 +
 arch/powerpc/dts/p1010rdb.dtsi                | 62 +++++++++++++++++++
 arch/powerpc/dts/p1010si-post.dtsi            | 25 ++++++++
 arch/powerpc/dts/p1020-post.dtsi              | 16 +++++
 arch/powerpc/dts/p1020rdb-pc.dts              |  1 +
 arch/powerpc/dts/p1020rdb-pc.dtsi             | 55 ++++++++++++++++
 arch/powerpc/dts/p1020rdb-pc_36b.dts          |  1 +
 arch/powerpc/dts/p1020rdb-pd.dts              | 57 +++++++++++++++++
 arch/powerpc/dts/p2020-post.dtsi              | 10 +++
 arch/powerpc/dts/p2020rdb-pc.dts              |  1 +
 arch/powerpc/dts/p2020rdb-pc.dtsi             | 59 ++++++++++++++++++
 arch/powerpc/dts/p2020rdb-pc_36b.dts          |  1 +
 arch/powerpc/dts/pq3-etsec1-0.dtsi            | 28 +++++++++
 arch/powerpc/dts/pq3-etsec1-1.dtsi            | 28 +++++++++
 arch/powerpc/dts/pq3-etsec1-2.dtsi            | 28 +++++++++
 arch/powerpc/dts/pq3-etsec1-3.dtsi            | 28 +++++++++
 arch/powerpc/dts/pq3-etsec1-timer-0.dtsi      | 13 ++++
 arch/powerpc/dts/pq3-etsec2-0.dtsi            | 35 +++++++++++
 arch/powerpc/dts/pq3-etsec2-1.dtsi            | 35 +++++++++++
 arch/powerpc/dts/pq3-etsec2-2.dtsi            | 35 +++++++++++
 arch/powerpc/dts/pq3-etsec2-grp2-0.dtsi       | 16 +++++
 arch/powerpc/dts/pq3-etsec2-grp2-1.dtsi       | 16 +++++
 arch/powerpc/dts/pq3-etsec2-grp2-2.dtsi       | 16 +++++
 board/freescale/p1010rdb/p1010rdb.c           |  2 +
 board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c   | 37 ++++++-----
 configs/P1010RDB-PA_36BIT_NAND_defconfig      |  2 +
 configs/P1010RDB-PA_36BIT_NOR_defconfig       |  2 +
 configs/P1010RDB-PA_36BIT_SDCARD_defconfig    |  2 +
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig  |  2 +
 configs/P1010RDB-PA_NAND_defconfig            |  2 +
 configs/P1010RDB-PA_NOR_defconfig             |  2 +
 configs/P1010RDB-PA_SDCARD_defconfig          |  2 +
 configs/P1010RDB-PA_SPIFLASH_defconfig        |  2 +
 configs/P1010RDB-PB_36BIT_NAND_defconfig      |  2 +
 configs/P1010RDB-PB_36BIT_NOR_defconfig       |  2 +
 configs/P1010RDB-PB_36BIT_SDCARD_defconfig    |  2 +
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig  |  2 +
 configs/P1010RDB-PB_NAND_defconfig            |  2 +
 configs/P1010RDB-PB_NOR_defconfig             |  2 +
 configs/P1010RDB-PB_SDCARD_defconfig          |  2 +
 configs/P1010RDB-PB_SPIFLASH_defconfig        |  2 +
 configs/P1020RDB-PC_36BIT_NAND_defconfig      |  3 +
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig    |  3 +
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig  |  3 +
 configs/P1020RDB-PC_36BIT_defconfig           |  3 +
 configs/P1020RDB-PC_NAND_defconfig            |  3 +
 configs/P1020RDB-PC_SDCARD_defconfig          |  3 +
 configs/P1020RDB-PC_SPIFLASH_defconfig        |  3 +
 configs/P1020RDB-PC_defconfig                 |  3 +
 configs/P1020RDB-PD_NAND_defconfig            |  3 +
 configs/P1020RDB-PD_SDCARD_defconfig          |  3 +
 configs/P1020RDB-PD_SPIFLASH_defconfig        |  3 +
 configs/P1020RDB-PD_defconfig                 |  3 +
 configs/P2020RDB-PC_36BIT_NAND_defconfig      |  3 +
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig    |  3 +
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig  |  3 +
 configs/P2020RDB-PC_36BIT_defconfig           |  3 +
 configs/P2020RDB-PC_NAND_defconfig            |  3 +
 configs/P2020RDB-PC_SDCARD_defconfig          |  3 +
 configs/P2020RDB-PC_SPIFLASH_defconfig        |  3 +
 configs/P2020RDB-PC_defconfig                 |  3 +
 doc/device-tree-bindings/net/fsl-tsec-phy.txt |  5 +-
 drivers/net/fsl_mdio.c                        | 15 ++++-
 drivers/net/tsec.c                            | 16 ++++-
 include/configs/p1_p2_rdb_pc.h                |  2 +
 include/fsl_mdio.h                            |  4 ++
 include/tsec.h                                |  4 ++
 69 files changed, 724 insertions(+), 23 deletions(-)
 create mode 100644 arch/powerpc/dts/p1020rdb-pc.dtsi
 create mode 100644 arch/powerpc/dts/p2020rdb-pc.dtsi
 create mode 100644 arch/powerpc/dts/pq3-etsec1-0.dtsi
 create mode 100644 arch/powerpc/dts/pq3-etsec1-1.dtsi
 create mode 100644 arch/powerpc/dts/pq3-etsec1-2.dtsi
 create mode 100644 arch/powerpc/dts/pq3-etsec1-3.dtsi
 create mode 100644 arch/powerpc/dts/pq3-etsec1-timer-0.dtsi
 create mode 100644 arch/powerpc/dts/pq3-etsec2-0.dtsi
 create mode 100644 arch/powerpc/dts/pq3-etsec2-1.dtsi
 create mode 100644 arch/powerpc/dts/pq3-etsec2-2.dtsi
 create mode 100644 arch/powerpc/dts/pq3-etsec2-grp2-0.dtsi
 create mode 100644 arch/powerpc/dts/pq3-etsec2-grp2-1.dtsi
 create mode 100644 arch/powerpc/dts/pq3-etsec2-grp2-2.dtsi

Comments

Priyanka Jain (OSS) June 8, 2020, 9:52 a.m. UTC | #1
>-----Original Message-----
>From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Zhiqiang Hou
>Sent: Friday, June 5, 2020 2:25 PM
>To: u-boot@lists.denx.de; Priyanka Jain <priyanka.jain@nxp.com>;
>bmeng.cn@gmail.com; olteanv@gmail.com
>Cc: Z.q. Hou <zhiqiang.hou@nxp.com>
>Subject: [PATCHv2 00/13] powerpc: covert p1010, p1020 and p2020 RDB
>board to DM_ETH
>
>From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
>
>Rebased this series on the top of master branch of https://gitlab.denx.de/u-
>boot/custodians/u-boot-mpc85xx.git
>
I have requested a rebase on 'next' branch. 
I have pushed next branch to master (mpc85xx tree) as well today. So you can use that now
Please rebase again.

>This patch set depends on:
>https://patchwork.ozlabs.org/project/uboot/list/?series=174343
>
A patch for tsec migration to DM_MDIO was already submitted by Madalin which is now merged in mpc85xx tree.
Let me know if that is fine or you need some additional patches from Vladimir.

<snip>
Regards
Priyanka
Vladimir Oltean July 15, 2020, 9:22 p.m. UTC | #2
Hi Priyanka,

On Mon, Jun 08, 2020 at 09:52:57AM +0000, Priyanka Jain (OSS) wrote:
> >-----Original Message-----
> >From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Zhiqiang Hou
> >Sent: Friday, June 5, 2020 2:25 PM
> >To: u-boot@lists.denx.de; Priyanka Jain <priyanka.jain@nxp.com>;
> >bmeng.cn@gmail.com; olteanv@gmail.com
> >Cc: Z.q. Hou <zhiqiang.hou@nxp.com>
> >Subject: [PATCHv2 00/13] powerpc: covert p1010, p1020 and p2020 RDB
> >board to DM_ETH
> >
> >From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
> >
> >Rebased this series on the top of master branch of https://gitlab.denx.de/u-
> >boot/custodians/u-boot-mpc85xx.git
> >
> I have requested a rebase on 'next' branch. 
> I have pushed next branch to master (mpc85xx tree) as well today. So you can use that now
> Please rebase again.
> 
> >This patch set depends on:
> >https://patchwork.ozlabs.org/project/uboot/list/?series=174343
> >
> A patch for tsec migration to DM_MDIO was already submitted by Madalin which is now merged in mpc85xx tree.
> Let me know if that is fine or you need some additional patches from Vladimir.
> 
> <snip>
> Regards
> Priyanka 
> 
> 
> 

I've tested Zhiqiang's patch series right now on LS1021A-TSN. It rebases
cleanly, no conflicts. It also works fine.
Zhiqiang, you just needs to pick up this patch from me, otherwise build
on LS1021A TWR and TSN boards is broken:
https://patchwork.ozlabs.org/project/uboot/patch/20200503185227.28731-3-olteanv@gmail.com/
Please pick up this patch when resubmitting, it's easier for all patches
to go in through a single submission.

Thanks!
-Vladimir
Z.Q. Hou July 16, 2020, 2:56 a.m. UTC | #3
Hi Vladimir,

> -----Original Message-----
> From: Vladimir Oltean <olteanv@gmail.com>
> Sent: 2020年7月16日 5:22
> To: Priyanka Jain (OSS) <priyanka.jain@oss.nxp.com>
> Cc: Z.q. Hou <zhiqiang.hou@nxp.com>; u-boot@lists.denx.de;
> bmeng.cn@gmail.com
> Subject: Re: [PATCHv2 00/13] powerpc: covert p1010, p1020 and p2020 RDB
> board to DM_ETH
> 
> Hi Priyanka,
> 
> On Mon, Jun 08, 2020 at 09:52:57AM +0000, Priyanka Jain (OSS) wrote:
> > >-----Original Message-----
> > >From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Zhiqiang
> Hou
> > >Sent: Friday, June 5, 2020 2:25 PM
> > >To: u-boot@lists.denx.de; Priyanka Jain <priyanka.jain@nxp.com>;
> > >bmeng.cn@gmail.com; olteanv@gmail.com
> > >Cc: Z.q. Hou <zhiqiang.hou@nxp.com>
> > >Subject: [PATCHv2 00/13] powerpc: covert p1010, p1020 and p2020 RDB
> > >board to DM_ETH
> > >
> > >From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
> > >
> > >Rebased this series on the top of master branch of
> > >https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit
> > >lab.denx.de%2Fu-&amp;data=02%7C01%7Czhiqiang.hou%40nxp.com%7
> C53a540c6
> > >1508484b1e4008d8290528d7%7C686ea1d3bc2b4c6fa92cd99c5c301635
> %7C0%7C0%7
> > >C637304449418968744&amp;sdata=3Wvg2l%2F3FeKUZHGgvgqVl2w4i3u
> s9if8HbHqq
> > >xBtKgU%3D&amp;reserved=0
> > >boot/custodians/u-boot-mpc85xx.git
> > >
> > I have requested a rebase on 'next' branch.
> > I have pushed next branch to master (mpc85xx tree) as well today. So
> > you can use that now Please rebase again.
> >
> > >This patch set depends on:
> > >https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpa
> t
> > >chwork.ozlabs.org%2Fproject%2Fuboot%2Flist%2F%3Fseries%3D174343
> &amp;d
> > >ata=02%7C01%7Czhiqiang.hou%40nxp.com%7C53a540c61508484b1e40
> 08d8290528
> > >d7%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6373044494
> 18968744&am
> > >p;sdata=cdg%2FhDCFBN7TOD6HN%2Fk1DLx51Zh69Cnujul7FLOuvf8%3D&
> amp;reserv
> > >ed=0
> > >
> > A patch for tsec migration to DM_MDIO was already submitted by Madalin
> which is now merged in mpc85xx tree.
> > Let me know if that is fine or you need some additional patches from
> Vladimir.
> >
> > <snip>
> > Regards
> > Priyanka
> >
> >
> >
> 
> I've tested Zhiqiang's patch series right now on LS1021A-TSN. It rebases
> cleanly, no conflicts. It also works fine.
> Zhiqiang, you just needs to pick up this patch from me, otherwise build on
> LS1021A TWR and TSN boards is broken:
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatch
> work.ozlabs.org%2Fproject%2Fuboot%2Fpatch%2F20200503185227.28731-
> 3-olteanv%40gmail.com%2F&amp;data=02%7C01%7Czhiqiang.hou%40nxp.
> com%7C53a540c61508484b1e4008d8290528d7%7C686ea1d3bc2b4c6fa92c
> d99c5c301635%7C0%7C0%7C637304449418968744&amp;sdata=%2FC90Ru
> Nv79NfiWWdAw3wFMs7yjZ9SYS1QnbvAujlT0Y%3D&amp;reserved=0
> Please pick up this patch when resubmitting, it's easier for all patches to go
> in through a single submission.

I will pick up the #1 of this series also in next version, so that you won't need to
submit them again.

Thanks,
Zhiqiang
> 
> Thanks!
> -Vladimir