[DO NOT MERGE v6 36/37] sh: LANDISK OF defconfig

2024-01-09 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/configs/landisk-of_defconfig | 104 +++ 1 file changed, 104 insertions(+) create mode 100644 arch/sh/configs/landisk-of_defconfig diff --git a/arch/sh/configs/landisk-of_defconfig b/arch/sh/configs/landisk-of_defconfig new file

[DO NOT MERGE v6 37/37] sh: j2_defconfig: update

2024-01-09 Thread Yoshinori Sato
I've changed some symbols related to DeviceTree, so let's take care of those changes. Signed-off-by: Yoshinori Sato --- arch/sh/configs/j2_defconfig | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/sh/configs/j2_defconfig b/arch/sh/configs/j2_defconfig index

[DO NOT MERGE v6 35/37] sh: RTS7751R2D Plus OF defconfig

2024-01-09 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/configs/rts7751r2dplus-of_defconfig | 80 + 1 file changed, 80 insertions(+) create mode 100644 arch/sh/configs/rts7751r2dplus-of_defconfig diff --git a/arch/sh/configs/rts7751r2dplus-of_defconfig b/arch/sh/configs/rts7751r2dplus

[DO NOT MERGE v6 34/37] sh: Add dtbs target support.

2024-01-09 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/Makefile | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/sh/boot/dts/Makefile b/arch/sh/boot/dts/Makefile index 4a6dec9714a9..e6b93360c213 100644 --- a/arch/sh/boot/dts/Makefile +++ b/arch/sh/boot/dts/Makefile @@ -1,2 +1,7

[DO NOT MERGE v6 33/37] sh: j2_mimas_v2.dts update

2024-01-09 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/j2_mimas_v2.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/boot/dts/j2_mimas_v2.dts b/arch/sh/boot/dts/j2_mimas_v2.dts index fa9562f78d53..5dfe20866a1c 100644 --- a/arch/sh/boot/dts/j2_mimas_v2.dts +++ b/arch/sh

[DO NOT MERGE v6 32/37] sh: Add IO DATA USL-5P dts

2024-01-09 Thread Yoshinori Sato
IO DATA DEVICE Inc. USL-5P devicetree. Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/usl-5p.dts | 83 + 1 file changed, 83 insertions(+) create mode 100644 arch/sh/boot/dts/usl-5p.dts diff --git a/arch/sh/boot/dts/usl-5p.dts b/arch/sh/boot/dts/usl

[DO NOT MERGE v6 30/37] sh: add RTS7751R2D Plus DTS

2024-01-09 Thread Yoshinori Sato
Renesas RTS7751R2D Plus devicetree. Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/rts7751r2dplus.dts | 180 arch/sh/boot/dts/sh7751r.dtsi | 4 + 2 files changed, 184 insertions(+) create mode 100644 arch/sh/boot/dts/rts7751r2dplus.dts diff --git

[DO NOT MERGE v6 31/37] sh: Add IO DATA LANDISK dts

2024-01-09 Thread Yoshinori Sato
IO DATA DEVICE Inc. LANDISK HDL-U devicetree. Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/landisk.dts | 75 1 file changed, 75 insertions(+) create mode 100644 arch/sh/boot/dts/landisk.dts diff --git a/arch/sh/boot/dts/landisk.dts b/arch/sh/boot/dts

[DO NOT MERGE v6 29/37] sh: SH7751R SoC Internal peripheral definition dtsi.

2024-01-09 Thread Yoshinori Sato
SH7751R internal peripherals device tree. Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/sh7751r.dtsi | 148 ++ 1 file changed, 148 insertions(+) create mode 100644 arch/sh/boot/dts/sh7751r.dtsi diff --git a/arch/sh/boot/dts/sh7751r.dtsi b/arch/sh/boot/dts

[DO NOT MERGE v6 28/37] dt-bindings: soc: renesas: sh: Add SH7751 based target

2024-01-09 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- .../devicetree/bindings/soc/renesas/sh.yaml | 32 +++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/renesas/sh.yaml diff --git a/Documentation/devicetree/bindings/soc/renesas/sh.yaml b

[DO NOT MERGE v6 27/37] dt-bindings: ata: ata-generic: Add new targets

2024-01-09 Thread Yoshinori Sato
Added new ata-generic target. - iodata,usl-5p-ata - renesas,rts7751r2d-ata Each boards have simple IDE Interface. Use ATA generic driver. Signed-off-by: Yoshinori Sato --- Documentation/devicetree/bindings/ata/ata-generic.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation

[DO NOT MERGE v6 26/37] dt-bindings: vendor-prefixes: Add smi

2024-01-09 Thread Yoshinori Sato
Add Silicon Mortion Technology Corporation https://www.siliconmotion.com/ Signed-off-by: Yoshinori Sato --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation

[DO NOT MERGE v6 25/37] dt-bindings: vendor-prefixes: Add iodata

2024-01-09 Thread Yoshinori Sato
Add IO DATA DEVICE INC. https://www.iodata.com/ Signed-off-by: Yoshinori Sato --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor

[DO NOT MERGE v6 23/37] mfd: sm501: Convert platform_data to OF property

2024-01-09 Thread Yoshinori Sato
Various parameters of SM501 can be set using platform_data, so parameters cannot be passed in the DeviceTree target. Expands the parameters set in platform_data so that they can be specified using DeviceTree properties. Signed-off-by: Yoshinori Sato --- drivers/mfd/sm501.c | 436

[DO NOT MERGE v6 24/37] dt-binding: sh: cpus: Add SH CPUs json-schema

2024-01-09 Thread Yoshinori Sato
Renesas SH series and compatible ISA CPUs. Signed-off-by: Yoshinori Sato --- .../devicetree/bindings/sh/cpus.yaml | 74 +++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/sh/cpus.yaml diff --git a/Documentation/devicetree

[DO NOT MERGE v6 21/37] dt-bindings: serial: renesas, scif: Add scif-sh7751.

2024-01-09 Thread Yoshinori Sato
Add Renesas SH7751 SCIF. Signed-off-by: Yoshinori Sato --- Documentation/devicetree/bindings/serial/renesas,scif.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/renesas,scif.yaml b/Documentation/devicetree/bindings/serial/renesas,scif.yaml

[DO NOT MERGE v6 22/37] dt-bindings: display: smi, sm501: SMI SM501 binding json-schema

2024-01-09 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- .../bindings/display/smi,sm501.yaml | 417 ++ 1 file changed, 417 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/smi,sm501.yaml diff --git a/Documentation/devicetree/bindings/display/smi,sm501.yaml b

[DO NOT MERGE v6 20/37] serial: sh-sci: fix SH4 OF support.

2024-01-09 Thread Yoshinori Sato
- fix earlycon name. - fix earlyprintk hung (NULL pointer reference). - fix SERIAL_SH_SCI_EARLYCON enablement Signed-off-by: Yoshinori Sato Reviewed-by: Geert Uytterhoeven --- drivers/tty/serial/Kconfig | 2 +- drivers/tty/serial/sh-sci.c | 6 +++--- 2 files changed, 4 insertions(+), 4

[DO NOT MERGE v6 19/37] dt-bindings: interrupt-controller: renesas, sh7751-irl-ext: Add json-schema

2024-01-09 Thread Yoshinori Sato
Renesas SH7751 external interrupt encoder json-schema. Signed-off-by: Yoshinori Sato --- .../renesas,sh7751-irl-ext.yaml | 72 +++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,sh7751-irl

[DO NOT MERGE v6 18/37] irqchip: SH7751 external interrupt encoder with enable gate.

2024-01-09 Thread Yoshinori Sato
SH7751 have 15 level external interrupt. It is typically connected to the CPU through a priority encoder that can suppress requests. This driver provides a way to control those hardware with irqchip. Signed-off-by: Yoshinori Sato --- drivers/irqchip/Kconfig | 7 + drivers

[DO NOT MERGE v6 15/37] clk: renesas: Add SH7750/7751 CPG Driver

2024-01-09 Thread Yoshinori Sato
Renesas SH7750 and SH7751 series CPG driver. This driver supported frequency control and clock gating. Signed-off-by: Yoshinori Sato --- drivers/clk/renesas/Kconfig | 16 +- drivers/clk/renesas/Makefile | 1 + drivers/clk/renesas/clk-sh7750.c | 498 +++ 3

[DO NOT MERGE v6 17/37] dt-bindings: interrupt-controller: renesas, sh7751-intc: Add json-schema

2024-01-09 Thread Yoshinori Sato
Renesas SH7751 INTC json-schema. Signed-off-by: Yoshinori Sato --- .../renesas,sh7751-intc.yaml | 105 ++ 1 file changed, 105 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,sh7751-intc.yaml diff --git

[DO NOT MERGE v6 14/37] clk: Compatible with narrow registers

2024-01-09 Thread Yoshinori Sato
-off-by: Yoshinori Sato --- drivers/clk/clk-divider.c| 56 drivers/clk/clk-gate.c | 56 +++- include/linux/clk-provider.h | 22 ++ 3 files changed, 97 insertions(+), 37 deletions(-) diff --git a/drivers/clk

[DO NOT MERGE v6 16/37] irqchip: Add SH7751 INTC driver

2024-01-09 Thread Yoshinori Sato
Renesas SH7751 Internal interrupt controller driver. Signed-off-by: Yoshinori Sato --- drivers/irqchip/Kconfig | 8 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-renesas-sh7751.c | 313 +++ 3 files changed, 322 insertions(+) create

[DO NOT MERGE v6 10/37] sh: Common PCI Framework driver support.

2024-01-09 Thread Yoshinori Sato
Add New OF based PCI Host driver. This driver conflicts some point in legacy PCI driver. To resolve the conflict, I made some changes to the legacy driver. Signed-off-by: Yoshinori Sato --- arch/sh/include/asm/io.h | 6 ++ arch/sh/include/asm/pci.h | 4 arch/sh/kernel/iomap.c

[DO NOT MERGE v6 13/37] dt-bindings: clock: sh7750-cpg: Add renesas, sh7750-cpg header.

2024-01-09 Thread Yoshinori Sato
SH7750 CPG Clock output define. Signed-off-by: Yoshinori Sato --- .../bindings/clock/renesas,sh7750-cpg.yaml| 103 ++ include/dt-bindings/clock/sh7750-cpg.h| 26 + 2 files changed, 129 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock

[DO NOT MERGE v6 12/37] dt-bindings: pci: pci-sh7751: Add SH7751 PCI

2024-01-09 Thread Yoshinori Sato
Renesas SH7751 PCI Controller json-schema. Signed-off-by: Yoshinori Sato --- .../bindings/pci/renesas,sh7751-pci.yaml | 150 ++ 1 file changed, 150 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/renesas,sh7751-pci.yaml diff --git a/Documentation

[DO NOT MERGE v6 11/37] pci: pci-sh7751: Add SH7751 PCI driver

2024-01-09 Thread Yoshinori Sato
Renesas SH7751 CPU Internal PCI Controller driver. Signed-off-by: Yoshinori Sato --- drivers/pci/controller/Kconfig | 9 + drivers/pci/controller/Makefile | 1 + drivers/pci/controller/pci-sh7751.c | 392 3 files changed, 402 insertions(+) create mode

[DO NOT MERGE v6 09/37] dt-bindings: timer: renesas, tmu: add renesas, tmu-sh7750

2024-01-09 Thread Yoshinori Sato
Add SH7750 TMU entry. I wanted to replace interrupts and interrupt-names in the if compatible is "renesas,tmu-7750", but it seems that I can't rewrite it as expected. This resulted in a redundant conditional statement. Signed-off-by: Yoshinori Sato --- .../bindings/timer/renesa

[DO NOT MERGE v6 08/37] clocksource: sh_tmu: CLOCKSOURCE support.

2024-01-09 Thread Yoshinori Sato
Allows initialization as CLOCKSOURCE. Signed-off-by: Yoshinori Sato --- drivers/clocksource/sh_tmu.c | 161 +++ 1 file changed, 106 insertions(+), 55 deletions(-) diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c index be81c00f

[DO NOT MERGE v6 07/37] sh: Fix COMMON_CLK support in CONFIG_OF=y.

2024-01-09 Thread Yoshinori Sato
Initialize the clock and timer using the COMMON_CLK procedure. sh's earlytimer mechanism doesn't work properly in OF, so timer initialization is delayed. If CONFIG_OF=y, perform the general timer initialization procedure. Signed-off-by: Yoshinori Sato --- arch/sh/boards/of-generic.c | 28

[DO NOT MERGE v6 05/37] sh: GENERIC_IRQ_CHIP support for CONFIG_OF=y

2024-01-09 Thread Yoshinori Sato
Remove unused function prototype. Add helper update_sr_imask. use for SH7751 irq driver. Add stub intc_finalize. Signed-off-by: Yoshinori Sato --- arch/sh/include/asm/io.h | 2 ++ arch/sh/include/asm/irq.h | 10 -- arch/sh/kernel/cpu/Makefile| 5 + arch/sh/kernel

[DO NOT MERGE v6 06/37] sh: kernel/setup Update DT support.

2024-01-09 Thread Yoshinori Sato
Fix extrnal fdt initialize and bootargs. Signed-off-by: Yoshinori Sato --- arch/sh/kernel/setup.c | 33 - 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 3d80515298d2..e3f34027ac9e 100644

[DO NOT MERGE v6 03/37] sh: Enable OF support for build and configuration.

2024-01-09 Thread Yoshinori Sato
IRQ, CLK and PCI will be migrated to a common driver framework. So if OF, disable the SH specific drivers. Signed-off-by: Yoshinori Sato --- arch/sh/Kconfig | 11 ++- arch/sh/drivers/Makefile| 2 ++ arch/sh/kernel/cpu/Makefile | 9 +++-- arch/sh/kernel

[DO NOT MERGE v6 04/37] dt-bindings: interrupt-controller: Add header for Renesas SH3/4 INTC.

2024-01-09 Thread Yoshinori Sato
Renesas SH7751 Interrupt controller priority register define. Signed-off-by: Yoshinori Sato --- .../renesas,sh7751-intc.h | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 include/dt-bindings/interrupt-controller/renesas,sh7751-intc.h diff

[DO NOT MERGE v6 02/37] sh: Kconfig unified OF supported targets.

2024-01-09 Thread Yoshinori Sato
Targets that support OF should be treated as one board. Signed-off-by: Yoshinori Sato --- arch/sh/Kconfig| 1 + arch/sh/boards/Kconfig | 24 ++-- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 7500521b2b98

[DO NOT MERGE v6 01/37] sh: passing FDT address to kernel startup.

2024-01-09 Thread Yoshinori Sato
R4 is caller saved in SH ABI. Save it so it doesn't get corrupted until it's needed for initialization. Signed-off-by: Yoshinori Sato --- arch/sh/boot/compressed/head_32.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/sh/boot/compressed/head_32.S b/arch/sh/boot

[DO NOT MERGE v6 00/37] Device Tree support for SH7751 based board

2024-01-09 Thread Yoshinori Sato
. - 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 (37): sh: passing FDT address to kernel startup. sh: Kconfig unified OF supported targets. sh

[DO NOT MERGE v5 25/37] dt-bindings: vendor-prefixes: Add iodata

2023-12-05 Thread Yoshinori Sato
Add IO DATA DEVICE INC. https://www.iodata.com/ Signed-off-by: Yoshinori Sato --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor

[DO NOT MERGE v5 17/37] dt-bindings: interrupt-controller: renesas, sh7751-intc: Add json-schema

2023-12-05 Thread Yoshinori Sato
Renesas SH7751 INTC json-schema. Signed-off-by: Yoshinori Sato --- .../renesas,sh7751-intc.yaml | 105 ++ 1 file changed, 105 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,sh7751-intc.yaml diff --git

[DO NOT MERGE v5 11/37] pci: pci-sh7751: Add SH7751 PCI driver

2023-12-05 Thread Yoshinori Sato
Renesas SH7751 CPU Internal PCI Controller driver. Signed-off-by: Yoshinori Sato --- drivers/pci/controller/Kconfig | 9 + drivers/pci/controller/Makefile | 1 + drivers/pci/controller/pci-sh7751.c | 302 drivers/pci/controller/pci-sh7751.h | 76

[DO NOT MERGE v5 28/37] dt-bindings: soc: renesas: sh: Add SH7751 based target

2023-12-05 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- .../devicetree/bindings/soc/renesas/sh.yaml | 32 +++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/renesas/sh.yaml diff --git a/Documentation/devicetree/bindings/soc/renesas/sh.yaml b

[DO NOT MERGE v5 05/37] sh: GENERIC_IRQ_CHIP support for CONFIG_OF=y

2023-12-05 Thread Yoshinori Sato
Remove unused function prototype. Add helper update_sr_imask. use for SH7751 irq driver. Add stub intc_finalize. Signed-off-by: Yoshinori Sato --- arch/sh/include/asm/irq.h | 10 -- arch/sh/kernel/cpu/Makefile| 5 + arch/sh/kernel/cpu/irq/imask.c | 17

[DO NOT MERGE v5 10/37] sh: Common PCI Framework driver support.

2023-12-05 Thread Yoshinori Sato
Add New OF based PCI Host driver. This driver conflicts some point in legacy PCI driver. To resolve the conflict, I made some changes to the legacy driver. Signed-off-by: Yoshinori Sato --- arch/sh/drivers/pci/pci.c | 6 -- arch/sh/include/asm/io.h | 6 ++ arch/sh/include/asm/pci.h

[DO NOT MERGE v5 16/37] irqchip: Add SH7751 INTC driver

2023-12-05 Thread Yoshinori Sato
Renesas SH7751 Internal interrupt controller driver. Signed-off-by: Yoshinori Sato --- drivers/irqchip/Kconfig | 8 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-renesas-sh7751.c | 290 +++ 3 files changed, 299 insertions(+) create

[DO NOT MERGE v5 20/37] serial: sh-sci: fix SH4 OF support.

2023-12-05 Thread Yoshinori Sato
- fix earlycon name. - fix earlyprintk hung (NULL pointer reference). Signed-off-by: Yoshinori Sato --- drivers/tty/serial/Kconfig | 2 +- drivers/tty/serial/sh-sci.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial

[DO NOT MERGE v5 23/37] mfd: sm501: Convert platform_data to OF property

2023-12-05 Thread Yoshinori Sato
Various parameters of SM501 can be set using platform_data, so parameters cannot be passed in the DeviceTree target. Expands the parameters set in platform_data so that they can be specified using DeviceTree properties. Signed-off-by: Yoshinori Sato --- drivers/mfd/sm501.c | 99

[DO NOT MERGE v5 21/37] dt-bindings: serial: renesas, scif: Add scif-sh7751.

2023-12-05 Thread Yoshinori Sato
Add Renesas SH7751 SCIF. Signed-off-by: Yoshinori Sato --- Documentation/devicetree/bindings/serial/renesas,scif.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/renesas,scif.yaml b/Documentation/devicetree/bindings/serial/renesas,scif.yaml

[DO NOT MERGE v5 34/37] sh: Add dtbs target support.

2023-12-05 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/Makefile | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/sh/boot/dts/Makefile b/arch/sh/boot/dts/Makefile index 4a6dec9714a9..e6b93360c213 100644 --- a/arch/sh/boot/dts/Makefile +++ b/arch/sh/boot/dts/Makefile @@ -1,2 +1,7

[DO NOT MERGE v5 31/37] sh: Add IO DATA LANDISK dts

2023-12-05 Thread Yoshinori Sato
IO DATA DEVICE Inc. LANDISK HDL-U devicetree. Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/landisk.dts | 74 1 file changed, 74 insertions(+) create mode 100644 arch/sh/boot/dts/landisk.dts diff --git a/arch/sh/boot/dts/landisk.dts b/arch/sh/boot/dts

[DO NOT MERGE v5 02/37] sh: Kconfig unified OF supported targets.

2023-12-05 Thread Yoshinori Sato
Targets that support OF should be treated as one board. Signed-off-by: Yoshinori Sato --- arch/sh/boards/Kconfig | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/arch/sh/boards/Kconfig b/arch/sh/boards/Kconfig index 109bec4dad94..e7e52779ef62 100644

[DO NOT MERGE v5 09/37] dt-bindings: timer: renesas, tmu: add renesas, tmu-sh7750

2023-12-05 Thread Yoshinori Sato
Add SH7750 TMU entry. Signed-off-by: Yoshinori Sato --- .../devicetree/bindings/timer/renesas,tmu.yaml| 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/timer/renesas,tmu.yaml b/Documentation/devicetree/bindings/timer

[DO NOT MERGE v5 24/37] dt-binding: sh: cpus: Add SH CPUs json-schema

2023-12-05 Thread Yoshinori Sato
Renesas SH series and compatible ISA CPUs. Signed-off-by: Yoshinori Sato --- .../devicetree/bindings/sh/cpus.yaml | 73 +++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/sh/cpus.yaml diff --git a/Documentation/devicetree

[DO NOT MERGE v5 32/37] sh: Add IO DATA USL-5P dts

2023-12-05 Thread Yoshinori Sato
IO DATA DEVICE Inc. USL-5P devicetree. Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/usl-5p.dts | 84 + 1 file changed, 84 insertions(+) create mode 100644 arch/sh/boot/dts/usl-5p.dts diff --git a/arch/sh/boot/dts/usl-5p.dts b/arch/sh/boot/dts/usl

[DO NOT MERGE v5 26/37] dt-bindings: vendor-prefixes: Add smi

2023-12-05 Thread Yoshinori Sato
Add Silicon Mortion Technology Corporation https://www.siliconmotion.com/ Signed-off-by: Yoshinori Sato --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation

[DO NOT MERGE v5 03/37] sh: Enable OF support for build and configuration.

2023-12-05 Thread Yoshinori Sato
IRQ, CLK and PCI will be migrated to a common driver framework. So if OF, disable the SH specific drivers. Signed-off-by: Yoshinori Sato --- arch/sh/Kconfig | 11 ++- arch/sh/drivers/Makefile| 2 ++ arch/sh/kernel/cpu/Makefile | 9 +++-- arch/sh/kernel

[DO NOT MERGE v5 00/37] Device Tree support for SH7751 based board

2023-12-05 Thread Yoshinori Sato
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 (37): sh: passing FDT address to kernel startup. sh: Kconfig

[DO NOT MERGE v5 22/37] dt-bindings: display: smi, sm501: SMI SM501 binding json-schema

2023-12-05 Thread Yoshinori Sato
Define SM501 functions and modes. Signed-off-by: Yoshinori Sato --- .../bindings/display/smi,sm501.yaml | 134 ++ include/dt-bindings/display/sm501.h | 25 2 files changed, 159 insertions(+) create mode 100644 Documentation/devicetree/bindings/display

[DO NOT MERGE v5 29/37] sh: SH7751R SoC Internal peripheral definition dtsi.

2023-12-05 Thread Yoshinori Sato
SH7751R internal peripherals device tree. Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/sh7751r.dtsi | 150 ++ 1 file changed, 150 insertions(+) create mode 100644 arch/sh/boot/dts/sh7751r.dtsi diff --git a/arch/sh/boot/dts/sh7751r.dtsi b/arch/sh/boot/dts

[DO NOT MERGE v5 07/37] sh: Fix COMMON_CLK support in CONFIG_OF=y.

2023-12-05 Thread Yoshinori Sato
Initialize the clock and timer using the COMMON_CLK procedure. sh's earlytimer mechanism doesn't work properly in OF, so timer initialization is delayed. If CONFIG_OF=y, perform the general timer initialization procedure. Signed-off-by: Yoshinori Sato --- arch/sh/boards/of-generic.c | 28

[DO NOT MERGE v5 14/37] clk: Compatible with narrow registers

2023-12-05 Thread Yoshinori Sato
divider and gate only support 32-bit registers. Older hardware uses narrower registers, so I want to be able to handle 8-bit and 16-bit wide registers. Signed-off-by: Yoshinori Sato --- drivers/clk/clk-divider.c| 56 drivers/clk/clk-gate.c | 56

[DO NOT MERGE v5 15/37] clk: renesas: Add SH7750/7751 CPG Driver

2023-12-05 Thread Yoshinori Sato
Renesas SH7750 and SH7751 series CPG driver. This driver supported frequency control and clock gating. Signed-off-by: Yoshinori Sato --- drivers/clk/renesas/Kconfig | 16 +- drivers/clk/renesas/Makefile | 1 + drivers/clk/renesas/clk-sh7750.c | 498 +++ 3

[DO NOT MERGE v5 04/37] dt-bindings: interrupt-controller: Add header for Renesas SH3/4 INTC.

2023-12-05 Thread Yoshinori Sato
Renesas SH7751 Interrupt controller priority register define. Signed-off-by: Yoshinori Sato --- .../interrupt-controller/sh7751-intc.h| 21 +++ 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings/interrupt-controller/sh7751-intc.h diff --git

[DO NOT MERGE v5 12/37] dt-bindings: pci: pci-sh7751: Add SH7751 PCI

2023-12-05 Thread Yoshinori Sato
Renesas SH7751 PCI Controller json-schema. Signed-off-by: Yoshinori Sato --- .../bindings/pci/renesas,sh7751-pci.yaml | 128 ++ 1 file changed, 128 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/renesas,sh7751-pci.yaml diff --git a/Documentation

[DO NOT MERGE v5 30/37] sh: add RTS7751R2D Plus DTS

2023-12-05 Thread Yoshinori Sato
Renesas RTS7751R2D Plus devicetree. Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/rts7751r2dplus.dts | 157 1 file changed, 157 insertions(+) create mode 100644 arch/sh/boot/dts/rts7751r2dplus.dts diff --git a/arch/sh/boot/dts/rts7751r2dplus.dts b/arch/sh

[DO NOT MERGE v5 27/37] dt-bindings: ata: ata-generic: Add new targets

2023-12-05 Thread Yoshinori Sato
Added new ata-generic target. - iodata,usl-5p-ata - renesas,rts7751r2d-ata Each boards have simple IDE Interface. Use ATA generic driver. Signed-off-by: Yoshinori Sato --- Documentation/devicetree/bindings/ata/ata-generic.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation

[DO NOT MERGE v5 33/37] sh: j2_mimas_v2.dts update

2023-12-05 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/j2_mimas_v2.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/boot/dts/j2_mimas_v2.dts b/arch/sh/boot/dts/j2_mimas_v2.dts index fa9562f78d53..5dfe20866a1c 100644 --- a/arch/sh/boot/dts/j2_mimas_v2.dts +++ b/arch/sh

[DO NOT MERGE v5 01/37] sh: passing FDT address to kernel startup.

2023-12-05 Thread Yoshinori Sato
R4 is caller saved in SH ABI. Save it so it doesn't get corrupted until it's needed for initialization. Signed-off-by: Yoshinori Sato --- arch/sh/boot/compressed/head_32.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/sh/boot/compressed/head_32.S b/arch/sh/boot

[DO NOT MERGE v5 36/37] sh: LANDISK OF defconfig

2023-12-05 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/configs/landisk-of_defconfig | 111 +++ 1 file changed, 111 insertions(+) create mode 100644 arch/sh/configs/landisk-of_defconfig diff --git a/arch/sh/configs/landisk-of_defconfig b/arch/sh/configs/landisk-of_defconfig new file

[DO NOT MERGE v5 13/37] dt-bindings: clock: sh7750-cpg: Add renesas, sh7750-cpg header.

2023-12-05 Thread Yoshinori Sato
SH7750 CPG Clock output define. Signed-off-by: Yoshinori Sato --- .../bindings/clock/renesas,sh7750-cpg.yaml| 103 ++ include/dt-bindings/clock/sh7750-cpg.h| 26 + 2 files changed, 129 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock

[DO NOT MERGE v5 08/37] clocksource: sh_tmu: CLOCKSOURCE support.

2023-12-05 Thread Yoshinori Sato
Allows initialization as CLOCKSOURCE. Signed-off-by: Yoshinori Sato --- drivers/clocksource/sh_tmu.c | 161 +++ 1 file changed, 106 insertions(+), 55 deletions(-) diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c index be81c00f

[DO NOT MERGE v5 19/37] dt-bindings: interrupt-controller: renesas, sh7751-irl-ext: Add json-schema

2023-12-05 Thread Yoshinori Sato
Renesas SH7751 external interrupt encoder json-schema. Signed-off-by: Yoshinori Sato --- .../renesas,sh7751-irl-ext.yaml | 83 +++ 1 file changed, 83 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,sh7751-irl

[DO NOT MERGE v5 18/37] irqchip: SH7751 IRL external encoder with enable gate.

2023-12-05 Thread Yoshinori Sato
SH7751 have 15 level external interrupt. It is typically connected to the CPU through a priority encoder that can suppress requests. This driver provides a way to control those hardware with irqchip. Signed-off-by: Yoshinori Sato --- drivers/irqchip/Kconfig | 7 + drivers

[DO NOT MERGE v5 06/37] sh: kernel/setup Update DT support.

2023-12-05 Thread Yoshinori Sato
Fix extrnal fdt initialize and bootargs. Signed-off-by: Yoshinori Sato --- arch/sh/kernel/setup.c | 51 -- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 3d80515298d2..b299abff68e0

[DO NOT MERGE v5 35/37] sh: RTS7751R2D Plus OF defconfig

2023-12-05 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/configs/rts7751r2dplus-of_defconfig | 93 + 1 file changed, 93 insertions(+) create mode 100644 arch/sh/configs/rts7751r2dplus-of_defconfig diff --git a/arch/sh/configs/rts7751r2dplus-of_defconfig b/arch/sh/configs/rts7751r2dplus

[DO NOT MERGE v5 37/37] sh: j2_defconfig: update

2023-12-05 Thread Yoshinori Sato
I've changed some symbols related to DeviceTree, so let's take care of those changes. Signed-off-by: Yoshinori Sato --- arch/sh/configs/j2_defconfig | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/sh/configs/j2_defconfig b/arch/sh/configs/j2_defconfig index

<    1   2