Skip to content

Device Tree support for SH7751 based board

Yoshinori Sato dri-devel linux-clk linux-devicetree linux-fbdev linux-ide linux-pci linux-renesas-soc linux-serial linux-sh lkml 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest36 patches 12 repliesIn review
  2. v7 posting 2/237 patches 24 repliesSuperseded
  3. v7 posting 1/223 of 37 patches 15 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v637 patches35 repliesSuperseded
v537 patches23 repliesSuperseded
v437 patches17 repliesSuperseded
v3 RFC35 patches52 repliesSuperseded
v2 RFC30 patches52 repliesSuperseded
v1 RFC12 patches2 repliesSuperseded

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/36sh: passing FDT address to kernel startup.arch/sh/boot/compressed/head_32.S+3 -20 replies
2/36sh: Kconfig unified OF supported targets.arch/sh/Kconfig arch/sh/boards/Kconfig+14 -100 replies
3/36sh: Enable OF support for build and configuration.arch/sh/Kconfig arch/sh/drivers/Makefile arch/sh/kernel/cpu/Makefile +1 more+18 -70 replies
4/36dt-bindings: interrupt-controller: Add header for Renesas SH3/4 INTC.include/dt-bindings/interrupt-controller/renesas,sh7751-intc.h+19 -00 replies
5/36sh: GENERIC_IRQ_CHIP support for CONFIG_OF=yarch/sh/include/asm/io.h arch/sh/include/asm/irq.h arch/sh/kernel/cpu/Makefile +2 more+34 -70 replies
6/36sh: kernel/setup Update DT support.arch/sh/Kconfig arch/sh/kernel/setup.c+20 -120 replies
7/36sh: Fix COMMON_CLK support in CONFIG_OF=y.arch/sh/boards/of-generic.c arch/sh/kernel/time.c+16 -240 replies
8/36clocksource: sh_tmu: CLOCKSOURCE support.drivers/clocksource/sh_tmu.c+132 -661 reply
9/36dt-binding: Add compatible SH7750 SoCDocumentation/devicetree/bindings/timer/renesas,tmu.yaml+2 -00 replies
10/36sh: Common PCI Framework driver support.arch/sh/include/asm/io.h arch/sh/include/asm/pci.h arch/sh/kernel/iomap.c+28 -00 replies
11/36pci: pci-sh7751: Add SH7751 PCI driverdrivers/pci/controller/Kconfig drivers/pci/controller/Makefile drivers/pci/controller/pci-sh7751.c+345 -00 replies
12/36dt-bindings: pci: pci-sh7751: Add SH7751 PCIDocumentation/devicetree/bindings/pci/renesas,sh7751-pci.yaml+75 -00 replies
13/36dt-bindings: clock: sh7750-cpg: Add renesas,sh7750-cpg header.Documentation/devicetree/bindings/clock/renesas,sh7750-cpg.yaml include/dt-bindings/clock/sh7750-cpg.h+133 -01 reply
14/36clk: Compatible with narrow registersdrivers/clk/clk-divider.c drivers/clk/clk-gate.c include/linux/clk-provider.h+89 -211 reply
15/36clk: renesas: Add SH7750/7751 CPG Driverdrivers/clk/renesas/Kconfig drivers/clk/renesas/Makefile drivers/clk/renesas/clk-sh7750.c+491 -30 replies
16/36irqchip: Add SH7751 INTC driverdrivers/irqchip/Kconfig drivers/irqchip/Makefile drivers/irqchip/irq-renesas-sh7751.c+291 -00 replies
17/36dt-bindings: interrupt-controller: renesas,sh7751-intc: Add json-schemaDocumentation/devicetree/bindings/interrupt-controller/renesas,sh7751-intc.yaml+53 -00 replies
18/36irqchip: SH7751 external interrupt encoder with enable gate.drivers/irqchip/Kconfig drivers/irqchip/Makefile drivers/irqchip/irq-renesas-sh7751irl.c+230 -00 replies
19/36dt-bindings: interrupt-controller: renesas,sh7751-irl-ext: Add json-schemaDocumentation/devicetree/bindings/interrupt-controller/renesas,sh7751-irl-ext.yaml+57 -01 reply
20/36serial: sh-sci: fix SH4 OF support.drivers/tty/serial/Kconfig drivers/tty/serial/sh-sci.c+4 -41 reply
21/36dt-bindings: serial: renesas,scif: Add scif-sh7751.Documentation/devicetree/bindings/serial/renesas,scif.yaml+1 -01 reply
22/36dt-bindings: display: smi,sm501: SMI SM501 binding json-schemaDocumentation/devicetree/bindings/display/smi,sm501.yaml+443 -01 reply
23/36mfd: sm501: Convert platform_data to OF propertydrivers/mfd/sm501.c drivers/video/fbdev/sm501fb.c+325 -01 reply
24/36dt-binding: sh: cpus: Add SH CPUs json-schemaDocumentation/devicetree/bindings/sh/cpus.yaml+63 -01 reply
25/36dt-bindings: vendor-prefixes: Add iodataDocumentation/devicetree/bindings/vendor-prefixes.yaml+2 -01 reply
26/36dt-bindings: ata: ata-generic: Add new targetsDocumentation/devicetree/bindings/ata/ata-generic.yaml+2 -01 reply
27/36dt-bindings: soc: renesas: sh: Add SH7751 based targetDocumentation/devicetree/bindings/soc/renesas/sh.yaml+27 -00 replies
28/36sh: SH7751R SoC Internal peripheral definition dtsi.arch/sh/boot/dts/sh7751r.dtsi+105 -00 replies
29/36sh: add RTS7751R2D Plus DTSarch/sh/boot/dts/rts7751r2dplus.dts+172 -00 replies
30/36sh: Add IO DATA LANDISK dtsarch/sh/boot/dts/landisk.dts+77 -00 replies
31/36sh: Add IO DATA USL-5P dtsarch/sh/boot/dts/usl-5p.dts+85 -00 replies
32/36sh: j2_mimas_v2.dts updatearch/sh/boot/dts/j2_mimas_v2.dts+1 -10 replies
33/36sh: Add dtbs target support.arch/sh/boot/dts/Makefile+5 -00 replies
34/36sh: RTS7751R2D Plus OF defconfigarch/sh/configs/rts7751r2dplus-of_defconfig+77 -00 replies
35/36sh: LANDISK OF defconfigarch/sh/configs/landisk-of_defconfig+102 -00 replies
36/36sh: j2_defconfig: updatearch/sh/configs/j2_defconfig+3 -80 replies

Reviews trailers per patch

8 of 36 patches have a Reviewed-by or Acked-by.

PatchGeert UytterhoevenRob Herring
1/36R-b
2/36
3/36
4/36
5/36
6/36
7/36
8/36
9/36R-b A-b
10/36
11/36
12/36
13/36
14/36
15/36
16/36
17/36R-b
18/36
19/36
20/36R-b
21/36R-b A-b
22/36
23/36
24/36
25/36R-b
26/36
27/36R-b R-b
28/36
29/36
30/36
31/36
32/36
33/36R-b
34/36
35/36
36/36

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

Read the v8 thread

Cover letter [DO NOT MERGE v8 00/36] Device Tree support for SH7751 based board

This is an updated version of something I wrote about 7 years ago. Minimum support for R2D-plus and LANDISK.
I think R2D-1 will work if you add AX88796 to dts.
And board-specific functions and SCI's SPI functions are not supported.

You can get it working with qemu found here.
https://gitlab.com/yoshinori.sato/qemu/-/tree/landisk

v8 changes.
- rebase v6.10-rc1
- sh/Konfig: Keep compatibility for non-DT.
- renesas,sh7750-cpg.yaml: cleanup.
- smi,sm501.yaml: rewrite register definition.
- sm501.c: remove unneeded changes.
- renesas,sh7751-irl-ext.yaml: fix intetrupt-cells.
- renesas,sh7751-pci.yaml: remove duplicate.
- clk-divider.c: cleanup.
- clk-gate.c: cleanup.
- sh_tmu.c: cleanup.
- pci-sh7751.c: cleanup.

v7 changes.
- sh/kernel/setup.c: fix kernel parameter handling.
- clk-sh7750.c: cleanup.
- sh_tmu.c: cleanup.
- irq-renesas-sh7751.c: IPR definition move to code.
- irq-renesas-sh7751irl.c: update register definition.
- pci-sh7751.c: Register initialization fix.
- sm501 and sm501fb: Re-design Device Tree properties.

v6 changes.
- pci-sh7751: merge register define.
- pci-sh7751: use 'dma-ranges' property.
- pci-sh7751: rename general PCI properties.
- sm501 and sm501fb: Re-design Device Tree properties.
- sh/kernel/setup: cleanup command line setup.
- irq-sh7751.c: some cleanup.

v5 changes.
- pci-sh7751: revert header changes. and some fix in previuous driver.
- sh/kernel/iomap.c: Use SH io functions.
- sm501 and sm501fb: re-write DT support.

v4 changes.
- cpg-sh7750: use clk-divider and clk-gate.
- pci-sh7751: unified header files to old PCI driver.
- irq-renesas-sh7751: IPR registers direct mapping.
- irq-renesas-sh7751irl: useful register bit mapping.
- sm501 and sm501fb: re-write dt parser.
- j2_minus: fix build error.
- dt-binding schema: fix some errors.
- *.dts: cleanup.

v3 changes.
- Rewrite clk drivers.
- Added sh_tmu to OF support.
- Cleanup PCI stuff.
- Update sm501 and sm501fb OF support.
- Update devicetree and documents.

v2 changes.
- Rebasing v6,6-rc1
- re-write irqchip driver.
- Add binding documents.
- Cleanup review comment.

Yoshinori Sato (36):
sh: passing FDT address to kernel startup.
sh: Kconfig unified OF supported targets.
sh: Enable OF support for build and configuration.
dt-bindings: interrupt-controller: Add header for Renesas SH3/4 INTC.
sh: GENERIC_IRQ_CHIP support for CONFIG_OF=y
sh: kernel/setup Update DT support.
sh: Fix COMMON_CLK support in CONFIG_OF=y.
clocksource: sh_tmu: CLOCKSOURCE support.
dt-binding: Add compatible SH7750 SoC
sh: Common PCI Framework driver support.
pci: pci-sh7751: Add SH7751 PCI driver
dt-bindings: pci: pci-sh7751: Add SH7751 PCI
dt-bindings: clock: sh7750-cpg: Add renesas,sh7750-cpg header.
clk: Compatible with narrow registers
clk: renesas: Add SH7750/7751 CPG Driver
irqchip: Add SH7751 INTC driver
dt-bindings: interrupt-controller: renesas,sh7751-intc: Add
json-schema
irqchip: SH7751 external interrupt encoder with enable gate.
dt-bindings: interrupt-controller: renesas,sh7751-irl-ext: Add
json-schema
serial: sh-sci: fix SH4 OF support.
dt-bindings: serial: renesas,scif: Add scif-sh7751.
dt-bindings: display: smi,sm501: SMI SM501 binding json-schema
mfd: sm501: Convert platform_data to OF property
dt-binding: sh: cpus: Add SH CPUs json-schema
dt-bindings: vendor-prefixes: Add iodata
dt-bindings: ata: ata-generic: Add new targets
dt-bindings: soc: renesas: sh: Add SH7751 based target
sh: SH7751R SoC Internal peripheral definition dtsi.
sh: add RTS7751R2D Plus DTS
sh: Add IO DATA LANDISK dts
sh: Add IO DATA USL-5P dts
sh: j2_mimas_v2.dts update
sh: Add dtbs target support.
sh: RTS7751R2D Plus OF defconfig
sh: LANDISK OF defconfig
sh: j2_defconfig: update

 .../devicetree/bindings/ata/ata-generic.yaml  |   2 +
 .../bindings/clock/renesas,sh7750-cpg.yaml    | 107 ++++
 .../bindings/display/smi,sm501.yaml           | 443 ++++++++++++++++
 .../renesas,sh7751-intc.yaml                  |  53 ++
 .../renesas,sh7751-irl-ext.yaml               |  57 +++
 .../bindings/pci/renesas,sh7751-pci.yaml      |  75 +++
 .../bindings/serial/renesas,scif.yaml         |   1 +
 .../devicetree/bindings/sh/cpus.yaml          |  63 +++
 .../devicetree/bindings/soc/renesas/sh.yaml   |  27 +
 .../bindings/timer/renesas,tmu.yaml           |   2 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 arch/sh/Kconfig                               |  11 +-
 arch/sh/boards/Kconfig                        |  23 +-
 arch/sh/boards/of-generic.c                   |  28 +-
 arch/sh/boot/compressed/head_32.S             |   5 +-
 arch/sh/boot/dts/Makefile                     |   5 +
 arch/sh/boot/dts/j2_mimas_v2.dts              |   2 +-
 arch/sh/boot/dts/landisk.dts                  |  77 +++
 arch/sh/boot/dts/rts7751r2dplus.dts           | 172 +++++++
 arch/sh/boot/dts/sh7751r.dtsi                 | 105 ++++
 arch/sh/boot/dts/usl-5p.dts                   |  85 ++++
 arch/sh/configs/j2_defconfig                  |  11 +-
 arch/sh/configs/landisk-of_defconfig          | 102 ++++
 arch/sh/configs/rts7751r2dplus-of_defconfig   |  77 +++
 arch/sh/drivers/Makefile                      |   2 +
 arch/sh/include/asm/io.h                      |   8 +
 arch/sh/include/asm/irq.h                     |  10 +-
 arch/sh/include/asm/pci.h                     |   4 +
 arch/sh/kernel/cpu/Makefile                   |   6 +-
 arch/sh/kernel/cpu/irq/imask.c                |  17 +
 arch/sh/kernel/cpu/sh4/Makefile               |   3 +
 arch/sh/kernel/iomap.c                        |  18 +
 arch/sh/kernel/setup.c                        |  31 +-
 arch/sh/kernel/time.c                         |  12 +
 drivers/clk/clk-divider.c                     |  41 +-
 drivers/clk/clk-gate.c                        |  49 +-
 drivers/clk/renesas/Kconfig                   |  13 +-
 drivers/clk/renesas/Makefile                  |   1 +
 drivers/clk/renesas/clk-sh7750.c              | 480 ++++++++++++++++++
 drivers/clocksource/sh_tmu.c                  | 198 +++++---
 drivers/irqchip/Kconfig                       |  15 +
 drivers/irqchip/Makefile                      |   3 +
 drivers/irqchip/irq-renesas-sh7751.c          | 282 ++++++++++
 drivers/irqchip/irq-renesas-sh7751irl.c       | 221 ++++++++
 drivers/mfd/sm501.c                           | 238 +++++++++
 drivers/pci/controller/Kconfig                |   9 +
 drivers/pci/controller/Makefile               |   1 +
 drivers/pci/controller/pci-sh7751.c           | 335 ++++++++++++
 drivers/tty/serial/Kconfig                    |   2 +-
 drivers/tty/serial/sh-sci.c                   |   6 +-
 drivers/video/fbdev/sm501fb.c                 |  87 ++++
 include/dt-bindings/clock/sh7750-cpg.h        |  26 +
 .../renesas,sh7751-intc.h                     |  19 +
 include/linux/clk-provider.h                  |  20 +-
 include/linux/sh_intc.h                       |   7 +-
 55 files changed, 3539 insertions(+), 160 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/renesas,sh7750-cpg.yaml
 create mode 100644 Documentation/devicetree/bindings/display/smi,sm501.yaml
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,sh7751-intc.yaml
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,sh7751-irl-ext.yaml
 create mode 100644 Documentation/devicetree/bindings/pci/renesas,sh7751-pci.yaml
 create mode 100644 Documentation/devicetree/bindings/sh/cpus.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/renesas/sh.yaml
 create mode 100644 arch/sh/boot/dts/landisk.dts
 create mode 100644 arch/sh/boot/dts/rts7751r2dplus.dts
 create mode 100644 arch/sh/boot/dts/sh7751r.dtsi
 create mode 100644 arch/sh/boot/dts/usl-5p.dts
 create mode 100644 arch/sh/configs/landisk-of_defconfig
 create mode 100644 arch/sh/configs/rts7751r2dplus-of_defconfig
 create mode 100644 drivers/clk/renesas/clk-sh7750.c
 create mode 100644 drivers/irqchip/irq-renesas-sh7751.c
 create mode 100644 drivers/irqchip/irq-renesas-sh7751irl.c
 create mode 100644 drivers/pci/controller/pci-sh7751.c
 create mode 100644 include/dt-bindings/clock/sh7750-cpg.h
 create mode 100644 include/dt-bindings/interrupt-controller/renesas,sh7751-intc.h
Signature · 1 line
2.39.2