blob: afb8eb0a0a16ee63ea1ece64e694ac847c249067 [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 };
Faiz Abbas092976e2017-06-20 10:39:21 +0530152
153 beeper: beeper {
154 compatible = "gpio-beeper";
155 pinctrl-names = "default";
156 pinctrl-0 = <&beeper_pins>;
157 gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
158 };
Lokesh Vutla11e21912013-12-19 18:03:38 +0530159};
160
161&am43xx_pinmux {
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300162 pinctrl-names = "default", "sleep";
163 pinctrl-0 = <&wlan_pins_default>;
164 pinctrl-1 = <&wlan_pins_sleep>;
165
Lokesh Vutla11e21912013-12-19 18:03:38 +0530166 i2c0_pins: i2c0_pins {
167 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300168 AM4372_IOPAD(0x988, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */
169 AM4372_IOPAD(0x98c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */
Lokesh Vutla11e21912013-12-19 18:03:38 +0530170 >;
171 };
172
173 i2c1_pins: i2c1_pins {
174 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300175 AM4372_IOPAD(0x95c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2) /* spi0_cs0.i2c1_scl */
176 AM4372_IOPAD(0x958, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2) /* spi0_d1.i2c1_sda */
Lokesh Vutla11e21912013-12-19 18:03:38 +0530177 >;
178 };
Sourav Poddarc540b472013-12-19 18:03:39 +0530179
Balaji T K506be3f2014-03-03 20:20:18 +0530180 mmc1_pins: pinmux_mmc1_pins {
181 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300182 AM4372_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
Balaji T K506be3f2014-03-03 20:20:18 +0530183 >;
184 };
185
Sourav Poddarc540b472013-12-19 18:03:39 +0530186 ecap0_pins: backlight_pins {
187 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300188 AM4372_IOPAD(0x964, MUX_MODE0) /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
Sourav Poddarc540b472013-12-19 18:03:39 +0530189 >;
190 };
Sekhar Nori0ebc1e22014-04-30 15:43:25 +0300191
192 pixcir_ts_pins: pixcir_ts_pins {
193 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300194 AM4372_IOPAD(0xa64, PIN_INPUT_PULLUP | MUX_MODE7) /* spi2_d0.gpio3_22 */
Sekhar Nori0ebc1e22014-04-30 15:43:25 +0300195 >;
196 };
Mugunthan V N7b25bab2014-05-13 14:14:31 +0530197
198 cpsw_default: cpsw_default {
199 pinctrl-single,pins = <
200 /* Slave 1 */
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300201 AM4372_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_txen */
202 AM4372_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxdv.rgmii1_rxctl */
203 AM4372_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_txd3 */
204 AM4372_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_txd2 */
205 AM4372_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_txd1 */
206 AM4372_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_txd0 */
207 AM4372_IOPAD(0x92c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rmii1_tclk */
208 AM4372_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxclk.rmii1_rclk */
209 AM4372_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd3 */
210 AM4372_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd2 */
211 AM4372_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd1 */
212 AM4372_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd0 */
Mugunthan V N7b25bab2014-05-13 14:14:31 +0530213 >;
214 };
215
216 cpsw_sleep: cpsw_sleep {
217 pinctrl-single,pins = <
218 /* Slave 1 reset value */
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300219 AM4372_IOPAD(0x914, PIN_INPUT_PULLDOWN | MUX_MODE7)
220 AM4372_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE7)
221 AM4372_IOPAD(0x91c, PIN_INPUT_PULLDOWN | MUX_MODE7)
222 AM4372_IOPAD(0x920, PIN_INPUT_PULLDOWN | MUX_MODE7)
223 AM4372_IOPAD(0x924, PIN_INPUT_PULLDOWN | MUX_MODE7)
224 AM4372_IOPAD(0x928, PIN_INPUT_PULLDOWN | MUX_MODE7)
225 AM4372_IOPAD(0x92c, PIN_INPUT_PULLDOWN | MUX_MODE7)
226 AM4372_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE7)
227 AM4372_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE7)
228 AM4372_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE7)
229 AM4372_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE7)
230 AM4372_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE7)
Mugunthan V N7b25bab2014-05-13 14:14:31 +0530231 >;
232 };
233
234 davinci_mdio_default: davinci_mdio_default {
235 pinctrl-single,pins = <
236 /* MDIO */
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300237 AM4372_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
238 AM4372_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
Mugunthan V N7b25bab2014-05-13 14:14:31 +0530239 >;
240 };
241
242 davinci_mdio_sleep: davinci_mdio_sleep {
243 pinctrl-single,pins = <
244 /* MDIO reset value */
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300245 AM4372_IOPAD(0x948, PIN_INPUT_PULLDOWN | MUX_MODE7)
246 AM4372_IOPAD(0x94c, PIN_INPUT_PULLDOWN | MUX_MODE7)
Mugunthan V N7b25bab2014-05-13 14:14:31 +0530247 >;
248 };
Pekon Gupta99ffa642014-05-19 14:45:46 +0530249
250 nand_flash_x8: nand_flash_x8 {
251 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300252 AM4372_IOPAD(0x800, PIN_INPUT | MUX_MODE0) /* gpmc_ad0.gpmc_ad0 */
253 AM4372_IOPAD(0x804, PIN_INPUT | MUX_MODE0) /* gpmc_ad1.gpmc_ad1 */
254 AM4372_IOPAD(0x808, PIN_INPUT | MUX_MODE0) /* gpmc_ad2.gpmc_ad2 */
255 AM4372_IOPAD(0x80c, PIN_INPUT | MUX_MODE0) /* gpmc_ad3.gpmc_ad3 */
256 AM4372_IOPAD(0x810, PIN_INPUT | MUX_MODE0) /* gpmc_ad4.gpmc_ad4 */
257 AM4372_IOPAD(0x814, PIN_INPUT | MUX_MODE0) /* gpmc_ad5.gpmc_ad5 */
258 AM4372_IOPAD(0x818, PIN_INPUT | MUX_MODE0) /* gpmc_ad6.gpmc_ad6 */
259 AM4372_IOPAD(0x81c, PIN_INPUT | MUX_MODE0) /* gpmc_ad7.gpmc_ad7 */
260 AM4372_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0.gpmc_wait0 */
261 AM4372_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpmc_wpn */
262 AM4372_IOPAD(0x87c, PIN_OUTPUT | MUX_MODE0) /* gpmc_csn0.gpmc_csn0 */
263 AM4372_IOPAD(0x890, PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale.gpmc_advn_ale */
264 AM4372_IOPAD(0x894, PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren.gpmc_oen_ren */
265 AM4372_IOPAD(0x898, PIN_OUTPUT | MUX_MODE0) /* gpmc_wen.gpmc_wen */
266 AM4372_IOPAD(0x89c, PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle.gpmc_be0n_cle */
Pekon Gupta99ffa642014-05-19 14:45:46 +0530267 >;
268 };
Sathya Prakash M R0bacb522014-03-24 16:31:56 +0530269
270 dss_pins: dss_pins {
271 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300272 AM4372_IOPAD(0x820, PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 8 -> DSS DATA 23 */
273 AM4372_IOPAD(0x824, PIN_OUTPUT_PULLUP | MUX_MODE1)
274 AM4372_IOPAD(0x828, PIN_OUTPUT_PULLUP | MUX_MODE1)
275 AM4372_IOPAD(0x82c, PIN_OUTPUT_PULLUP | MUX_MODE1)
276 AM4372_IOPAD(0x830, PIN_OUTPUT_PULLUP | MUX_MODE1)
277 AM4372_IOPAD(0x834, PIN_OUTPUT_PULLUP | MUX_MODE1)
278 AM4372_IOPAD(0x838, PIN_OUTPUT_PULLUP | MUX_MODE1)
279 AM4372_IOPAD(0x83c, PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 15 -> DSS DATA 16 */
280 AM4372_IOPAD(0x8a0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 0 */
281 AM4372_IOPAD(0x8a4, PIN_OUTPUT_PULLUP | MUX_MODE0)
282 AM4372_IOPAD(0x8a8, PIN_OUTPUT_PULLUP | MUX_MODE0)
283 AM4372_IOPAD(0x8ac, PIN_OUTPUT_PULLUP | MUX_MODE0)
284 AM4372_IOPAD(0x8b0, PIN_OUTPUT_PULLUP | MUX_MODE0)
285 AM4372_IOPAD(0x8b4, PIN_OUTPUT_PULLUP | MUX_MODE0)
286 AM4372_IOPAD(0x8b8, PIN_OUTPUT_PULLUP | MUX_MODE0)
287 AM4372_IOPAD(0x8bc, PIN_OUTPUT_PULLUP | MUX_MODE0)
288 AM4372_IOPAD(0x8c0, PIN_OUTPUT_PULLUP | MUX_MODE0)
289 AM4372_IOPAD(0x8c4, PIN_OUTPUT_PULLUP | MUX_MODE0)
290 AM4372_IOPAD(0x8c8, PIN_OUTPUT_PULLUP | MUX_MODE0)
291 AM4372_IOPAD(0x8cc, PIN_OUTPUT_PULLUP | MUX_MODE0)
292 AM4372_IOPAD(0x8d0, PIN_OUTPUT_PULLUP | MUX_MODE0)
293 AM4372_IOPAD(0x8d4, PIN_OUTPUT_PULLUP | MUX_MODE0)
294 AM4372_IOPAD(0x8d8, PIN_OUTPUT_PULLUP | MUX_MODE0)
295 AM4372_IOPAD(0x8dc, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 15 */
296 AM4372_IOPAD(0x8e0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS VSYNC */
297 AM4372_IOPAD(0x8e4, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS HSYNC */
298 AM4372_IOPAD(0x8e8, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS PCLK */
299 AM4372_IOPAD(0x8ec, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS AC BIAS EN */
Sathya Prakash M R0bacb522014-03-24 16:31:56 +0530300
301 >;
302 };
303
Peter Ujfalusi593113e2015-07-02 17:06:24 +0300304 display_mux_pins: display_mux_pins {
Sathya Prakash M R0bacb522014-03-24 16:31:56 +0530305 pinctrl-single,pins = <
306 /* GPIO 5_8 to select LCD / HDMI */
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300307 AM4372_IOPAD(0xa38, PIN_OUTPUT_PULLUP | MUX_MODE7)
Sathya Prakash M R0bacb522014-03-24 16:31:56 +0530308 >;
309 };
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530310
311 dcan0_default: dcan0_default_pins {
312 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300313 AM4372_IOPAD(0x978, PIN_OUTPUT | MUX_MODE2) /* uart1_ctsn.d_can0_tx */
314 AM4372_IOPAD(0x97c, PIN_INPUT_PULLUP | MUX_MODE2) /* uart1_rtsn.d_can0_rx */
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530315 >;
316 };
317
Roger Quadrosf95b1062015-08-18 17:01:57 +0300318 dcan0_sleep: dcan0_sleep_pins {
319 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300320 AM4372_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE7) /* uart1_ctsn.gpio0_12 */
321 AM4372_IOPAD(0x97c, PIN_INPUT_PULLUP | MUX_MODE7) /* uart1_rtsn.gpio0_13 */
Roger Quadrosf95b1062015-08-18 17:01:57 +0300322 >;
323 };
324
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530325 dcan1_default: dcan1_default_pins {
326 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300327 AM4372_IOPAD(0x980, PIN_OUTPUT | MUX_MODE2) /* uart1_rxd.d_can1_tx */
328 AM4372_IOPAD(0x984, PIN_INPUT_PULLUP | MUX_MODE2) /* uart1_txd.d_can1_rx */
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530329 >;
330 };
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530331
Roger Quadrosf95b1062015-08-18 17:01:57 +0300332 dcan1_sleep: dcan1_sleep_pins {
333 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300334 AM4372_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE7) /* uart1_rxd.gpio0_14 */
335 AM4372_IOPAD(0x984, PIN_INPUT_PULLUP | MUX_MODE7) /* uart1_txd.gpio0_15 */
Roger Quadrosf95b1062015-08-18 17:01:57 +0300336 >;
337 };
338
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530339 vpfe0_pins_default: vpfe0_pins_default {
340 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300341 AM4372_IOPAD(0x9b0, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_hd mode 0*/
342 AM4372_IOPAD(0x9b4, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_vd mode 0*/
343 AM4372_IOPAD(0x9c0, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_pclk mode 0*/
344 AM4372_IOPAD(0x9c4, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data8 mode 0*/
345 AM4372_IOPAD(0x9c8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data9 mode 0*/
346 AM4372_IOPAD(0xa08, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data0 mode 0*/
347 AM4372_IOPAD(0xa0c, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data1 mode 0*/
348 AM4372_IOPAD(0xa10, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data2 mode 0*/
349 AM4372_IOPAD(0xa14, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data3 mode 0*/
350 AM4372_IOPAD(0xa18, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data4 mode 0*/
351 AM4372_IOPAD(0xa1c, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data5 mode 0*/
352 AM4372_IOPAD(0xa20, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data6 mode 0*/
353 AM4372_IOPAD(0xa24, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data7 mode 0*/
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530354 >;
355 };
356
357 vpfe0_pins_sleep: vpfe0_pins_sleep {
358 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300359 AM4372_IOPAD(0x9b0, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_hd mode 0*/
360 AM4372_IOPAD(0x9b4, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_vd mode 0*/
361 AM4372_IOPAD(0x9c0, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_pclk mode 0*/
362 AM4372_IOPAD(0x9c4, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data8 mode 0*/
363 AM4372_IOPAD(0x9c8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data9 mode 0*/
364 AM4372_IOPAD(0xa08, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data0 mode 0*/
365 AM4372_IOPAD(0xa0c, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data1 mode 0*/
366 AM4372_IOPAD(0xa10, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data2 mode 0*/
367 AM4372_IOPAD(0xa14, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data3 mode 0*/
368 AM4372_IOPAD(0xa18, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data4 mode 0*/
369 AM4372_IOPAD(0xa1c, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data5 mode 0*/
370 AM4372_IOPAD(0xa20, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data6 mode 0*/
371 AM4372_IOPAD(0xa24, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data7 mode 0*/
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530372 >;
373 };
374
375 vpfe1_pins_default: vpfe1_pins_default {
376 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300377 AM4372_IOPAD(0x9cc, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data9 mode 0*/
378 AM4372_IOPAD(0x9d0, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data8 mode 0*/
379 AM4372_IOPAD(0x9d4, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_hd mode 0*/
380 AM4372_IOPAD(0x9d8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_vd mode 0*/
381 AM4372_IOPAD(0x9dC, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_pclk mode 0*/
382 AM4372_IOPAD(0x9e8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data0 mode 0*/
383 AM4372_IOPAD(0x9ec, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data1 mode 0*/
384 AM4372_IOPAD(0x9f0, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data2 mode 0*/
385 AM4372_IOPAD(0x9f4, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data3 mode 0*/
386 AM4372_IOPAD(0x9f8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data4 mode 0*/
387 AM4372_IOPAD(0x9fc, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data5 mode 0*/
388 AM4372_IOPAD(0xa00, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data6 mode 0*/
389 AM4372_IOPAD(0xa04, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data7 mode 0*/
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530390 >;
391 };
392
393 vpfe1_pins_sleep: vpfe1_pins_sleep {
394 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300395 AM4372_IOPAD(0x9cc, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data9 mode 0*/
396 AM4372_IOPAD(0x9d0, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data8 mode 0*/
397 AM4372_IOPAD(0x9d4, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_hd mode 0*/
398 AM4372_IOPAD(0x9d8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_vd mode 0*/
399 AM4372_IOPAD(0x9dc, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_pclk mode 0*/
400 AM4372_IOPAD(0x9e8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data0 mode 0*/
401 AM4372_IOPAD(0x9ec, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data1 mode 0*/
402 AM4372_IOPAD(0x9f0, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data2 mode 0*/
403 AM4372_IOPAD(0x9f4, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data3 mode 0*/
404 AM4372_IOPAD(0x9f8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data4 mode 0*/
405 AM4372_IOPAD(0x9fc, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data5 mode 0*/
406 AM4372_IOPAD(0xa00, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data6 mode 0*/
407 AM4372_IOPAD(0xa04, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data7 mode 0*/
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530408 >;
409 };
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300410
411 mmc3_pins_default: pinmux_mmc3_pins_default {
412 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300413 AM4372_IOPAD(0x88c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_clk.mmc2_clk */
414 AM4372_IOPAD(0x888, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_csn3.mmc2_cmd */
415 AM4372_IOPAD(0x844, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a1.mmc2_dat0 */
416 AM4372_IOPAD(0x848, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a2.mmc2_dat1 */
417 AM4372_IOPAD(0x84c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a3.mmc2_dat2 */
418 AM4372_IOPAD(0x878, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_be1n.mmc2_dat3 */
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300419 >;
420 };
421
422 mmc3_pins_sleep: pinmux_mmc3_pins_sleep {
423 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300424 AM4372_IOPAD(0x88c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_clk.mmc2_clk */
425 AM4372_IOPAD(0x888, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn3.mmc2_cmd */
426 AM4372_IOPAD(0x844, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a1.mmc2_dat0 */
427 AM4372_IOPAD(0x848, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a2.mmc2_dat1 */
428 AM4372_IOPAD(0x84c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a3.mmc2_dat2 */
429 AM4372_IOPAD(0x878, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_be1n.mmc2_dat3 */
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300430 >;
431 };
432
433 wlan_pins_default: pinmux_wlan_pins_default {
434 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300435 AM4372_IOPAD(0x850, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a4.gpio1_20 WL_EN */
436 AM4372_IOPAD(0x85c, PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7) /* gpmc_a7.gpio1_23 WL_IRQ*/
437 AM4372_IOPAD(0x840, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a0.gpio1_16 BT_EN*/
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300438 >;
439 };
440
441 wlan_pins_sleep: pinmux_wlan_pins_sleep {
442 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300443 AM4372_IOPAD(0x850, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a4.gpio1_20 WL_EN */
444 AM4372_IOPAD(0x85c, PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7) /* gpmc_a7.gpio1_23 WL_IRQ*/
445 AM4372_IOPAD(0x840, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a0.gpio1_16 BT_EN*/
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300446 >;
447 };
448
449 uart3_pins: uart3_pins {
450 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300451 AM4372_IOPAD(0xa28, PIN_INPUT | MUX_MODE0) /* uart3_rxd.uart3_rxd */
452 AM4372_IOPAD(0xa2c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_txd.uart3_txd */
453 AM4372_IOPAD(0xa30, PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_ctsn.uart3_ctsn */
454 AM4372_IOPAD(0xa34, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_rtsn.uart3_rtsn */
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300455 >;
456 };
Peter Ujfalusid3d92af2015-07-02 17:06:27 +0300457
458 mcasp1_pins: mcasp1_pins {
459 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300460 AM4372_IOPAD(0x908, PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* mii1_col.mcasp1_axr2 */
461 AM4372_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_crs.mcasp1_aclkx */
462 AM4372_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_rxerr.mcasp1_fsx */
463 AM4372_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE4) /* rmii1_ref_clk.mcasp1_axr3 */
Peter Ujfalusid3d92af2015-07-02 17:06:27 +0300464 >;
465 };
466
467 mcasp1_sleep_pins: mcasp1_sleep_pins {
468 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300469 AM4372_IOPAD(0x908, PIN_INPUT_PULLDOWN | MUX_MODE7)
470 AM4372_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE7)
471 AM4372_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE7)
472 AM4372_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE7)
Peter Ujfalusid3d92af2015-07-02 17:06:27 +0300473 >;
474 };
Roger Quadros50336f52015-08-04 18:34:59 +0300475
476 gpio0_pins: gpio0_pins {
477 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300478 AM4372_IOPAD(0xa6c, PIN_OUTPUT | MUX_MODE9) /* spi2_cs0.gpio0_23 SEL_eMMCorNANDn */
Roger Quadros50336f52015-08-04 18:34:59 +0300479 >;
480 };
Roger Quadroseb157c82015-08-04 18:35:00 +0300481
482 emmc_pins_default: emmc_pins_default {
483 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300484 AM4372_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
485 AM4372_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
486 AM4372_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
487 AM4372_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
488 AM4372_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
489 AM4372_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
490 AM4372_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
491 AM4372_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
492 AM4372_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
493 AM4372_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
Roger Quadroseb157c82015-08-04 18:35:00 +0300494 >;
495 };
496
497 emmc_pins_sleep: emmc_pins_sleep {
498 pinctrl-single,pins = <
Javier Martinez Canillas596bad72015-11-13 01:53:54 -0300499 AM4372_IOPAD(0x800, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad0.gpio1_0 */
500 AM4372_IOPAD(0x804, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad1.gpio1_1 */
501 AM4372_IOPAD(0x808, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad2.gpio1_2 */
502 AM4372_IOPAD(0x80c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad3.gpio1_3 */
503 AM4372_IOPAD(0x810, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad4.gpio1_4 */
504 AM4372_IOPAD(0x814, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad5.gpio1_5 */
505 AM4372_IOPAD(0x818, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad6.gpio1_6 */
506 AM4372_IOPAD(0x81c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad7.gpio1_7 */
507 AM4372_IOPAD(0x880, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn1.gpio1_30 */
508 AM4372_IOPAD(0x884, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn2.gpio1_31 */
Roger Quadroseb157c82015-08-04 18:35:00 +0300509 >;
510 };
Vignesh Rbb7d9782017-03-22 21:06:34 +0530511
512 uart0_pins_default: uart0_pins_default {
513 pinctrl-single,pins = <
514 AM4372_IOPAD(0x968, PIN_INPUT | MUX_MODE0) /* uart0_ctsn.uart0_ctsn */
515 AM4372_IOPAD(0x96C, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_rtsn.uart0_rtsn */
516 AM4372_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
517 AM4372_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
518 >;
519 };
Faiz Abbas092976e2017-06-20 10:39:21 +0530520
521 beeper_pins: beeper_pins {
522 pinctrl-single,pins = <
523 AM4372_IOPAD(0x9e0, PIN_OUTPUT_PULLUP | MUX_MODE7) /* cam1_field.gpio4_12 */
524 >;
525 };
526
Vignesh Rbb7d9782017-03-22 21:06:34 +0530527};
528
529&uart0 {
530 status = "okay";
531 pinctrl-names = "default";
532 pinctrl-0 = <&uart0_pins_default>;
Lokesh Vutla11e21912013-12-19 18:03:38 +0530533};
534
535&i2c0 {
Keerthy1fc98142014-07-09 11:06:31 +0530536 status = "okay";
537 pinctrl-names = "default";
538 pinctrl-0 = <&i2c0_pins>;
Nishanth Menon93166412014-09-03 13:46:21 -0500539 clock-frequency = <100000>;
Keerthy0e2da5e2014-07-09 11:06:32 +0530540
541 tps65218: tps65218@24 {
542 reg = <0x24>;
543 compatible = "ti,tps65218";
544 interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* NMIn */
Keerthy0e2da5e2014-07-09 11:06:32 +0530545 interrupt-controller;
546 #interrupt-cells = <2>;
547
548 dcdc1: regulator-dcdc1 {
Keerthy0e2da5e2014-07-09 11:06:32 +0530549 regulator-name = "vdd_core";
550 regulator-min-microvolt = <912000>;
551 regulator-max-microvolt = <1144000>;
552 regulator-boot-on;
553 regulator-always-on;
554 };
555
556 dcdc2: regulator-dcdc2 {
Keerthy0e2da5e2014-07-09 11:06:32 +0530557 regulator-name = "vdd_mpu";
558 regulator-min-microvolt = <912000>;
559 regulator-max-microvolt = <1378000>;
560 regulator-boot-on;
561 regulator-always-on;
562 };
563
564 dcdc3: regulator-dcdc3 {
Keerthy0e2da5e2014-07-09 11:06:32 +0530565 regulator-name = "vdcdc3";
Keerthy0e2da5e2014-07-09 11:06:32 +0530566 regulator-boot-on;
567 regulator-always-on;
Keerthy1bc5e132016-08-11 10:57:48 +0530568 regulator-state-mem {
569 regulator-on-in-suspend;
570 };
Tero Kristo7ec32992016-08-11 10:57:49 +0530571 regulator-state-disk {
572 regulator-off-in-suspend;
573 };
Keerthy0e2da5e2014-07-09 11:06:32 +0530574 };
Keerthy1bc5e132016-08-11 10:57:48 +0530575
Keerthy0e2da5e2014-07-09 11:06:32 +0530576 dcdc5: regulator-dcdc5 {
Keerthy0e2da5e2014-07-09 11:06:32 +0530577 regulator-name = "v1_0bat";
578 regulator-min-microvolt = <1000000>;
579 regulator-max-microvolt = <1000000>;
Dave Gerlach1e9f7472015-08-05 16:19:46 +0530580 regulator-boot-on;
581 regulator-always-on;
Keerthy1bc5e132016-08-11 10:57:48 +0530582 regulator-state-mem {
583 regulator-on-in-suspend;
584 };
Keerthy0e2da5e2014-07-09 11:06:32 +0530585 };
586
587 dcdc6: regulator-dcdc6 {
Keerthy0e2da5e2014-07-09 11:06:32 +0530588 regulator-name = "v1_8bat";
589 regulator-min-microvolt = <1800000>;
590 regulator-max-microvolt = <1800000>;
Dave Gerlach1e9f7472015-08-05 16:19:46 +0530591 regulator-boot-on;
592 regulator-always-on;
Keerthy1bc5e132016-08-11 10:57:48 +0530593 regulator-state-mem {
594 regulator-on-in-suspend;
595 };
Keerthy0e2da5e2014-07-09 11:06:32 +0530596 };
597
598 ldo1: regulator-ldo1 {
Keerthy0e2da5e2014-07-09 11:06:32 +0530599 regulator-min-microvolt = <1800000>;
600 regulator-max-microvolt = <1800000>;
601 regulator-boot-on;
602 regulator-always-on;
603 };
604 };
Lad, Prabhakar3aa59202015-03-12 23:38:21 +0000605
606 ov2659@30 {
607 compatible = "ovti,ov2659";
608 reg = <0x30>;
609
610 clocks = <&refclk 0>;
611 clock-names = "xvclk";
612
613 port {
614 ov2659_0: endpoint {
615 remote-endpoint = <&vpfe1_ep>;
616 link-frequencies = /bits/ 64 <70000000>;
617 };
618 };
619 };
Lokesh Vutla11e21912013-12-19 18:03:38 +0530620};
621
622&i2c1 {
Keerthy1fc98142014-07-09 11:06:31 +0530623 status = "okay";
624 pinctrl-names = "default";
625 pinctrl-0 = <&i2c1_pins>;
Sekhar Nori0ebc1e22014-04-30 15:43:25 +0300626 pixcir_ts@5c {
627 compatible = "pixcir,pixcir_tangoc";
628 pinctrl-names = "default";
629 pinctrl-0 = <&pixcir_ts_pins>;
630 reg = <0x5c>;
Sekhar Nori0ebc1e22014-04-30 15:43:25 +0300631
632 attb-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
633
Vignesh Rf513d222015-10-14 19:24:25 +0530634 /*
635 * 0x264 represents the offset of padconf register of
636 * gpio3_22 from am43xx_pinmux base.
637 */
Grygorii Strashko95e7d032015-12-28 15:52:39 +0200638 interrupts-extended = <&gpio3 22 IRQ_TYPE_EDGE_FALLING>,
Vignesh Rf513d222015-10-14 19:24:25 +0530639 <&am43xx_pinmux 0x264>;
640 interrupt-names = "tsc", "wakeup";
641
Roger Quadrosf0486152014-07-28 10:11:37 -0700642 touchscreen-size-x = <1024>;
643 touchscreen-size-y = <600>;
Vignesh Rf513d222015-10-14 19:24:25 +0530644 wakeup-source;
Sekhar Nori0ebc1e22014-04-30 15:43:25 +0300645 };
Lad, Prabhakar3aa59202015-03-12 23:38:21 +0000646
647 ov2659@30 {
648 compatible = "ovti,ov2659";
649 reg = <0x30>;
650
651 clocks = <&refclk 0>;
652 clock-names = "xvclk";
653
654 port {
655 ov2659_1: endpoint {
656 remote-endpoint = <&vpfe0_ep>;
657 link-frequencies = /bits/ 64 <70000000>;
658 };
659 };
660 };
Peter Ujfalusi6076b152015-07-02 17:06:26 +0300661
662 tlv320aic3106: tlv320aic3106@1b {
Peter Ujfalusicf9a4852015-07-02 17:06:28 +0300663 #sound-dai-cells = <0>;
Peter Ujfalusi6076b152015-07-02 17:06:26 +0300664 compatible = "ti,tlv320aic3106";
665 reg = <0x1b>;
666 status = "okay";
667
668 /* Regulators */
669 IOVDD-supply = <&evm_v3_3d>; /* V3_3D -> <tps63031> EN: V1_8D -> VBAT */
670 AVDD-supply = <&evm_v3_3d>; /* v3_3AUD -> V3_3D -> ... */
671 DRVDD-supply = <&evm_v3_3d>; /* v3_3AUD -> V3_3D -> ... */
672 DVDD-supply = <&ldo1>; /* V1_8D -> LDO1 */
673 };
Lokesh Vutla11e21912013-12-19 18:03:38 +0530674};
Sourav Poddarc540b472013-12-19 18:03:39 +0530675
676&epwmss0 {
677 status = "okay";
678};
679
Vignesh R0f39f7b2014-11-21 15:44:22 +0530680&tscadc {
681 status = "okay";
682
683 adc {
684 ti,adc-channels = <0 1 2 3 4 5 6 7>;
685 };
686};
687
Sourav Poddarc540b472013-12-19 18:03:39 +0530688&ecap0 {
689 status = "okay";
690 pinctrl-names = "default";
691 pinctrl-0 = <&ecap0_pins>;
692};
Sourav Poddard3d46cc2013-12-19 18:03:40 +0530693
Balaji T K506be3f2014-03-03 20:20:18 +0530694&gpio0 {
Roger Quadros50336f52015-08-04 18:34:59 +0300695 pinctrl-names = "default";
696 pinctrl-0 = <&gpio0_pins>;
Balaji T K506be3f2014-03-03 20:20:18 +0530697 status = "okay";
Roger Quadros50336f52015-08-04 18:34:59 +0300698
699 p23 {
700 gpio-hog;
701 gpios = <23 GPIO_ACTIVE_HIGH>;
702 /* SelEMMCorNAND selects between eMMC and NAND:
703 * Low: NAND
704 * High: eMMC
705 * When changing this line make sure the newly
706 * selected device node is enabled and the previously
707 * selected device node is disabled.
708 */
709 output-low;
710 line-name = "SelEMMCorNAND";
711 };
Balaji T K506be3f2014-03-03 20:20:18 +0530712};
713
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300714&gpio1 {
715 status = "okay";
716};
717
Sourav Poddard3d46cc2013-12-19 18:03:40 +0530718&gpio3 {
719 status = "okay";
720};
721
722&gpio4 {
723 status = "okay";
724};
Balaji T K506be3f2014-03-03 20:20:18 +0530725
Dave Gerlach1ff3859e2014-03-21 10:50:13 +0530726&gpio5 {
Peter Ujfalusi593113e2015-07-02 17:06:24 +0300727 pinctrl-names = "default";
728 pinctrl-0 = <&display_mux_pins>;
Dave Gerlach1ff3859e2014-03-21 10:50:13 +0530729 status = "okay";
730 ti,no-reset-on-init;
Peter Ujfalusi593113e2015-07-02 17:06:24 +0300731
732 p8 {
733 /*
734 * SelLCDorHDMI selects between display and audio paths:
735 * Low: HDMI display with audio via HDMI
736 * High: LCD display with analog audio via aic3111 codec
737 */
738 gpio-hog;
739 gpios = <8 GPIO_ACTIVE_HIGH>;
740 output-high;
741 line-name = "SelLCDorHDMI";
742 };
Dave Gerlach1ff3859e2014-03-21 10:50:13 +0530743};
744
Balaji T K506be3f2014-03-03 20:20:18 +0530745&mmc1 {
746 status = "okay";
Peter Ujfalusi390810a2015-07-02 17:06:25 +0300747 vmmc-supply = <&evm_v3_3d>;
Balaji T K506be3f2014-03-03 20:20:18 +0530748 bus-width = <4>;
749 pinctrl-names = "default";
750 pinctrl-0 = <&mmc1_pins>;
Mugunthan V N0731cbd2015-10-12 14:37:11 +0530751 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
Balaji T K506be3f2014-03-03 20:20:18 +0530752};
George Cherianb5820d32014-03-19 15:40:02 +0530753
Roger Quadroseb157c82015-08-04 18:35:00 +0300754/* eMMC sits on mmc2 */
755&mmc2 {
756 /*
757 * When enabling eMMC, disable GPMC/NAND and set
758 * SelEMMCorNAND to output-high
759 */
760 status = "disabled";
761 vmmc-supply = <&evm_v3_3d>;
762 bus-width = <8>;
763 pinctrl-names = "default", "sleep";
764 pinctrl-0 = <&emmc_pins_default>;
765 pinctrl-1 = <&emmc_pins_sleep>;
766 ti,non-removable;
767};
768
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300769&mmc3 {
770 status = "okay";
771 /* these are on the crossbar and are outlined in the
772 xbar-event-map element */
Peter Ujfalusicce1ee02015-12-17 15:33:37 +0200773 dmas = <&edma_xbar 30 0 1>,
774 <&edma_xbar 31 0 2>;
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300775 dma-names = "tx", "rx";
776 vmmc-supply = <&vmmcwl_fixed>;
777 bus-width = <4>;
778 pinctrl-names = "default", "sleep";
779 pinctrl-0 = <&mmc3_pins_default>;
780 pinctrl-1 = <&mmc3_pins_sleep>;
781 cap-power-off-card;
782 keep-power-in-suspend;
783 ti,non-removable;
784
785 #address-cells = <1>;
786 #size-cells = <0>;
787 wlcore: wlcore@0 {
788 compatible = "ti,wl1835";
789 reg = <2>;
790 interrupt-parent = <&gpio1>;
791 interrupts = <23 IRQ_TYPE_LEVEL_HIGH>;
792 };
793};
794
Eyal Reizerb6bbf592015-05-04 15:24:24 +0300795&uart3 {
796 status = "okay";
797 pinctrl-names = "default";
798 pinctrl-0 = <&uart3_pins>;
799};
800
George Cherianb5820d32014-03-19 15:40:02 +0530801&usb2_phy1 {
802 status = "okay";
803};
804
805&usb1 {
806 dr_mode = "peripheral";
807 status = "okay";
808};
809
810&usb2_phy2 {
811 status = "okay";
812};
813
814&usb2 {
815 dr_mode = "host";
816 status = "okay";
817};
Mugunthan V N7b25bab2014-05-13 14:14:31 +0530818
819&mac {
820 slaves = <1>;
821 pinctrl-names = "default", "sleep";
822 pinctrl-0 = <&cpsw_default>;
823 pinctrl-1 = <&cpsw_sleep>;
824 status = "okay";
825};
826
827&davinci_mdio {
828 pinctrl-names = "default", "sleep";
829 pinctrl-0 = <&davinci_mdio_default>;
830 pinctrl-1 = <&davinci_mdio_sleep>;
831 status = "okay";
832};
833
834&cpsw_emac0 {
835 phy_id = <&davinci_mdio>, <0>;
836 phy-mode = "rgmii";
837};
Pekon Gupta99ffa642014-05-19 14:45:46 +0530838
839&elm {
840 status = "okay";
841};
842
843&gpmc {
Roger Quadroseb157c82015-08-04 18:35:00 +0300844 /*
845 * When enabling GPMC, disable eMMC and set
846 * SelEMMCorNAND to output-low
847 */
Pekon Gupta99ffa642014-05-19 14:45:46 +0530848 status = "okay";
849 pinctrl-names = "default";
850 pinctrl-0 = <&nand_flash_x8>;
Roger Quadrosbe3f39c2016-02-23 18:37:19 +0200851 ranges = <0 0 0x08000000 0x01000000>; /* CS0 space. Min partition = 16MB */
Pekon Gupta99ffa642014-05-19 14:45:46 +0530852 nand@0,0 {
Roger Quadrosbe3f39c2016-02-23 18:37:19 +0200853 compatible = "ti,omap2-nand";
Pekon Gupta99ffa642014-05-19 14:45:46 +0530854 reg = <0 0 4>; /* device IO registers */
Roger Quadrosbe3f39c2016-02-23 18:37:19 +0200855 interrupt-parent = <&gpmc>;
856 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
857 <1 IRQ_TYPE_NONE>; /* termcount */
Roger Quadros99a41012016-04-07 13:25:38 +0300858 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
Franklin S Cooper Jr78b02c32017-07-25 21:15:51 -0500859 ti,nand-xfer-type = "prefetch-dma";
Roger Quadros6b869112014-09-02 16:57:03 +0300860 ti,nand-ecc-opt = "bch16";
Pekon Gupta99ffa642014-05-19 14:45:46 +0530861 ti,elm-id = <&elm>;
862 nand-bus-width = <8>;
863 gpmc,device-width = <1>;
864 gpmc,sync-clk-ps = <0>;
865 gpmc,cs-on-ns = <0>;
866 gpmc,cs-rd-off-ns = <40>;
867 gpmc,cs-wr-off-ns = <40>;
868 gpmc,adv-on-ns = <0>;
869 gpmc,adv-rd-off-ns = <25>;
870 gpmc,adv-wr-off-ns = <25>;
871 gpmc,we-on-ns = <0>;
872 gpmc,we-off-ns = <20>;
873 gpmc,oe-on-ns = <3>;
874 gpmc,oe-off-ns = <30>;
875 gpmc,access-ns = <30>;
876 gpmc,rd-cycle-ns = <40>;
877 gpmc,wr-cycle-ns = <40>;
Pekon Gupta99ffa642014-05-19 14:45:46 +0530878 gpmc,bus-turnaround-ns = <0>;
879 gpmc,cycle2cycle-delay-ns = <0>;
880 gpmc,clk-activation-ns = <0>;
Pekon Gupta99ffa642014-05-19 14:45:46 +0530881 gpmc,wr-access-ns = <40>;
882 gpmc,wr-data-mux-bus-ns = <0>;
883 /* MTD partition table */
884 /* All SPL-* partitions are sized to minimal length
885 * which can be independently programmable. For
886 * NAND flash this is equal to size of erase-block */
887 #address-cells = <1>;
888 #size-cells = <1>;
889 partition@0 {
890 label = "NAND.SPL";
891 reg = <0x00000000 0x00040000>;
892 };
893 partition@1 {
894 label = "NAND.SPL.backup1";
895 reg = <0x00040000 0x00040000>;
896 };
897 partition@2 {
898 label = "NAND.SPL.backup2";
899 reg = <0x00080000 0x00040000>;
900 };
901 partition@3 {
902 label = "NAND.SPL.backup3";
903 reg = <0x000c0000 0x00040000>;
904 };
905 partition@4 {
906 label = "NAND.u-boot-spl-os";
907 reg = <0x00100000 0x00080000>;
908 };
909 partition@5 {
910 label = "NAND.u-boot";
911 reg = <0x00180000 0x00100000>;
912 };
913 partition@6 {
914 label = "NAND.u-boot-env";
915 reg = <0x00280000 0x00040000>;
916 };
917 partition@7 {
918 label = "NAND.u-boot-env.backup1";
919 reg = <0x002c0000 0x00040000>;
920 };
921 partition@8 {
922 label = "NAND.kernel";
923 reg = <0x00300000 0x00700000>;
924 };
925 partition@9 {
926 label = "NAND.file-system";
927 reg = <0x00a00000 0x1f600000>;
928 };
929 };
930};
Sathya Prakash M R0bacb522014-03-24 16:31:56 +0530931
932&dss {
933 status = "ok";
934
935 pinctrl-names = "default";
936 pinctrl-0 = <&dss_pins>;
937
938 port {
Javier Martinez Canillas7d304f72016-06-27 15:21:04 -0400939 dpi_out: endpoint {
Sathya Prakash M R0bacb522014-03-24 16:31:56 +0530940 remote-endpoint = <&lcd_in>;
941 data-lines = <24>;
942 };
943 };
944};
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530945
946&dcan0 {
Roger Quadrosf95b1062015-08-18 17:01:57 +0300947 pinctrl-names = "default", "sleep";
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530948 pinctrl-0 = <&dcan0_default>;
Roger Quadrosf95b1062015-08-18 17:01:57 +0300949 pinctrl-1 = <&dcan0_sleep>;
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530950 status = "okay";
951};
952
953&dcan1 {
Roger Quadrosf95b1062015-08-18 17:01:57 +0300954 pinctrl-names = "default", "sleep";
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530955 pinctrl-0 = <&dcan1_default>;
Roger Quadrosf95b1062015-08-18 17:01:57 +0300956 pinctrl-1 = <&dcan1_sleep>;
Mugunthan V N4b1ce232014-07-18 11:29:11 +0530957 status = "okay";
958};
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530959
960&vpfe0 {
961 status = "okay";
962 pinctrl-names = "default", "sleep";
963 pinctrl-0 = <&vpfe0_pins_default>;
964 pinctrl-1 = <&vpfe0_pins_sleep>;
965
966 port {
967 vpfe0_ep: endpoint {
Lad, Prabhakar3aa59202015-03-12 23:38:21 +0000968 remote-endpoint = <&ov2659_1>;
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530969 ti,am437x-vpfe-interface = <0>;
970 bus-width = <8>;
971 hsync-active = <0>;
972 vsync-active = <0>;
973 };
974 };
975};
976
977&vpfe1 {
978 status = "okay";
979 pinctrl-names = "default", "sleep";
980 pinctrl-0 = <&vpfe1_pins_default>;
981 pinctrl-1 = <&vpfe1_pins_sleep>;
982
983 port {
984 vpfe1_ep: endpoint {
Lad, Prabhakar3aa59202015-03-12 23:38:21 +0000985 remote-endpoint = <&ov2659_0>;
Benoit Parrotc788a7f2014-12-18 21:54:14 +0530986 ti,am437x-vpfe-interface = <0>;
987 bus-width = <8>;
988 hsync-active = <0>;
989 vsync-active = <0>;
990 };
991 };
992};
Peter Ujfalusid3d92af2015-07-02 17:06:27 +0300993
994&mcasp1 {
Peter Ujfalusicf9a4852015-07-02 17:06:28 +0300995 #sound-dai-cells = <0>;
Peter Ujfalusid3d92af2015-07-02 17:06:27 +0300996 pinctrl-names = "default", "sleep";
997 pinctrl-0 = <&mcasp1_pins>;
998 pinctrl-1 = <&mcasp1_sleep_pins>;
999
1000 status = "okay";
1001
1002 op-mode = <0>; /* MCASP_IIS_MODE */
1003 tdm-slots = <2>;
1004 /* 4 serializers */
1005 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
1006 0 0 1 2
1007 >;
1008 tx-num-evt = <32>;
1009 rx-num-evt = <32>;
1010};
Keerthyfff51e72015-08-18 15:11:14 +05301011
1012&rtc {
1013 clocks = <&clk_32k_rtc>, <&clk_32768_ck>;
1014 clock-names = "ext-clk", "int-clk";
1015 status = "okay";
1016};
Dave Gerlach2af84bd2016-05-18 18:36:30 -05001017
1018&cpu {
1019 cpu0-supply = <&dcdc2>;
1020};