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";
24 rtc1 = &tps659038_rtc;
30 device_type = "memory";
31 reg = <0x80000000 0x80000000>;
34 vdd_3v3: fixedregulator-vdd_3v3 {
35 compatible = "regulator-fixed";
36 regulator-name = "vdd_3v3";
37 vin-supply = <®en1>;
38 regulator-min-microvolt = <3300000>;
39 regulator-max-microvolt = <3300000>;
42 vtt_fixed: fixedregulator-vtt {
44 compatible = "regulator-fixed";
45 regulator-name = "vtt_fixed";
46 vin-supply = <&smps3_reg>;
47 regulator-min-microvolt = <3300000>;
48 regulator-max-microvolt = <3300000>;
52 gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>;
56 compatible = "gpio-leds";
57 pinctrl-names = "default";
58 pinctrl-0 = <&leds_pins_default>;
61 label = "beagle-x15:usr0";
62 gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>;
63 linux,default-trigger = "heartbeat";
64 default-state = "off";
68 label = "beagle-x15:usr1";
69 gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>;
70 linux,default-trigger = "cpu0";
71 default-state = "off";
75 label = "beagle-x15:usr2";
76 gpios = <&gpio7 14 GPIO_ACTIVE_HIGH>;
77 linux,default-trigger = "mmc0";
78 default-state = "off";
82 label = "beagle-x15:usr3";
83 gpios = <&gpio7 15 GPIO_ACTIVE_HIGH>;
84 linux,default-trigger = "ide-disk";
85 default-state = "off";
90 /* Based on 5v 500mA AFB02505HHB */
91 compatible = "gpio-fan";
92 gpios = <&tps659038_gpio 2 GPIO_ACTIVE_HIGH>;
93 gpio-fan,speed-map = <0 0>,
98 extcon_usb1: extcon_usb1 {
99 compatible = "linux,extcon-usb-gpio";
100 id-gpio = <&gpio7 25 GPIO_ACTIVE_HIGH>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&extcon_usb1_pins>;
105 extcon_usb2: extcon_usb2 {
106 compatible = "linux,extcon-usb-gpio";
107 id-gpio = <&gpio7 24 GPIO_ACTIVE_HIGH>;
108 pinctrl-names = "default";
109 pinctrl-0 = <&extcon_usb2_pins>;
113 compatible = "hdmi-connector";
119 hdmi_connector_in: endpoint {
120 remote-endpoint = <&tpd12s015_out>;
126 compatible = "ti,tpd12s015";
128 pinctrl-names = "default";
129 pinctrl-0 = <&tpd12s015_pins>;
131 gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>, /* gpio7_10, CT CP HPD */
132 <&gpio6 28 GPIO_ACTIVE_HIGH>, /* gpio6_28, LS OE */
133 <&gpio7 12 GPIO_ACTIVE_HIGH>; /* gpio7_12/sp1_cs2, HPD */
136 #address-cells = <1>;
142 tpd12s015_in: endpoint {
143 remote-endpoint = <&hdmi_out>;
150 tpd12s015_out: endpoint {
151 remote-endpoint = <&hdmi_connector_in>;
159 leds_pins_default: leds_pins_default {
160 pinctrl-single,pins = <
161 0x3a8 (PIN_OUTPUT | MUX_MODE14) /* spi1_d1.gpio7_8 */
162 0x3ac (PIN_OUTPUT | MUX_MODE14) /* spi1_d0.gpio7_9 */
163 0x3c0 (PIN_OUTPUT | MUX_MODE14) /* spi2_sclk.gpio7_14 */
164 0x3c4 (PIN_OUTPUT | MUX_MODE14) /* spi2_d1.gpio7_15 */
168 i2c1_pins_default: i2c1_pins_default {
169 pinctrl-single,pins = <
170 0x400 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda.sda */
171 0x404 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl.scl */
175 hdmi_pins: pinmux_hdmi_pins {
176 pinctrl-single,pins = <
177 0x408 (PIN_INPUT | MUX_MODE1) /* i2c2_sda.hdmi1_ddc_scl */
178 0x40c (PIN_INPUT | MUX_MODE1) /* i2c2_scl.hdmi1_ddc_sda */
182 i2c3_pins_default: i2c3_pins_default {
183 pinctrl-single,pins = <
184 0x2a4 (PIN_INPUT| MUX_MODE10) /* mcasp1_aclkx.i2c3_sda */
185 0x2a8 (PIN_INPUT| MUX_MODE10) /* mcasp1_fsx.i2c3_scl */
189 uart3_pins_default: uart3_pins_default {
190 pinctrl-single,pins = <
191 0x3f8 (PIN_INPUT_SLEW | MUX_MODE2) /* uart2_ctsn.uart3_rxd */
192 0x3fc (PIN_INPUT_SLEW | MUX_MODE1) /* uart2_rtsn.uart3_txd */
196 mmc1_pins_default: mmc1_pins_default {
197 pinctrl-single,pins = <
198 0x36c (PIN_INPUT | MUX_MODE14) /* mmc1sdcd.gpio219 */
199 0x354 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.clk */
200 0x358 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.cmd */
201 0x35c (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.dat0 */
202 0x360 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.dat1 */
203 0x364 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.dat2 */
204 0x368 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.dat3 */
208 mmc2_pins_default: mmc2_pins_default {
209 pinctrl-single,pins = <
210 0x9c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a23.mmc2_clk */
211 0xb0 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs1.mmc2_cmd */
212 0xa0 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a24.mmc2_dat0 */
213 0xa4 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a25.mmc2_dat1 */
214 0xa8 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a26.mmc2_dat2 */
215 0xac (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a27.mmc2_dat3 */
216 0x8c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a19.mmc2_dat4 */
217 0x90 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a20.mmc2_dat5 */
218 0x94 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a21.mmc2_dat6 */
219 0x98 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a22.mmc2_dat7 */
223 cpsw_pins_default: cpsw_pins_default {
224 pinctrl-single,pins = <
226 0x250 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_tclk */
227 0x254 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_tctl */
228 0x258 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td3 */
229 0x25c (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td2 */
230 0x260 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td1 */
231 0x264 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td0 */
232 0x268 (PIN_INPUT | MUX_MODE0) /* rgmii1_rclk */
233 0x26c (PIN_INPUT | MUX_MODE0) /* rgmii1_rctl */
234 0x270 (PIN_INPUT | MUX_MODE0) /* rgmii1_rd3 */
235 0x274 (PIN_INPUT | MUX_MODE0) /* rgmii1_rd2 */
236 0x278 (PIN_INPUT | MUX_MODE0) /* rgmii1_rd1 */
237 0x27c (PIN_INPUT | MUX_MODE0) /* rgmii1_rd0 */
240 0x198 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_tclk */
241 0x19c (PIN_OUTPUT | MUX_MODE3) /* rgmii2_tctl */
242 0x1a0 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td3 */
243 0x1a4 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td2 */
244 0x1a8 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td1 */
245 0x1ac (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td0 */
246 0x1b0 (PIN_INPUT | MUX_MODE3) /* rgmii2_rclk */
247 0x1b4 (PIN_INPUT | MUX_MODE3) /* rgmii2_rctl */
248 0x1b8 (PIN_INPUT | MUX_MODE3) /* rgmii2_rd3 */
249 0x1bc (PIN_INPUT | MUX_MODE3) /* rgmii2_rd2 */
250 0x1c0 (PIN_INPUT | MUX_MODE3) /* rgmii2_rd1 */
251 0x1c4 (PIN_INPUT | MUX_MODE3) /* rgmii2_rd0 */
256 cpsw_pins_sleep: cpsw_pins_sleep {
257 pinctrl-single,pins = <
259 0x250 (PIN_INPUT | MUX_MODE15)
260 0x254 (PIN_INPUT | MUX_MODE15)
261 0x258 (PIN_INPUT | MUX_MODE15)
262 0x25c (PIN_INPUT | MUX_MODE15)
263 0x260 (PIN_INPUT | MUX_MODE15)
264 0x264 (PIN_INPUT | MUX_MODE15)
265 0x268 (PIN_INPUT | MUX_MODE15)
266 0x26c (PIN_INPUT | MUX_MODE15)
267 0x270 (PIN_INPUT | MUX_MODE15)
268 0x274 (PIN_INPUT | MUX_MODE15)
269 0x278 (PIN_INPUT | MUX_MODE15)
270 0x27c (PIN_INPUT | MUX_MODE15)
273 0x198 (PIN_INPUT | MUX_MODE15)
274 0x19c (PIN_INPUT | MUX_MODE15)
275 0x1a0 (PIN_INPUT | MUX_MODE15)
276 0x1a4 (PIN_INPUT | MUX_MODE15)
277 0x1a8 (PIN_INPUT | MUX_MODE15)
278 0x1ac (PIN_INPUT | MUX_MODE15)
279 0x1b0 (PIN_INPUT | MUX_MODE15)
280 0x1b4 (PIN_INPUT | MUX_MODE15)
281 0x1b8 (PIN_INPUT | MUX_MODE15)
282 0x1bc (PIN_INPUT | MUX_MODE15)
283 0x1c0 (PIN_INPUT | MUX_MODE15)
284 0x1c4 (PIN_INPUT | MUX_MODE15)
288 davinci_mdio_pins_default: davinci_mdio_pins_default {
289 pinctrl-single,pins = <
291 0x23c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_mclk */
292 0x240 (PIN_INPUT_PULLUP | MUX_MODE0) /* mdio_d */
296 davinci_mdio_pins_sleep: davinci_mdio_pins_sleep {
297 pinctrl-single,pins = <
298 0x23c (PIN_INPUT | MUX_MODE15)
299 0x240 (PIN_INPUT | MUX_MODE15)
303 tps659038_pins_default: tps659038_pins_default {
304 pinctrl-single,pins = <
305 0x418 (PIN_INPUT_PULLUP | MUX_MODE14) /* wakeup0.gpio1_0 */
309 tmp102_pins_default: tmp102_pins_default {
310 pinctrl-single,pins = <
311 0x3C8 (PIN_INPUT_PULLUP | MUX_MODE14) /* spi2_d0.gpio7_16 */
315 mcp79410_pins_default: mcp79410_pins_default {
316 pinctrl-single,pins = <
317 0x424 (PIN_INPUT_PULLUP | MUX_MODE1) /* wakeup3.sys_nirq1 */
321 usb1_pins: pinmux_usb1_pins {
322 pinctrl-single,pins = <
323 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
327 extcon_usb1_pins: extcon_usb1_pins {
328 pinctrl-single,pins = <
329 0x3ec (PIN_INPUT_PULLUP | MUX_MODE14) /* uart1_rtsn.gpio7_25 */
333 extcon_usb2_pins: extcon_usb2_pins {
334 pinctrl-single,pins = <
335 0x3e8 (PIN_INPUT_PULLUP | MUX_MODE14) /* uart1_ctsn.gpio7_24 */
339 tpd12s015_pins: pinmux_tpd12s015_pins {
340 pinctrl-single,pins = <
341 0x3b0 (PIN_OUTPUT | MUX_MODE14) /* gpio7_10 CT_CP_HPD */
342 0x3b8 (PIN_INPUT_PULLDOWN | MUX_MODE14) /* gpio7_12 HPD */
343 0x370 (PIN_OUTPUT | MUX_MODE14) /* gpio6_28 LS_OE */
350 pinctrl-names = "default";
351 pinctrl-0 = <&i2c1_pins_default>;
352 clock-frequency = <400000>;
354 tps659038: tps659038@58 {
355 compatible = "ti,tps659038";
357 interrupt-parent = <&gpio1>;
358 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
360 pinctrl-names = "default";
361 pinctrl-0 = <&tps659038_pins_default>;
363 #interrupt-cells = <2>;
364 interrupt-controller;
366 ti,system-power-controller;
369 compatible = "ti,tps659038-pmic";
374 regulator-name = "smps12";
375 regulator-min-microvolt = < 850000>;
376 regulator-max-microvolt = <1250000>;
383 regulator-name = "smps3";
384 regulator-min-microvolt = <1350000>;
385 regulator-max-microvolt = <1350000>;
391 /* VDD_DSPEVE, VDD_IVA, VDD_GPU */
392 regulator-name = "smps45";
393 regulator-min-microvolt = < 850000>;
394 regulator-max-microvolt = <1150000>;
401 regulator-name = "smps6";
402 regulator-min-microvolt = <850000>;
403 regulator-max-microvolt = <1030000>;
412 regulator-name = "smps8";
413 regulator-min-microvolt = <1800000>;
414 regulator-max-microvolt = <1800000>;
423 regulator-name = "ldo1";
424 regulator-min-microvolt = <1800000>;
425 regulator-max-microvolt = <3300000>;
431 regulator-name = "ldo2";
432 regulator-min-microvolt = <3300000>;
433 regulator-max-microvolt = <3300000>;
440 regulator-name = "ldo3";
441 regulator-min-microvolt = <1800000>;
442 regulator-max-microvolt = <1800000>;
449 regulator-name = "ldo9";
450 regulator-min-microvolt = <1050000>;
451 regulator-max-microvolt = <1050000>;
458 regulator-name = "ldoln";
459 regulator-min-microvolt = <1800000>;
460 regulator-max-microvolt = <1800000>;
466 /* VDDA_3V_USB: VDDA_USBHS33 */
467 regulator-name = "ldousb";
468 regulator-min-microvolt = <3300000>;
469 regulator-max-microvolt = <3300000>;
475 regulator-name = "regen1";
482 tps659038_rtc: tps659038_rtc {
483 compatible = "ti,palmas-rtc";
484 interrupt-parent = <&tps659038>;
485 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
489 tps659038_pwr_button: tps659038_pwr_button {
490 compatible = "ti,palmas-pwrbutton";
491 interrupt-parent = <&tps659038>;
492 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
494 ti,palmas-long-press-seconds = <12>;
497 tps659038_gpio: tps659038_gpio {
498 compatible = "ti,palmas-gpio";
505 compatible = "ti,tmp102";
507 pinctrl-names = "default";
508 pinctrl-0 = <&tmp102_pins_default>;
509 interrupt-parent = <&gpio7>;
510 interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
511 #thermal-sensor-cells = <1>;
517 pinctrl-names = "default";
518 pinctrl-0 = <&i2c3_pins_default>;
519 clock-frequency = <400000>;
522 compatible = "microchip,mcp7941x";
524 interrupts = <GIC_SPI 2 IRQ_TYPE_EDGE_RISING>; /* IRQ_SYS_1N */
526 pinctrl-names = "default";
527 pinctrl-0 = <&mcp79410_pins_default>;
529 vcc-supply = <&vdd_3v3>;
540 cpu0-supply = <&smps12_reg>;
541 voltage-tolerance = <1>;
546 interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
547 <&dra7_pmx_core 0x3f8>;
549 pinctrl-names = "default";
550 pinctrl-0 = <&uart3_pins_default>;
555 pinctrl-names = "default", "sleep";
556 pinctrl-0 = <&cpsw_pins_default>;
557 pinctrl-1 = <&cpsw_pins_sleep>;
562 phy_id = <&davinci_mdio>, <1>;
564 dual_emac_res_vlan = <1>;
568 phy_id = <&davinci_mdio>, <2>;
570 dual_emac_res_vlan = <2>;
574 pinctrl-names = "default", "sleep";
575 pinctrl-0 = <&davinci_mdio_pins_default>;
576 pinctrl-1 = <&davinci_mdio_pins_sleep>;
582 pinctrl-names = "default";
583 pinctrl-0 = <&mmc1_pins_default>;
585 vmmc-supply = <&ldo1_reg>;
586 vmmc_aux-supply = <&vdd_3v3>;
587 pbias-supply = <&pbias_mmc_reg>;
589 cd-gpios = <&gpio6 27 0>; /* gpio 219 */
595 pinctrl-names = "default";
596 pinctrl-0 = <&mmc2_pins_default>;
598 vmmc-supply = <&vdd_3v3>;
601 cap-mmc-dual-data-rate;
609 phy-supply = <&ldousb_reg>;
613 phy-supply = <&ldousb_reg>;
618 pinctrl-names = "default";
619 pinctrl-0 = <&usb1_pins>;
623 extcon = <&extcon_usb1>;
627 extcon = <&extcon_usb2>;
631 dr_mode = "peripheral";
635 cpu_alert1: cpu_alert1 {
636 temperature = <50000>; /* millicelsius */
637 hysteresis = <2000>; /* millicelsius */
644 trip = <&cpu_alert1>;
645 cooling-device = <&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
650 board_thermal: board_thermal {
651 polling-delay-passive = <1250>; /* milliseconds */
652 polling-delay = <1500>; /* milliseconds */
655 thermal-sensors = <&tmp102 0>;
658 board_alert0: board_alert {
659 temperature = <40000>; /* millicelsius */
660 hysteresis = <2000>; /* millicelsius */
664 board_crit: board_crit {
665 temperature = <105000>; /* millicelsius */
666 hysteresis = <0>; /* millicelsius */
671 board_cooling_maps: cooling-maps {
673 trip = <&board_alert0>;
675 <&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
684 vdda_video-supply = <&ldoln_reg>;
689 vdda-supply = <&ldo3_reg>;
691 pinctrl-names = "default";
692 pinctrl-0 = <&hdmi_pins>;
696 remote-endpoint = <&tpd12s015_in>;