blob: 397e98b7e246ae0a45a280a867583c35f064020f [file] [log] [blame]
Lokesh Vutla11e21912013-12-19 18:03:38 +05301/*
2 * Copyright (C) 2013 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/* AM437x GP EVM */
10
11/dts-v1/;
12
13#include "am4372.dtsi"
14#include <dt-bindings/pinctrl/am43xx.h>
Sourav Poddarc540b472013-12-19 18:03:39 +053015#include <dt-bindings/pwm/pwm.h>
Sourav Poddar51724db2013-12-19 18:03:41 +053016#include <dt-bindings/gpio/gpio.h>
Lokesh Vutla11e21912013-12-19 18:03:38 +053017
18/ {
19 model = "TI AM437x GP EVM";
20 compatible = "ti,am437x-gp-evm","ti,am4372","ti,am43";
Sourav Poddarc540b472013-12-19 18:03:39 +053021
Sathya Prakash M R0bacb522014-03-24 16:31:56 +053022 aliases {
23 display0 = &lcd0;
24 };
25
Lokesh Vutla24a1eb42017-01-18 09:33:24 +053026 chosen {
27 stdout-path = &uart0;
28 };
29
Peter Ujfalusi390810a2015-07-02 17:06:25 +030030 evm_v3_3d: fixedregulator-v3_3d {
Balaji T K506be3f2014-03-03 20:20:18 +053031 compatible = "regulator-fixed";
Peter Ujfalusi390810a2015-07-02 17:06:25 +030032 regulator-name = "evm_v3_3d";
Balaji T K506be3f2014-03-03 20:20:18 +053033 regulator-min-microvolt = <3300000>;
34 regulator-max-microvolt = <3300000>;
35 enable-active-high;
36 };
37
Dave Gerlachb2873bf2014-05-05 14:58:28 -050038 vtt_fixed: fixedregulator-vtt {
39 compatible = "regulator-fixed";
40 regulator-name = "vtt_fixed";
41 regulator-min-microvolt = <1500000>;
42 regulator-max-microvolt = <1500000>;
43 regulator-always-on;
44 regulator-boot-on;
45 enable-active-high;
46 gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>;
47 };
48
Eyal Reizerb6bbf592015-05-04 15:24:24 +030049 vmmcwl_fixed: fixedregulator-mmcwl {
50 compatible = "regulator-fixed";
51 regulator-name = "vmmcwl_fixed";
52 regulator-min-microvolt = <1800000>;
53 regulator-max-microvolt = <1800000>;
54 gpio = <&gpio1 20 GPIO_ACTIVE_HIGH>;
55 enable-active-high;
56 };
57
Sourav Poddarc540b472013-12-19 18:03:39 +053058 backlight {
59 compatible = "pwm-backlight";
60 pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;
61 brightness-levels = <0 51 53 56 62 75 101 152 255>;
62 default-brightness-level = <8>;
63 };
Sourav Poddar51724db2013-12-19 18:03:41 +053064
Javier Martinez Canillas18ad99d2016-08-01 12:46:57 -040065 matrix_keypad: matrix_keypad0 {
Sourav Poddar51724db2013-12-19 18:03:41 +053066 compatible = "gpio-matrix-keypad";
67 debounce-delay-ms = <5>;
68 col-scan-delay-us = <2>;
69
70 row-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH /* Bank3, pin21 */
71 &gpio4 3 GPIO_ACTIVE_HIGH /* Bank4, pin3 */
72 &gpio4 2 GPIO_ACTIVE_HIGH>; /* Bank4, pin2 */
73
74 col-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH /* Bank3, pin19 */
75 &gpio3 20 GPIO_ACTIVE_HIGH>; /* Bank3, pin20 */
76
77 linux,keymap = <0x00000201 /* P1 */
78 0x00010202 /* P2 */
79 0x01000067 /* UP */
80 0x0101006a /* RIGHT */
81 0x02000069 /* LEFT */
82 0x0201006c>; /* DOWN */
83 };
Sathya Prakash M R0bacb522014-03-24 16:31:56 +053084
85 lcd0: display {
86 compatible = "osddisplays,osd057T0559-34ts", "panel-dpi";
87 label = "lcd";
88
Sathya Prakash M R0bacb522014-03-24 16:31:56 +053089 panel-timing {
90 clock-frequency = <33000000>;
91 hactive = <800>;
92 vactive = <480>;
93 hfront-porch = <210>;
94 hback-porch = <16>;
95 hsync-len = <30>;
96 vback-porch = <10>;
97 vfront-porch = <22>;
98 vsync-len = <13>;
99 hsync-active = <0>;
100 vsync-active = <0>;
101 de-active = <1>;
102 pixelclk-active = <1>;
103 };
104
105 port {
106 lcd_in: endpoint {
107 remote-endpoint = <&dpi_out>;
108 };
109 };
110 };
Lad, Prabhakar3aa59202015-03-12 23:38:21 +0000111
112 /* fixed 12MHz oscillator */
113 refclk: oscillator {
114 #clock-cells = <0>;
115 compatible = "fixed-clock";
116 clock-frequency = <12000000>;
117 };
118
Keerthyfff51e72015-08-18 15:11:14 +0530119 /* fixed 32k external oscillator clock */
120 clk_32k_rtc: clk_32k_rtc {
121 #clock-cells = <0>;
122 compatible = "fixed-clock";
123 clock-frequency = <32768>;
124 };
125
Javier Martinez Canillas4e8603e2016-04-01 16:20:21 -0400126 sound0: sound0 {
Peter Ujfalusicf9a4852015-07-02 17:06:28 +0300127 compatible = "simple-audio-card";
128 simple-audio-card,name = "AM437x-GP-EVM";
129 simple-audio-card,widgets =
130 "Headphone", "Headphone Jack",
131 "Line", "Line In";
132 simple-audio-card,routing =
133 "Headphone Jack", "HPLOUT",
134 "Headphone Jack", "HPROUT",
135 "LINE1L", "Line In",
136 "LINE1R", "Line In";
137 simple-audio-card,format = "dsp_b";
138 simple-audio-card,bitclock-master = <&sound0_master>;
139 simple-audio-card,frame-master = <&sound0_master>;
140 simple-audio-card,bitclock-inversion;
141
142 simple-audio-card,cpu {
143 sound-dai = <&mcasp1>;
144 system-clock-frequency = <12000000>;
145 };
146
147 sound0_master: simple-audio-card,codec {
148 sound-dai = <&tlv320aic3106>;
149 system-clock-frequency = <12000000>;
150 };
151 };
Lokesh Vutla11e21912013-12-19 18:03:38 +0530152};
153
154&am43xx_pinmux {
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300155 pinctrl-names = "default", "sleep";
156 pinctrl-0 = <&wlan_pins_default>;
157 pinctrl-1 = <&wlan_pins_sleep>;
158
Lokesh Vutla11e21912013-12-19 18:03:38 +0530159 i2c0_pins: i2c0_pins {
160 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300161 AM4372_IOPAD(0x988, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */
162 AM4372_IOPAD(0x98c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */
Lokesh Vutla11e21912013-12-19 18:03:38 +0530163 >;
164 };
165
166 i2c1_pins: i2c1_pins {
167 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300168 AM4372_IOPAD(0x95c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2) /* spi0_cs0.i2c1_scl */
169 AM4372_IOPAD(0x958, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2) /* spi0_d1.i2c1_sda */
Lokesh Vutla11e21912013-12-19 18:03:38 +0530170 >;
171 };
Sourav Poddarc540b472013-12-19 18:03:39 +0530172
Balaji T K506be3f2014-03-03 20:20:18 +0530173 mmc1_pins: pinmux_mmc1_pins {
174 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300175 AM4372_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
Balaji T K506be3f2014-03-03 20:20:18 +0530176 >;
177 };
178
Sourav Poddarc540b472013-12-19 18:03:39 +0530179 ecap0_pins: backlight_pins {
180 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300181 AM4372_IOPAD(0x964, MUX_MODE0) /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
Sourav Poddarc540b472013-12-19 18:03:39 +0530182 >;
183 };
Sekhar Nori0ebc1e22014-04-30 15:43:25 +0300184
185 pixcir_ts_pins: pixcir_ts_pins {
186 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300187 AM4372_IOPAD(0xa64, PIN_INPUT_PULLUP | MUX_MODE7) /* spi2_d0.gpio3_22 */
Sekhar Nori0ebc1e22014-04-30 15:43:25 +0300188 >;
189 };
Mugunthan V N7b25bab2014-05-13 14:14:31 +0530190
191 cpsw_default: cpsw_default {
192 pinctrl-single,pins = <
193 /* Slave 1 */
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300194 AM4372_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_txen */
195 AM4372_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxdv.rgmii1_rxctl */
196 AM4372_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_txd3 */
197 AM4372_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_txd2 */
198 AM4372_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_txd1 */
199 AM4372_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_txd0 */
200 AM4372_IOPAD(0x92c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rmii1_tclk */
201 AM4372_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxclk.rmii1_rclk */
202 AM4372_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd3 */
203 AM4372_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd2 */
204 AM4372_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd1 */
205 AM4372_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd0 */
Mugunthan V N7b25bab2014-05-13 14:14:31 +0530206 >;
207 };
208
209 cpsw_sleep: cpsw_sleep {
210 pinctrl-single,pins = <
211 /* Slave 1 reset value */
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300212 AM4372_IOPAD(0x914, PIN_INPUT_PULLDOWN | MUX_MODE7)
213 AM4372_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE7)
214 AM4372_IOPAD(0x91c, PIN_INPUT_PULLDOWN | MUX_MODE7)
215 AM4372_IOPAD(0x920, PIN_INPUT_PULLDOWN | MUX_MODE7)
216 AM4372_IOPAD(0x924, PIN_INPUT_PULLDOWN | MUX_MODE7)
217 AM4372_IOPAD(0x928, PIN_INPUT_PULLDOWN | MUX_MODE7)
218 AM4372_IOPAD(0x92c, PIN_INPUT_PULLDOWN | MUX_MODE7)
219 AM4372_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE7)
220 AM4372_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE7)
221 AM4372_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE7)
222 AM4372_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE7)
223 AM4372_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE7)
Mugunthan V N7b25bab2014-05-13 14:14:31 +0530224 >;
225 };
226
227 davinci_mdio_default: davinci_mdio_default {
228 pinctrl-single,pins = <
229 /* MDIO */
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300230 AM4372_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
231 AM4372_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
Mugunthan V N7b25bab2014-05-13 14:14:31 +0530232 >;
233 };
234
235 davinci_mdio_sleep: davinci_mdio_sleep {
236 pinctrl-single,pins = <
237 /* MDIO reset value */
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300238 AM4372_IOPAD(0x948, PIN_INPUT_PULLDOWN | MUX_MODE7)
239 AM4372_IOPAD(0x94c, PIN_INPUT_PULLDOWN | MUX_MODE7)
Mugunthan V N7b25bab2014-05-13 14:14:31 +0530240 >;
241 };
Pekon Gupta99ffa642014-05-19 14:45:46 +0530242
243 nand_flash_x8: nand_flash_x8 {
244 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300245 AM4372_IOPAD(0x800, PIN_INPUT | MUX_MODE0) /* gpmc_ad0.gpmc_ad0 */
246 AM4372_IOPAD(0x804, PIN_INPUT | MUX_MODE0) /* gpmc_ad1.gpmc_ad1 */
247 AM4372_IOPAD(0x808, PIN_INPUT | MUX_MODE0) /* gpmc_ad2.gpmc_ad2 */
248 AM4372_IOPAD(0x80c, PIN_INPUT | MUX_MODE0) /* gpmc_ad3.gpmc_ad3 */
249 AM4372_IOPAD(0x810, PIN_INPUT | MUX_MODE0) /* gpmc_ad4.gpmc_ad4 */
250 AM4372_IOPAD(0x814, PIN_INPUT | MUX_MODE0) /* gpmc_ad5.gpmc_ad5 */
251 AM4372_IOPAD(0x818, PIN_INPUT | MUX_MODE0) /* gpmc_ad6.gpmc_ad6 */
252 AM4372_IOPAD(0x81c, PIN_INPUT | MUX_MODE0) /* gpmc_ad7.gpmc_ad7 */
253 AM4372_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0.gpmc_wait0 */
254 AM4372_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpmc_wpn */
255 AM4372_IOPAD(0x87c, PIN_OUTPUT | MUX_MODE0) /* gpmc_csn0.gpmc_csn0 */
256 AM4372_IOPAD(0x890, PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale.gpmc_advn_ale */
257 AM4372_IOPAD(0x894, PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren.gpmc_oen_ren */
258 AM4372_IOPAD(0x898, PIN_OUTPUT | MUX_MODE0) /* gpmc_wen.gpmc_wen */
259 AM4372_IOPAD(0x89c, PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle.gpmc_be0n_cle */
Pekon Gupta99ffa642014-05-19 14:45:46 +0530260 >;
261 };
Sathya Prakash M R0bacb522014-03-24 16:31:56 +0530262
263 dss_pins: dss_pins {
264 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300265 AM4372_IOPAD(0x820, PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 8 -> DSS DATA 23 */
266 AM4372_IOPAD(0x824, PIN_OUTPUT_PULLUP | MUX_MODE1)
267 AM4372_IOPAD(0x828, PIN_OUTPUT_PULLUP | MUX_MODE1)
268 AM4372_IOPAD(0x82c, PIN_OUTPUT_PULLUP | MUX_MODE1)
269 AM4372_IOPAD(0x830, PIN_OUTPUT_PULLUP | MUX_MODE1)
270 AM4372_IOPAD(0x834, PIN_OUTPUT_PULLUP | MUX_MODE1)
271 AM4372_IOPAD(0x838, PIN_OUTPUT_PULLUP | MUX_MODE1)
272 AM4372_IOPAD(0x83c, PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 15 -> DSS DATA 16 */
273 AM4372_IOPAD(0x8a0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 0 */
274 AM4372_IOPAD(0x8a4, PIN_OUTPUT_PULLUP | MUX_MODE0)
275 AM4372_IOPAD(0x8a8, PIN_OUTPUT_PULLUP | MUX_MODE0)
276 AM4372_IOPAD(0x8ac, PIN_OUTPUT_PULLUP | MUX_MODE0)
277 AM4372_IOPAD(0x8b0, PIN_OUTPUT_PULLUP | MUX_MODE0)
278 AM4372_IOPAD(0x8b4, PIN_OUTPUT_PULLUP | MUX_MODE0)
279 AM4372_IOPAD(0x8b8, PIN_OUTPUT_PULLUP | MUX_MODE0)
280 AM4372_IOPAD(0x8bc, PIN_OUTPUT_PULLUP | MUX_MODE0)
281 AM4372_IOPAD(0x8c0, PIN_OUTPUT_PULLUP | MUX_MODE0)
282 AM4372_IOPAD(0x8c4, PIN_OUTPUT_PULLUP | MUX_MODE0)
283 AM4372_IOPAD(0x8c8, PIN_OUTPUT_PULLUP | MUX_MODE0)
284 AM4372_IOPAD(0x8cc, PIN_OUTPUT_PULLUP | MUX_MODE0)
285 AM4372_IOPAD(0x8d0, PIN_OUTPUT_PULLUP | MUX_MODE0)
286 AM4372_IOPAD(0x8d4, PIN_OUTPUT_PULLUP | MUX_MODE0)
287 AM4372_IOPAD(0x8d8, PIN_OUTPUT_PULLUP | MUX_MODE0)
288 AM4372_IOPAD(0x8dc, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 15 */
289 AM4372_IOPAD(0x8e0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS VSYNC */
290 AM4372_IOPAD(0x8e4, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS HSYNC */
291 AM4372_IOPAD(0x8e8, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS PCLK */
292 AM4372_IOPAD(0x8ec, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS AC BIAS EN */
Sathya Prakash M R0bacb522014-03-24 16:31:56 +0530293
294 >;
295 };
296
Peter Ujfalusi593113e2015-07-02 17:06:24 +0300297 display_mux_pins: display_mux_pins {
Sathya Prakash M R0bacb522014-03-24 16:31:56 +0530298 pinctrl-single,pins = <
299 /* GPIO 5_8 to select LCD / HDMI */
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300300 AM4372_IOPAD(0xa38, PIN_OUTPUT_PULLUP | MUX_MODE7)
Sathya Prakash M R0bacb522014-03-24 16:31:56 +0530301 >;
302 };
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530303
304 dcan0_default: dcan0_default_pins {
305 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300306 AM4372_IOPAD(0x978, PIN_OUTPUT | MUX_MODE2) /* uart1_ctsn.d_can0_tx */
307 AM4372_IOPAD(0x97c, PIN_INPUT_PULLUP | MUX_MODE2) /* uart1_rtsn.d_can0_rx */
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530308 >;
309 };
310
Roger Quadrosf95b1062015-08-18 17:01:57 +0300311 dcan0_sleep: dcan0_sleep_pins {
312 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300313 AM4372_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE7) /* uart1_ctsn.gpio0_12 */
314 AM4372_IOPAD(0x97c, PIN_INPUT_PULLUP | MUX_MODE7) /* uart1_rtsn.gpio0_13 */
Roger Quadrosf95b1062015-08-18 17:01:57 +0300315 >;
316 };
317
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530318 dcan1_default: dcan1_default_pins {
319 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300320 AM4372_IOPAD(0x980, PIN_OUTPUT | MUX_MODE2) /* uart1_rxd.d_can1_tx */
321 AM4372_IOPAD(0x984, PIN_INPUT_PULLUP | MUX_MODE2) /* uart1_txd.d_can1_rx */
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530322 >;
323 };
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530324
Roger Quadrosf95b1062015-08-18 17:01:57 +0300325 dcan1_sleep: dcan1_sleep_pins {
326 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300327 AM4372_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE7) /* uart1_rxd.gpio0_14 */
328 AM4372_IOPAD(0x984, PIN_INPUT_PULLUP | MUX_MODE7) /* uart1_txd.gpio0_15 */
Roger Quadrosf95b1062015-08-18 17:01:57 +0300329 >;
330 };
331
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530332 vpfe0_pins_default: vpfe0_pins_default {
333 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300334 AM4372_IOPAD(0x9b0, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_hd mode 0*/
335 AM4372_IOPAD(0x9b4, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_vd mode 0*/
336 AM4372_IOPAD(0x9c0, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_pclk mode 0*/
337 AM4372_IOPAD(0x9c4, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data8 mode 0*/
338 AM4372_IOPAD(0x9c8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data9 mode 0*/
339 AM4372_IOPAD(0xa08, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data0 mode 0*/
340 AM4372_IOPAD(0xa0c, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data1 mode 0*/
341 AM4372_IOPAD(0xa10, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data2 mode 0*/
342 AM4372_IOPAD(0xa14, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data3 mode 0*/
343 AM4372_IOPAD(0xa18, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data4 mode 0*/
344 AM4372_IOPAD(0xa1c, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data5 mode 0*/
345 AM4372_IOPAD(0xa20, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data6 mode 0*/
346 AM4372_IOPAD(0xa24, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data7 mode 0*/
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530347 >;
348 };
349
350 vpfe0_pins_sleep: vpfe0_pins_sleep {
351 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300352 AM4372_IOPAD(0x9b0, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_hd mode 0*/
353 AM4372_IOPAD(0x9b4, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_vd mode 0*/
354 AM4372_IOPAD(0x9c0, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_pclk mode 0*/
355 AM4372_IOPAD(0x9c4, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data8 mode 0*/
356 AM4372_IOPAD(0x9c8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data9 mode 0*/
357 AM4372_IOPAD(0xa08, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data0 mode 0*/
358 AM4372_IOPAD(0xa0c, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data1 mode 0*/
359 AM4372_IOPAD(0xa10, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data2 mode 0*/
360 AM4372_IOPAD(0xa14, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data3 mode 0*/
361 AM4372_IOPAD(0xa18, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data4 mode 0*/
362 AM4372_IOPAD(0xa1c, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data5 mode 0*/
363 AM4372_IOPAD(0xa20, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data6 mode 0*/
364 AM4372_IOPAD(0xa24, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data7 mode 0*/
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530365 >;
366 };
367
368 vpfe1_pins_default: vpfe1_pins_default {
369 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300370 AM4372_IOPAD(0x9cc, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data9 mode 0*/
371 AM4372_IOPAD(0x9d0, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data8 mode 0*/
372 AM4372_IOPAD(0x9d4, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_hd mode 0*/
373 AM4372_IOPAD(0x9d8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_vd mode 0*/
374 AM4372_IOPAD(0x9dC, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_pclk mode 0*/
375 AM4372_IOPAD(0x9e8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data0 mode 0*/
376 AM4372_IOPAD(0x9ec, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data1 mode 0*/
377 AM4372_IOPAD(0x9f0, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data2 mode 0*/
378 AM4372_IOPAD(0x9f4, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data3 mode 0*/
379 AM4372_IOPAD(0x9f8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data4 mode 0*/
380 AM4372_IOPAD(0x9fc, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data5 mode 0*/
381 AM4372_IOPAD(0xa00, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data6 mode 0*/
382 AM4372_IOPAD(0xa04, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data7 mode 0*/
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530383 >;
384 };
385
386 vpfe1_pins_sleep: vpfe1_pins_sleep {
387 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300388 AM4372_IOPAD(0x9cc, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data9 mode 0*/
389 AM4372_IOPAD(0x9d0, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data8 mode 0*/
390 AM4372_IOPAD(0x9d4, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_hd mode 0*/
391 AM4372_IOPAD(0x9d8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_vd mode 0*/
392 AM4372_IOPAD(0x9dc, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_pclk mode 0*/
393 AM4372_IOPAD(0x9e8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data0 mode 0*/
394 AM4372_IOPAD(0x9ec, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data1 mode 0*/
395 AM4372_IOPAD(0x9f0, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data2 mode 0*/
396 AM4372_IOPAD(0x9f4, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data3 mode 0*/
397 AM4372_IOPAD(0x9f8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data4 mode 0*/
398 AM4372_IOPAD(0x9fc, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data5 mode 0*/
399 AM4372_IOPAD(0xa00, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data6 mode 0*/
400 AM4372_IOPAD(0xa04, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data7 mode 0*/
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530401 >;
402 };
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300403
404 mmc3_pins_default: pinmux_mmc3_pins_default {
405 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300406 AM4372_IOPAD(0x88c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_clk.mmc2_clk */
407 AM4372_IOPAD(0x888, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_csn3.mmc2_cmd */
408 AM4372_IOPAD(0x844, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a1.mmc2_dat0 */
409 AM4372_IOPAD(0x848, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a2.mmc2_dat1 */
410 AM4372_IOPAD(0x84c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a3.mmc2_dat2 */
411 AM4372_IOPAD(0x878, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_be1n.mmc2_dat3 */
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300412 >;
413 };
414
415 mmc3_pins_sleep: pinmux_mmc3_pins_sleep {
416 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300417 AM4372_IOPAD(0x88c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_clk.mmc2_clk */
418 AM4372_IOPAD(0x888, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn3.mmc2_cmd */
419 AM4372_IOPAD(0x844, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a1.mmc2_dat0 */
420 AM4372_IOPAD(0x848, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a2.mmc2_dat1 */
421 AM4372_IOPAD(0x84c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a3.mmc2_dat2 */
422 AM4372_IOPAD(0x878, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_be1n.mmc2_dat3 */
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300423 >;
424 };
425
426 wlan_pins_default: pinmux_wlan_pins_default {
427 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300428 AM4372_IOPAD(0x850, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a4.gpio1_20 WL_EN */
429 AM4372_IOPAD(0x85c, PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7) /* gpmc_a7.gpio1_23 WL_IRQ*/
430 AM4372_IOPAD(0x840, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a0.gpio1_16 BT_EN*/
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300431 >;
432 };
433
434 wlan_pins_sleep: pinmux_wlan_pins_sleep {
435 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300436 AM4372_IOPAD(0x850, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a4.gpio1_20 WL_EN */
437 AM4372_IOPAD(0x85c, PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7) /* gpmc_a7.gpio1_23 WL_IRQ*/
438 AM4372_IOPAD(0x840, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a0.gpio1_16 BT_EN*/
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300439 >;
440 };
441
442 uart3_pins: uart3_pins {
443 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300444 AM4372_IOPAD(0xa28, PIN_INPUT | MUX_MODE0) /* uart3_rxd.uart3_rxd */
445 AM4372_IOPAD(0xa2c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_txd.uart3_txd */
446 AM4372_IOPAD(0xa30, PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_ctsn.uart3_ctsn */
447 AM4372_IOPAD(0xa34, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_rtsn.uart3_rtsn */
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300448 >;
449 };
Peter Ujfalusid3d92af2015-07-02 17:06:27 +0300450
451 mcasp1_pins: mcasp1_pins {
452 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300453 AM4372_IOPAD(0x908, PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* mii1_col.mcasp1_axr2 */
454 AM4372_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_crs.mcasp1_aclkx */
455 AM4372_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_rxerr.mcasp1_fsx */
456 AM4372_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE4) /* rmii1_ref_clk.mcasp1_axr3 */
Peter Ujfalusid3d92af2015-07-02 17:06:27 +0300457 >;
458 };
459
460 mcasp1_sleep_pins: mcasp1_sleep_pins {
461 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300462 AM4372_IOPAD(0x908, PIN_INPUT_PULLDOWN | MUX_MODE7)
463 AM4372_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE7)
464 AM4372_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE7)
465 AM4372_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE7)
Peter Ujfalusid3d92af2015-07-02 17:06:27 +0300466 >;
467 };
Roger Quadros50336f52015-08-04 18:34:59 +0300468
469 gpio0_pins: gpio0_pins {
470 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300471 AM4372_IOPAD(0xa6c, PIN_OUTPUT | MUX_MODE9) /* spi2_cs0.gpio0_23 SEL_eMMCorNANDn */
Roger Quadros50336f52015-08-04 18:34:59 +0300472 >;
473 };
Roger Quadroseb157c82015-08-04 18:35:00 +0300474
475 emmc_pins_default: emmc_pins_default {
476 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300477 AM4372_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
478 AM4372_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
479 AM4372_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
480 AM4372_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
481 AM4372_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
482 AM4372_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
483 AM4372_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
484 AM4372_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
485 AM4372_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
486 AM4372_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
Roger Quadroseb157c82015-08-04 18:35:00 +0300487 >;
488 };
489
490 emmc_pins_sleep: emmc_pins_sleep {
491 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300492 AM4372_IOPAD(0x800, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad0.gpio1_0 */
493 AM4372_IOPAD(0x804, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad1.gpio1_1 */
494 AM4372_IOPAD(0x808, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad2.gpio1_2 */
495 AM4372_IOPAD(0x80c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad3.gpio1_3 */
496 AM4372_IOPAD(0x810, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad4.gpio1_4 */
497 AM4372_IOPAD(0x814, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad5.gpio1_5 */
498 AM4372_IOPAD(0x818, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad6.gpio1_6 */
499 AM4372_IOPAD(0x81c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad7.gpio1_7 */
500 AM4372_IOPAD(0x880, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn1.gpio1_30 */
501 AM4372_IOPAD(0x884, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn2.gpio1_31 */
Roger Quadroseb157c82015-08-04 18:35:00 +0300502 >;
503 };
Vignesh Rbb7d9782017-03-22 21:06:34 +0530504
505 uart0_pins_default: uart0_pins_default {
506 pinctrl-single,pins = <
507 AM4372_IOPAD(0x968, PIN_INPUT | MUX_MODE0) /* uart0_ctsn.uart0_ctsn */
508 AM4372_IOPAD(0x96C, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_rtsn.uart0_rtsn */
509 AM4372_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
510 AM4372_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
511 >;
512 };
513};
514
515&uart0 {
516 status = "okay";
517 pinctrl-names = "default";
518 pinctrl-0 = <&uart0_pins_default>;
Lokesh Vutla11e21912013-12-19 18:03:38 +0530519};
520
521&i2c0 {
Keerthy1fc98142014-07-09 11:06:31 +0530522 status = "okay";
523 pinctrl-names = "default";
524 pinctrl-0 = <&i2c0_pins>;
Nishanth Menon93166412014-09-03 13:46:21 -0500525 clock-frequency = <100000>;
Keerthy0e2da5e2014-07-09 11:06:32 +0530526
527 tps65218: tps65218@24 {
528 reg = <0x24>;
529 compatible = "ti,tps65218";
530 interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* NMIn */
Keerthy0e2da5e2014-07-09 11:06:32 +0530531 interrupt-controller;
532 #interrupt-cells = <2>;
533
534 dcdc1: regulator-dcdc1 {
Keerthy0e2da5e2014-07-09 11:06:32 +0530535 regulator-name = "vdd_core";
536 regulator-min-microvolt = <912000>;
537 regulator-max-microvolt = <1144000>;
538 regulator-boot-on;
539 regulator-always-on;
540 };
541
542 dcdc2: regulator-dcdc2 {
Keerthy0e2da5e2014-07-09 11:06:32 +0530543 regulator-name = "vdd_mpu";
544 regulator-min-microvolt = <912000>;
545 regulator-max-microvolt = <1378000>;
546 regulator-boot-on;
547 regulator-always-on;
548 };
549
550 dcdc3: regulator-dcdc3 {
Keerthy0e2da5e2014-07-09 11:06:32 +0530551 regulator-name = "vdcdc3";
Keerthy3015ddb2014-11-06 16:20:03 +0530552 regulator-min-microvolt = <1500000>;
553 regulator-max-microvolt = <1500000>;
Keerthy0e2da5e2014-07-09 11:06:32 +0530554 regulator-boot-on;
555 regulator-always-on;
Keerthy1bc5e132016-08-11 10:57:48 +0530556 regulator-state-mem {
557 regulator-on-in-suspend;
558 };
Tero Kristo7ec32992016-08-11 10:57:49 +0530559 regulator-state-disk {
560 regulator-off-in-suspend;
561 };
Keerthy0e2da5e2014-07-09 11:06:32 +0530562 };
Keerthy1bc5e132016-08-11 10:57:48 +0530563
Keerthy0e2da5e2014-07-09 11:06:32 +0530564 dcdc5: regulator-dcdc5 {
Keerthy0e2da5e2014-07-09 11:06:32 +0530565 regulator-name = "v1_0bat";
566 regulator-min-microvolt = <1000000>;
567 regulator-max-microvolt = <1000000>;
Dave Gerlach1e9f7472015-08-05 16:19:46 +0530568 regulator-boot-on;
569 regulator-always-on;
Keerthy1bc5e132016-08-11 10:57:48 +0530570 regulator-state-mem {
571 regulator-on-in-suspend;
572 };
Keerthy0e2da5e2014-07-09 11:06:32 +0530573 };
574
575 dcdc6: regulator-dcdc6 {
Keerthy0e2da5e2014-07-09 11:06:32 +0530576 regulator-name = "v1_8bat";
577 regulator-min-microvolt = <1800000>;
578 regulator-max-microvolt = <1800000>;
Dave Gerlach1e9f7472015-08-05 16:19:46 +0530579 regulator-boot-on;
580 regulator-always-on;
Keerthy1bc5e132016-08-11 10:57:48 +0530581 regulator-state-mem {
582 regulator-on-in-suspend;
583 };
Keerthy0e2da5e2014-07-09 11:06:32 +0530584 };
585
586 ldo1: regulator-ldo1 {
Keerthy0e2da5e2014-07-09 11:06:32 +0530587 regulator-min-microvolt = <1800000>;
588 regulator-max-microvolt = <1800000>;
589 regulator-boot-on;
590 regulator-always-on;
591 };
592 };
Lad, Prabhakar3aa59202015-03-12 23:38:21 +0000593
594 ov2659@30 {
595 compatible = "ovti,ov2659";
596 reg = <0x30>;
597
598 clocks = <&refclk 0>;
599 clock-names = "xvclk";
600
601 port {
602 ov2659_0: endpoint {
603 remote-endpoint = <&vpfe1_ep>;
604 link-frequencies = /bits/ 64 <70000000>;
605 };
606 };
607 };
Lokesh Vutla11e21912013-12-19 18:03:38 +0530608};
609
610&i2c1 {
Keerthy1fc98142014-07-09 11:06:31 +0530611 status = "okay";
612 pinctrl-names = "default";
613 pinctrl-0 = <&i2c1_pins>;
Sekhar Nori0ebc1e22014-04-30 15:43:25 +0300614 pixcir_ts@5c {
615 compatible = "pixcir,pixcir_tangoc";
616 pinctrl-names = "default";
617 pinctrl-0 = <&pixcir_ts_pins>;
618 reg = <0x5c>;
Sekhar Nori0ebc1e22014-04-30 15:43:25 +0300619
620 attb-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
621
Vignesh Rf513d222015-10-14 19:24:25 +0530622 /*
623 * 0x264 represents the offset of padconf register of
624 * gpio3_22 from am43xx_pinmux base.
625 */
Grygorii Strashko95e7d032015-12-28 15:52:39 +0200626 interrupts-extended = <&gpio3 22 IRQ_TYPE_EDGE_FALLING>,
Vignesh Rf513d222015-10-14 19:24:25 +0530627 <&am43xx_pinmux 0x264>;
628 interrupt-names = "tsc", "wakeup";
629
Roger Quadrosf0486152014-07-28 10:11:37 -0700630 touchscreen-size-x = <1024>;
631 touchscreen-size-y = <600>;
Vignesh Rf513d222015-10-14 19:24:25 +0530632 wakeup-source;
Sekhar Nori0ebc1e22014-04-30 15:43:25 +0300633 };
Lad, Prabhakar3aa59202015-03-12 23:38:21 +0000634
635 ov2659@30 {
636 compatible = "ovti,ov2659";
637 reg = <0x30>;
638
639 clocks = <&refclk 0>;
640 clock-names = "xvclk";
641
642 port {
643 ov2659_1: endpoint {
644 remote-endpoint = <&vpfe0_ep>;
645 link-frequencies = /bits/ 64 <70000000>;
646 };
647 };
648 };
Peter Ujfalusi6076b152015-07-02 17:06:26 +0300649
650 tlv320aic3106: tlv320aic3106@1b {
Peter Ujfalusicf9a4852015-07-02 17:06:28 +0300651 #sound-dai-cells = <0>;
Peter Ujfalusi6076b152015-07-02 17:06:26 +0300652 compatible = "ti,tlv320aic3106";
653 reg = <0x1b>;
654 status = "okay";
655
656 /* Regulators */
657 IOVDD-supply = <&evm_v3_3d>; /* V3_3D -> <tps63031> EN: V1_8D -> VBAT */
658 AVDD-supply = <&evm_v3_3d>; /* v3_3AUD -> V3_3D -> ... */
659 DRVDD-supply = <&evm_v3_3d>; /* v3_3AUD -> V3_3D -> ... */
660 DVDD-supply = <&ldo1>; /* V1_8D -> LDO1 */
661 };
Lokesh Vutla11e21912013-12-19 18:03:38 +0530662};
Sourav Poddarc540b472013-12-19 18:03:39 +0530663
664&epwmss0 {
665 status = "okay";
666};
667
Vignesh R0f39f7b2014-11-21 15:44:22 +0530668&tscadc {
669 status = "okay";
670
671 adc {
672 ti,adc-channels = <0 1 2 3 4 5 6 7>;
673 };
674};
675
Sourav Poddarc540b472013-12-19 18:03:39 +0530676&ecap0 {
677 status = "okay";
678 pinctrl-names = "default";
679 pinctrl-0 = <&ecap0_pins>;
680};
Sourav Poddard3d46cc2013-12-19 18:03:40 +0530681
Balaji T K506be3f2014-03-03 20:20:18 +0530682&gpio0 {
Roger Quadros50336f52015-08-04 18:34:59 +0300683 pinctrl-names = "default";
684 pinctrl-0 = <&gpio0_pins>;
Balaji T K506be3f2014-03-03 20:20:18 +0530685 status = "okay";
Roger Quadros50336f52015-08-04 18:34:59 +0300686
687 p23 {
688 gpio-hog;
689 gpios = <23 GPIO_ACTIVE_HIGH>;
690 /* SelEMMCorNAND selects between eMMC and NAND:
691 * Low: NAND
692 * High: eMMC
693 * When changing this line make sure the newly
694 * selected device node is enabled and the previously
695 * selected device node is disabled.
696 */
697 output-low;
698 line-name = "SelEMMCorNAND";
699 };
Balaji T K506be3f2014-03-03 20:20:18 +0530700};
701
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300702&gpio1 {
703 status = "okay";
704};
705
Sourav Poddard3d46cc2013-12-19 18:03:40 +0530706&gpio3 {
707 status = "okay";
708};
709
710&gpio4 {
711 status = "okay";
712};
Balaji T K506be3f2014-03-03 20:20:18 +0530713
Dave Gerlach1ff3859e2014-03-21 10:50:13 +0530714&gpio5 {
Peter Ujfalusi593113e2015-07-02 17:06:24 +0300715 pinctrl-names = "default";
716 pinctrl-0 = <&display_mux_pins>;
Dave Gerlach1ff3859e2014-03-21 10:50:13 +0530717 status = "okay";
718 ti,no-reset-on-init;
Peter Ujfalusi593113e2015-07-02 17:06:24 +0300719
720 p8 {
721 /*
722 * SelLCDorHDMI selects between display and audio paths:
723 * Low: HDMI display with audio via HDMI
724 * High: LCD display with analog audio via aic3111 codec
725 */
726 gpio-hog;
727 gpios = <8 GPIO_ACTIVE_HIGH>;
728 output-high;
729 line-name = "SelLCDorHDMI";
730 };
Dave Gerlach1ff3859e2014-03-21 10:50:13 +0530731};
732
Balaji T K506be3f2014-03-03 20:20:18 +0530733&mmc1 {
734 status = "okay";
Peter Ujfalusi390810a2015-07-02 17:06:25 +0300735 vmmc-supply = <&evm_v3_3d>;
Balaji T K506be3f2014-03-03 20:20:18 +0530736 bus-width = <4>;
737 pinctrl-names = "default";
738 pinctrl-0 = <&mmc1_pins>;
Mugunthan V N0731cbd2015-10-12 14:37:11 +0530739 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
Balaji T K506be3f2014-03-03 20:20:18 +0530740};
George Cherianb5820d32014-03-19 15:40:02 +0530741
Roger Quadroseb157c82015-08-04 18:35:00 +0300742/* eMMC sits on mmc2 */
743&mmc2 {
744 /*
745 * When enabling eMMC, disable GPMC/NAND and set
746 * SelEMMCorNAND to output-high
747 */
748 status = "disabled";
749 vmmc-supply = <&evm_v3_3d>;
750 bus-width = <8>;
751 pinctrl-names = "default", "sleep";
752 pinctrl-0 = <&emmc_pins_default>;
753 pinctrl-1 = <&emmc_pins_sleep>;
754 ti,non-removable;
755};
756
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300757&mmc3 {
758 status = "okay";
759 /* these are on the crossbar and are outlined in the
760 xbar-event-map element */
Peter Ujfalusicce1ee02015-12-17 15:33:37 +0200761 dmas = <&edma_xbar 30 0 1>,
762 <&edma_xbar 31 0 2>;
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300763 dma-names = "tx", "rx";
764 vmmc-supply = <&vmmcwl_fixed>;
765 bus-width = <4>;
766 pinctrl-names = "default", "sleep";
767 pinctrl-0 = <&mmc3_pins_default>;
768 pinctrl-1 = <&mmc3_pins_sleep>;
769 cap-power-off-card;
770 keep-power-in-suspend;
771 ti,non-removable;
772
773 #address-cells = <1>;
774 #size-cells = <0>;
775 wlcore: wlcore@0 {
776 compatible = "ti,wl1835";
777 reg = <2>;
778 interrupt-parent = <&gpio1>;
779 interrupts = <23 IRQ_TYPE_LEVEL_HIGH>;
780 };
781};
782
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300783&uart3 {
784 status = "okay";
785 pinctrl-names = "default";
786 pinctrl-0 = <&uart3_pins>;
787};
788
George Cherianb5820d32014-03-19 15:40:02 +0530789&usb2_phy1 {
790 status = "okay";
791};
792
793&usb1 {
794 dr_mode = "peripheral";
795 status = "okay";
796};
797
798&usb2_phy2 {
799 status = "okay";
800};
801
802&usb2 {
803 dr_mode = "host";
804 status = "okay";
805};
Mugunthan V N7b25bab2014-05-13 14:14:31 +0530806
807&mac {
808 slaves = <1>;
809 pinctrl-names = "default", "sleep";
810 pinctrl-0 = <&cpsw_default>;
811 pinctrl-1 = <&cpsw_sleep>;
812 status = "okay";
813};
814
815&davinci_mdio {
816 pinctrl-names = "default", "sleep";
817 pinctrl-0 = <&davinci_mdio_default>;
818 pinctrl-1 = <&davinci_mdio_sleep>;
819 status = "okay";
820};
821
822&cpsw_emac0 {
823 phy_id = <&davinci_mdio>, <0>;
824 phy-mode = "rgmii";
825};
Pekon Gupta99ffa642014-05-19 14:45:46 +0530826
827&elm {
828 status = "okay";
829};
830
831&gpmc {
Roger Quadroseb157c82015-08-04 18:35:00 +0300832 /*
833 * When enabling GPMC, disable eMMC and set
834 * SelEMMCorNAND to output-low
835 */
Pekon Gupta99ffa642014-05-19 14:45:46 +0530836 status = "okay";
837 pinctrl-names = "default";
838 pinctrl-0 = <&nand_flash_x8>;
Roger Quadrosbe3f39c2016-02-23 18:37:19 +0200839 ranges = <0 0 0x08000000 0x01000000>; /* CS0 space. Min partition = 16MB */
Pekon Gupta99ffa642014-05-19 14:45:46 +0530840 nand@0,0 {
Roger Quadrosbe3f39c2016-02-23 18:37:19 +0200841 compatible = "ti,omap2-nand";
Pekon Gupta99ffa642014-05-19 14:45:46 +0530842 reg = <0 0 4>; /* device IO registers */
Roger Quadrosbe3f39c2016-02-23 18:37:19 +0200843 interrupt-parent = <&gpmc>;
844 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
845 <1 IRQ_TYPE_NONE>; /* termcount */
Roger Quadros99a41012016-04-07 13:25:38 +0300846 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
Roger Quadros6b869112014-09-02 16:57:03 +0300847 ti,nand-ecc-opt = "bch16";
Pekon Gupta99ffa642014-05-19 14:45:46 +0530848 ti,elm-id = <&elm>;
849 nand-bus-width = <8>;
850 gpmc,device-width = <1>;
851 gpmc,sync-clk-ps = <0>;
852 gpmc,cs-on-ns = <0>;
853 gpmc,cs-rd-off-ns = <40>;
854 gpmc,cs-wr-off-ns = <40>;
855 gpmc,adv-on-ns = <0>;
856 gpmc,adv-rd-off-ns = <25>;
857 gpmc,adv-wr-off-ns = <25>;
858 gpmc,we-on-ns = <0>;
859 gpmc,we-off-ns = <20>;
860 gpmc,oe-on-ns = <3>;
861 gpmc,oe-off-ns = <30>;
862 gpmc,access-ns = <30>;
863 gpmc,rd-cycle-ns = <40>;
864 gpmc,wr-cycle-ns = <40>;
Pekon Gupta99ffa642014-05-19 14:45:46 +0530865 gpmc,bus-turnaround-ns = <0>;
866 gpmc,cycle2cycle-delay-ns = <0>;
867 gpmc,clk-activation-ns = <0>;
Pekon Gupta99ffa642014-05-19 14:45:46 +0530868 gpmc,wr-access-ns = <40>;
869 gpmc,wr-data-mux-bus-ns = <0>;
870 /* MTD partition table */
871 /* All SPL-* partitions are sized to minimal length
872 * which can be independently programmable. For
873 * NAND flash this is equal to size of erase-block */
874 #address-cells = <1>;
875 #size-cells = <1>;
876 partition@0 {
877 label = "NAND.SPL";
878 reg = <0x00000000 0x00040000>;
879 };
880 partition@1 {
881 label = "NAND.SPL.backup1";
882 reg = <0x00040000 0x00040000>;
883 };
884 partition@2 {
885 label = "NAND.SPL.backup2";
886 reg = <0x00080000 0x00040000>;
887 };
888 partition@3 {
889 label = "NAND.SPL.backup3";
890 reg = <0x000c0000 0x00040000>;
891 };
892 partition@4 {
893 label = "NAND.u-boot-spl-os";
894 reg = <0x00100000 0x00080000>;
895 };
896 partition@5 {
897 label = "NAND.u-boot";
898 reg = <0x00180000 0x00100000>;
899 };
900 partition@6 {
901 label = "NAND.u-boot-env";
902 reg = <0x00280000 0x00040000>;
903 };
904 partition@7 {
905 label = "NAND.u-boot-env.backup1";
906 reg = <0x002c0000 0x00040000>;
907 };
908 partition@8 {
909 label = "NAND.kernel";
910 reg = <0x00300000 0x00700000>;
911 };
912 partition@9 {
913 label = "NAND.file-system";
914 reg = <0x00a00000 0x1f600000>;
915 };
916 };
917};
Sathya Prakash M R0bacb522014-03-24 16:31:56 +0530918
919&dss {
920 status = "ok";
921
922 pinctrl-names = "default";
923 pinctrl-0 = <&dss_pins>;
924
925 port {
Javier Martinez Canillas7d304f72016-06-27 15:21:04 -0400926 dpi_out: endpoint {
Sathya Prakash M R0bacb522014-03-24 16:31:56 +0530927 remote-endpoint = <&lcd_in>;
928 data-lines = <24>;
929 };
930 };
931};
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530932
933&dcan0 {
Roger Quadrosf95b1062015-08-18 17:01:57 +0300934 pinctrl-names = "default", "sleep";
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530935 pinctrl-0 = <&dcan0_default>;
Roger Quadrosf95b1062015-08-18 17:01:57 +0300936 pinctrl-1 = <&dcan0_sleep>;
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530937 status = "okay";
938};
939
940&dcan1 {
Roger Quadrosf95b1062015-08-18 17:01:57 +0300941 pinctrl-names = "default", "sleep";
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530942 pinctrl-0 = <&dcan1_default>;
Roger Quadrosf95b1062015-08-18 17:01:57 +0300943 pinctrl-1 = <&dcan1_sleep>;
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530944 status = "okay";
945};
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530946
947&vpfe0 {
948 status = "okay";
949 pinctrl-names = "default", "sleep";
950 pinctrl-0 = <&vpfe0_pins_default>;
951 pinctrl-1 = <&vpfe0_pins_sleep>;
952
953 port {
954 vpfe0_ep: endpoint {
Lad, Prabhakar3aa59202015-03-12 23:38:21 +0000955 remote-endpoint = <&ov2659_1>;
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530956 ti,am437x-vpfe-interface = <0>;
957 bus-width = <8>;
958 hsync-active = <0>;
959 vsync-active = <0>;
960 };
961 };
962};
963
964&vpfe1 {
965 status = "okay";
966 pinctrl-names = "default", "sleep";
967 pinctrl-0 = <&vpfe1_pins_default>;
968 pinctrl-1 = <&vpfe1_pins_sleep>;
969
970 port {
971 vpfe1_ep: endpoint {
Lad, Prabhakar3aa59202015-03-12 23:38:21 +0000972 remote-endpoint = <&ov2659_0>;
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530973 ti,am437x-vpfe-interface = <0>;
974 bus-width = <8>;
975 hsync-active = <0>;
976 vsync-active = <0>;
977 };
978 };
979};
Peter Ujfalusid3d92af2015-07-02 17:06:27 +0300980
981&mcasp1 {
Peter Ujfalusicf9a4852015-07-02 17:06:28 +0300982 #sound-dai-cells = <0>;
Peter Ujfalusid3d92af2015-07-02 17:06:27 +0300983 pinctrl-names = "default", "sleep";
984 pinctrl-0 = <&mcasp1_pins>;
985 pinctrl-1 = <&mcasp1_sleep_pins>;
986
987 status = "okay";
988
989 op-mode = <0>; /* MCASP_IIS_MODE */
990 tdm-slots = <2>;
991 /* 4 serializers */
992 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
993 0 0 1 2
994 >;
995 tx-num-evt = <32>;
996 rx-num-evt = <32>;
997};
Keerthyfff51e72015-08-18 15:11:14 +0530998
999&rtc {
1000 clocks = <&clk_32k_rtc>, <&clk_32768_ck>;
1001 clock-names = "ext-clk", "int-clk";
1002 status = "okay";
1003};
Dave Gerlach2af84bd2016-05-18 18:36:30 -05001004
1005&cpu {
1006 cpu0-supply = <&dcdc2>;
1007};