diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-10-24 22:01:28 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2011-12-07 23:47:49 -0500 |
commit | a7db2c15938668999d4ceb1caec3723d88e38c80 (patch) | |
tree | 1b049b6eb5361b5037bb03ab4b8e7a4ef6e4040f | |
parent | 64f88ec3957b8e448e377231d177260ebfda71a2 (diff) |
arm/tegra: Add device-tree support for TrimSlice board
* Add device-tree file for TrimSlice
* Add that to the list of .dts files to build
* Update board-dt.c to recognize TrimSlice board name
v2: Makefile: Add board-trimslice-pinmux.c to obj-$(CONFIG_MACH_TEGRA_DT).
v3: Makefile: Use brackets not braces around var names
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | arch/arm/boot/dts/tegra-trimslice.dts | 38 | ||||
-rw-r--r-- | arch/arm/mach-tegra/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/Makefile.boot | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-dt.c | 3 |
4 files changed, 43 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/tegra-trimslice.dts b/arch/arm/boot/dts/tegra-trimslice.dts new file mode 100644 index 000000000000..d3d0d205a474 --- /dev/null +++ b/arch/arm/boot/dts/tegra-trimslice.dts | |||
@@ -0,0 +1,38 @@ | |||
1 | /dts-v1/; | ||
2 | |||
3 | /memreserve/ 0x1c000000 0x04000000; | ||
4 | /include/ "tegra20.dtsi" | ||
5 | |||
6 | / { | ||
7 | model = "Compulab TrimSlice board"; | ||
8 | compatible = "compulab,trimslice", "nvidia,tegra20"; | ||
9 | |||
10 | chosen { | ||
11 | bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/mmcblk0p1 rw rootwait"; | ||
12 | }; | ||
13 | |||
14 | memory@0 { | ||
15 | reg = < 0x00000000 0x40000000 >; | ||
16 | }; | ||
17 | |||
18 | i2c@7000c000 { | ||
19 | clock-frequency = <400000>; | ||
20 | }; | ||
21 | |||
22 | i2c@7000c400 { | ||
23 | clock-frequency = <400000>; | ||
24 | }; | ||
25 | |||
26 | i2c@7000c500 { | ||
27 | clock-frequency = <400000>; | ||
28 | }; | ||
29 | |||
30 | serial@70006000 { | ||
31 | clock-frequency = < 216000000 >; | ||
32 | }; | ||
33 | |||
34 | sdhci@c8000600 { | ||
35 | cd-gpios = <&gpio 121 0>; | ||
36 | wp-gpios = <&gpio 122 0>; | ||
37 | }; | ||
38 | }; | ||
diff --git a/arch/arm/mach-tegra/Makefile b/arch/arm/mach-tegra/Makefile index 5be8e9eefc95..565bb2253529 100644 --- a/arch/arm/mach-tegra/Makefile +++ b/arch/arm/mach-tegra/Makefile | |||
@@ -32,6 +32,7 @@ obj-$(CONFIG_MACH_SEABOARD) += board-seaboard-pinmux.o | |||
32 | obj-$(CONFIG_MACH_TEGRA_DT) += board-dt.o | 32 | obj-$(CONFIG_MACH_TEGRA_DT) += board-dt.o |
33 | obj-$(CONFIG_MACH_TEGRA_DT) += board-harmony-pinmux.o | 33 | obj-$(CONFIG_MACH_TEGRA_DT) += board-harmony-pinmux.o |
34 | obj-$(CONFIG_MACH_TEGRA_DT) += board-seaboard-pinmux.o | 34 | obj-$(CONFIG_MACH_TEGRA_DT) += board-seaboard-pinmux.o |
35 | obj-$(CONFIG_MACH_TEGRA_DT) += board-trimslice-pinmux.o | ||
35 | 36 | ||
36 | obj-$(CONFIG_MACH_TRIMSLICE) += board-trimslice.o | 37 | obj-$(CONFIG_MACH_TRIMSLICE) += board-trimslice.o |
37 | obj-$(CONFIG_MACH_TRIMSLICE) += board-trimslice-pinmux.o | 38 | obj-$(CONFIG_MACH_TRIMSLICE) += board-trimslice-pinmux.o |
diff --git a/arch/arm/mach-tegra/Makefile.boot b/arch/arm/mach-tegra/Makefile.boot index bd12c9fb81e8..9f177a466b83 100644 --- a/arch/arm/mach-tegra/Makefile.boot +++ b/arch/arm/mach-tegra/Makefile.boot | |||
@@ -4,4 +4,5 @@ initrd_phys-$(CONFIG_ARCH_TEGRA_2x_SOC) := 0x00800000 | |||
4 | 4 | ||
5 | dtb-$(CONFIG_MACH_HARMONY) += tegra-harmony.dtb | 5 | dtb-$(CONFIG_MACH_HARMONY) += tegra-harmony.dtb |
6 | dtb-$(CONFIG_MACH_SEABOARD) += tegra-seaboard.dtb | 6 | dtb-$(CONFIG_MACH_SEABOARD) += tegra-seaboard.dtb |
7 | dtb-$(CONFIG_MACH_TRIMSLICE) += tegra-trimslice.dtb | ||
7 | dtb-$(CONFIG_MACH_VENTANA) += tegra-ventana.dtb | 8 | dtb-$(CONFIG_MACH_VENTANA) += tegra-ventana.dtb |
diff --git a/arch/arm/mach-tegra/board-dt.c b/arch/arm/mach-tegra/board-dt.c index 7f287a86941e..e6b3953a62b9 100644 --- a/arch/arm/mach-tegra/board-dt.c +++ b/arch/arm/mach-tegra/board-dt.c | |||
@@ -47,6 +47,7 @@ | |||
47 | 47 | ||
48 | void harmony_pinmux_init(void); | 48 | void harmony_pinmux_init(void); |
49 | void seaboard_pinmux_init(void); | 49 | void seaboard_pinmux_init(void); |
50 | void trimslice_pinmux_init(void); | ||
50 | void ventana_pinmux_init(void); | 51 | void ventana_pinmux_init(void); |
51 | 52 | ||
52 | struct of_dev_auxdata tegra20_auxdata_lookup[] __initdata = { | 53 | struct of_dev_auxdata tegra20_auxdata_lookup[] __initdata = { |
@@ -93,6 +94,7 @@ static struct { | |||
93 | char *machine; | 94 | char *machine; |
94 | void (*init)(void); | 95 | void (*init)(void); |
95 | } pinmux_configs[] = { | 96 | } pinmux_configs[] = { |
97 | { "compulab,trimslice", trimslice_pinmux_init }, | ||
96 | { "nvidia,harmony", harmony_pinmux_init }, | 98 | { "nvidia,harmony", harmony_pinmux_init }, |
97 | { "nvidia,seaboard", seaboard_pinmux_init }, | 99 | { "nvidia,seaboard", seaboard_pinmux_init }, |
98 | { "nvidia,ventana", ventana_pinmux_init }, | 100 | { "nvidia,ventana", ventana_pinmux_init }, |
@@ -129,6 +131,7 @@ static void __init tegra_dt_init(void) | |||
129 | } | 131 | } |
130 | 132 | ||
131 | static const char * tegra_dt_board_compat[] = { | 133 | static const char * tegra_dt_board_compat[] = { |
134 | "compulab,trimslice", | ||
132 | "nvidia,harmony", | 135 | "nvidia,harmony", |
133 | "nvidia,seaboard", | 136 | "nvidia,seaboard", |
134 | "nvidia,ventana", | 137 | "nvidia,ventana", |