2 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
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.
11 * http://www.ti.com/tool/tmdssk3358
16 #include "am33xx.dtsi"
17 #include <dt-bindings/pwm/pwm.h>
20 model = "TI AM335x EVM-SK";
21 compatible = "ti,am335x-evmsk", "ti,am33xx";
25 cpu0-supply = <&vdd1_reg>;
30 device_type = "memory";
31 reg = <0x80000000 0x10000000>; /* 256 MB */
34 am33xx_pinmux: pinmux@44e10800 {
35 pinctrl-names = "default";
36 pinctrl-0 = <&gpio_keys_s0 &clkout2_pin>;
38 user_leds_s0: user_leds_s0 {
39 pinctrl-single,pins = <
40 0x10 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad4.gpio1_4 */
41 0x14 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad5.gpio1_5 */
42 0x18 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad6.gpio1_6 */
43 0x1c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad7.gpio1_7 */
47 gpio_keys_s0: gpio_keys_s0 {
48 pinctrl-single,pins = <
49 0x94 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_oen_ren.gpio2_3 */
50 0x90 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_advn_ale.gpio2_2 */
51 0x70 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_wait0.gpio0_30 */
52 0x9c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ben0_cle.gpio2_5 */
56 i2c0_pins: pinmux_i2c0_pins {
57 pinctrl-single,pins = <
58 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
59 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
63 uart0_pins: pinmux_uart0_pins {
64 pinctrl-single,pins = <
65 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
66 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
70 clkout2_pin: pinmux_clkout2_pin {
71 pinctrl-single,pins = <
72 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
76 ecap2_pins: backlight_pins {
77 pinctrl-single,pins = <
78 0x19c 0x4 /* mcasp0_ahclkr.ecap2_in_pwm2_out MODE4 */
82 cpsw_default: cpsw_default {
83 pinctrl-single,pins = <
85 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_tctl */
86 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxdv.rgmii1_rctl */
87 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd3.rgmii1_td3 */
88 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd2.rgmii1_td2 */
89 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td1 */
90 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td0 */
91 0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rgmii1_tclk */
92 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxclk.rgmii1_rclk */
93 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd3.rgmii1_rd3 */
94 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd2.rgmii1_rd2 */
95 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rd1 */
96 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rd0 */
99 0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a0.rgmii2_tctl */
100 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a1.rgmii2_rctl */
101 0x48 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a2.rgmii2_td3 */
102 0x4c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a3.rgmii2_td2 */
103 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a4.rgmii2_td1 */
104 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a5.rgmii2_td0 */
105 0x58 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a6.rgmii2_tclk */
106 0x5c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a7.rgmii2_rclk */
107 0x60 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a8.rgmii2_rd3 */
108 0x64 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a9.rgmii2_rd2 */
109 0x68 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a10.rgmii2_rd1 */
110 0x6c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a11.rgmii2_rd0 */
114 cpsw_sleep: cpsw_sleep {
115 pinctrl-single,pins = <
116 /* Slave 1 reset value */
117 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
118 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
119 0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
120 0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
121 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
122 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
123 0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
124 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
125 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
126 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
127 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
128 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
130 /* Slave 2 reset value*/
131 0x40 (PIN_INPUT_PULLDOWN | MUX_MODE7)
132 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7)
133 0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7)
134 0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7)
135 0x50 (PIN_INPUT_PULLDOWN | MUX_MODE7)
136 0x54 (PIN_INPUT_PULLDOWN | MUX_MODE7)
137 0x58 (PIN_INPUT_PULLDOWN | MUX_MODE7)
138 0x5c (PIN_INPUT_PULLDOWN | MUX_MODE7)
139 0x60 (PIN_INPUT_PULLDOWN | MUX_MODE7)
140 0x64 (PIN_INPUT_PULLDOWN | MUX_MODE7)
141 0x68 (PIN_INPUT_PULLDOWN | MUX_MODE7)
142 0x6c (PIN_INPUT_PULLDOWN | MUX_MODE7)
146 davinci_mdio_default: davinci_mdio_default {
147 pinctrl-single,pins = <
149 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
150 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
154 davinci_mdio_sleep: davinci_mdio_sleep {
155 pinctrl-single,pins = <
156 /* MDIO reset value */
157 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
158 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
164 uart0: serial@44e09000 {
165 pinctrl-names = "default";
166 pinctrl-0 = <&uart0_pins>;
172 pinctrl-names = "default";
173 pinctrl-0 = <&i2c0_pins>;
176 clock-frequency = <400000>;
182 lis331dlh: lis331dlh@18 {
183 compatible = "st,lis331dlh", "st,lis3lv02d";
185 Vdd-supply = <&lis3_reg>;
186 Vdd_IO-supply = <&lis3_reg>;
191 st,click-thresh-x = <10>;
192 st,click-thresh-y = <10>;
193 st,click-thresh-z = <10>;
202 st,min-limit-x = <120>;
203 st,min-limit-y = <120>;
204 st,min-limit-z = <140>;
205 st,max-limit-x = <550>;
206 st,max-limit-y = <550>;
207 st,max-limit-z = <750>;
227 epwmss2: epwmss@48304000 {
230 ecap2: ecap@48304100 {
232 pinctrl-names = "default";
233 pinctrl-0 = <&ecap2_pins>;
238 vbat: fixedregulator@0 {
239 compatible = "regulator-fixed";
240 regulator-name = "vbat";
241 regulator-min-microvolt = <5000000>;
242 regulator-max-microvolt = <5000000>;
246 lis3_reg: fixedregulator@1 {
247 compatible = "regulator-fixed";
248 regulator-name = "lis3_reg";
253 pinctrl-names = "default";
254 pinctrl-0 = <&user_leds_s0>;
256 compatible = "gpio-leds";
259 label = "evmsk:green:usr0";
260 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
261 default-state = "off";
265 label = "evmsk:green:usr1";
266 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
267 default-state = "off";
271 label = "evmsk:green:mmc0";
272 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
273 linux,default-trigger = "mmc0";
274 default-state = "off";
278 label = "evmsk:green:heartbeat";
279 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
280 linux,default-trigger = "heartbeat";
281 default-state = "off";
285 gpio_buttons: gpio_buttons@0 {
286 compatible = "gpio-keys";
287 #address-cells = <1>;
292 linux,code = <0x100>;
293 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
298 linux,code = <0x101>;
299 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
304 linux,code = <0x102>;
305 gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
311 linux,code = <0x103>;
312 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
317 compatible = "pwm-backlight";
318 pwms = <&ecap2 0 50000 PWM_POLARITY_INVERTED>;
319 brightness-levels = <0 58 61 66 75 90 125 170 255>;
320 default-brightness-level = <8>;
324 #include "tps65910.dtsi"
327 vcc1-supply = <&vbat>;
328 vcc2-supply = <&vbat>;
329 vcc3-supply = <&vbat>;
330 vcc4-supply = <&vbat>;
331 vcc5-supply = <&vbat>;
332 vcc6-supply = <&vbat>;
333 vcc7-supply = <&vbat>;
334 vccio-supply = <&vbat>;
337 vrtc_reg: regulator@0 {
341 vio_reg: regulator@1 {
345 vdd1_reg: regulator@2 {
346 /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
347 regulator-name = "vdd_mpu";
348 regulator-min-microvolt = <912500>;
349 regulator-max-microvolt = <1312500>;
354 vdd2_reg: regulator@3 {
355 /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
356 regulator-name = "vdd_core";
357 regulator-min-microvolt = <912500>;
358 regulator-max-microvolt = <1150000>;
363 vdd3_reg: regulator@4 {
367 vdig1_reg: regulator@5 {
371 vdig2_reg: regulator@6 {
375 vpll_reg: regulator@7 {
379 vdac_reg: regulator@8 {
383 vaux1_reg: regulator@9 {
387 vaux2_reg: regulator@10 {
391 vaux33_reg: regulator@11 {
395 vmmc_reg: regulator@12 {
402 pinctrl-names = "default", "sleep";
403 pinctrl-0 = <&cpsw_default>;
404 pinctrl-1 = <&cpsw_sleep>;
408 pinctrl-names = "default", "sleep";
409 pinctrl-0 = <&davinci_mdio_default>;
410 pinctrl-1 = <&davinci_mdio_sleep>;
414 phy_id = <&davinci_mdio>, <0>;
415 phy-mode = "rgmii-txid";
419 phy_id = <&davinci_mdio>, <1>;
420 phy-mode = "rgmii-txid";