[RESEND v7 36/37] sh: LANDISK OF defconfig

2024-04-03 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

[RESEND v7 35/37] sh: RTS7751R2D Plus OF defconfig

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

[RESEND v7 32/37] sh: Add IO DATA USL-5P dts

2024-04-03 Thread Yoshinori Sato
IO DATA DEVICE Inc. USL-5P devicetree. Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/usl-5p.dts | 85 + 1 file changed, 85 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

[RESEND v7 34/37] sh: Add dtbs target support.

2024-04-03 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

[RESEND v7 33/37] sh: j2_mimas_v2.dts update

2024-04-03 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

[RESEND v7 30/37] sh: add RTS7751R2D Plus DTS

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

[RESEND v7 29/37] sh: SH7751R SoC Internal peripheral definition dtsi.

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

[RESEND v7 14/37] clk: Compatible with narrow registers

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

[RESEND v7 28/37] dt-bindings: soc: renesas: sh: Add SH7751 based target

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

[RESEND v7 37/37] sh: j2_defconfig: update

2024-04-03 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

[RESEND v7 31/37] sh: Add IO DATA LANDISK dts

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

[RESEND v7 25/37] dt-binding: sh: cpus: Add SH CPUs json-schema

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

[RESEND v7 22/37] dt-bindings: display: smi, sm501: SMI SM501 binding json-schema

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

[RESEND v7 11/37] pci: pci-sh7751: Add SH7751 PCI driver

2024-04-03 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 | 342 3 files changed, 352 insertions(+) create mode

[RESEND v7 23/37] dt-bindings: display: sm501 register definition helper

2024-04-03 Thread Yoshinori Sato
Miscellaneous Timing and Miscellaneous Control registers definition. Signed-off-by: Yoshinori Sato --- include/dt-bindings/display/sm501.h | 76 + 1 file changed, 76 insertions(+) create mode 100644 include/dt-bindings/display/sm501.h diff --git a/include/dt

[RESEND v7 27/37] dt-bindings: ata: ata-generic: Add new targets

2024-04-03 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

[RESEND v7 26/37] dt-bindings: vendor-prefixes: Add iodata

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

[RESEND v7 24/37] mfd: sm501: Convert platform_data to OF property

2024-04-03 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 | 315

[RESEND v7 17/37] dt-bindings: interrupt-controller: renesas, sh7751-intc: Add json-schema

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

[RESEND v7 12/37] dt-bindings: pci: pci-sh7751: Add SH7751 PCI

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

[RESEND v7 08/37] clocksource: sh_tmu: CLOCKSOURCE support.

2024-04-03 Thread Yoshinori Sato
Allows initialization as CLOCKSOURCE. Signed-off-by: Yoshinori Sato --- drivers/clocksource/sh_tmu.c | 198 --- 1 file changed, 134 insertions(+), 64 deletions(-) diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c index be81c00f

[RESEND v7 21/37] dt-bindings: serial: renesas, scif: Add scif-sh7751.

2024-04-03 Thread Yoshinori Sato
Add Renesas SH7751 SCIF. Signed-off-by: Yoshinori Sato Reviewed-by: Geert Uytterhoeven --- 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

[RESEND v7 19/37] dt-bindings: interrupt-controller: renesas, sh7751-irl-ext: Add json-schema

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

[RESEND v7 05/37] sh: GENERIC_IRQ_CHIP support for CONFIG_OF=y

2024-04-03 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

[RESEND v7 18/37] irqchip: SH7751 external interrupt encoder with enable gate.

2024-04-03 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

[RESEND v7 20/37] serial: sh-sci: fix SH4 OF support.

2024-04-03 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

[RESEND v7 16/37] irqchip: Add SH7751 INTC driver

2024-04-03 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 | 282 +++ 3 files changed, 291 insertions(+) create

[RESEND v7 09/37] dt-binding: Add compatible SH7750 SoC

2024-04-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- Documentation/devicetree/bindings/timer/renesas,tmu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/renesas,tmu.yaml b/Documentation/devicetree/bindings/timer/renesas,tmu.yaml index 84bbe15028a1..265d286ffb2f

[RESEND v7 15/37] clk: renesas: Add SH7750/7751 CPG Driver

2024-04-03 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 | 13 +- drivers/clk/renesas/Makefile | 1 + drivers/clk/renesas/clk-sh7750.c | 480 +++ 3

[RESEND v7 13/37] dt-bindings: clock: sh7750-cpg: Add renesas, sh7750-cpg header.

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

[RESEND v7 10/37] sh: Common PCI Framework driver support.

2024-04-03 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

[RESEND v7 06/37] sh: kernel/setup Update DT support.

2024-04-03 Thread Yoshinori Sato
Fix extrnal fdt initialize and bootargs. Signed-off-by: Yoshinori Sato --- arch/sh/Kconfig | 23 +++ arch/sh/include/asm/setup.h | 1 + arch/sh/kernel/setup.c | 36 +++- 3 files changed, 35 insertions(+), 25 deletions

[RESEND v7 07/37] sh: Fix COMMON_CLK support in CONFIG_OF=y.

2024-04-03 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

[RESEND v7 02/37] sh: Kconfig unified OF supported targets.

2024-04-03 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 | 23 +-- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 2ad3e29f0ebe

[RESEND v7 04/37] dt-bindings: interrupt-controller: Add header for Renesas SH3/4 INTC.

2024-04-03 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

[RESEND v7 03/37] sh: Enable OF support for build and configuration.

2024-04-03 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

[RESEND v7 01/37] sh: passing FDT address to kernel startup.

2024-04-03 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 Reviewed-by: Geert Uytterhoeven --- arch/sh/boot/compressed/head_32.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/sh/boot

[PATCH v7 02/37] sh: Kconfig unified OF supported targets.

2024-04-03 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 | 23 +-- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 2ad3e29f0ebe

[PATCH v7 13/37] dt-bindings: clock: sh7750-cpg: Add renesas, sh7750-cpg header.

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

[PATCH v7 03/37] sh: Enable OF support for build and configuration.

2024-04-03 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

[PATCH v7 05/37] sh: GENERIC_IRQ_CHIP support for CONFIG_OF=y

2024-04-03 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

[PATCH v7 01/37] sh: passing FDT address to kernel startup.

2024-04-03 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 Reviewed-by: Geert Uytterhoeven --- arch/sh/boot/compressed/head_32.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/sh/boot

[PATCH v7 12/37] dt-bindings: pci: pci-sh7751: Add SH7751 PCI

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

[PATCH v7 21/37] dt-bindings: serial: renesas,scif: Add scif-sh7751.

2024-04-03 Thread Yoshinori Sato
Add Renesas SH7751 SCIF. Signed-off-by: Yoshinori Sato Reviewed-by: Geert Uytterhoeven --- 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

[PATCH v7 14/37] clk: Compatible with narrow registers

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

[PATCH v7 09/37] dt-binding: Add compatible SH7750 SoC

2024-04-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- Documentation/devicetree/bindings/timer/renesas,tmu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/renesas,tmu.yaml b/Documentation/devicetree/bindings/timer/renesas,tmu.yaml index 84bbe15028a1..265d286ffb2f

[PATCH v7 08/37] clocksource: sh_tmu: CLOCKSOURCE support.

2024-04-03 Thread Yoshinori Sato
Allows initialization as CLOCKSOURCE. Signed-off-by: Yoshinori Sato --- drivers/clocksource/sh_tmu.c | 198 --- 1 file changed, 134 insertions(+), 64 deletions(-) diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c index be81c00f

[PATCH v7 23/37] dt-bindings: display: sm501 register definition helper

2024-04-03 Thread Yoshinori Sato
Miscellaneous Timing and Miscellaneous Control registers definition. Signed-off-by: Yoshinori Sato --- include/dt-bindings/display/sm501.h | 76 + 1 file changed, 76 insertions(+) create mode 100644 include/dt-bindings/display/sm501.h diff --git a/include/dt

[PATCH v7 16/37] irqchip: Add SH7751 INTC driver

2024-04-03 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 | 282 +++ 3 files changed, 291 insertions(+) create

[PATCH v7 00/37] Device Tree support for SH7751 based board

2024-04-03 Thread Yoshinori Sato
. - 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 unified

[PATCH v7 07/37] sh: Fix COMMON_CLK support in CONFIG_OF=y.

2024-04-03 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

[PATCH v7 17/37] dt-bindings: interrupt-controller: renesas, sh7751-intc: Add json-schema

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

[PATCH v7 04/37] dt-bindings: interrupt-controller: Add header for Renesas SH3/4 INTC.

2024-04-03 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

[PATCH v7 20/37] serial: sh-sci: fix SH4 OF support.

2024-04-03 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

[PATCH v7 06/37] sh: kernel/setup Update DT support.

2024-04-03 Thread Yoshinori Sato
Fix extrnal fdt initialize and bootargs. Signed-off-by: Yoshinori Sato --- arch/sh/Kconfig | 23 +++ arch/sh/include/asm/setup.h | 1 + arch/sh/kernel/setup.c | 36 +++- 3 files changed, 35 insertions(+), 25 deletions

[PATCH v7 11/37] pci: pci-sh7751: Add SH7751 PCI driver

2024-04-03 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 | 342 3 files changed, 352 insertions(+) create mode

[PATCH v7 10/37] sh: Common PCI Framework driver support.

2024-04-03 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

[PATCH v7 22/37] dt-bindings: display: smi, sm501: SMI SM501 binding json-schema

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

[PATCH v7 19/37] dt-bindings: interrupt-controller: renesas, sh7751-irl-ext: Add json-schema

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

[PATCH v7 15/37] clk: renesas: Add SH7750/7751 CPG Driver

2024-04-03 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 | 13 +- drivers/clk/renesas/Makefile | 1 + drivers/clk/renesas/clk-sh7750.c | 480 +++ 3

[PATCH v7 18/37] irqchip: SH7751 external interrupt encoder with enable gate.

2024-04-03 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

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

2024-01-17 Thread Yoshinori Sato
On Tue, 09 Jan 2024 21:30:34 +0900, Linus Walleij wrote: > > Hi Yoshinori, > > thanks for your patch! > > On Tue, Jan 9, 2024 at 9:24 AM Yoshinori Sato > wrote: > > > + renesas,icr-irlm: > > +$ref: /schemas/types.yaml#/definitions/flag > >

[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

  1   2   >