blob: f50348bdd8574125d53ae55b0c37ad974aff9818 [file] [log] [blame]
Tony Lindgrenac7452c2015-01-19 11:47:35 -08001/*
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"
Roger Quadros6d840d82016-02-23 18:37:23 +02009#include <dt-bindings/interrupt-controller/irq.h>
Tony Lindgrenac7452c2015-01-19 11:47:35 -080010
11/ {
12 model = "DM8168 EVM";
13 compatible = "ti,dm8168-evm", "ti,dm8168";
14
15 memory {
16 device_type = "memory";
17 reg = <0x80000000 0x40000000 /* 1 GB */
18 0xc0000000 0x40000000>; /* 1 GB */
19 };
20
21 /* FDC6331L controlled by SD_POW pin */
22 vmmcsd_fixed: fixedregulator@0 {
23 compatible = "regulator-fixed";
24 regulator-name = "vmmcsd_fixed";
25 regulator-min-microvolt = <3300000>;
26 regulator-max-microvolt = <3300000>;
27 };
28};
29
30&dm816x_pinmux {
31 mcspi1_pins: pinmux_mcspi1_pins {
32 pinctrl-single,pins = <
Tony Lindgrena710d102015-03-19 09:14:36 -070033 DM816X_IOPAD(0x0a94, MUX_MODE0) /* SPI_SCLK */
34 DM816X_IOPAD(0x0a98, MUX_MODE0) /* SPI_SCS0 */
35 DM816X_IOPAD(0x0aa8, MUX_MODE0) /* SPI_D0 */
36 DM816X_IOPAD(0x0aac, MUX_MODE0) /* SPI_D1 */
Tony Lindgrenac7452c2015-01-19 11:47:35 -080037 >;
38 };
Tony Lindgrena54879a2015-02-24 08:48:52 -080039
Tony Lindgren599c3762015-03-18 13:41:34 -070040 mmc_pins: pinmux_mmc_pins {
41 pinctrl-single,pins = <
42 DM816X_IOPAD(0x0a70, MUX_MODE0) /* SD_POW */
43 DM816X_IOPAD(0x0a74, MUX_MODE0) /* SD_CLK */
44 DM816X_IOPAD(0x0a78, MUX_MODE0) /* SD_CMD */
45 DM816X_IOPAD(0x0a7C, MUX_MODE0) /* SD_DAT0 */
46 DM816X_IOPAD(0x0a80, MUX_MODE0) /* SD_DAT1 */
47 DM816X_IOPAD(0x0a84, MUX_MODE0) /* SD_DAT2 */
48 DM816X_IOPAD(0x0a88, MUX_MODE0) /* SD_DAT2 */
49 DM816X_IOPAD(0x0a8c, MUX_MODE2) /* GP1[7] */
50 DM816X_IOPAD(0x0a90, MUX_MODE2) /* GP1[8] */
51 >;
52 };
53
Tony Lindgrena54879a2015-02-24 08:48:52 -080054 usb0_pins: pinmux_usb0_pins {
55 pinctrl-single,pins = <
Tony Lindgren3438bd22015-03-19 09:14:35 -070056 DM816X_IOPAD(0x0d04, MUX_MODE0) /* USB0_DRVVBUS */
Tony Lindgrena54879a2015-02-24 08:48:52 -080057 >;
58 };
59
Tony Lindgren3438bd22015-03-19 09:14:35 -070060 usb1_pins: pinmux_usb1_pins {
Tony Lindgrena54879a2015-02-24 08:48:52 -080061 pinctrl-single,pins = <
Tony Lindgren3438bd22015-03-19 09:14:35 -070062 DM816X_IOPAD(0x0d08, MUX_MODE0) /* USB1_DRVVBUS */
Tony Lindgrena54879a2015-02-24 08:48:52 -080063 >;
64 };
Tony Lindgrenac7452c2015-01-19 11:47:35 -080065};
66
67&i2c1 {
68 extgpio0: pcf8575@20 {
69 compatible = "nxp,pcf8575";
70 reg = <0x20>;
71 gpio-controller;
72 #gpio-cells = <2>;
73 };
74};
75
76&i2c2 {
77 extgpio1: pcf8575@20 {
78 compatible = "nxp,pcf8575";
79 reg = <0x20>;
80 gpio-controller;
81 #gpio-cells = <2>;
82 };
83};
84
85&gpmc {
86 ranges = <0 0 0x04000000 0x01000000>; /* CS0: 16MB for NAND */
87
88 nand@0,0 {
Roger Quadros6d840d82016-02-23 18:37:23 +020089 compatible = "ti,omap2-nand";
Tony Lindgrenac7452c2015-01-19 11:47:35 -080090 linux,mtd-name= "micron,mt29f2g16aadwp";
91 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
Roger Quadros6d840d82016-02-23 18:37:23 +020092 interrupt-parent = <&gpmc>;
93 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
94 <1 IRQ_TYPE_NONE>; /* termcount */
Tony Lindgrenac7452c2015-01-19 11:47:35 -080095 #address-cells = <1>;
96 #size-cells = <1>;
97 ti,nand-ecc-opt = "bch8";
98 nand-bus-width = <16>;
99 gpmc,device-width = <2>;
100 gpmc,sync-clk-ps = <0>;
101 gpmc,cs-on-ns = <0>;
102 gpmc,cs-rd-off-ns = <44>;
103 gpmc,cs-wr-off-ns = <44>;
104 gpmc,adv-on-ns = <6>;
105 gpmc,adv-rd-off-ns = <34>;
106 gpmc,adv-wr-off-ns = <44>;
107 gpmc,we-on-ns = <0>;
108 gpmc,we-off-ns = <40>;
109 gpmc,oe-on-ns = <0>;
110 gpmc,oe-off-ns = <54>;
111 gpmc,access-ns = <64>;
112 gpmc,rd-cycle-ns = <82>;
113 gpmc,wr-cycle-ns = <82>;
Tony Lindgrenac7452c2015-01-19 11:47:35 -0800114 gpmc,bus-turnaround-ns = <0>;
115 gpmc,cycle2cycle-delay-ns = <0>;
116 gpmc,clk-activation-ns = <0>;
Tony Lindgrenac7452c2015-01-19 11:47:35 -0800117 gpmc,wr-access-ns = <40>;
118 gpmc,wr-data-mux-bus-ns = <0>;
119 partition@0 {
120 label = "X-Loader";
121 reg = <0 0x80000>;
122 };
123 partition@0x80000 {
124 label = "U-Boot";
125 reg = <0x80000 0x1c0000>;
126 };
127 partition@0x1c0000 {
128 label = "Environment";
129 reg = <0x240000 0x40000>;
130 };
131 partition@0x280000 {
132 label = "Kernel";
133 reg = <0x280000 0x500000>;
134 };
135 partition@0x780000 {
136 label = "Filesystem";
137 reg = <0x780000 0xf880000>;
138 };
139 };
140};
141
142&mcspi1 {
143 pinctrl-names = "default";
144 pinctrl-0 = <&mcspi1_pins>;
145
146 m25p80@0 {
147 compatible = "w25x32";
148 spi-max-frequency = <48000000>;
149 reg = <0>;
150 #address-cells = <1>;
151 #size-cells = <1>;
152 };
153};
154
155&mmc1 {
Tony Lindgren599c3762015-03-18 13:41:34 -0700156 pinctrl-names = "default";
157 pinctrl-0 = <&mmc_pins>;
Tony Lindgrenac7452c2015-01-19 11:47:35 -0800158 vmmc-supply = <&vmmcsd_fixed>;
Tony Lindgren599c3762015-03-18 13:41:34 -0700159 bus-width = <4>;
160 cd-gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
161 wp-gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
Tony Lindgrenac7452c2015-01-19 11:47:35 -0800162};
Tony Lindgrena54879a2015-02-24 08:48:52 -0800163
164/* At least dm8168-evm rev c won't support multipoint, later may */
165&usb0 {
166 pinctrl-names = "default";
167 pinctrl-0 = <&usb0_pins>;
168 mentor,multipoint = <0>;
169};
170
171&usb1 {
172 pinctrl-names = "default";
173 pinctrl-0 = <&usb1_pins>;
174 mentor,multipoint = <0>;
175};