All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3 v2] RFC: marvell dreamplug dft support
@ 2011-08-09 16:47 Jason Cooper
  2011-08-09 16:47 ` [PATCH 1/3 v2] RFC: arm/kirkwood: TEMP hack till mach-types is updated Jason Cooper
                   ` (6 more replies)
  0 siblings, 7 replies; 87+ messages in thread
From: Jason Cooper @ 2011-08-09 16:47 UTC (permalink / raw)
  To: linux-arm-kernel

All,

First, a warning.  Do not apply the last patch in the series!  It has
no hope of compiling.  I'm trying to learn how to add board support to
the Linux kernel _and_ now trying to learn how to do it using devicetree.

In short, I'm lost.  ;-)  Any and all help appreciated.

In my sad attempt to add devicetree support, I used
arch/arm/mach-kirkwood/include/mach/kirkwood.h to stub out the addresses.
It's my understanding that most peripherals on this SoC are register-based.
So, I haven't added external-bus{...}; yet.

Based on kirkwood.h, there doesn't seem to be any obvious register size
definition, should I omit that all around in my devicetree?

I'm guessing at a lot of the compatible="" properties, I simply chose the
.name string I found in the respective code.  Is this correct?

I see nothing obvious to indicate an irq handler similar to that mentioned
in [1].  Any thoughts?  I found the irq table, just no way to use it.

Also, I'll rename dreamplug-setup.c -> dreamplug-dt.c once I have something
working.

[1] has been a great help, thanks Grant!

thx,

Jason.

[1] http://devicetree.org/Device_Tree_Usage

Jason Cooper (3):
  arm/kirkwood: TEMP hack till mach-types is updated.
  arm/kirkwood: add dreamplug support.
  arm: kirkwood: dreamplug fdt support

 arch/arm/boot/dts/kirkwood-dreamplug.dts |   64 +++++++++++++
 arch/arm/mach-kirkwood/Kconfig           |    8 ++
 arch/arm/mach-kirkwood/Makefile          |    1 +
 arch/arm/mach-kirkwood/Makefile.boot     |    2 +
 arch/arm/mach-kirkwood/dreamplug-setup.c |  151 ++++++++++++++++++++++++++++++
 arch/arm/tools/mach-types                |    1 +
 6 files changed, 227 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/kirkwood-dreamplug.dts
 create mode 100644 arch/arm/mach-kirkwood/dreamplug-setup.c

^ permalink raw reply	[flat|nested] 87+ messages in thread
* Re: [PATCH 2/3 v4] arm: kirkwood: add dreamplug (fdt) support.
@ 2012-02-24  7:57 Andrew Lunn
  2012-02-24 15:55   ` Jason
                   ` (2 more replies)
  0 siblings, 3 replies; 87+ messages in thread
From: Andrew Lunn @ 2012-02-24  7:57 UTC (permalink / raw)
  To: jason-NLaQJdtUoK4Be96aLqz0jA
  Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

Hi Jason

Great to see this work going forward. I hope we can cooperating in the
future. I have an out of tree kirkwood board i would like to supported
via DT, and i also have a QNAP T119+ i can use for testing.

I have some patches under development which will help. I've been
porting the different Orion machines to use Mike Turquette generic CLK
and clkdev so that the device drivers can determine for themselves
what the clock is. tclk is then removed from the platform data
structures, making DT a little bit simpler. This work should also
solve the kirkwood clock gating which is going to be an issue for
DT. For example, your board file is probably currently calling
kirkwood_spi_init(), in order to use SPI. This does:

kirkwood_clk_ctrl |= CGC_RUNIT;

and so ensures that the RUNIT clock does not get turned off in a
lateinit call. Once you have DT, this flag is not going to be set, and
so you have the danger of the clock to the SPI core gets turned
off. The clk framework should solve this, since the SPI device driver
will claim the clock and ensure it keeps running.

I'm hoping the next version of Mike Turquette patches get included in
the tree soon, so i can finish my patches for integration.

    Andrew

^ permalink raw reply	[flat|nested] 87+ messages in thread

end of thread, other threads:[~2012-03-01 12:20 UTC | newest]

Thread overview: 87+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-09 16:47 [PATCH 0/3 v2] RFC: marvell dreamplug dft support Jason Cooper
2011-08-09 16:47 ` [PATCH 1/3 v2] RFC: arm/kirkwood: TEMP hack till mach-types is updated Jason Cooper
2012-02-23  1:46   ` Grant Likely
2012-02-23  1:48   ` Grant Likely
2011-08-09 16:47 ` [PATCH 2/3 v2] RFC: arm/kirkwood: add dreamplug support Jason Cooper
2011-08-09 17:25   ` Arnaud Patard (Rtp)
2011-08-09 18:10     ` Jason
2011-08-10 14:31   ` Arnd Bergmann
2011-08-09 16:47 ` [PATCH 3/3 v2] RFC: arm: kirkwood: dreamplug fdt support Jason Cooper
2011-12-07 19:40 ` [PATCH V3] arm: kirkwood: add dreamplug support Jason Cooper
2012-02-22 19:18 ` [PATCH 0/3 v4] arm: kirkwood: add dreamplug/devicetree support Jason Cooper
2012-02-22 19:18   ` Jason Cooper
2012-02-22 19:18   ` [PATCH 1/3] arm: ignore devicetree blobs Jason Cooper
2012-02-22 19:18     ` Jason Cooper
2012-02-22 20:38     ` Arnd Bergmann
2012-02-22 20:38       ` Arnd Bergmann
2012-02-22 22:26     ` Uwe Kleine-König
2012-02-22 22:26       ` Uwe Kleine-König
2012-02-23  9:16       ` Dave Martin
2012-02-23  9:16         ` Dave Martin
2012-02-23 15:56         ` Jason
2012-02-23 15:56           ` Jason
2012-02-22 19:18   ` [PATCH 2/3 v4] arm: kirkwood: add dreamplug (fdt) support Jason Cooper
2012-02-22 19:18     ` Jason Cooper
2012-02-22 20:46     ` Arnd Bergmann
2012-02-22 20:46       ` Arnd Bergmann
2012-02-22 21:17       ` Nicolas Pitre
2012-02-22 21:17         ` Nicolas Pitre
2012-02-23  3:19     ` Rob Herring
2012-02-23  3:19       ` Rob Herring
2012-02-23  7:34       ` Arnd Bergmann
2012-02-23  7:34         ` Arnd Bergmann
2012-02-23 16:12         ` Jason
2012-02-23 16:12           ` Jason
2012-02-23 18:56           ` Grant Likely
2012-02-23 18:56             ` Grant Likely
2012-02-23 19:00             ` Jason
2012-02-23 19:00               ` Jason
2012-02-22 19:18   ` [PATCH 3/3] arm: kirkwood: convert uart0 to devicetree Jason Cooper
2012-02-22 19:18     ` Jason Cooper
2012-02-22 20:55     ` Arnd Bergmann
2012-02-22 20:55       ` Arnd Bergmann
2012-02-22 21:09       ` Jason
2012-02-22 21:09         ` Jason
2012-02-23 19:52 ` [PATCH 0/2 v5] arm: kirkwood: add dreamplug/devicetree support Jason Cooper
2012-02-23 19:52   ` Jason Cooper
2012-02-23 19:52   ` [PATCH 1/2 v5] arm: kirkwood: add dreamplug (fdt) support Jason Cooper
2012-02-23 19:52     ` Jason Cooper
2012-02-23 20:18     ` Grant Likely
2012-02-23 20:18       ` Grant Likely
2012-02-23 21:11       ` Jason
2012-02-23 21:11         ` Jason
2012-02-23 21:21         ` Grant Likely
2012-02-23 21:21           ` Grant Likely
2012-02-24 14:35           ` Jason
2012-02-24 14:35             ` Jason
2012-02-24 19:36           ` Jason
2012-02-24 19:36             ` Jason
2012-02-23 19:52   ` [PATCH 2/2 v2] arm: kirkwood: convert uart0 to devicetree Jason Cooper
2012-02-23 19:52     ` Jason Cooper
2012-02-26 11:00   ` [PATCH 0/2 v5] arm: kirkwood: add dreamplug/devicetree support Ian Campbell
2012-02-26 11:00     ` Ian Campbell
2012-02-27 14:57     ` Jason
2012-02-27 14:57       ` Jason
2012-02-28  7:20       ` Ian Campbell
2012-02-28  7:20         ` Ian Campbell
2012-02-27 16:07 ` [PATCH 0/2 v6] " Jason Cooper
2012-02-27 16:07   ` Jason Cooper
2012-02-27 16:07   ` [PATCH 1/2 v6] arm: kirkwood: add dreamplug (fdt) support Jason Cooper
2012-02-27 16:07     ` Jason Cooper
2012-02-27 16:07   ` [PATCH 2/2 v2] arm: kirkwood: convert uart0 to devicetree Jason Cooper
2012-02-27 16:07     ` Jason Cooper
2012-02-27 16:29   ` [PATCH 0/2 v6] arm: kirkwood: add dreamplug/devicetree support Arnd Bergmann
2012-02-27 16:29     ` Arnd Bergmann
2012-02-27 17:31     ` Jason
2012-02-27 17:31       ` Jason
  -- strict thread matches above, loose matches on Subject: below --
2012-02-24  7:57 [PATCH 2/3 v4] arm: kirkwood: add dreamplug (fdt) support Andrew Lunn
2012-02-24 15:55 ` Jason
2012-02-24 15:55   ` Jason
2012-02-24 19:36 ` Jason
2012-02-24 19:36   ` Jason
2012-02-29 14:44 ` Jason
2012-02-29 14:44   ` Jason
2012-02-29 23:53   ` Andrew Lunn
2012-02-29 23:53     ` Andrew Lunn
2012-03-01 12:20     ` Jason
2012-03-01 12:20       ` Jason

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.