All of lore.kernel.org
 help / color / mirror / Atom feed
* [v2 0/4] ARM: tegra: convert device tree files to use CLK defines
@ 2013-02-14 18:59 ` Hiroshi Doyu
  0 siblings, 0 replies; 32+ messages in thread
From: Hiroshi Doyu @ 2013-02-14 18:59 UTC (permalink / raw)
  To: linux-tegra
  Cc: Hiroshi Doyu, Grant Likely, Rob Herring, Rob Landley,
	Stephen Warren, Russell King, Simon Glass, Prashant Gaikwad,
	devicetree-discuss, linux-doc, linux-kernel, linux-arm-kernel

Hi,

With new dtc+cpp feature, we can get rid of magic numbers in dts*
files. To get rid of Tegra clock magic number, the following patches
were created with a script run as below. This can be applied for
Tegra114 clock as well.

for x in 20 30; do
    cat drivers/clk/tegra/clk-tegra$x.c | enum2define.py \
    	> arch/arm/boot/dts/tegra$x-car.h 2>/tmp/tegra$x-car.sed
    sed -i -f /tmp/tegra$x-car.sed \
    	Documentation/devicetree/bindings/clock/nvidia\,tegra$x-car.txt \
	arch/arm/boot/dts/*
done

We plan to share those DT header files with kernel source later[1].

This series depends on:

  [PATCH 0/9] ARM: tegra: use new dtc+cpp feature
  http://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/149613.html

v1:
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/149672.html

[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/149804.html

Hiroshi Doyu (4):
  ARM: tegra20: create a DT header defining CLK IDs
  ARM: tegra20: convert device tree files to use CLK defines
  ARM: tegra30: create a DT header defining CLK IDs
  ARM: tegra30: convert device tree files to use CLK defines

 .../bindings/clock/nvidia,tegra20-car.txt          |    2 +-
 .../bindings/clock/nvidia,tegra30-car.txt          |    2 +-
 arch/arm/boot/dts/tegra20-car.h                    |  114 +++++++++++++
 arch/arm/boot/dts/tegra20-paz00.dtsp               |    2 +-
 arch/arm/boot/dts/tegra20.dtsip                    |   85 +++++-----
 arch/arm/boot/dts/tegra30-car.h                    |  171 ++++++++++++++++++++
 arch/arm/boot/dts/tegra30.dtsip                    |   87 +++++-----
 7 files changed, 375 insertions(+), 88 deletions(-)
 create mode 100644 arch/arm/boot/dts/tegra20-car.h
 create mode 100644 arch/arm/boot/dts/tegra30-car.h

--
1.7.9.5


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

end of thread, other threads:[~2013-02-21 15:33 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-14 18:59 [v2 0/4] ARM: tegra: convert device tree files to use CLK defines Hiroshi Doyu
2013-02-14 18:59 ` Hiroshi Doyu
2013-02-14 18:59 ` Hiroshi Doyu
2013-02-14 18:59 ` [v2 1/4] ARM: tegra20: create a DT header defining CLK IDs Hiroshi Doyu
2013-02-14 18:59   ` Hiroshi Doyu
     [not found]   ` <1360868369-20093-2-git-send-email-hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-02-14 20:15     ` Stephen Warren
2013-02-14 20:15       ` Stephen Warren
2013-02-14 20:15       ` Stephen Warren
2013-02-14 20:34       ` Hiroshi Doyu
2013-02-14 20:34         ` Hiroshi Doyu
2013-02-14 20:34         ` Hiroshi Doyu
2013-02-14 23:29         ` Stephen Warren
2013-02-14 23:29           ` Stephen Warren
2013-02-14 23:29           ` Stephen Warren
     [not found]       ` <511D45E0.1080105-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-02-15  9:24         ` Peter De Schrijver
2013-02-15  9:24           ` Peter De Schrijver
2013-02-15  9:24           ` Peter De Schrijver
     [not found]           ` <20130215092407.GO3073-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2013-02-15 16:45             ` Stephen Warren
2013-02-15 16:45               ` Stephen Warren
2013-02-15 16:45               ` Stephen Warren
2013-02-21 12:25               ` Peter De Schrijver
2013-02-21 12:25                 ` Peter De Schrijver
2013-02-21 12:25                 ` Peter De Schrijver
2013-02-21 15:32                 ` Peter De Schrijver
2013-02-21 15:32                   ` Peter De Schrijver
2013-02-21 15:32                   ` Peter De Schrijver
     [not found] ` <1360868369-20093-1-git-send-email-hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-02-14 18:59   ` [v2 2/4] ARM: tegra20: convert device tree files to use CLK defines Hiroshi Doyu
2013-02-14 18:59     ` Hiroshi Doyu
2013-02-14 18:59   ` [v2 4/4] ARM: tegra30: " Hiroshi Doyu
2013-02-14 18:59     ` Hiroshi Doyu
2013-02-14 18:59 ` [v2 3/4] ARM: tegra30: create a DT header defining CLK IDs Hiroshi Doyu
2013-02-14 18:59   ` Hiroshi Doyu

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.