aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/dts/dra7-evm-common.dtsi')
-rw-r--r--arch/arm/dts/dra7-evm-common.dtsi190
1 files changed, 190 insertions, 0 deletions
diff --git a/arch/arm/dts/dra7-evm-common.dtsi b/arch/arm/dts/dra7-evm-common.dtsi
new file mode 100644
index 0000000000..78ffafd143
--- /dev/null
+++ b/arch/arm/dts/dra7-evm-common.dtsi
@@ -0,0 +1,190 @@
1/*
2 * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9#include <dt-bindings/gpio/gpio.h>
10#include <dt-bindings/input/input.h>
11
12/ {
13 chosen {
14 stdout-path = &uart1;
15 tick-timer = &timer2;
16 };
17
18 extcon_usb1: extcon_usb1 {
19 compatible = "linux,extcon-usb-gpio";
20 id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
21 };
22
23 extcon_usb2: extcon_usb2 {
24 compatible = "linux,extcon-usb-gpio";
25 id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
26 };
27
28 leds {
29 compatible = "gpio-leds";
30 led@0 {
31 label = "dra7:usr1";
32 gpios = <&pcf_lcd 4 GPIO_ACTIVE_LOW>;
33 default-state = "off";
34 };
35
36 led@1 {
37 label = "dra7:usr2";
38 gpios = <&pcf_lcd 5 GPIO_ACTIVE_LOW>;
39 default-state = "off";
40 };
41
42 led@2 {
43 label = "dra7:usr3";
44 gpios = <&pcf_lcd 6 GPIO_ACTIVE_LOW>;
45 default-state = "off";
46 };
47
48 led@3 {
49 label = "dra7:usr4";
50 gpios = <&pcf_lcd 7 GPIO_ACTIVE_LOW>;
51 default-state = "off";
52 };
53 };
54
55 gpio_keys {
56 compatible = "gpio-keys";
57 #address-cells = <1>;
58 #size-cells = <0>;
59 autorepeat;
60
61 USER1 {
62 label = "btnUser1";
63 linux,code = <BTN_0>;
64 gpios = <&pcf_lcd 2 GPIO_ACTIVE_LOW>;
65 };
66
67 USER2 {
68 label = "btnUser2";
69 linux,code = <BTN_1>;
70 gpios = <&pcf_lcd 3 GPIO_ACTIVE_LOW>;
71 };
72 };
73};
74
75&dra7_pmx_core {
76 dcan1_pins_default: dcan1_pins_default {
77 pinctrl-single,pins = <
78 0x3d0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* dcan1_tx */
79 0x418 (PULL_UP | MUX_MODE1) /* wakeup0.dcan1_rx */
80 >;
81 };
82
83 dcan1_pins_sleep: dcan1_pins_sleep {
84 pinctrl-single,pins = <
85 0x3d0 (MUX_MODE15 | PULL_UP) /* dcan1_tx.off */
86 0x418 (MUX_MODE15 | PULL_UP) /* wakeup0.off */
87 >;
88 };
89};
90
91&i2c3 {
92 status = "okay";
93 clock-frequency = <400000>;
94};
95
96&mcspi1 {
97 status = "okay";
98};
99
100&mcspi2 {
101 status = "okay";
102};
103
104&uart1 {
105 status = "okay";
106 interrupts-extended = <&crossbar_mpu GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
107 <&dra7_pmx_core 0x3e0>;
108};
109
110&uart2 {
111 status = "okay";
112};
113
114&uart3 {
115 status = "okay";
116};
117
118
119&qspi {
120 status = "okay";
121
122 spi-max-frequency = <76800000>;
123 m25p80@0 {
124 compatible = "s25fl256s1";
125 spi-max-frequency = <76800000>;
126 reg = <0>;
127 spi-tx-bus-width = <1>;
128 spi-rx-bus-width = <4>;
129 #address-cells = <1>;
130 #size-cells = <1>;
131
132 /* MTD partition table.
133 * The ROM checks the first four physical blocks
134 * for a valid file to boot and the flash here is
135 * 64KiB block size.
136 */
137 partition@0 {
138 label = "QSPI.SPL";
139 reg = <0x00000000 0x000040000>;
140 };
141 partition@1 {
142 label = "QSPI.u-boot";
143 reg = <0x00040000 0x00100000>;
144 };
145 partition@2 {
146 label = "QSPI.u-boot-spl-os";
147 reg = <0x00140000 0x00080000>;
148 };
149 partition@3 {
150 label = "QSPI.u-boot-env";
151 reg = <0x001c0000 0x00010000>;
152 };
153 partition@4 {
154 label = "QSPI.u-boot-env.backup1";
155 reg = <0x001d0000 0x0010000>;
156 };
157 partition@5 {
158 label = "QSPI.kernel";
159 reg = <0x001e0000 0x0800000>;
160 };
161 partition@6 {
162 label = "QSPI.file-system";
163 reg = <0x009e0000 0x01620000>;
164 };
165 };
166};
167
168&omap_dwc3_1 {
169 extcon = <&extcon_usb1>;
170};
171
172&omap_dwc3_2 {
173 extcon = <&extcon_usb2>;
174};
175
176&usb1 {
177 dr_mode = "peripheral";
178};
179
180&usb2 {
181 dr_mode = "host";
182};
183
184&dcan1 {
185 status = "ok";
186 pinctrl-names = "default", "sleep", "active";
187 pinctrl-0 = <&dcan1_pins_sleep>;
188 pinctrl-1 = <&dcan1_pins_sleep>;
189 pinctrl-2 = <&dcan1_pins_default>;
190};