Skip to content

device_type/compatible cleanups

Anton Vorontsov linuxppc-dev netdev 5 versions – Applied

Status from this message: applied. (same comment about rdk)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 18 repliesApplied
  2. v44 patches 0 repliesSuperseded
  3. v34 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 of 4 patches0 repliesSuperseded
v13 of 4 patches10 repliesSuperseded

Changes in v5 from the cover letter

- Now I'm not removing device_type = "qe", because I realized that there was a period of time (month or so?) where libfdt-enabled u-boots were searching for it;
- new patch that prepares the code for device_type = "soc" removal from the device trees. We can't remove it now, because of backward compatibility. Though, MPC8360E-RDK is exception here.

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/5qe_lib and users: get rid of most device_types and modelDocumentation/powerpc/booting-without-of.txt arch/powerpc/boot/dts/mpc832x_mds.dts arch/powerpc/boot/dts/mpc832x_rdb.dts +9 more+117 -675 replies
2/5ucc_geth_mii and users: get rid of device_typearch/powerpc/boot/dts/mpc832x_mds.dts arch/powerpc/boot/dts/mpc832x_rdb.dts arch/powerpc/boot/dts/mpc836x_mds.dts +3 more+8 -93 replies
3/5use brg-frequency for SPI in QEarch/powerpc/sysdev/fsl_soc.c drivers/spi/spi_mpc83xx.c+32 -181 reply
4/5fsl_spi_init and users: stop using device_type = "spi"Documentation/powerpc/booting-without-of.txt arch/powerpc/boot/dts/mpc8313erdb.dts arch/powerpc/boot/dts/mpc832x_mds.dts +8 more+88 -681 reply
5/5fsl_soc, legacy_serial: add support for "soc" compatible matchingDocumentation/powerpc/booting-without-of.txt arch/powerpc/boot/dts/mpc836x_rdk.dts arch/powerpc/kernel/legacy_serial.c +1 more+39 -347 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchDavid BrownellStephen Rothwell
1/5A-b
2/5
3/5A-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/5] device_type/compatible cleanups

Hi all,

This is v5. It's tested on MPC8360E-RDK and MPC8568E-MDS.

Here is diffstat summary:

 Documentation/powerpc/booting-without-of.txt   |   26 +--
 arch/powerpc/boot/dts/mpc832x_mds.dts          |   11 -
 arch/powerpc/boot/dts/mpc832x_rdb.dts          |   11 -
 arch/powerpc/boot/dts/mpc836x_mds.dts          |   11 -
 arch/powerpc/boot/dts/mpc836x_rdk.dts          |   10 -
 arch/powerpc/boot/dts/mpc8568mds.dts           |   10 -
 arch/powerpc/sysdev/fsl_soc.c                  |  191 +++++++++++++++----------
 b/Documentation/powerpc/booting-without-of.txt |   11 -
 b/arch/powerpc/boot/dts/mpc8313erdb.dts        |    4
 b/arch/powerpc/boot/dts/mpc832x_mds.dts        |    9 -
 b/arch/powerpc/boot/dts/mpc832x_rdb.dts        |   10 -
 b/arch/powerpc/boot/dts/mpc8349emitx.dts       |    4
 b/arch/powerpc/boot/dts/mpc8349emitxgp.dts     |    4
 b/arch/powerpc/boot/dts/mpc834x_mds.dts        |    4
 b/arch/powerpc/boot/dts/mpc836x_mds.dts        |   10 -
 b/arch/powerpc/boot/dts/mpc836x_rdk.dts        |    1
 b/arch/powerpc/boot/dts/mpc8568mds.dts         |   10 -
 b/arch/powerpc/kernel/legacy_serial.c          |    3
 b/arch/powerpc/platforms/83xx/mpc832x_mds.c    |   11 -
 b/arch/powerpc/platforms/83xx/mpc832x_rdb.c    |   11 -
 b/arch/powerpc/platforms/83xx/mpc836x_mds.c    |   11 -
 b/arch/powerpc/platforms/85xx/mpc85xx_mds.c    |   32 ++--
 b/arch/powerpc/sysdev/fsl_soc.c                |    5
 b/arch/powerpc/sysdev/qe_lib/qe.c              |   64 +++++---
 b/drivers/net/ucc_geth_mii.c                   |    4
 b/drivers/spi/spi_mpc83xx.c                    |   10 -
 26 files changed, 284 insertions(+), 204 deletions(-)

Changes since v4:
- Now I'm not removing device_type = "qe", because I realized that there was a period of time (month or so?) where libfdt-enabled u-boots were searching for it;
- new patch that prepares the code for device_type = "soc" removal from the device trees. We can't remove it now, because of backward compatibility. Though, MPC8360E-RDK is exception here.

Changes since v3:
- Thanks to reviewers, few glitches found and fixed;
- New conversion: device_type = "qeic" to compatible = "fsl,qe-ic";
- Documentation updated.

Changes since v2:
- SPI conversion fixed and actually tested on MPC8323E-RDB to not break anything;
- Few more users of device_type = "qe" converted to compatible = "fsl,qe";
- Got Ack on SPI part from David Brownell.

Changes since v1:
- Device tree lookup changes should be backward compatible with older dtbs;
- Few of_put_node() cleanups;
- cell-index property added to spi nodes;
- cpm-muram{,-data} added as an addition to qe-muram{,-data}.

Thanks,

Signature · 4 lines
Anton Vorontsov
email: [email protected]
backup email: [email protected]
irc://irc.freenode.net/bd2