blob: 2e0c636a7e721246a09e3458f8c01a6490b27cf1 [file] [log] [blame]
Lokesh Vutla11e21912013-12-19 18:03:38 +05301/*
2 * Copyright (C) 2013 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
9/* AM437x GP EVM */
10
11/dts-v1/;
12
13#include "am4372.dtsi"
14#include <dt-bindings/pinctrl/am43xx.h>
Sourav Poddarc540b472013-12-19 18:03:39 +053015#include <dt-bindings/pwm/pwm.h>
Sourav Poddar51724db2013-12-19 18:03:41 +053016#include <dt-bindings/gpio/gpio.h>
Lokesh Vutla11e21912013-12-19 18:03:38 +053017
18/ {
19 model = "TI AM437x GP EVM";
20 compatible = "ti,am437x-gp-evm","ti,am4372","ti,am43";
Sourav Poddarc540b472013-12-19 18:03:39 +053021
Balaji T K506be3f2014-03-03 20:20:18 +053022 vmmcsd_fixed: fixedregulator-sd {
23 compatible = "regulator-fixed";
24 regulator-name = "vmmcsd_fixed";
25 regulator-min-microvolt = <3300000>;
26 regulator-max-microvolt = <3300000>;
27 enable-active-high;
28 };
29
Dave Gerlachb2873bf2014-05-05 14:58:28 -050030 vtt_fixed: fixedregulator-vtt {
31 compatible = "regulator-fixed";
32 regulator-name = "vtt_fixed";
33 regulator-min-microvolt = <1500000>;
34 regulator-max-microvolt = <1500000>;
35 regulator-always-on;
36 regulator-boot-on;
37 enable-active-high;
38 gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>;
39 };
40
Sourav Poddarc540b472013-12-19 18:03:39 +053041 backlight {
42 compatible = "pwm-backlight";
43 pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;
44 brightness-levels = <0 51 53 56 62 75 101 152 255>;
45 default-brightness-level = <8>;
46 };
Sourav Poddar51724db2013-12-19 18:03:41 +053047
48 matrix_keypad: matrix_keypad@0 {
49 compatible = "gpio-matrix-keypad";
50 debounce-delay-ms = <5>;
51 col-scan-delay-us = <2>;
52
53 row-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH /* Bank3, pin21 */
54 &gpio4 3 GPIO_ACTIVE_HIGH /* Bank4, pin3 */
55 &gpio4 2 GPIO_ACTIVE_HIGH>; /* Bank4, pin2 */
56
57 col-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH /* Bank3, pin19 */
58 &gpio3 20 GPIO_ACTIVE_HIGH>; /* Bank3, pin20 */
59
60 linux,keymap = <0x00000201 /* P1 */
61 0x00010202 /* P2 */
62 0x01000067 /* UP */
63 0x0101006a /* RIGHT */
64 0x02000069 /* LEFT */
65 0x0201006c>; /* DOWN */
66 };
Lokesh Vutla11e21912013-12-19 18:03:38 +053067};
68
69&am43xx_pinmux {
70 i2c0_pins: i2c0_pins {
71 pinctrl-single,pins = <
72 0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */
73 0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */
74 >;
75 };
76
77 i2c1_pins: i2c1_pins {
78 pinctrl-single,pins = <
79 0x15c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2) /* spi0_cs0.i2c1_scl */
80 0x158 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2) /* spi0_d1.i2c1_sda */
81 >;
82 };
Sourav Poddarc540b472013-12-19 18:03:39 +053083
Balaji T K506be3f2014-03-03 20:20:18 +053084 mmc1_pins: pinmux_mmc1_pins {
85 pinctrl-single,pins = <
86 0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
87 >;
88 };
89
Sourav Poddarc540b472013-12-19 18:03:39 +053090 ecap0_pins: backlight_pins {
91 pinctrl-single,pins = <
92 0x164 MUX_MODE0 /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
93 >;
94 };
Sekhar Nori0ebc1e22014-04-30 15:43:25 +030095
96 pixcir_ts_pins: pixcir_ts_pins {
97 pinctrl-single,pins = <
98 0x264 (PIN_INPUT_PULLUP | MUX_MODE7) /* spi2_d0.gpio3_22 */
99 >;
100 };
Lokesh Vutla11e21912013-12-19 18:03:38 +0530101};
102
103&i2c0 {
104 status = "okay";
105 pinctrl-names = "default";
106 pinctrl-0 = <&i2c0_pins>;
107};
108
109&i2c1 {
110 status = "okay";
111 pinctrl-names = "default";
112 pinctrl-0 = <&i2c1_pins>;
Sekhar Nori0ebc1e22014-04-30 15:43:25 +0300113
114 pixcir_ts@5c {
115 compatible = "pixcir,pixcir_tangoc";
116 pinctrl-names = "default";
117 pinctrl-0 = <&pixcir_ts_pins>;
118 reg = <0x5c>;
119 interrupt-parent = <&gpio3>;
120 interrupts = <22 0>;
121
122 attb-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
123
124 x-size = <1024>;
125 y-size = <600>;
126 };
Lokesh Vutla11e21912013-12-19 18:03:38 +0530127};
Sourav Poddarc540b472013-12-19 18:03:39 +0530128
129&epwmss0 {
130 status = "okay";
131};
132
133&ecap0 {
134 status = "okay";
135 pinctrl-names = "default";
136 pinctrl-0 = <&ecap0_pins>;
137};
Sourav Poddard3d46cc2013-12-19 18:03:40 +0530138
Balaji T K506be3f2014-03-03 20:20:18 +0530139&gpio0 {
140 status = "okay";
141};
142
Sourav Poddard3d46cc2013-12-19 18:03:40 +0530143&gpio3 {
144 status = "okay";
145};
146
147&gpio4 {
148 status = "okay";
149};
Balaji T K506be3f2014-03-03 20:20:18 +0530150
151&mmc1 {
152 status = "okay";
153 vmmc-supply = <&vmmcsd_fixed>;
154 bus-width = <4>;
155 pinctrl-names = "default";
156 pinctrl-0 = <&mmc1_pins>;
157 cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
158};
George Cherianb5820d32014-03-19 15:40:02 +0530159
160&usb2_phy1 {
161 status = "okay";
162};
163
164&usb1 {
165 dr_mode = "peripheral";
166 status = "okay";
167};
168
169&usb2_phy2 {
170 status = "okay";
171};
172
173&usb2 {
174 dr_mode = "host";
175 status = "okay";
176};