diff mbox series

[RESEND,RFC,01/12] sh: Add OF target boards.

Message ID 95d8b86480c60012252b37b9b13e5f709a2ec177.1693444193.git.ysato@users.sourceforge.jp (mailing list archive)
State New, archived
Headers show
Series DeviceTree support for SH7751 based boards. | expand

Commit Message

Yoshinori Sato Aug. 31, 2023, 1:11 a.m. UTC
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
---
 arch/sh/Kconfig        | 12 +++++++++---
 arch/sh/boards/Kconfig | 28 ++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 3 deletions(-)

Comments

Geert Uytterhoeven Sept. 1, 2023, 12:22 p.m. UTC | #1
Hi Sato-san,

On Thu, Aug 31, 2023 at 5:19 AM Yoshinori Sato
<ysato@users.sourceforge.jp> wrote:
> Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

Thanks for your patch!

> --- a/arch/sh/Kconfig
> +++ b/arch/sh/Kconfig

> @@ -363,14 +363,17 @@ config CPU_SUBTYPE_SH7091
>  config CPU_SUBTYPE_SH7750R
>         bool "Support SH7750R processor"
>         select CPU_SH4
> +       select COMMON_CLK_SH7750 if COMMMON_CLK
>
>  config CPU_SUBTYPE_SH7750S
>         bool "Support SH7750S processor"
>         select CPU_SH4
> +       select COMMON_CLK_SH7750 if COMMMON_CLK
>
>  config CPU_SUBTYPE_SH7751
>         bool "Support SH7751 processor"
>         select CPU_SH4
> +       select COMMON_CLK_SH7750 if COMMMON_CLK

Might be easier to handle this in the clock Kconfig, cfr. the various
conditional selects at the top of drivers/clk/renesas/Kconfig

>         help
>           Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
>           or if you have a HD6417751R CPU.
> @@ -378,6 +381,8 @@ config CPU_SUBTYPE_SH7751
>  config CPU_SUBTYPE_SH7751R
>         bool "Support SH7751R processor"
>         select CPU_SH4
> +       select COMMON_CLK_SH7750 if COMMMON_CLK
> +       select PCI_SH7751 if SH_DEVICE_TREE
>
>  config CPU_SUBTYPE_SH7760
>         bool "Support SH7760 processor"

> @@ -744,6 +749,7 @@ config ROMIMAGE_MMCIF
>  choice
>         prompt "Kernel command line"
>         optional
> +       depends on !SH_DEVICE_TREE

Why? On other architectures, overriding the kernel command line
is supported.  This is also useful in case of a builtin DTB.

>         default CMDLINE_OVERWRITE
>         help
>           Setting this option allows the kernel command line arguments
> diff --git a/arch/sh/boards/Kconfig b/arch/sh/boards/Kconfig
> index fafe15d3ba1d..ffdada2a128d 100644
> --- a/arch/sh/boards/Kconfig
> +++ b/arch/sh/boards/Kconfig
> @@ -16,9 +16,14 @@ config SH_DEVICE_TREE
>         bool
>         select OF
>         select OF_EARLY_FLATTREE
> +       select OF_ADDRESS

Not needed, as it is already enabled:

    config OF_ADDRESS
            def_bool y
            depends on !SPARC && (HAS_IOMEM || UML)

>         select TIMER_OF
>         select COMMON_CLK
>         select GENERIC_CALIBRATE_DELAY
> +       select GENERIC_IOMAP
> +       select GENERIC_IRQ_CHIP
> +       select SYS_SUPPORTS_PCI
> +       select GENERIC_PCI_IOMAP if PCI
>
>  config SH_JCORE_SOC
>         bool "J-Core SoC"
> @@ -161,6 +166,17 @@ config SH_RTS7751R2D
>           Select RTS7751R2D if configuring for a Renesas Technology
>           Sales SH-Graphics board.
>
> +config SH_RTS7751R2D_OF
> +       bool "RTS7751R2D (DeviceTree)"
> +       depends on CPU_SUBTYPE_SH7751R
> +       select HAVE_PCI
> +       select IO_TRAPPED if MMU
> +       select SH_DEVICE_TREE
> +       select COMMON_CLK

SH_DEVICE_TREE already selects COMMON_CLK.
(same for landisk)

> +       help
> +         Select RTS7751R2D if configuring for a Renesas Technology
> +         Sales SH-Graphics board. (Use DeviceTree)
> +
>  config SH_RSK
>         bool "Renesas Starter Kit"
>         depends on CPU_SUBTYPE_SH7201 || CPU_SUBTYPE_SH7203 || \

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Geert Uytterhoeven Sept. 1, 2023, 2:26 p.m. UTC | #2
Hi Sato-san,

On Thu, Aug 31, 2023 at 5:19 AM Yoshinori Sato
<ysato@users.sourceforge.jp> wrote:
> --- a/arch/sh/Kconfig
> +++ b/arch/sh/Kconfig

> @@ -702,7 +707,7 @@ config BUILTIN_DTB_SOURCE
>  config ZERO_PAGE_OFFSET
>         hex
>         default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
> -                               SH_7751_SOLUTION_ENGINE
> +                               SH_7751_SOLUTION_ENGINE || SH_RTS7751R2D_OF

This is the only user of SH_RTS7751R2D_OF. Can we get rid of it?

>         default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
>         default "0x00002000" if PAGE_SIZE_8KB
>         default "0x00001000"

> --- a/arch/sh/boards/Kconfig
> +++ b/arch/sh/boards/Kconfig
> @@ -161,6 +166,17 @@ config SH_RTS7751R2D
>           Select RTS7751R2D if configuring for a Renesas Technology
>           Sales SH-Graphics board.
>
> +config SH_RTS7751R2D_OF
> +       bool "RTS7751R2D (DeviceTree)"
> +       depends on CPU_SUBTYPE_SH7751R
> +       select HAVE_PCI
> +       select IO_TRAPPED if MMU
> +       select SH_DEVICE_TREE
> +       select COMMON_CLK
> +       help
> +         Select RTS7751R2D if configuring for a Renesas Technology
> +         Sales SH-Graphics board. (Use DeviceTree)
> +
>  config SH_RSK
>         bool "Renesas Starter Kit"
>         depends on CPU_SUBTYPE_SH7201 || CPU_SUBTYPE_SH7203 || \
> @@ -300,8 +316,20 @@ config SH_LANDISK
>         bool "LANDISK"
>         depends on CPU_SUBTYPE_SH7751R
>         select HAVE_PCI
> +       select SYS_SUPPORTS_PCI
> +       help
> +         I-O DATA DEVICE, INC. "LANDISK Series" support.
> +
> +config SH_LANDISK_OF
> +       bool "LANDISK (DeviceTree)"
> +       depends on CPU_SUBTYPE_SH7751R
> +       select HAVE_PCI
> +       select SYS_SUPPORTS_PCI
> +       select SH_DEVICE_TREE
> +       select COMMON_CLK
>         help
>           I-O DATA DEVICE, INC. "LANDISK Series" support.
> +         Use Device Tree.
>
>  config SH_TITAN
>         bool "TITAN"

Apart from the above, there are no users of the "<machine>_OF" symbols.
Do we need them?

Gr{oetje,eeting}s,

                        Geert
Yoshinori Sato Sept. 6, 2023, 8:05 a.m. UTC | #3
On Fri, 01 Sep 2023 23:26:10 +0900,
Geert Uytterhoeven wrote:
> 
> Hi Sato-san,
> 
> On Thu, Aug 31, 2023 at 5:19 AM Yoshinori Sato
> <ysato@users.sourceforge.jp> wrote:
> > --- a/arch/sh/Kconfig
> > +++ b/arch/sh/Kconfig
> 
> > @@ -702,7 +707,7 @@ config BUILTIN_DTB_SOURCE
> >  config ZERO_PAGE_OFFSET
> >         hex
> >         default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
> > -                               SH_7751_SOLUTION_ENGINE
> > +                               SH_7751_SOLUTION_ENGINE || SH_RTS7751R2D_OF
> 
> This is the only user of SH_RTS7751R2D_OF. Can we get rid of it?
> 
> >         default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
> >         default "0x00002000" if PAGE_SIZE_8KB
> >         default "0x00001000"
> 
> > --- a/arch/sh/boards/Kconfig
> > +++ b/arch/sh/boards/Kconfig
> > @@ -161,6 +166,17 @@ config SH_RTS7751R2D
> >           Select RTS7751R2D if configuring for a Renesas Technology
> >           Sales SH-Graphics board.
> >
> > +config SH_RTS7751R2D_OF
> > +       bool "RTS7751R2D (DeviceTree)"
> > +       depends on CPU_SUBTYPE_SH7751R
> > +       select HAVE_PCI
> > +       select IO_TRAPPED if MMU
> > +       select SH_DEVICE_TREE
> > +       select COMMON_CLK
> > +       help
> > +         Select RTS7751R2D if configuring for a Renesas Technology
> > +         Sales SH-Graphics board. (Use DeviceTree)
> > +
> >  config SH_RSK
> >         bool "Renesas Starter Kit"
> >         depends on CPU_SUBTYPE_SH7201 || CPU_SUBTYPE_SH7203 || \
> > @@ -300,8 +316,20 @@ config SH_LANDISK
> >         bool "LANDISK"
> >         depends on CPU_SUBTYPE_SH7751R
> >         select HAVE_PCI
> > +       select SYS_SUPPORTS_PCI
> > +       help
> > +         I-O DATA DEVICE, INC. "LANDISK Series" support.
> > +
> > +config SH_LANDISK_OF
> > +       bool "LANDISK (DeviceTree)"
> > +       depends on CPU_SUBTYPE_SH7751R
> > +       select HAVE_PCI
> > +       select SYS_SUPPORTS_PCI
> > +       select SH_DEVICE_TREE
> > +       select COMMON_CLK
> >         help
> >           I-O DATA DEVICE, INC. "LANDISK Series" support.
> > +         Use Device Tree.
> >
> >  config SH_TITAN
> >         bool "TITAN"
> 
> Apart from the above, there are no users of the "<machine>_OF" symbols.
> Do we need them?
John Paul Adrian Glaubitz Sept. 6, 2023, 8:12 a.m. UTC | #4
Hi Yoshinori!

On Wed, 2023-09-06 at 17:05 +0900, Yoshinori Sato wrote:
> On Fri, 01 Sep 2023 23:26:10 +0900,
> Geert Uytterhoeven wrote:
> > 
> > Hi Sato-san,
> > 
> > On Thu, Aug 31, 2023 at 5:19 AM Yoshinori Sato
> > <ysato@users.sourceforge.jp> wrote:
> > > --- a/arch/sh/Kconfig
> > > +++ b/arch/sh/Kconfig
> > 
> > > @@ -702,7 +707,7 @@ config BUILTIN_DTB_SOURCE
> > >  config ZERO_PAGE_OFFSET
> > >         hex
> > >         default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
> > > -                               SH_7751_SOLUTION_ENGINE
> > > +                               SH_7751_SOLUTION_ENGINE || SH_RTS7751R2D_OF
> > 
> > This is the only user of SH_RTS7751R2D_OF. Can we get rid of it?
> > 
> > >         default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
> > >         default "0x00002000" if PAGE_SIZE_8KB
> > >         default "0x00001000"
> > 
> > > --- a/arch/sh/boards/Kconfig
> > > +++ b/arch/sh/boards/Kconfig
> > > @@ -161,6 +166,17 @@ config SH_RTS7751R2D
> > >           Select RTS7751R2D if configuring for a Renesas Technology
> > >           Sales SH-Graphics board.
> > > 
> > > +config SH_RTS7751R2D_OF
> > > +       bool "RTS7751R2D (DeviceTree)"
> > > +       depends on CPU_SUBTYPE_SH7751R
> > > +       select HAVE_PCI
> > > +       select IO_TRAPPED if MMU
> > > +       select SH_DEVICE_TREE
> > > +       select COMMON_CLK
> > > +       help
> > > +         Select RTS7751R2D if configuring for a Renesas Technology
> > > +         Sales SH-Graphics board. (Use DeviceTree)
> > > +
> > >  config SH_RSK
> > >         bool "Renesas Starter Kit"
> > >         depends on CPU_SUBTYPE_SH7201 || CPU_SUBTYPE_SH7203 || \
> > > @@ -300,8 +316,20 @@ config SH_LANDISK
> > >         bool "LANDISK"
> > >         depends on CPU_SUBTYPE_SH7751R
> > >         select HAVE_PCI
> > > +       select SYS_SUPPORTS_PCI
> > > +       help
> > > +         I-O DATA DEVICE, INC. "LANDISK Series" support.
> > > +
> > > +config SH_LANDISK_OF
> > > +       bool "LANDISK (DeviceTree)"
> > > +       depends on CPU_SUBTYPE_SH7751R
> > > +       select HAVE_PCI
> > > +       select SYS_SUPPORTS_PCI
> > > +       select SH_DEVICE_TREE
> > > +       select COMMON_CLK
> > >         help
> > >           I-O DATA DEVICE, INC. "LANDISK Series" support.
> > > +         Use Device Tree.
> > > 
> > >  config SH_TITAN
> > >         bool "TITAN"
> > 
> > Apart from the above, there are no users of the "<machine>_OF" symbols.
> > Do we need them?

Did you accidentally sent this mail before commenting?

Adrian
Yoshinori Sato Sept. 7, 2023, 3:28 a.m. UTC | #5
On Wed, 06 Sep 2023 17:12:31 +0900,
John Paul Adrian Glaubitz wrote:
> 
> Hi Yoshinori!
> 
> On Wed, 2023-09-06 at 17:05 +0900, Yoshinori Sato wrote:
> > On Fri, 01 Sep 2023 23:26:10 +0900,
> > Geert Uytterhoeven wrote:
> > > 
> > > Hi Sato-san,
> > > 
> > > On Thu, Aug 31, 2023 at 5:19 AM Yoshinori Sato
> > > <ysato@users.sourceforge.jp> wrote:
> > > > --- a/arch/sh/Kconfig
> > > > +++ b/arch/sh/Kconfig
> > > 
> > > > @@ -702,7 +707,7 @@ config BUILTIN_DTB_SOURCE
> > > >  config ZERO_PAGE_OFFSET
> > > >         hex
> > > >         default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
> > > > -                               SH_7751_SOLUTION_ENGINE
> > > > +                               SH_7751_SOLUTION_ENGINE || SH_RTS7751R2D_OF
> > > 
> > > This is the only user of SH_RTS7751R2D_OF. Can we get rid of it?
> > > 
> > > >         default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
> > > >         default "0x00002000" if PAGE_SIZE_8KB
> > > >         default "0x00001000"
> > > 
> > > > --- a/arch/sh/boards/Kconfig
> > > > +++ b/arch/sh/boards/Kconfig
> > > > @@ -161,6 +166,17 @@ config SH_RTS7751R2D
> > > >           Select RTS7751R2D if configuring for a Renesas Technology
> > > >           Sales SH-Graphics board.
> > > > 
> > > > +config SH_RTS7751R2D_OF
> > > > +       bool "RTS7751R2D (DeviceTree)"
> > > > +       depends on CPU_SUBTYPE_SH7751R
> > > > +       select HAVE_PCI
> > > > +       select IO_TRAPPED if MMU
> > > > +       select SH_DEVICE_TREE
> > > > +       select COMMON_CLK
> > > > +       help
> > > > +         Select RTS7751R2D if configuring for a Renesas Technology
> > > > +         Sales SH-Graphics board. (Use DeviceTree)
> > > > +
> > > >  config SH_RSK
> > > >         bool "Renesas Starter Kit"
> > > >         depends on CPU_SUBTYPE_SH7201 || CPU_SUBTYPE_SH7203 || \
> > > > @@ -300,8 +316,20 @@ config SH_LANDISK
> > > >         bool "LANDISK"
> > > >         depends on CPU_SUBTYPE_SH7751R
> > > >         select HAVE_PCI
> > > > +       select SYS_SUPPORTS_PCI
> > > > +       help
> > > > +         I-O DATA DEVICE, INC. "LANDISK Series" support.
> > > > +
> > > > +config SH_LANDISK_OF
> > > > +       bool "LANDISK (DeviceTree)"
> > > > +       depends on CPU_SUBTYPE_SH7751R
> > > > +       select HAVE_PCI
> > > > +       select SYS_SUPPORTS_PCI
> > > > +       select SH_DEVICE_TREE
> > > > +       select COMMON_CLK
> > > >         help
> > > >           I-O DATA DEVICE, INC. "LANDISK Series" support.
> > > > +         Use Device Tree.
> > > > 
> > > >  config SH_TITAN
> > > >         bool "TITAN"
> > > 
> > > Apart from the above, there are no users of the "<machine>_OF" symbols.
> > > Do we need them?
> 
> Did you accidentally sent this mail before commenting?

Ouch Yes. I'll put it out again.

> Adrian
> 
> -- 
>  .''`.  John Paul Adrian Glaubitz
> : :' :  Debian Developer
> `. `'   Physicist
>   `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Yoshinori Sato Sept. 7, 2023, 3:35 a.m. UTC | #6
On Fri, 01 Sep 2023 23:26:10 +0900,
Geert Uytterhoeven wrote:
> 
> Hi Sato-san,
> 
> On Thu, Aug 31, 2023 at 5:19 AM Yoshinori Sato
> <ysato@users.sourceforge.jp> wrote:
> > --- a/arch/sh/Kconfig
> > +++ b/arch/sh/Kconfig
> 
> > @@ -702,7 +707,7 @@ config BUILTIN_DTB_SOURCE
> >  config ZERO_PAGE_OFFSET
> >         hex
> >         default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
> > -                               SH_7751_SOLUTION_ENGINE
> > +                               SH_7751_SOLUTION_ENGINE || SH_RTS7751R2D_OF
> 
> This is the only user of SH_RTS7751R2D_OF. Can we get rid of it?
> 
> >         default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
> >         default "0x00002000" if PAGE_SIZE_8KB
> >         default "0x00001000"
> 
> > --- a/arch/sh/boards/Kconfig
> > +++ b/arch/sh/boards/Kconfig
> > @@ -161,6 +166,17 @@ config SH_RTS7751R2D
> >           Select RTS7751R2D if configuring for a Renesas Technology
> >           Sales SH-Graphics board.
> >
> > +config SH_RTS7751R2D_OF
> > +       bool "RTS7751R2D (DeviceTree)"
> > +       depends on CPU_SUBTYPE_SH7751R
> > +       select HAVE_PCI
> > +       select IO_TRAPPED if MMU
> > +       select SH_DEVICE_TREE
> > +       select COMMON_CLK
> > +       help
> > +         Select RTS7751R2D if configuring for a Renesas Technology
> > +         Sales SH-Graphics board. (Use DeviceTree)
> > +
> >  config SH_RSK
> >         bool "Renesas Starter Kit"
> >         depends on CPU_SUBTYPE_SH7201 || CPU_SUBTYPE_SH7203 || \
> > @@ -300,8 +316,20 @@ config SH_LANDISK
> >         bool "LANDISK"
> >         depends on CPU_SUBTYPE_SH7751R
> >         select HAVE_PCI
> > +       select SYS_SUPPORTS_PCI
> > +       help
> > +         I-O DATA DEVICE, INC. "LANDISK Series" support.
> > +
> > +config SH_LANDISK_OF
> > +       bool "LANDISK (DeviceTree)"
> > +       depends on CPU_SUBTYPE_SH7751R
> > +       select HAVE_PCI
> > +       select SYS_SUPPORTS_PCI
> > +       select SH_DEVICE_TREE
> > +       select COMMON_CLK
> >         help
> >           I-O DATA DEVICE, INC. "LANDISK Series" support.
> > +         Use Device Tree.
> >
> >  config SH_TITAN
> >         bool "TITAN"
> 
> Apart from the above, there are no users of the "<machine>_OF" symbols.
> Do we need them?

OK.
I added "OpenFirmware supported target boards" in Board Support.
Once OF support is available, the old ones will be fine as departed.

> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> -- 
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds
diff mbox series

Patch

diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index 2b3ce4fd3956..7a3e54bf0da9 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -64,10 +64,10 @@  config SUPERH
 	select MODULES_USE_ELF_RELA
 	select NEED_SG_DMA_LENGTH
 	select NO_DMA if !MMU && !DMA_COHERENT
-	select NO_GENERIC_PCI_IOPORT_MAP if PCI
+	select NO_GENERIC_PCI_IOPORT_MAP if !SH_DEVICE_TREE
 	select OLD_SIGACTION
 	select OLD_SIGSUSPEND
-	select PCI_DOMAINS if PCI
+	select PCI_DOMAINS if PCI && !SH_DEVICE_TREE
 	select PERF_EVENTS
 	select PERF_USE_VMALLOC
 	select RTC_LIB
@@ -363,14 +363,17 @@  config CPU_SUBTYPE_SH7091
 config CPU_SUBTYPE_SH7750R
 	bool "Support SH7750R processor"
 	select CPU_SH4
+	select COMMON_CLK_SH7750 if COMMMON_CLK
 
 config CPU_SUBTYPE_SH7750S
 	bool "Support SH7750S processor"
 	select CPU_SH4
+	select COMMON_CLK_SH7750 if COMMMON_CLK
 
 config CPU_SUBTYPE_SH7751
 	bool "Support SH7751 processor"
 	select CPU_SH4
+	select COMMON_CLK_SH7750 if COMMMON_CLK
 	help
 	  Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
 	  or if you have a HD6417751R CPU.
@@ -378,6 +381,8 @@  config CPU_SUBTYPE_SH7751
 config CPU_SUBTYPE_SH7751R
 	bool "Support SH7751R processor"
 	select CPU_SH4
+	select COMMON_CLK_SH7750 if COMMMON_CLK
+	select PCI_SH7751 if SH_DEVICE_TREE
 
 config CPU_SUBTYPE_SH7760
 	bool "Support SH7760 processor"
@@ -702,7 +707,7 @@  config BUILTIN_DTB_SOURCE
 config ZERO_PAGE_OFFSET
 	hex
 	default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
-				SH_7751_SOLUTION_ENGINE
+				SH_7751_SOLUTION_ENGINE || SH_RTS7751R2D_OF
 	default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
 	default "0x00002000" if PAGE_SIZE_8KB
 	default "0x00001000"
@@ -744,6 +749,7 @@  config ROMIMAGE_MMCIF
 choice
 	prompt "Kernel command line"
 	optional
+	depends on !SH_DEVICE_TREE
 	default CMDLINE_OVERWRITE
 	help
 	  Setting this option allows the kernel command line arguments
diff --git a/arch/sh/boards/Kconfig b/arch/sh/boards/Kconfig
index fafe15d3ba1d..ffdada2a128d 100644
--- a/arch/sh/boards/Kconfig
+++ b/arch/sh/boards/Kconfig
@@ -16,9 +16,14 @@  config SH_DEVICE_TREE
 	bool
 	select OF
 	select OF_EARLY_FLATTREE
+	select OF_ADDRESS
 	select TIMER_OF
 	select COMMON_CLK
 	select GENERIC_CALIBRATE_DELAY
+	select GENERIC_IOMAP
+	select GENERIC_IRQ_CHIP
+	select SYS_SUPPORTS_PCI
+	select GENERIC_PCI_IOMAP if PCI
 
 config SH_JCORE_SOC
 	bool "J-Core SoC"
@@ -161,6 +166,17 @@  config SH_RTS7751R2D
 	  Select RTS7751R2D if configuring for a Renesas Technology
 	  Sales SH-Graphics board.
 
+config SH_RTS7751R2D_OF
+	bool "RTS7751R2D (DeviceTree)"
+	depends on CPU_SUBTYPE_SH7751R
+	select HAVE_PCI
+	select IO_TRAPPED if MMU
+	select SH_DEVICE_TREE
+	select COMMON_CLK
+	help
+	  Select RTS7751R2D if configuring for a Renesas Technology
+	  Sales SH-Graphics board. (Use DeviceTree)
+
 config SH_RSK
 	bool "Renesas Starter Kit"
 	depends on CPU_SUBTYPE_SH7201 || CPU_SUBTYPE_SH7203 || \
@@ -300,8 +316,20 @@  config SH_LANDISK
 	bool "LANDISK"
 	depends on CPU_SUBTYPE_SH7751R
 	select HAVE_PCI
+	select SYS_SUPPORTS_PCI
+	help
+	  I-O DATA DEVICE, INC. "LANDISK Series" support.
+
+config SH_LANDISK_OF
+	bool "LANDISK (DeviceTree)"
+	depends on CPU_SUBTYPE_SH7751R
+	select HAVE_PCI
+	select SYS_SUPPORTS_PCI
+	select SH_DEVICE_TREE
+	select COMMON_CLK
 	help
 	  I-O DATA DEVICE, INC. "LANDISK Series" support.
+	  Use Device Tree.
 
 config SH_TITAN
 	bool "TITAN"