mbox series

[u-boot-marvell,RESEND,00/11] Some mvebu comphy + mox + fdt_support changes

Message ID 20211126135715.26485-1-kabel@kernel.org
Headers show
Series Some mvebu comphy + mox + fdt_support changes | expand

Message

Marek Behún Nov. 26, 2021, 1:57 p.m. UTC
From: Marek Behún <marek.behun@nic.cz>

Hello Stefan,

as requested I am resending this series with board maintainers added
in Ccs.

Original message:

Pali prepared patches that convert A3720 comphy driver to use Linux'
DT bindings. (Yes, I have patches that convert the whole driver into
using SMC calls into ATF, but haven't found time yet to rebase them
since last year, and Pali has done this in the meantime :-D Maybe I'll
look into my old patches sometimes, but this is now usable.)

These patches needed some changes in Turris MOX board code, and I added
some more changes to handling device-tree fixups, and this lead to
adding some code into fdt_support, which can hopefully be used by other
people as well.

Marek

Marek Behún (8):
  treewide: Use fdt_create_phandle() where appropriate
  fdt_support: Remove fdt_alloc_phandle() in favor of
    fdt_generate_phandle()
  fdt_support: Remove FDT_STATUS_FAIL_ERROR_CODE
  fdt_support: Fix comment for fdt_create_phandle()
  fdt_support: Add some useful functions
  arm: mvebu: turris_mox: Find DT nodes by compatible or alias instead
    of path
  arm: mvebu: turris_mox: Fix unstable board topology reading
  fdt_support: Add fdt_delete_disabled_nodes() and use in Turris MOX

Pali Rohár (3):
  include/linux/byteorder: Fix compilation of __constant_cpu_to_be32()
  arm: mvebu: turris_mox: Enable eth1 in U-Boot if a network module is
    present
  phy: marvell: a3700: Convert to official DT bindings in COMPHY driver

 arch/arm/cpu/armv7/ls102xa/fdt.c         |   6 +-
 arch/arm/dts/armada-3720-espressobin.dts |  21 +--
 arch/arm/dts/armada-3720-turris-mox.dts  |  25 +--
 arch/arm/dts/armada-3720-uDPU.dts        |  23 +--
 arch/arm/dts/armada-37xx.dtsi            |  20 +-
 board/CZ.NIC/turris_mox/turris_mox.c     | 223 ++++++++---------------
 board/Marvell/octeon_ebb7304/board.c     |   5 +-
 board/freescale/lx2160a/eth_lx2160aqds.c |   8 +-
 board/freescale/lx2160a/eth_lx2162aqds.c |   8 +-
 board/gateworks/gw_ventana/common.c      |   3 +-
 board/kontron/sl28/sl28.c                |   2 +-
 common/fdt_support.c                     | 174 +++++++++++++++---
 drivers/misc/fsl_portals.c               |  10 +-
 drivers/pci/pcie_layerscape_fixup.c      |   8 +-
 drivers/pci/pcie_layerscape_gen4_fixup.c |   8 +-
 drivers/phy/marvell/comphy_a3700.c       | 133 ++++++++++++++
 drivers/phy/marvell/comphy_core.c        |  59 +-----
 drivers/phy/marvell/comphy_core.h        |  23 +++
 drivers/phy/marvell/comphy_cp110.c       |  58 ++++++
 include/fdt_support.h                    |  51 ++++--
 include/linux/byteorder/swab.h           |   4 +
 21 files changed, 551 insertions(+), 321 deletions(-)

Comments

Pali Rohár Dec. 16, 2021, 11:15 a.m. UTC | #1
Hello! Could you review this patch series?

On Friday 26 November 2021 14:57:04 Marek Behún wrote:
> From: Marek Behún <marek.behun@nic.cz>
> 
> Hello Stefan,
> 
> as requested I am resending this series with board maintainers added
> in Ccs.
> 
> Original message:
> 
> Pali prepared patches that convert A3720 comphy driver to use Linux'
> DT bindings. (Yes, I have patches that convert the whole driver into
> using SMC calls into ATF, but haven't found time yet to rebase them
> since last year, and Pali has done this in the meantime :-D Maybe I'll
> look into my old patches sometimes, but this is now usable.)
> 
> These patches needed some changes in Turris MOX board code, and I added
> some more changes to handling device-tree fixups, and this lead to
> adding some code into fdt_support, which can hopefully be used by other
> people as well.
> 
> Marek
> 
> Marek Behún (8):
>   treewide: Use fdt_create_phandle() where appropriate
>   fdt_support: Remove fdt_alloc_phandle() in favor of
>     fdt_generate_phandle()
>   fdt_support: Remove FDT_STATUS_FAIL_ERROR_CODE
>   fdt_support: Fix comment for fdt_create_phandle()
>   fdt_support: Add some useful functions
>   arm: mvebu: turris_mox: Find DT nodes by compatible or alias instead
>     of path
>   arm: mvebu: turris_mox: Fix unstable board topology reading
>   fdt_support: Add fdt_delete_disabled_nodes() and use in Turris MOX
> 
> Pali Rohár (3):
>   include/linux/byteorder: Fix compilation of __constant_cpu_to_be32()
>   arm: mvebu: turris_mox: Enable eth1 in U-Boot if a network module is
>     present
>   phy: marvell: a3700: Convert to official DT bindings in COMPHY driver
> 
>  arch/arm/cpu/armv7/ls102xa/fdt.c         |   6 +-
>  arch/arm/dts/armada-3720-espressobin.dts |  21 +--
>  arch/arm/dts/armada-3720-turris-mox.dts  |  25 +--
>  arch/arm/dts/armada-3720-uDPU.dts        |  23 +--
>  arch/arm/dts/armada-37xx.dtsi            |  20 +-
>  board/CZ.NIC/turris_mox/turris_mox.c     | 223 ++++++++---------------
>  board/Marvell/octeon_ebb7304/board.c     |   5 +-
>  board/freescale/lx2160a/eth_lx2160aqds.c |   8 +-
>  board/freescale/lx2160a/eth_lx2162aqds.c |   8 +-
>  board/gateworks/gw_ventana/common.c      |   3 +-
>  board/kontron/sl28/sl28.c                |   2 +-
>  common/fdt_support.c                     | 174 +++++++++++++++---
>  drivers/misc/fsl_portals.c               |  10 +-
>  drivers/pci/pcie_layerscape_fixup.c      |   8 +-
>  drivers/pci/pcie_layerscape_gen4_fixup.c |   8 +-
>  drivers/phy/marvell/comphy_a3700.c       | 133 ++++++++++++++
>  drivers/phy/marvell/comphy_core.c        |  59 +-----
>  drivers/phy/marvell/comphy_core.h        |  23 +++
>  drivers/phy/marvell/comphy_cp110.c       |  58 ++++++
>  include/fdt_support.h                    |  51 ++++--
>  include/linux/byteorder/swab.h           |   4 +
>  21 files changed, 551 insertions(+), 321 deletions(-)
> 
> -- 
> 2.32.0
>
Stefan Roese Dec. 18, 2021, 1:46 p.m. UTC | #2
On 11/26/21 14:57, Marek Behún wrote:
> From: Marek Behún <marek.behun@nic.cz>
> 
> Hello Stefan,
> 
> as requested I am resending this series with board maintainers added
> in Ccs.
> 
> Original message:
> 
> Pali prepared patches that convert A3720 comphy driver to use Linux'
> DT bindings. (Yes, I have patches that convert the whole driver into
> using SMC calls into ATF, but haven't found time yet to rebase them
> since last year, and Pali has done this in the meantime :-D Maybe I'll
> look into my old patches sometimes, but this is now usable.)
> 
> These patches needed some changes in Turris MOX board code, and I added
> some more changes to handling device-tree fixups, and this lead to
> adding some code into fdt_support, which can hopefully be used by other
> people as well.

No reply yet. Let's move forward if nobody objects.

Applied to u-boot-marvell/next

Thanks,
Stefan

> Marek
> 
> Marek Behún (8):
>    treewide: Use fdt_create_phandle() where appropriate
>    fdt_support: Remove fdt_alloc_phandle() in favor of
>      fdt_generate_phandle()
>    fdt_support: Remove FDT_STATUS_FAIL_ERROR_CODE
>    fdt_support: Fix comment for fdt_create_phandle()
>    fdt_support: Add some useful functions
>    arm: mvebu: turris_mox: Find DT nodes by compatible or alias instead
>      of path
>    arm: mvebu: turris_mox: Fix unstable board topology reading
>    fdt_support: Add fdt_delete_disabled_nodes() and use in Turris MOX
> 
> Pali Rohár (3):
>    include/linux/byteorder: Fix compilation of __constant_cpu_to_be32()
>    arm: mvebu: turris_mox: Enable eth1 in U-Boot if a network module is
>      present
>    phy: marvell: a3700: Convert to official DT bindings in COMPHY driver
> 
>   arch/arm/cpu/armv7/ls102xa/fdt.c         |   6 +-
>   arch/arm/dts/armada-3720-espressobin.dts |  21 +--
>   arch/arm/dts/armada-3720-turris-mox.dts  |  25 +--
>   arch/arm/dts/armada-3720-uDPU.dts        |  23 +--
>   arch/arm/dts/armada-37xx.dtsi            |  20 +-
>   board/CZ.NIC/turris_mox/turris_mox.c     | 223 ++++++++---------------
>   board/Marvell/octeon_ebb7304/board.c     |   5 +-
>   board/freescale/lx2160a/eth_lx2160aqds.c |   8 +-
>   board/freescale/lx2160a/eth_lx2162aqds.c |   8 +-
>   board/gateworks/gw_ventana/common.c      |   3 +-
>   board/kontron/sl28/sl28.c                |   2 +-
>   common/fdt_support.c                     | 174 +++++++++++++++---
>   drivers/misc/fsl_portals.c               |  10 +-
>   drivers/pci/pcie_layerscape_fixup.c      |   8 +-
>   drivers/pci/pcie_layerscape_gen4_fixup.c |   8 +-
>   drivers/phy/marvell/comphy_a3700.c       | 133 ++++++++++++++
>   drivers/phy/marvell/comphy_core.c        |  59 +-----
>   drivers/phy/marvell/comphy_core.h        |  23 +++
>   drivers/phy/marvell/comphy_cp110.c       |  58 ++++++
>   include/fdt_support.h                    |  51 ++++--
>   include/linux/byteorder/swab.h           |   4 +
>   21 files changed, 551 insertions(+), 321 deletions(-)
> 

Viele Grüße,
Stefan Roese