Skip to content

sh: LANDISK and R2Dplus convert to device tree

Yoshinori Sato linux-devicetree linux-pci linux-sh lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest21 of 22 patches 42 repliesIn review
  2. v422 patches 14 repliesSuperseded
  3. v319 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v217 patches13 repliesSuperseded

Changes in v5 from the cover letter

- added "#address-cells" before interrupt-map
- remove interrupt-controller of landisk.dts and r2dplus.dts
- Add ".suppress_bind_attrs" to pci driver.
- some cleanup.

21 of 22 patches are in this archive. The cover letter announces 22.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22sh: Add sh-specific early_init_dt_reserve_memory_archarch/sh/boards/of-generic.c+12 -03 replies
2/22sh: More early unflatten device treearch/sh/boards/of-generic.c arch/sh/kernel/setup.c+7 -60 replies
3/22sh: set preset_lpjarch/sh/boards/of-generic.c+6 -00 replies
4/22sh: Use P1SEGADDRarch/sh/kernel/setup.c+1 -13 replies
5/22sh: command line passing chosen/bootargs in devicetreearch/sh/kernel/setup.c+6 -00 replies
6/22sh: FDT address save before bank changearch/sh/kernel/head_32.S+3 -40 replies
7/22sh: Passing FDT address on zImagearch/sh/boot/compressed/head_32.S+3 -20 replies
8/22sh: Disable board specific code on device tree modearch/sh/Makefile arch/sh/kernel/cpu/sh4/Makefile+4 -00 replies
9/22sh: Use GENERIC_IOMAP on device tree modearch/sh/boards/Kconfig+1 -00 replies
10/22sh: Add board specific initialize of of-genericarch/sh/boards/of-generic.c+64 -02 replies
11/22sh: SH7750/51 CPG DriverDocumentation/devicetree/bindings/clock/renesas,sh7750-cpg.txt arch/sh/boards/Kconfig arch/sh/kernel/cpu/Makefile +6 more+387 -40 replies
13/22sh: irqchip: SH7751 IRQCHIP DriverDocumentation/devicetree/bindings/interrupt-controller/renesas,sh7751-intc.txt arch/sh/Kconfig arch/sh/boards/Kconfig +3 more+176 -30 replies
14/22sh: SH7751 core dtsiarch/sh/boot/dts/include/dt-bindings arch/sh/boot/dts/sh7751.dtsi include/dt-bindings/clock/renesas-sh7750.h +1 more+112 -00 replies
15/22sh: Move common PCI stuff to arch/sh/kernelarch/sh/drivers/pci/Makefile arch/sh/drivers/pci/common.c arch/sh/drivers/pci/pci.c +3 more+506 -4842 replies
16/22pci: pci_config_window move to linux/pci.hdrivers/pci/ecam.h include/linux/pci.h+19 -160 replies
17/22pci: PCI_HOST_GENERIC enable for SHdrivers/pci/host/Kconfig+1 -10 replies
18/22sh: Add separate DTB build rulearch/sh/Makefile arch/sh/boot/dts/Makefile+9 -00 replies
19/22sh: IO-DATA HDL-U (a.k.a landisk) IRQCHIP driverDocumentation/devicetree/bindings/interrupt-controller/iodata-landisk.txt drivers/irqchip/Makefile drivers/irqchip/irq-io-landisk.c+104 -11 reply
20/22sh: IO-DATA HDL-U (a.k.a landisk) DeviceTreearch/sh/boot/dts/Makefile arch/sh/boot/dts/landisk.dts+63 -02 replies
21/22sh: Renesas RTS7751R2Dplus (a.k.a R2Dplus) IRQCHIP DriverDocumentation/devicetree/bindings/interrupt-controller/renesas-r2dplus.txt drivers/irqchip/Makefile drivers/irqchip/irq-renesas-r2dplus.c+127 -10 replies
22/22sh: Renesas RTS7751R2Dplus (a,k.a R2Dplus) DeviceTreearch/sh/boot/dts/Makefile arch/sh/boot/dts/r2dplus.dts+86 -00 replies

Reviews trailers per patch

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

PatchRob Herring
1/22
2/22
3/22
4/22
5/22
6/22
7/22
8/22
9/22
10/22
11/22A-b
13/22A-b
14/22
15/22
16/22
17/22
18/22
19/22
20/22
21/22
22/22

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 00/22] sh: LANDISK and R2Dplus convert to device tree

SH get devicetree support. But it not working on existing H/W.

IO-DATA HDL-U (aka landisk) currentry supported.
This H/W like SH7751 evalution board. It's a best to use this as a change base H/W.
RTS7751R2Dplus is QEMU-SH4 target. So easy trying.

Changes V5
- added "#address-cells" before interrupt-map
- remove interrupt-controller of landisk.dts and r2dplus.dts
- Add ".suppress_bind_attrs" to pci driver.
- some cleanup.

Changes V4
- split board depend patch.
- dts cleanup.

Changes V3
- PCI driver update for v4.7.
- New Clock driver. Unified PLL/Divider.
- R2Dplus support.
- Split DTS.
- Some cleanup.

Changes V2
- split DeviceTree suppoty update.
- PCI driver update.
- Some cleanup.

Yoshinori Sato (22):
sh: Add sh-specific early_init_dt_reserve_memory_arch
sh: More early unflatten device tree
sh: set preset_lpj
sh: Use P1SEGADDR
sh: command line passing chosen/bootargs in devicetree
sh: FDT address save before bank change
sh: Passing FDT address on zImage
sh: Disable board specific code on device tree mode
sh: Use GENERIC_IOMAP on device tree mode
sh: Add board specific initialize of of-generic
sh: SH7750/51 CPG Driver
sh: Add PCI host bridge driver for SH7751
sh: irqchip: SH7751 IRQCHIP Driver
sh: SH7751 core dtsi
sh: Move common PCI stuff to arch/sh/kernel
pci: pci_config_window move to linux/pci.h
pci: PCI_HOST_GENERIC enable for SH
sh: Add separate DTB build rule
sh: IO-DATA HDL-U (a,k.a landisk) IRQCHIP driver
sh: IO-DATA HDL-U (a,k.a landisk) DeviceTree
sh: Renesas RTS7751R2Dplus (a,k.a R2Dplus) IRQCHIP Driver
sh: Renesas RTS7751R2Dplus (a,k.a R2Dplus) DeviceTree

 .../bindings/clock/renesas,sh7750-cpg.txt          |  25 ++
 .../interrupt-controller/iodata-landisk.txt        |  31 ++
 .../interrupt-controller/renesas,sh7751-intc.txt   |  25 ++
 .../interrupt-controller/renesas-r2dplus.txt       |  38 +++
 .../devicetree/bindings/pci/sh7751-pci.txt         |  37 +++
 arch/sh/Kconfig                                    |   6 +-
 arch/sh/Makefile                                   |   9 +
 arch/sh/boards/Kconfig                             |   4 +
 arch/sh/boards/of-generic.c                        |  88 +++++-
 arch/sh/boot/compressed/head_32.S                  |   5 +-
 arch/sh/boot/dts/Makefile                          |   5 +
 arch/sh/boot/dts/include/dt-bindings               |   1 +
 arch/sh/boot/dts/landisk.dts                       |  61 ++++
 arch/sh/boot/dts/r2dplus.dts                       |  85 +++++
 arch/sh/boot/dts/sh7751.dtsi                       |  83 +++++
 arch/sh/drivers/Makefile                           |   2 +
 arch/sh/drivers/pci/Makefile                       |   2 -
 arch/sh/drivers/pci/common.c                       | 162 ----------
 arch/sh/drivers/pci/pci.c                          | 320 -------------------
 arch/sh/include/asm/io.h                           |   6 +
 arch/sh/kernel/Makefile                            |   2 +
 arch/sh/kernel/cpu/Makefile                        |   8 +-
 arch/sh/kernel/cpu/clock.c                         |   6 +-
 arch/sh/kernel/cpu/sh4/Makefile                    |   2 +
 arch/sh/kernel/head_32.S                           |   7 +-
 arch/sh/kernel/pci-common.c                        | 162 ++++++++++
 arch/sh/kernel/pci.c                               | 342 ++++++++++++++++++++
 arch/sh/kernel/setup.c                             |  15 +-
 drivers/clk/Kconfig                                |   1 +
 drivers/clk/Makefile                               |   3 +-
 drivers/clk/sh/Kconfig                             |   2 +
 drivers/clk/sh/Makefile                            |   1 +
 drivers/clk/sh/clk-sh7750cpg.c                     | 344 +++++++++++++++++++++
 drivers/irqchip/Kconfig                            |   5 +
 drivers/irqchip/Makefile                           |   1 +
 drivers/irqchip/irq-io-landisk.c                   |  72 +++++
 drivers/irqchip/irq-renesas-r2dplus.c              |  88 ++++++
 drivers/irqchip/irq-renesas-sh7751.c               | 141 +++++++++
 drivers/pci/ecam.h                                 |  17 +-
 drivers/pci/host/Kconfig                           |   9 +-
 drivers/pci/host/Makefile                          |   1 +
 drivers/pci/host/pci-sh7751.c                      | 326 +++++++++++++++++++
 include/dt-bindings/clock/renesas-sh7750.h         |  26 ++
 include/dt-bindings/interrupt-controller/sh_intc.h |   2 +
 include/linux/pci.h                                |  18 ++
 45 files changed, 2075 insertions(+), 521 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/renesas,sh7750-cpg.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/iodata-landisk.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,sh7751-intc.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas-r2dplus.txt
 create mode 100644 Documentation/devicetree/bindings/pci/sh7751-pci.txt
 create mode 120000 arch/sh/boot/dts/include/dt-bindings
 create mode 100644 arch/sh/boot/dts/landisk.dts
 create mode 100644 arch/sh/boot/dts/r2dplus.dts
 create mode 100644 arch/sh/boot/dts/sh7751.dtsi
 delete mode 100644 arch/sh/drivers/pci/common.c
 delete mode 100644 arch/sh/drivers/pci/pci.c
 create mode 100644 arch/sh/kernel/pci-common.c
 create mode 100644 arch/sh/kernel/pci.c
 create mode 100644 drivers/clk/sh/Kconfig
 create mode 100644 drivers/clk/sh/Makefile
 create mode 100644 drivers/clk/sh/clk-sh7750cpg.c
 create mode 100644 drivers/irqchip/irq-io-landisk.c
 create mode 100644 drivers/irqchip/irq-renesas-r2dplus.c
 create mode 100644 drivers/irqchip/irq-renesas-sh7751.c
 create mode 100644 drivers/pci/host/pci-sh7751.c
 create mode 100644 include/dt-bindings/clock/renesas-sh7750.h
 create mode 100644 include/dt-bindings/interrupt-controller/sh_intc.h
Signature · 1 line
2.7.0