aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2015-01-19 14:47:35 -0500
committerTony Lindgren <tony@atomide.com>2015-01-19 14:47:35 -0500
commitac7452cee7430ea507ddf70700de56482f15dae3 (patch)
treefc1beccb002cd433da4d63fa2519b865f1c2d1b4
parent7383ca92552721fe430a82aab8271bc462423dca (diff)
ARM: dts: Add minimal support for dm8168-evm
This allows booting the device with basic functionality. Note that at least on my revision c board the DDR3 does not seem to work properly and only some of the memory can be reliably used. Also, the mainline u-boot does not seem to properly initialize the ethernet, so I've been using the old TI u-boot at: http://arago-project.org/git/projects/?p=u-boot-omap3.git;a=summary Cc: Brian Hutchinson <b.hutchman@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/boot/dts/Makefile1
-rw-r--r--arch/arm/boot/dts/dm8168-evm.dts129
-rw-r--r--include/dt-bindings/pinctrl/omap.h1
3 files changed, 131 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 1b2c7de17cf3..a6ace4d57ea5 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -348,6 +348,7 @@ dtb-$(CONFIG_ARCH_OMAP3) += am3517-craneboard.dtb \
348 omap3-sbc-t3730.dtb \ 348 omap3-sbc-t3730.dtb \
349 omap3-thunder.dtb \ 349 omap3-thunder.dtb \
350 omap3-zoom3.dtb 350 omap3-zoom3.dtb
351dtb-$(CONFIG_SOC_TI81XX) += dm8168-evm.dtb
351dtb-$(CONFIG_SOC_AM33XX) += am335x-base0033.dtb \ 352dtb-$(CONFIG_SOC_AM33XX) += am335x-base0033.dtb \
352 am335x-bone.dtb \ 353 am335x-bone.dtb \
353 am335x-boneblack.dtb \ 354 am335x-boneblack.dtb \
diff --git a/arch/arm/boot/dts/dm8168-evm.dts b/arch/arm/boot/dts/dm8168-evm.dts
new file mode 100644
index 000000000000..857d0289ad4d
--- /dev/null
+++ b/arch/arm/boot/dts/dm8168-evm.dts
@@ -0,0 +1,129 @@
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License version 2 as
4 * published by the Free Software Foundation.
5 */
6/dts-v1/;
7
8#include "dm816x.dtsi"
9
10/ {
11 model = "DM8168 EVM";
12 compatible = "ti,dm8168-evm", "ti,dm8168";
13
14 memory {
15 device_type = "memory";
16 reg = <0x80000000 0x40000000 /* 1 GB */
17 0xc0000000 0x40000000>; /* 1 GB */
18 };
19
20 /* FDC6331L controlled by SD_POW pin */
21 vmmcsd_fixed: fixedregulator@0 {
22 compatible = "regulator-fixed";
23 regulator-name = "vmmcsd_fixed";
24 regulator-min-microvolt = <3300000>;
25 regulator-max-microvolt = <3300000>;
26 };
27};
28
29&dm816x_pinmux {
30 mcspi1_pins: pinmux_mcspi1_pins {
31 pinctrl-single,pins = <
32 DM816X_IOPAD(0x0a94, PIN_INPUT | MUX_MODE0) /* SPI_SCLK */
33 DM816X_IOPAD(0x0a98, PIN_OUTPUT | MUX_MODE0) /* SPI_SCS0 */
34 DM816X_IOPAD(0x0aa8, PIN_INPUT | MUX_MODE0) /* SPI_D0 */
35 DM816X_IOPAD(0x0aac, PIN_INPUT | MUX_MODE0) /* SPI_D1 */
36 >;
37 };
38};
39
40&i2c1 {
41 extgpio0: pcf8575@20 {
42 compatible = "nxp,pcf8575";
43 reg = <0x20>;
44 gpio-controller;
45 #gpio-cells = <2>;
46 };
47};
48
49&i2c2 {
50 extgpio1: pcf8575@20 {
51 compatible = "nxp,pcf8575";
52 reg = <0x20>;
53 gpio-controller;
54 #gpio-cells = <2>;
55 };
56};
57
58&gpmc {
59 ranges = <0 0 0x04000000 0x01000000>; /* CS0: 16MB for NAND */
60
61 nand@0,0 {
62 linux,mtd-name= "micron,mt29f2g16aadwp";
63 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
64 #address-cells = <1>;
65 #size-cells = <1>;
66 ti,nand-ecc-opt = "bch8";
67 nand-bus-width = <16>;
68 gpmc,device-width = <2>;
69 gpmc,sync-clk-ps = <0>;
70 gpmc,cs-on-ns = <0>;
71 gpmc,cs-rd-off-ns = <44>;
72 gpmc,cs-wr-off-ns = <44>;
73 gpmc,adv-on-ns = <6>;
74 gpmc,adv-rd-off-ns = <34>;
75 gpmc,adv-wr-off-ns = <44>;
76 gpmc,we-on-ns = <0>;
77 gpmc,we-off-ns = <40>;
78 gpmc,oe-on-ns = <0>;
79 gpmc,oe-off-ns = <54>;
80 gpmc,access-ns = <64>;
81 gpmc,rd-cycle-ns = <82>;
82 gpmc,wr-cycle-ns = <82>;
83 gpmc,wait-on-read = "true";
84 gpmc,wait-on-write = "true";
85 gpmc,bus-turnaround-ns = <0>;
86 gpmc,cycle2cycle-delay-ns = <0>;
87 gpmc,clk-activation-ns = <0>;
88 gpmc,wait-monitoring-ns = <0>;
89 gpmc,wr-access-ns = <40>;
90 gpmc,wr-data-mux-bus-ns = <0>;
91 partition@0 {
92 label = "X-Loader";
93 reg = <0 0x80000>;
94 };
95 partition@0x80000 {
96 label = "U-Boot";
97 reg = <0x80000 0x1c0000>;
98 };
99 partition@0x1c0000 {
100 label = "Environment";
101 reg = <0x240000 0x40000>;
102 };
103 partition@0x280000 {
104 label = "Kernel";
105 reg = <0x280000 0x500000>;
106 };
107 partition@0x780000 {
108 label = "Filesystem";
109 reg = <0x780000 0xf880000>;
110 };
111 };
112};
113
114&mcspi1 {
115 pinctrl-names = "default";
116 pinctrl-0 = <&mcspi1_pins>;
117
118 m25p80@0 {
119 compatible = "w25x32";
120 spi-max-frequency = <48000000>;
121 reg = <0>;
122 #address-cells = <1>;
123 #size-cells = <1>;
124 };
125};
126
127&mmc1 {
128 vmmc-supply = <&vmmcsd_fixed>;
129};
diff --git a/include/dt-bindings/pinctrl/omap.h b/include/dt-bindings/pinctrl/omap.h
index 1c75b8ca5228..13949259705a 100644
--- a/include/dt-bindings/pinctrl/omap.h
+++ b/include/dt-bindings/pinctrl/omap.h
@@ -61,6 +61,7 @@
61#define OMAP3430_CORE2_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x25d8) (val) 61#define OMAP3430_CORE2_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x25d8) (val)
62#define OMAP3630_CORE2_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x25a0) (val) 62#define OMAP3630_CORE2_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x25a0) (val)
63#define OMAP3_WKUP_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x2a00) (val) 63#define OMAP3_WKUP_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x2a00) (val)
64#define DM816X_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
64#define AM33XX_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val) 65#define AM33XX_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
65#define AM4372_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val) 66#define AM4372_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
66#define DRA7XX_CORE_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x3400) (val) 67#define DRA7XX_CORE_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x3400) (val)