]>
Commit | Line | Data |
---|---|---|
11e2191c LV |
1 | /* |
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> | |
c540b476 | 15 | #include <dt-bindings/pwm/pwm.h> |
51724dbb | 16 | #include <dt-bindings/gpio/gpio.h> |
11e2191c LV |
17 | |
18 | / { | |
19 | model = "TI AM437x GP EVM"; | |
20 | compatible = "ti,am437x-gp-evm","ti,am4372","ti,am43"; | |
c540b476 | 21 | |
506be3fb B |
22 | 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 | ||
b2873bfa DG |
30 | 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 | ||
c540b476 SP |
41 | 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 | }; | |
51724dbb SP |
47 | |
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 | }; | |
11e2191c LV |
67 | }; |
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 | }; | |
c540b476 | 83 | |
506be3fb B |
84 | mmc1_pins: pinmux_mmc1_pins { |
85 | pinctrl-single,pins = < | |
86 | 0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */ | |
87 | >; | |
88 | }; | |
89 | ||
c540b476 SP |
90 | ecap0_pins: backlight_pins { |
91 | pinctrl-single,pins = < | |
92 | 0x164 MUX_MODE0 /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */ | |
93 | >; | |
94 | }; | |
0ebc1e25 SN |
95 | |
96 | pixcir_ts_pins: pixcir_ts_pins { | |
97 | pinctrl-single,pins = < | |
98 | 0x264 (PIN_INPUT_PULLUP | MUX_MODE7) /* spi2_d0.gpio3_22 */ | |
99 | >; | |
100 | }; | |
7b25babf M |
101 | |
102 | cpsw_default: cpsw_default { | |
103 | pinctrl-single,pins = < | |
104 | /* Slave 1 */ | |
105 | 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_txen */ | |
106 | 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxdv.rgmii1_rxctl */ | |
107 | 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_txd3 */ | |
108 | 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_txd2 */ | |
109 | 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_txd1 */ | |
110 | 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_txd0 */ | |
111 | 0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rmii1_tclk */ | |
112 | 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxclk.rmii1_rclk */ | |
113 | 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd3 */ | |
114 | 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd2 */ | |
115 | 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd1 */ | |
116 | 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd0 */ | |
117 | >; | |
118 | }; | |
119 | ||
120 | cpsw_sleep: cpsw_sleep { | |
121 | pinctrl-single,pins = < | |
122 | /* Slave 1 reset value */ | |
123 | 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
124 | 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
125 | 0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
126 | 0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
127 | 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
128 | 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
129 | 0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
130 | 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
131 | 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
132 | 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
133 | 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
134 | 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
135 | >; | |
136 | }; | |
137 | ||
138 | davinci_mdio_default: davinci_mdio_default { | |
139 | pinctrl-single,pins = < | |
140 | /* MDIO */ | |
141 | 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */ | |
142 | 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */ | |
143 | >; | |
144 | }; | |
145 | ||
146 | davinci_mdio_sleep: davinci_mdio_sleep { | |
147 | pinctrl-single,pins = < | |
148 | /* MDIO reset value */ | |
149 | 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
150 | 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
151 | >; | |
152 | }; | |
11e2191c LV |
153 | }; |
154 | ||
155 | &i2c0 { | |
156 | status = "okay"; | |
157 | pinctrl-names = "default"; | |
158 | pinctrl-0 = <&i2c0_pins>; | |
159 | }; | |
160 | ||
161 | &i2c1 { | |
162 | status = "okay"; | |
163 | pinctrl-names = "default"; | |
164 | pinctrl-0 = <&i2c1_pins>; | |
0ebc1e25 SN |
165 | |
166 | pixcir_ts@5c { | |
167 | compatible = "pixcir,pixcir_tangoc"; | |
168 | pinctrl-names = "default"; | |
169 | pinctrl-0 = <&pixcir_ts_pins>; | |
170 | reg = <0x5c>; | |
171 | interrupt-parent = <&gpio3>; | |
172 | interrupts = <22 0>; | |
173 | ||
174 | attb-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; | |
175 | ||
176 | x-size = <1024>; | |
177 | y-size = <600>; | |
178 | }; | |
11e2191c | 179 | }; |
c540b476 SP |
180 | |
181 | &epwmss0 { | |
182 | status = "okay"; | |
183 | }; | |
184 | ||
185 | &ecap0 { | |
186 | status = "okay"; | |
187 | pinctrl-names = "default"; | |
188 | pinctrl-0 = <&ecap0_pins>; | |
189 | }; | |
d3d46cca | 190 | |
506be3fb B |
191 | &gpio0 { |
192 | status = "okay"; | |
193 | }; | |
194 | ||
d3d46cca SP |
195 | &gpio3 { |
196 | status = "okay"; | |
197 | }; | |
198 | ||
199 | &gpio4 { | |
200 | status = "okay"; | |
201 | }; | |
506be3fb B |
202 | |
203 | &mmc1 { | |
204 | status = "okay"; | |
205 | vmmc-supply = <&vmmcsd_fixed>; | |
206 | bus-width = <4>; | |
207 | pinctrl-names = "default"; | |
208 | pinctrl-0 = <&mmc1_pins>; | |
209 | cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; | |
210 | }; | |
b5820d3a GC |
211 | |
212 | &usb2_phy1 { | |
213 | status = "okay"; | |
214 | }; | |
215 | ||
216 | &usb1 { | |
217 | dr_mode = "peripheral"; | |
218 | status = "okay"; | |
219 | }; | |
220 | ||
221 | &usb2_phy2 { | |
222 | status = "okay"; | |
223 | }; | |
224 | ||
225 | &usb2 { | |
226 | dr_mode = "host"; | |
227 | status = "okay"; | |
228 | }; | |
7b25babf M |
229 | |
230 | &mac { | |
231 | slaves = <1>; | |
232 | pinctrl-names = "default", "sleep"; | |
233 | pinctrl-0 = <&cpsw_default>; | |
234 | pinctrl-1 = <&cpsw_sleep>; | |
235 | status = "okay"; | |
236 | }; | |
237 | ||
238 | &davinci_mdio { | |
239 | pinctrl-names = "default", "sleep"; | |
240 | pinctrl-0 = <&davinci_mdio_default>; | |
241 | pinctrl-1 = <&davinci_mdio_sleep>; | |
242 | status = "okay"; | |
243 | }; | |
244 | ||
245 | &cpsw_emac0 { | |
246 | phy_id = <&davinci_mdio>, <0>; | |
247 | phy-mode = "rgmii"; | |
248 | }; |