2 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
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.
10 #include "dra74x.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/interrupt-controller/irq.h>
15 model = "TI AM5728 BeagleBoard-X15";
16 compatible = "ti,am572x-beagle-x15", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";
20 rtc1 = &tps659038_rtc;
24 device_type = "memory";
25 reg = <0x80000000 0x80000000>;
28 vdd_3v3: fixedregulator-vdd_3v3 {
29 compatible = "regulator-fixed";
30 regulator-name = "vdd_3v3";
31 vin-supply = <®en1>;
32 regulator-min-microvolt = <3300000>;
33 regulator-max-microvolt = <3300000>;
36 vtt_fixed: fixedregulator-vtt {
38 compatible = "regulator-fixed";
39 regulator-name = "vtt_fixed";
40 vin-supply = <&smps3_reg>;
41 regulator-min-microvolt = <3300000>;
42 regulator-max-microvolt = <3300000>;
46 gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>;
50 compatible = "gpio-leds";
51 pinctrl-names = "default";
52 pinctrl-0 = <&leds_pins_default>;
55 label = "beagle-x15:usr0";
56 gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>;
57 linux,default-trigger = "heartbeat";
58 default-state = "off";
62 label = "beagle-x15:usr1";
63 gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>;
64 linux,default-trigger = "cpu0";
65 default-state = "off";
69 label = "beagle-x15:usr2";
70 gpios = <&gpio7 14 GPIO_ACTIVE_HIGH>;
71 linux,default-trigger = "mmc0";
72 default-state = "off";
76 label = "beagle-x15:usr3";
77 gpios = <&gpio7 15 GPIO_ACTIVE_HIGH>;
78 linux,default-trigger = "ide-disk";
79 default-state = "off";
84 /* Based on 5v 500mA AFB02505HHB */
85 compatible = "gpio-fan";
86 gpios = <&tps659038_gpio 1 GPIO_ACTIVE_HIGH>;
87 gpio-fan,speed-map = <0 0>,
91 extcon_usb1: extcon_usb1 {
92 compatible = "linux,extcon-usb-gpio";
93 id-gpio = <&gpio7 25 GPIO_ACTIVE_HIGH>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&extcon_usb1_pins>;
98 extcon_usb2: extcon_usb2 {
99 compatible = "linux,extcon-usb-gpio";
100 id-gpio = <&gpio7 24 GPIO_ACTIVE_HIGH>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&extcon_usb2_pins>;
107 leds_pins_default: leds_pins_default {
108 pinctrl-single,pins = <
109 0x3a8 (PIN_OUTPUT | MUX_MODE14) /* spi1_d1.gpio7_8 */
110 0x3ac (PIN_OUTPUT | MUX_MODE14) /* spi1_d0.gpio7_9 */
111 0x3c0 (PIN_OUTPUT | MUX_MODE14) /* spi2_sclk.gpio7_14 */
112 0x3c4 (PIN_OUTPUT | MUX_MODE14) /* spi2_d1.gpio7_15 */
116 i2c1_pins_default: i2c1_pins_default {
117 pinctrl-single,pins = <
118 0x400 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda.sda */
119 0x404 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl.scl */
123 i2c3_pins_default: i2c3_pins_default {
124 pinctrl-single,pins = <
125 0x2a4 (PIN_INPUT| MUX_MODE10) /* mcasp1_aclkx.i2c3_sda */
126 0x2a8 (PIN_INPUT| MUX_MODE10) /* mcasp1_fsx.i2c3_scl */
130 uart3_pins_default: uart3_pins_default {
131 pinctrl-single,pins = <
132 0x248 (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_rxd.rxd */
133 0x24c (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd.txd */
137 mmc1_pins_default: mmc1_pins_default {
138 pinctrl-single,pins = <
139 0x36c (PIN_INPUT | MUX_MODE14) /* mmc1sdcd.gpio219 */
140 0x354 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.clk */
141 0x358 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.cmd */
142 0x35c (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.dat0 */
143 0x360 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.dat1 */
144 0x364 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.dat2 */
145 0x368 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.dat3 */
149 mmc2_pins_default: mmc2_pins_default {
150 pinctrl-single,pins = <
151 0x9c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a23.mmc2_clk */
152 0xb0 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs1.mmc2_cmd */
153 0xa0 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a24.mmc2_dat0 */
154 0xa4 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a25.mmc2_dat1 */
155 0xa8 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a26.mmc2_dat2 */
156 0xac (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a27.mmc2_dat3 */
157 0x8c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a19.mmc2_dat4 */
158 0x90 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a20.mmc2_dat5 */
159 0x94 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a21.mmc2_dat6 */
160 0x98 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a22.mmc2_dat7 */
164 cpsw_pins_default: cpsw_pins_default {
165 pinctrl-single,pins = <
167 0x250 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_tclk */
168 0x254 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_tctl */
169 0x258 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td3 */
170 0x25c (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td2 */
171 0x260 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td1 */
172 0x264 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td0 */
173 0x268 (PIN_INPUT | MUX_MODE0) /* rgmii1_rclk */
174 0x26c (PIN_INPUT | MUX_MODE0) /* rgmii1_rctl */
175 0x270 (PIN_INPUT | MUX_MODE0) /* rgmii1_rd3 */
176 0x274 (PIN_INPUT | MUX_MODE0) /* rgmii1_rd2 */
177 0x278 (PIN_INPUT | MUX_MODE0) /* rgmii1_rd1 */
178 0x27c (PIN_INPUT | MUX_MODE0) /* rgmii1_rd0 */
181 0x198 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_tclk */
182 0x19c (PIN_OUTPUT | MUX_MODE3) /* rgmii2_tctl */
183 0x1a0 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td3 */
184 0x1a4 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td2 */
185 0x1a8 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td1 */
186 0x1ac (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td0 */
187 0x1b0 (PIN_INPUT | MUX_MODE3) /* rgmii2_rclk */
188 0x1b4 (PIN_INPUT | MUX_MODE3) /* rgmii2_rctl */
189 0x1b8 (PIN_INPUT | MUX_MODE3) /* rgmii2_rd3 */
190 0x1bc (PIN_INPUT | MUX_MODE3) /* rgmii2_rd2 */
191 0x1c0 (PIN_INPUT | MUX_MODE3) /* rgmii2_rd1 */
192 0x1c4 (PIN_INPUT | MUX_MODE3) /* rgmii2_rd0 */
197 cpsw_pins_sleep: cpsw_pins_sleep {
198 pinctrl-single,pins = <
200 0x250 (PIN_INPUT | MUX_MODE15)
201 0x254 (PIN_INPUT | MUX_MODE15)
202 0x258 (PIN_INPUT | MUX_MODE15)
203 0x25c (PIN_INPUT | MUX_MODE15)
204 0x260 (PIN_INPUT | MUX_MODE15)
205 0x264 (PIN_INPUT | MUX_MODE15)
206 0x268 (PIN_INPUT | MUX_MODE15)
207 0x26c (PIN_INPUT | MUX_MODE15)
208 0x270 (PIN_INPUT | MUX_MODE15)
209 0x274 (PIN_INPUT | MUX_MODE15)
210 0x278 (PIN_INPUT | MUX_MODE15)
211 0x27c (PIN_INPUT | MUX_MODE15)
214 0x198 (PIN_INPUT | MUX_MODE15)
215 0x19c (PIN_INPUT | MUX_MODE15)
216 0x1a0 (PIN_INPUT | MUX_MODE15)
217 0x1a4 (PIN_INPUT | MUX_MODE15)
218 0x1a8 (PIN_INPUT | MUX_MODE15)
219 0x1ac (PIN_INPUT | MUX_MODE15)
220 0x1b0 (PIN_INPUT | MUX_MODE15)
221 0x1b4 (PIN_INPUT | MUX_MODE15)
222 0x1b8 (PIN_INPUT | MUX_MODE15)
223 0x1bc (PIN_INPUT | MUX_MODE15)
224 0x1c0 (PIN_INPUT | MUX_MODE15)
225 0x1c4 (PIN_INPUT | MUX_MODE15)
229 davinci_mdio_pins_default: davinci_mdio_pins_default {
230 pinctrl-single,pins = <
232 0x23c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_mclk */
233 0x240 (PIN_INPUT_PULLUP | MUX_MODE0) /* mdio_d */
237 davinci_mdio_pins_sleep: davinci_mdio_pins_sleep {
238 pinctrl-single,pins = <
239 0x23c (PIN_INPUT | MUX_MODE15)
240 0x240 (PIN_INPUT | MUX_MODE15)
244 tps659038_pins_default: tps659038_pins_default {
245 pinctrl-single,pins = <
246 0x418 (PIN_INPUT_PULLUP | MUX_MODE14) /* wakeup0.gpio1_0 */
250 tmp102_pins_default: tmp102_pins_default {
251 pinctrl-single,pins = <
252 0x3C8 (PIN_INPUT_PULLUP | MUX_MODE14) /* spi2_d0.gpio7_16 */
256 mcp79410_pins_default: mcp79410_pins_default {
257 pinctrl-single,pins = <
258 0x424 (PIN_INPUT_PULLUP | MUX_MODE1) /* wakeup3.sys_nirq1 */
262 usb1_pins: pinmux_usb1_pins {
263 pinctrl-single,pins = <
264 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
268 extcon_usb1_pins: extcon_usb1_pins {
269 pinctrl-single,pins = <
270 0x3ec (PIN_INPUT_PULLUP | MUX_MODE14) /* uart1_rtsn.gpio7_25 */
274 extcon_usb2_pins: extcon_usb2_pins {
275 pinctrl-single,pins = <
276 0x3e8 (PIN_INPUT_PULLUP | MUX_MODE14) /* uart1_ctsn.gpio7_24 */
283 pinctrl-names = "default";
284 pinctrl-0 = <&i2c1_pins_default>;
285 clock-frequency = <400000>;
287 tps659038: tps659038@58 {
288 compatible = "ti,tps659038";
290 interrupt-parent = <&gpio1>;
291 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
293 pinctrl-names = "default";
294 pinctrl-0 = <&tps659038_pins_default>;
296 #interrupt-cells = <2>;
297 interrupt-controller;
299 ti,system-power-controller;
302 compatible = "ti,tps659038-pmic";
307 regulator-name = "smps12";
308 regulator-min-microvolt = < 850000>;
309 regulator-max-microvolt = <1250000>;
316 regulator-name = "smps3";
317 regulator-min-microvolt = <1350000>;
318 regulator-max-microvolt = <1350000>;
324 /* VDD_DSPEVE, VDD_IVA, VDD_GPU */
325 regulator-name = "smps45";
326 regulator-min-microvolt = < 850000>;
327 regulator-max-microvolt = <1150000>;
334 regulator-name = "smps6";
335 regulator-min-microvolt = <850000>;
336 regulator-max-microvolt = <1030000>;
345 regulator-name = "smps8";
346 regulator-min-microvolt = <1800000>;
347 regulator-max-microvolt = <1800000>;
356 regulator-name = "ldo1";
357 regulator-min-microvolt = <1800000>;
358 regulator-max-microvolt = <3300000>;
364 regulator-name = "ldo2";
365 regulator-min-microvolt = <3300000>;
366 regulator-max-microvolt = <3300000>;
373 regulator-name = "ldo3";
374 regulator-min-microvolt = <1800000>;
375 regulator-max-microvolt = <1800000>;
382 regulator-name = "ldo9";
383 regulator-min-microvolt = <1050000>;
384 regulator-max-microvolt = <1050000>;
391 regulator-name = "ldoln";
392 regulator-min-microvolt = <1800000>;
393 regulator-max-microvolt = <1800000>;
399 /* VDDA_3V_USB: VDDA_USBHS33 */
400 regulator-name = "ldousb";
401 regulator-min-microvolt = <3300000>;
402 regulator-max-microvolt = <3300000>;
408 regulator-name = "regen1";
415 tps659038_rtc: tps659038_rtc {
416 compatible = "ti,palmas-rtc";
417 interrupt-parent = <&tps659038>;
418 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
422 tps659038_pwr_button: tps659038_pwr_button {
423 compatible = "ti,palmas-pwrbutton";
424 interrupt-parent = <&tps659038>;
425 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
427 ti,palmas-long-press-seconds = <12>;
430 tps659038_gpio: tps659038_gpio {
431 compatible = "ti,palmas-gpio";
438 compatible = "ti,tmp102";
440 pinctrl-names = "default";
441 pinctrl-0 = <&tmp102_pins_default>;
442 interrupt-parent = <&gpio7>;
443 interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
449 pinctrl-names = "default";
450 pinctrl-0 = <&i2c3_pins_default>;
451 clock-frequency = <400000>;
454 compatible = "microchip,mcp7941x";
456 interrupt-parent = <&gic>;
457 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_LOW>; /* IRQ_SYS_1N */
459 pinctrl-names = "default";
460 pinctrl-0 = <&mcp79410_pins_default>;
462 vcc-supply = <&vdd_3v3>;
473 cpu0-supply = <&smps12_reg>;
474 voltage-tolerance = <1>;
479 interrupts-extended = <&gic GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
480 <&dra7_pmx_core 0x248>;
482 pinctrl-names = "default";
483 pinctrl-0 = <&uart3_pins_default>;
488 pinctrl-names = "default", "sleep";
489 pinctrl-0 = <&cpsw_pins_default>;
490 pinctrl-1 = <&cpsw_pins_sleep>;
495 phy_id = <&davinci_mdio>, <1>;
497 dual_emac_res_vlan = <1>;
501 phy_id = <&davinci_mdio>, <2>;
503 dual_emac_res_vlan = <2>;
507 pinctrl-names = "default", "sleep";
508 pinctrl-0 = <&davinci_mdio_pins_default>;
509 pinctrl-1 = <&davinci_mdio_pins_sleep>;
515 pinctrl-names = "default";
516 pinctrl-0 = <&mmc1_pins_default>;
518 vmmc-supply = <&ldo1_reg>;
519 vmmc_aux-supply = <&vdd_3v3>;
520 pbias-supply = <&pbias_mmc_reg>;
522 cd-gpios = <&gpio6 27 0>; /* gpio 219 */
528 pinctrl-names = "default";
529 pinctrl-0 = <&mmc2_pins_default>;
531 vmmc-supply = <&vdd_3v3>;
534 cap-mmc-dual-data-rate;
542 phy-supply = <&ldousb_reg>;
547 pinctrl-names = "default";
548 pinctrl-0 = <&usb1_pins>;
552 extcon = <&extcon_usb1>;
556 extcon = <&extcon_usb2>;
560 dr_mode = "peripheral";