xref: /OK3568_Linux_fs/u-boot/arch/arm/dts/am571x-idk.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Copyright (C) 2015-2016 Texas Instruments Incorporated - http://www.ti.com/
3*4882a593Smuzhiyun *
4*4882a593Smuzhiyun * This program is free software; you can redistribute it and/or modify
5*4882a593Smuzhiyun * it under the terms of the GNU General Public License version 2 as
6*4882a593Smuzhiyun * published by the Free Software Foundation.
7*4882a593Smuzhiyun */
8*4882a593Smuzhiyun/dts-v1/;
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun#include "dra72x.dtsi"
11*4882a593Smuzhiyun#include <dt-bindings/gpio/gpio.h>
12*4882a593Smuzhiyun#include <dt-bindings/interrupt-controller/irq.h>
13*4882a593Smuzhiyun#include "am57xx-idk-common.dtsi"
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun/ {
16*4882a593Smuzhiyun	model = "TI AM5718 IDK";
17*4882a593Smuzhiyun	compatible = "ti,am5718-idk", "ti,am5718", "ti,dra7";
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun	memory@80000000 {
20*4882a593Smuzhiyun		device_type = "memory";
21*4882a593Smuzhiyun		reg = <0x0 0x80000000 0x0 0x40000000>;
22*4882a593Smuzhiyun	};
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun	leds {
25*4882a593Smuzhiyun		compatible = "gpio-leds";
26*4882a593Smuzhiyun		cpu0-led {
27*4882a593Smuzhiyun			label = "status0:red:cpu0";
28*4882a593Smuzhiyun			gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
29*4882a593Smuzhiyun			default-state = "off";
30*4882a593Smuzhiyun			linux,default-trigger = "cpu0";
31*4882a593Smuzhiyun		};
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun		usr0-led {
34*4882a593Smuzhiyun			label = "status0:green:usr";
35*4882a593Smuzhiyun			gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
36*4882a593Smuzhiyun			default-state = "off";
37*4882a593Smuzhiyun		};
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun		heartbeat-led {
40*4882a593Smuzhiyun			label = "status0:blue:heartbeat";
41*4882a593Smuzhiyun			gpios = <&gpio2 27 GPIO_ACTIVE_HIGH>;
42*4882a593Smuzhiyun			default-state = "off";
43*4882a593Smuzhiyun			linux,default-trigger = "heartbeat";
44*4882a593Smuzhiyun		};
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun		usr1-led {
47*4882a593Smuzhiyun			label = "status1:red:usr";
48*4882a593Smuzhiyun			gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
49*4882a593Smuzhiyun			default-state = "off";
50*4882a593Smuzhiyun		};
51*4882a593Smuzhiyun
52*4882a593Smuzhiyun		usr2-led {
53*4882a593Smuzhiyun			label = "status1:green:usr";
54*4882a593Smuzhiyun			gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
55*4882a593Smuzhiyun			default-state = "off";
56*4882a593Smuzhiyun		};
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun		mmc0-led {
59*4882a593Smuzhiyun			label = "status1:blue:mmc0";
60*4882a593Smuzhiyun			gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
61*4882a593Smuzhiyun			default-state = "off";
62*4882a593Smuzhiyun			linux,default-trigger = "mmc0";
63*4882a593Smuzhiyun		};
64*4882a593Smuzhiyun	};
65*4882a593Smuzhiyun
66*4882a593Smuzhiyun	extcon_usb2: extcon_usb2 {
67*4882a593Smuzhiyun	     compatible = "linux,extcon-usb-gpio";
68*4882a593Smuzhiyun	     id-gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>;
69*4882a593Smuzhiyun	};
70*4882a593Smuzhiyun};
71*4882a593Smuzhiyun
72*4882a593Smuzhiyun&mmc1 {
73*4882a593Smuzhiyun	status = "okay";
74*4882a593Smuzhiyun	vmmc-supply = <&ldo1_reg>;
75*4882a593Smuzhiyun	bus-width = <4>;
76*4882a593Smuzhiyun	cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
77*4882a593Smuzhiyun};
78*4882a593Smuzhiyun
79*4882a593Smuzhiyun&omap_dwc3_2 {
80*4882a593Smuzhiyun	extcon = <&extcon_usb2>;
81*4882a593Smuzhiyun};
82