ARM: dts: AM33XX: Add pinmux configuration for gpio-keys to EVMSK
[deliverable/linux.git] / arch / arm / boot / dts / am335x-evmsk.dts
CommitLineData
571ccb28
AC
1/*
2 * Copyright (C) 2012 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/*
10 * AM335x Starter Kit
11 * http://www.ti.com/tool/tmdssk3358
12 */
13
14/dts-v1/;
15
16/include/ "am33xx.dtsi"
17
18/ {
19 model = "TI AM335x EVM-SK";
20 compatible = "ti,am335x-evmsk", "ti,am33xx";
21
22 cpus {
23 cpu@0 {
24 cpu0-supply = <&vdd1_reg>;
25 };
26 };
27
28 memory {
29 device_type = "memory";
30 reg = <0x80000000 0x10000000>; /* 256 MB */
31 };
32
2647dd10
AC
33 am33xx_pinmux: pinmux@44e10800 {
34 pinctrl-names = "default";
d98258b8 35 pinctrl-0 = <&user_leds_s0 &gpio_keys_s0>;
2647dd10
AC
36
37 user_leds_s0: user_leds_s0 {
38 pinctrl-single,pins = <
39 0x10 0x7 /* gpmc_ad4.gpio1_4, OUTPUT | MODE7 */
40 0x14 0x7 /* gpmc_ad5.gpio1_5, OUTPUT | MODE7 */
41 0x18 0x7 /* gpmc_ad6.gpio1_6, OUTPUT | MODE7 */
42 0x1c 0x7 /* gpmc_ad7.gpio1_7, OUTPUT | MODE7 */
d98258b8
AC
43 >;
44 };
45
46 gpio_keys_s0: gpio_keys_s0 {
47 pinctrl-single,pins = <
48 0x94 0x27 /* gpmc_oen_ren.gpio2_3, INPUT | MODE7 */
49 0x90 0x27 /* gpmc_advn_ale.gpio2_2, INPUT | MODE7 */
50 0x70 0x27 /* gpmc_wait0.gpio0_30, INPUT | MODE7 */
51 0x9c 0x27 /* gpmc_ben0_cle.gpio2_5, INPUT | MODE7 */
2647dd10
AC
52 >;
53 };
54 };
55
571ccb28
AC
56 ocp {
57 uart1: serial@44e09000 {
58 status = "okay";
59 };
60
61 i2c1: i2c@44e0b000 {
62 status = "okay";
63 clock-frequency = <400000>;
64
65 tps: tps@2d {
66 reg = <0x2d>;
67 };
68
69 lis331dlh: lis331dlh@18 {
70 compatible = "st,lis331dlh", "st,lis3lv02d";
71 reg = <0x18>;
72 Vdd-supply = <&lis3_reg>;
73 Vdd_IO-supply = <&lis3_reg>;
74
75 st,click-single-x;
76 st,click-single-y;
77 st,click-single-z;
78 st,click-thresh-x = <10>;
79 st,click-thresh-y = <10>;
80 st,click-thresh-z = <10>;
81 st,irq1-click;
82 st,irq2-click;
83 st,wakeup-x-lo;
84 st,wakeup-x-hi;
85 st,wakeup-y-lo;
86 st,wakeup-y-hi;
87 st,wakeup-z-lo;
88 st,wakeup-z-hi;
89 st,min-limit-x = <120>;
90 st,min-limit-y = <120>;
91 st,min-limit-z = <140>;
92 st,max-limit-x = <550>;
93 st,max-limit-y = <550>;
94 st,max-limit-z = <750>;
95 };
96 };
97 };
98
99 vbat: fixedregulator@0 {
100 compatible = "regulator-fixed";
101 regulator-name = "vbat";
102 regulator-min-microvolt = <5000000>;
103 regulator-max-microvolt = <5000000>;
104 regulator-boot-on;
105 };
106
107 lis3_reg: fixedregulator@1 {
108 compatible = "regulator-fixed";
109 regulator-name = "lis3_reg";
110 regulator-boot-on;
111 };
29b0b843
AC
112
113 leds {
114 compatible = "gpio-leds";
115
116 led@1 {
117 label = "evmsk:green:usr0";
118 gpios = <&gpio2 4 0>;
119 default-state = "off";
120 };
121
122 led@2 {
123 label = "evmsk:green:usr1";
124 gpios = <&gpio2 5 0>;
125 default-state = "off";
126 };
127
128 led@3 {
129 label = "evmsk:green:mmc0";
130 gpios = <&gpio2 6 0>;
131 linux,default-trigger = "mmc0";
132 default-state = "off";
133 };
134
135 led@4 {
136 label = "evmsk:green:heartbeat";
137 gpios = <&gpio2 7 0>;
138 linux,default-trigger = "heartbeat";
139 default-state = "off";
140 };
141 };
571ccb28
AC
142};
143
144/include/ "tps65910.dtsi"
145
146&tps {
147 vcc1-supply = <&vbat>;
148 vcc2-supply = <&vbat>;
149 vcc3-supply = <&vbat>;
150 vcc4-supply = <&vbat>;
151 vcc5-supply = <&vbat>;
152 vcc6-supply = <&vbat>;
153 vcc7-supply = <&vbat>;
154 vccio-supply = <&vbat>;
155
156 regulators {
157 vrtc_reg: regulator@0 {
158 regulator-always-on;
159 };
160
161 vio_reg: regulator@1 {
162 regulator-always-on;
163 };
164
165 vdd1_reg: regulator@2 {
166 /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
167 regulator-name = "vdd_mpu";
168 regulator-min-microvolt = <912500>;
169 regulator-max-microvolt = <1312500>;
170 regulator-boot-on;
171 regulator-always-on;
172 };
173
174 vdd2_reg: regulator@3 {
175 /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
176 regulator-name = "vdd_core";
177 regulator-min-microvolt = <912500>;
178 regulator-max-microvolt = <1150000>;
179 regulator-boot-on;
180 regulator-always-on;
181 };
182
183 vdd3_reg: regulator@4 {
184 regulator-always-on;
185 };
186
187 vdig1_reg: regulator@5 {
188 regulator-always-on;
189 };
190
191 vdig2_reg: regulator@6 {
192 regulator-always-on;
193 };
194
195 vpll_reg: regulator@7 {
196 regulator-always-on;
197 };
198
199 vdac_reg: regulator@8 {
200 regulator-always-on;
201 };
202
203 vaux1_reg: regulator@9 {
204 regulator-always-on;
205 };
206
207 vaux2_reg: regulator@10 {
208 regulator-always-on;
209 };
210
211 vaux33_reg: regulator@11 {
212 regulator-always-on;
213 };
214
215 vmmc_reg: regulator@12 {
216 regulator-always-on;
217 };
218 };
219};
This page took 0.035365 seconds and 5 git commands to generate.