ARM: dts: AM571x-IDK Initial Support
[oweals/u-boot.git] / arch / arm / dts / am571x-idk.dts
1 /*
2  * Copyright (C) 2015-2016 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 /dts-v1/;
9
10 #include "dra72x.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/interrupt-controller/irq.h>
13 #include "am57xx-idk-common.dtsi"
14
15 / {
16         model = "TI AM5718 IDK";
17         compatible = "ti,am5718-idk", "ti,am5718", "ti,dra7";
18
19         memory@80000000 {
20                 device_type = "memory";
21                 reg = <0x0 0x80000000 0x0 0x40000000>;
22         };
23
24         leds {
25                 compatible = "gpio-leds";
26                 cpu0-led {
27                         label = "status0:red:cpu0";
28                         gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
29                         default-state = "off";
30                         linux,default-trigger = "cpu0";
31                 };
32
33                 usr0-led {
34                         label = "status0:green:usr";
35                         gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
36                         default-state = "off";
37                 };
38
39                 heartbeat-led {
40                         label = "status0:blue:heartbeat";
41                         gpios = <&gpio2 27 GPIO_ACTIVE_HIGH>;
42                         default-state = "off";
43                         linux,default-trigger = "heartbeat";
44                 };
45
46                 usr1-led {
47                         label = "status1:red:usr";
48                         gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
49                         default-state = "off";
50                 };
51
52                 usr2-led {
53                         label = "status1:green:usr";
54                         gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
55                         default-state = "off";
56                 };
57
58                 mmc0-led {
59                         label = "status1:blue:mmc0";
60                         gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
61                         default-state = "off";
62                         linux,default-trigger = "mmc0";
63                 };
64         };
65
66         extcon_usb2: extcon_usb2 {
67              compatible = "linux,extcon-usb-gpio";
68              id-gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>;
69         };
70 };
71
72 &mmc1 {
73         status = "okay";
74         vmmc-supply = <&ldo1_reg>;
75         bus-width = <4>;
76         cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
77 };
78
79 &omap_dwc3_2 {
80         extcon = <&extcon_usb2>;
81 };