blob: ddfdf3ca3d66986421bb49f7eb45ed050c120bb8 [file] [log] [blame]
Ash Charles43418812014-06-10 15:22:00 -07001/*
2 * Copyright (C) 2014 Gumstix, Inc. - https://www.gumstix.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/dts-v1/;
9
10#include <dt-bindings/input/input.h>
11#include "am33xx.dtsi"
12
13/ {
14 model = "Gumstix Pepper";
15 compatible = "gumstix,am335x-pepper", "ti,am33xx";
16
17 cpus {
18 cpu@0 {
19 cpu0-supply = <&dcdc3_reg>;
20 };
21 };
22
23 memory {
24 device_type = "memory";
25 reg = <0x80000000 0x20000000>; /* 512 MB */
26 };
27
28 buttons: user_buttons {
29 compatible = "gpio-keys";
30 };
31
32 leds: user_leds {
33 compatible = "gpio-leds";
34 };
35
36 panel: lcd_panel {
37 compatible = "ti,tilcdc,panel";
38 };
39
40 sound: sound_iface {
41 compatible = "ti,da830-evm-audio";
42 };
43
Javier Martinez Canillas4c049a52016-08-01 12:46:58 -040044 vbat: fixedregulator0 {
Ash Charles43418812014-06-10 15:22:00 -070045 compatible = "regulator-fixed";
46 };
47
Javier Martinez Canillas4c049a52016-08-01 12:46:58 -040048 v3v3c_reg: fixedregulator1 {
Ash Charles43418812014-06-10 15:22:00 -070049 compatible = "regulator-fixed";
50 };
51
Javier Martinez Canillas4c049a52016-08-01 12:46:58 -040052 vdd5_reg: fixedregulator2 {
Ash Charles43418812014-06-10 15:22:00 -070053 compatible = "regulator-fixed";
54 };
55};
56
57/* I2C Busses */
58&i2c0 {
59 status = "okay";
60 pinctrl-names = "default";
61 pinctrl-0 = <&i2c0_pins>;
62
63 clock-frequency = <400000>;
64
65 tps: tps@24 {
66 reg = <0x24>;
67 };
68
69 eeprom: eeprom@50 {
70 compatible = "at,24c256";
71 reg = <0x50>;
72 };
73
74 audio_codec: tlv320aic3106@1b {
75 compatible = "ti,tlv320aic3106";
76 reg = <0x1b>;
Adam YH Lee9908ac32015-07-14 11:17:24 -070077 ai3x-micbias-vg = <0x2>;
Ash Charles43418812014-06-10 15:22:00 -070078 };
79
80 accel: lis331dlh@1d {
81 compatible = "st,lis3lv02d";
82 reg = <0x1d>;
83 };
84};
85
86&i2c1 {
87 status = "okay";
88 pinctrl-names = "default";
89 pinctrl-0 = <&i2c1_pins>;
90 clock-frequency = <400000>;
91};
92
93&am33xx_pinmux {
94 i2c0_pins: pinmux_i2c0 {
95 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -030096 AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
97 AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
Ash Charles43418812014-06-10 15:22:00 -070098 >;
99 };
100 i2c1_pins: pinmux_i2c1 {
101 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300102 AM33XX_IOPAD(0x90C, PIN_INPUT_PULLUP | MUX_MODE3) /* mii1_crs,i2c1_sda */
103 AM33XX_IOPAD(0x910, PIN_INPUT_PULLUP | MUX_MODE3) /* mii1_rxerr,i2c1_scl */
Ash Charles43418812014-06-10 15:22:00 -0700104 >;
105 };
106};
107
108/* Accelerometer */
109&accel {
110 pinctrl-names = "default";
111 pinctrl-0 = <&accel_pins>;
112
113 Vdd-supply = <&ldo3_reg>;
114 Vdd_IO-supply = <&ldo3_reg>;
115 st,irq1-click;
116 st,wakeup-x-lo;
117 st,wakeup-x-hi;
118 st,wakeup-y-lo;
119 st,wakeup-y-hi;
120 st,wakeup-z-lo;
121 st,wakeup-z-hi;
122 st,min-limit-x = <92>;
123 st,max-limit-x = <14>;
124 st,min-limit-y = <14>;
125 st,max-limit-y = <92>;
126 st,min-limit-z = <92>;
127 st,max-limit-z = <14>;
128};
129
130&am33xx_pinmux {
131 accel_pins: pinmux_accel {
132 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300133 AM33XX_IOPAD(0x898, PIN_INPUT | MUX_MODE7) /* gpmc_wen.gpio2_4 */
Ash Charles43418812014-06-10 15:22:00 -0700134 >;
135 };
136};
137
138/* Audio */
139&audio_codec {
140 status = "okay";
141
142 gpio-reset = <&gpio1 16 GPIO_ACTIVE_LOW>;
143 AVDD-supply = <&ldo3_reg>;
144 IOVDD-supply = <&ldo3_reg>;
145 DRVDD-supply = <&ldo3_reg>;
146 DVDD-supply = <&dcdc1_reg>;
147};
148
149&sound {
150 ti,model = "AM335x-EVM";
151 ti,audio-codec = <&audio_codec>;
152 ti,mcasp-controller = <&mcasp0>;
153 ti,codec-clock-rate = <12000000>;
154 ti,audio-routing =
155 "Headphone Jack", "HPLOUT",
156 "Headphone Jack", "HPROUT",
Adam YH Lee9908ac32015-07-14 11:17:24 -0700157 "MIC3L", "Mic3L Switch";
Ash Charles43418812014-06-10 15:22:00 -0700158};
159
160&mcasp0 {
161 status = "okay";
162 pinctrl-names = "default";
163 pinctrl-0 = <&audio_pins>;
164
165 op-mode = <0>; /* MCASP_ISS_MODE */
166 tdm-slots = <2>;
167 serial-dir = <
168 1 2 0 0
169 0 0 0 0
170 0 0 0 0
171 0 0 0 0
172 >;
173 tx-num-evt = <1>;
174 rx-num-evt = <1>;
175};
176
177&am33xx_pinmux {
178 audio_pins: pinmux_audio {
179 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300180 AM33XX_IOPAD(0x9ac, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_ahcklx.mcasp0_ahclkx */
181 AM33XX_IOPAD(0x994, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_fsx.mcasp0_fsx */
182 AM33XX_IOPAD(0x990, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_aclkx.mcasp0_aclkx */
183 AM33XX_IOPAD(0x998, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr0.mcasp0_axr0 */
184 AM33XX_IOPAD(0x9a8, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr1.mcasp0_axr1 */
185 AM33XX_IOPAD(0x840, PIN_OUTPUT | MUX_MODE7) /* gpmc_a0.gpio1_16 */
Ash Charles43418812014-06-10 15:22:00 -0700186 >;
187 };
188};
189
190/* Display: 24-bit LCD Screen */
191&panel {
192 status = "okay";
193 pinctrl-names = "default";
194 pinctrl-0 = <&lcd_pins>;
195 panel-info {
196 ac-bias = <255>;
197 ac-bias-intrpt = <0>;
198 dma-burst-sz = <16>;
199 bpp = <32>;
200 fdd = <0x80>;
201 sync-edge = <0>;
202 sync-ctrl = <1>;
203 raster-order = <0>;
204 fifo-th = <0>;
205 };
206 display-timings {
207 native-mode = <&timing0>;
208 timing0: 480x272 {
209 clock-frequency = <18400000>;
210 hactive = <480>;
211 vactive = <272>;
212 hfront-porch = <8>;
213 hback-porch = <4>;
214 hsync-len = <41>;
215 vfront-porch = <4>;
216 vback-porch = <2>;
217 vsync-len = <10>;
218 hsync-active = <1>;
219 vsync-active = <1>;
220 };
221 };
222};
223
224&lcdc {
225 status = "okay";
226};
227
228&am33xx_pinmux {
229 lcd_pins: pinmux_lcd {
230 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300231 AM33XX_IOPAD(0x8a0, PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */
232 AM33XX_IOPAD(0x8a4, PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */
233 AM33XX_IOPAD(0x8a8, PIN_OUTPUT | MUX_MODE0) /* lcd_data2.lcd_data2 */
234 AM33XX_IOPAD(0x8ac, PIN_OUTPUT | MUX_MODE0) /* lcd_data3.lcd_data3 */
235 AM33XX_IOPAD(0x8b0, PIN_OUTPUT | MUX_MODE0) /* lcd_data4.lcd_data4 */
236 AM33XX_IOPAD(0x8b4, PIN_OUTPUT | MUX_MODE0) /* lcd_data5.lcd_data5 */
237 AM33XX_IOPAD(0x8b8, PIN_OUTPUT | MUX_MODE0) /* lcd_data6.lcd_data6 */
238 AM33XX_IOPAD(0x8bc, PIN_OUTPUT | MUX_MODE0) /* lcd_data7.lcd_data7 */
239 AM33XX_IOPAD(0x8c0, PIN_OUTPUT | MUX_MODE0) /* lcd_data8.lcd_data8 */
240 AM33XX_IOPAD(0x8c4, PIN_OUTPUT | MUX_MODE0) /* lcd_data9.lcd_data9 */
241 AM33XX_IOPAD(0x8c8, PIN_OUTPUT | MUX_MODE0) /* lcd_data10.lcd_data10 */
242 AM33XX_IOPAD(0x8cc, PIN_OUTPUT | MUX_MODE0) /* lcd_data11.lcd_data11 */
243 AM33XX_IOPAD(0x8d0, PIN_OUTPUT | MUX_MODE0) /* lcd_data12.lcd_data12 */
244 AM33XX_IOPAD(0x8d4, PIN_OUTPUT | MUX_MODE0) /* lcd_data13.lcd_data13 */
245 AM33XX_IOPAD(0x8d8, PIN_OUTPUT | MUX_MODE0) /* lcd_data14.lcd_data14 */
246 AM33XX_IOPAD(0x8dc, PIN_OUTPUT | MUX_MODE0) /* lcd_data15.lcd_data15 */
247 AM33XX_IOPAD(0x820, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad8.lcd_data16 */
248 AM33XX_IOPAD(0x824, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad9.lcd_data17 */
249 AM33XX_IOPAD(0x828, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad10.lcd_data18 */
250 AM33XX_IOPAD(0x82c, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad11.lcd_data19 */
251 AM33XX_IOPAD(0x830, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad12.lcd_data20 */
252 AM33XX_IOPAD(0x834, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad13.lcd_data21 */
253 AM33XX_IOPAD(0x838, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad14.lcd_data22 */
254 AM33XX_IOPAD(0x83c, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad15.lcd_data23 */
255 AM33XX_IOPAD(0x8e0, PIN_OUTPUT | MUX_MODE0) /* lcd_vsync.lcd_vsync */
256 AM33XX_IOPAD(0x8e4, PIN_OUTPUT | MUX_MODE0) /* lcd_hsync.lcd_hsync */
257 AM33XX_IOPAD(0x8e8, PIN_OUTPUT | MUX_MODE0) /* lcd_pclk.lcd_pclk */
258 AM33XX_IOPAD(0x8ec, PIN_OUTPUT | MUX_MODE0) /* lcd_ac_bias_en.lcd_ac_bias_en */
Ash Charles43418812014-06-10 15:22:00 -0700259 /* Display Enable */
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300260 AM33XX_IOPAD(0x86c, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a11.gpio1_27 */
Ash Charles43418812014-06-10 15:22:00 -0700261 >;
262 };
263};
264
265/* Ethernet */
266&cpsw_emac0 {
267 status = "okay";
268 phy_id = <&davinci_mdio>, <0>;
269 phy-mode = "rgmii";
270};
271
272&cpsw_emac1 {
273 status = "okay";
274 phy_id = <&davinci_mdio>, <1>;
275 phy-mode = "rgmii";
276};
277
278&davinci_mdio {
279 status = "okay";
280 pinctrl-names = "default";
281 pinctrl-0 = <&mdio_pins>;
282};
283
284&mac {
285 status = "okay";
286 pinctrl-names = "default";
287 pinctrl-0 = <&ethernet_pins>;
288};
289
290
291&am33xx_pinmux {
292 ethernet_pins: pinmux_ethernet {
293 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300294 AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_tctl */
295 AM33XX_IOPAD(0x918, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxdv.rgmii1_rctl */
296 AM33XX_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd3.rgmii1_td3 */
297 AM33XX_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd2.rgmii1_td2 */
298 AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td1 */
299 AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td0 */
300 AM33XX_IOPAD(0x92c, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_txclk.rgmii1_tclk */
301 AM33XX_IOPAD(0x930, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxclk.rgmii1_rclk */
302 AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd3.rgmii1_rxd3 */
303 AM33XX_IOPAD(0x938, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd2.rgmii1_rxd2 */
304 AM33XX_IOPAD(0x93c, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd1 */
305 AM33XX_IOPAD(0x940, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd0 */
Ash Charles43418812014-06-10 15:22:00 -0700306 /* ethernet interrupt */
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300307 AM33XX_IOPAD(0x944, PIN_INPUT_PULLUP | MUX_MODE7) /* rmii2_refclk.gpio0_29 */
Ash Charles43418812014-06-10 15:22:00 -0700308 /* ethernet PHY nReset */
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300309 AM33XX_IOPAD(0x908, PIN_OUTPUT_PULLUP | MUX_MODE7) /* mii1_col.gpio3_0 */
Ash Charles43418812014-06-10 15:22:00 -0700310 >;
311 };
312
313 mdio_pins: pinmux_mdio {
314 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300315 AM33XX_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
316 AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
Ash Charles43418812014-06-10 15:22:00 -0700317 >;
318 };
319};
320
321/* MMC */
322&mmc1 {
323 /* Bootable SD card slot */
324 status = "okay";
325 vmmc-supply = <&ldo3_reg>;
326 bus-width = <4>;
327 pinctrl-names = "default";
328 pinctrl-0 = <&sd_pins>;
329 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
330};
331
332&mmc2 {
333 /* eMMC (not populated) on MMC #2 */
334 status = "disabled";
335 pinctrl-names = "default";
336 pinctrl-0 = <&emmc_pins>;
337 vmmc-supply = <&ldo3_reg>;
338 bus-width = <8>;
339 ti,non-removable;
340};
341
Ash Charles43418812014-06-10 15:22:00 -0700342&mmc3 {
343 /* Wifi & Bluetooth on MMC #3 */
344 status = "okay";
345 pinctrl-names = "default";
346 pinctrl-0 = <&wireless_pins>;
347 vmmmc-supply = <&v3v3c_reg>;
348 bus-width = <4>;
349 ti,non-removable;
Peter Ujfalusib5e50902015-12-17 15:33:36 +0200350 dmas = <&edma_xbar 12 0 1
351 &edma_xbar 13 0 2>;
Ash Charles43418812014-06-10 15:22:00 -0700352 dma-names = "tx", "rx";
353};
354
355
356&am33xx_pinmux {
357 sd_pins: pinmux_sd_card {
358 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300359 AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */
360 AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */
361 AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */
362 AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */
363 AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */
364 AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */
365 AM33XX_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
Ash Charles43418812014-06-10 15:22:00 -0700366 >;
367 };
368 emmc_pins: pinmux_emmc {
369 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300370 AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
371 AM33XX_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
372 AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
373 AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
374 AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
375 AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
376 AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
377 AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
378 AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
379 AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
Ash Charles43418812014-06-10 15:22:00 -0700380 /* EMMC nReset */
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300381 AM33XX_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 */
Ash Charles43418812014-06-10 15:22:00 -0700382 >;
383 };
384 wireless_pins: pinmux_wireless {
385 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300386 AM33XX_IOPAD(0x844, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a1.mmc2_dat0 */
387 AM33XX_IOPAD(0x848, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a2.mmc2_dat1 */
388 AM33XX_IOPAD(0x84c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a3.mmc2_dat2 */
389 AM33XX_IOPAD(0x878, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_ben1.mmc2_dat3 */
390 AM33XX_IOPAD(0x888, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_csn3.mmc2_cmd */
391 AM33XX_IOPAD(0x88c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_clk.mmc1_clk */
Ash Charles43418812014-06-10 15:22:00 -0700392 /* WLAN nReset */
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300393 AM33XX_IOPAD(0x860, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */
Ash Charles43418812014-06-10 15:22:00 -0700394 /* WLAN nPower down */
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300395 AM33XX_IOPAD(0x870, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wait0.gpio0_30 */
Ash Charles43418812014-06-10 15:22:00 -0700396 /* 32kHz Clock */
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300397 AM33XX_IOPAD(0x9b4, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
Ash Charles43418812014-06-10 15:22:00 -0700398 >;
399 };
400};
401
402/* Power */
403&vbat {
404 regulator-name = "vbat";
405 regulator-min-microvolt = <5000000>;
406 regulator-max-microvolt = <5000000>;
407};
408
409&v3v3c_reg {
410 regulator-name = "v3v3c_reg";
411 regulator-min-microvolt = <3300000>;
412 regulator-max-microvolt = <3300000>;
413 vin-supply = <&vbat>;
414};
415
416&vdd5_reg {
417 regulator-name = "vdd5_reg";
418 regulator-min-microvolt = <5000000>;
419 regulator-max-microvolt = <5000000>;
420 vin-supply = <&vbat>;
421};
422
Peter Ujfalusie327b3f2016-02-19 16:12:19 +0200423/include/ "tps65217.dtsi"
Heiko Schocher8e6ebfa2015-10-27 13:36:36 +0100424
Peter Ujfalusie327b3f2016-02-19 16:12:19 +0200425&tps {
Ash Charles43418812014-06-10 15:22:00 -0700426 backlight {
427 isel = <1>; /* ISET1 */
428 fdim = <200>; /* TPS65217_BL_FDIM_200HZ */
429 default-brightness = <80>;
430 };
431
432 regulators {
433 dcdc1_reg: regulator@0 {
434 /* VDD_1V8 system supply */
Adam YH Lee5aed4ee2015-07-09 15:37:57 -0700435 regulator-always-on;
Ash Charles43418812014-06-10 15:22:00 -0700436 };
437
438 dcdc2_reg: regulator@1 {
439 /* VDD_CORE voltage limits 0.95V - 1.26V with +/-4% tolerance */
440 regulator-name = "vdd_core";
441 regulator-min-microvolt = <925000>;
Arun Bharadwaj693f4f42015-06-04 11:08:19 -0700442 regulator-max-microvolt = <1150000>;
Ash Charles43418812014-06-10 15:22:00 -0700443 regulator-boot-on;
Adam YH Lee5aed4ee2015-07-09 15:37:57 -0700444 regulator-always-on;
Ash Charles43418812014-06-10 15:22:00 -0700445 };
446
447 dcdc3_reg: regulator@2 {
448 /* VDD_MPU voltage limits 0.95V - 1.1V with +/-4% tolerance */
449 regulator-name = "vdd_mpu";
450 regulator-min-microvolt = <925000>;
Arun Bharadwaj693f4f42015-06-04 11:08:19 -0700451 regulator-max-microvolt = <1325000>;
Ash Charles43418812014-06-10 15:22:00 -0700452 regulator-boot-on;
Adam YH Lee5aed4ee2015-07-09 15:37:57 -0700453 regulator-always-on;
Ash Charles43418812014-06-10 15:22:00 -0700454 };
455
456 ldo1_reg: regulator@3 {
457 /* VRTC 1.8V always-on supply */
Adam YH Lee5aed4ee2015-07-09 15:37:57 -0700458 regulator-name = "vrtc,vdds";
Ash Charles43418812014-06-10 15:22:00 -0700459 regulator-always-on;
460 };
461
462 ldo2_reg: regulator@4 {
463 /* 3.3V rail */
Adam YH Lee5aed4ee2015-07-09 15:37:57 -0700464 regulator-name = "vdd_3v3aux";
465 regulator-always-on;
Ash Charles43418812014-06-10 15:22:00 -0700466 };
467
468 ldo3_reg: regulator@5 {
469 /* VDD_3V3A 3.3V rail */
Adam YH Lee5aed4ee2015-07-09 15:37:57 -0700470 regulator-name = "vdd_3v3a";
Ash Charles43418812014-06-10 15:22:00 -0700471 regulator-min-microvolt = <3300000>;
472 regulator-max-microvolt = <3300000>;
473 };
474
475 ldo4_reg: regulator@6 {
476 /* VDD_3V3B 3.3V rail */
Adam YH Lee5aed4ee2015-07-09 15:37:57 -0700477 regulator-name = "vdd_3v3b";
478 regulator-always-on;
Ash Charles43418812014-06-10 15:22:00 -0700479 };
480 };
481};
482
483/* SPI Busses */
484&spi0 {
485 status = "okay";
486 pinctrl-names = "default";
487 pinctrl-0 = <&spi0_pins>;
488};
489
490&am33xx_pinmux {
491 spi0_pins: pinmux_spi0 {
492 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300493 AM33XX_IOPAD(0x950, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_sclk.spi0_sclk */
494 AM33XX_IOPAD(0x95C, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_cs0.spi0_cs0 */
495 AM33XX_IOPAD(0x954, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d0.spi0_d0 */
496 AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d1.spi0_d1 */
Ash Charles43418812014-06-10 15:22:00 -0700497 >;
498 };
499};
500
501/* Touch Screen */
502&tscadc {
503 status = "okay";
504 tsc {
505 ti,wires = <4>;
506 ti,x-plate-resistance = <200>;
507 ti,coordinate-readouts = <5>;
508 ti,wire-config = <0x00 0x11 0x22 0x33>;
509 };
510
511 adc {
512 ti,adc-channels = <4 5 6 7>;
513 };
514};
515
516/* UARTs */
517&uart0 {
518 /* Serial Console */
519 status = "okay";
520 pinctrl-names = "default";
521 pinctrl-0 = <&uart0_pins>;
522};
523
524&uart1 {
525 /* Broken out to J6 header */
526 status = "okay";
527 pinctrl-names = "default";
528 pinctrl-0 = <&uart1_pins>;
529};
530
531&am33xx_pinmux {
532 uart0_pins: pinmux_uart0 {
533 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300534 AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
535 AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
Ash Charles43418812014-06-10 15:22:00 -0700536 >;
537 };
538 uart1_pins: pinmux_uart1 {
539 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300540 AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_ctsn.uart1_ctsn */
541 AM33XX_IOPAD(0x97C, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_rtsn.uart1_rtsn */
542 AM33XX_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */
543 AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */
Ash Charles43418812014-06-10 15:22:00 -0700544 >;
545 };
546};
547
548/* USB */
549&usb {
550 status = "okay";
551
552 pinctrl-names = "default";
553 pinctrl-0 = <&usb_pins>;
554};
555
556&usb_ctrl_mod {
557 status = "okay";
558};
559
560&usb0_phy {
561 status = "okay";
562};
563
564&usb1_phy {
565 status = "okay";
566};
567
568&usb0 {
569 status = "okay";
570 dr_mode = "host";
571};
572
573&usb1 {
574 status = "okay";
575 dr_mode = "host";
576};
577
578&cppi41dma {
579 status = "okay";
580};
581
582&am33xx_pinmux {
583 usb_pins: pinmux_usb {
584 pinctrl-single,pins = <
585 /* USB0 Over-Current (active low) */
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300586 AM33XX_IOPAD(0x864, PIN_INPUT | MUX_MODE7) /* gpmc_a9.gpio1_25 */
Ash Charles43418812014-06-10 15:22:00 -0700587 /* USB1 Over-Current (active low) */
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300588 AM33XX_IOPAD(0x868, PIN_INPUT | MUX_MODE7) /* gpmc_a10.gpio1_26 */
Ash Charles43418812014-06-10 15:22:00 -0700589 >;
590 };
591};
592
593/* User IO */
594&leds {
595 pinctrl-names = "default";
596 pinctrl-0 = <&user_leds_pins>;
597
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400598 led0 {
Ash Charles43418812014-06-10 15:22:00 -0700599 label = "pepper:user0:blue";
600 gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
601 linux,default-trigger = "none";
602 default-state = "off";
603 };
604
Javier Martinez Canillasc731abd2016-08-01 12:47:03 -0400605 led1 {
Ash Charles43418812014-06-10 15:22:00 -0700606 label = "pepper:user1:red";
607 gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
608 linux,default-trigger = "none";
609 default-state = "off";
610 };
611};
612
613&buttons {
614 pinctrl-names = "default";
615 pinctrl-0 = <&user_buttons_pins>;
616 #address-cells = <1>;
617 #size-cells = <0>;
618
Javier Martinez Canillas57a78a82016-08-01 12:47:01 -0400619 button0 {
Ash Charles43418812014-06-10 15:22:00 -0700620 label = "home";
621 linux,code = <KEY_HOME>;
622 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
Sudeep Holla3efda002015-10-21 11:10:06 +0100623 wakeup-source;
Ash Charles43418812014-06-10 15:22:00 -0700624 };
625
Javier Martinez Canillas57a78a82016-08-01 12:47:01 -0400626 button1 {
Ash Charles43418812014-06-10 15:22:00 -0700627 label = "menu";
628 linux,code = <KEY_MENU>;
629 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
Sudeep Holla3efda002015-10-21 11:10:06 +0100630 wakeup-source;
Ash Charles43418812014-06-10 15:22:00 -0700631 };
632
Javier Martinez Canillas57a78a82016-08-01 12:47:01 -0400633 buttons2 {
Ash Charles43418812014-06-10 15:22:00 -0700634 label = "power";
635 linux,code = <KEY_POWER>;
636 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
Sudeep Holla3efda002015-10-21 11:10:06 +0100637 wakeup-source;
Ash Charles43418812014-06-10 15:22:00 -0700638 };
639};
640
641&am33xx_pinmux {
642 user_leds_pins: pinmux_user_leds {
643 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300644 AM33XX_IOPAD(0x850, PIN_OUTPUT | MUX_MODE7) /* gpmc_a4.gpio1_20 */
645 AM33XX_IOPAD(0x854, PIN_OUTPUT | MUX_MODE7) /* gpmc_a5.gpio1_21 */
Ash Charles43418812014-06-10 15:22:00 -0700646 >;
647 };
648
649 user_buttons_pins: pinmux_user_buttons {
650 pinctrl-single,pins = <
Javier Martinez Canillas3eb9d922015-11-13 01:53:50 -0300651 AM33XX_IOPAD(0x858, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */
652 AM33XX_IOPAD(0x85C, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a7.gpio1_21 */
653 AM33XX_IOPAD(0x964, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio0_7 */
Ash Charles43418812014-06-10 15:22:00 -0700654 >;
655 };
656};