diff options
Diffstat (limited to 'arch/arm/boot/dts/am437x-gp-evm.dts')
-rw-r--r-- | arch/arm/boot/dts/am437x-gp-evm.dts | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts new file mode 100644 index 000000000000..df8798e8bd25 --- /dev/null +++ b/arch/arm/boot/dts/am437x-gp-evm.dts | |||
@@ -0,0 +1,127 @@ | |||
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> | ||
15 | #include <dt-bindings/pwm/pwm.h> | ||
16 | #include <dt-bindings/gpio/gpio.h> | ||
17 | |||
18 | / { | ||
19 | model = "TI AM437x GP EVM"; | ||
20 | compatible = "ti,am437x-gp-evm","ti,am4372","ti,am43"; | ||
21 | |||
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 | |||
30 | backlight { | ||
31 | compatible = "pwm-backlight"; | ||
32 | pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>; | ||
33 | brightness-levels = <0 51 53 56 62 75 101 152 255>; | ||
34 | default-brightness-level = <8>; | ||
35 | }; | ||
36 | |||
37 | matrix_keypad: matrix_keypad@0 { | ||
38 | compatible = "gpio-matrix-keypad"; | ||
39 | debounce-delay-ms = <5>; | ||
40 | col-scan-delay-us = <2>; | ||
41 | |||
42 | row-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH /* Bank3, pin21 */ | ||
43 | &gpio4 3 GPIO_ACTIVE_HIGH /* Bank4, pin3 */ | ||
44 | &gpio4 2 GPIO_ACTIVE_HIGH>; /* Bank4, pin2 */ | ||
45 | |||
46 | col-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH /* Bank3, pin19 */ | ||
47 | &gpio3 20 GPIO_ACTIVE_HIGH>; /* Bank3, pin20 */ | ||
48 | |||
49 | linux,keymap = <0x00000201 /* P1 */ | ||
50 | 0x00010202 /* P2 */ | ||
51 | 0x01000067 /* UP */ | ||
52 | 0x0101006a /* RIGHT */ | ||
53 | 0x02000069 /* LEFT */ | ||
54 | 0x0201006c>; /* DOWN */ | ||
55 | }; | ||
56 | }; | ||
57 | |||
58 | &am43xx_pinmux { | ||
59 | i2c0_pins: i2c0_pins { | ||
60 | pinctrl-single,pins = < | ||
61 | 0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */ | ||
62 | 0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ | ||
63 | >; | ||
64 | }; | ||
65 | |||
66 | i2c1_pins: i2c1_pins { | ||
67 | pinctrl-single,pins = < | ||
68 | 0x15c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2) /* spi0_cs0.i2c1_scl */ | ||
69 | 0x158 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2) /* spi0_d1.i2c1_sda */ | ||
70 | >; | ||
71 | }; | ||
72 | |||
73 | mmc1_pins: pinmux_mmc1_pins { | ||
74 | pinctrl-single,pins = < | ||
75 | 0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */ | ||
76 | >; | ||
77 | }; | ||
78 | |||
79 | ecap0_pins: backlight_pins { | ||
80 | pinctrl-single,pins = < | ||
81 | 0x164 MUX_MODE0 /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */ | ||
82 | >; | ||
83 | }; | ||
84 | }; | ||
85 | |||
86 | &i2c0 { | ||
87 | status = "okay"; | ||
88 | pinctrl-names = "default"; | ||
89 | pinctrl-0 = <&i2c0_pins>; | ||
90 | }; | ||
91 | |||
92 | &i2c1 { | ||
93 | status = "okay"; | ||
94 | pinctrl-names = "default"; | ||
95 | pinctrl-0 = <&i2c1_pins>; | ||
96 | }; | ||
97 | |||
98 | &epwmss0 { | ||
99 | status = "okay"; | ||
100 | }; | ||
101 | |||
102 | &ecap0 { | ||
103 | status = "okay"; | ||
104 | pinctrl-names = "default"; | ||
105 | pinctrl-0 = <&ecap0_pins>; | ||
106 | }; | ||
107 | |||
108 | &gpio0 { | ||
109 | status = "okay"; | ||
110 | }; | ||
111 | |||
112 | &gpio3 { | ||
113 | status = "okay"; | ||
114 | }; | ||
115 | |||
116 | &gpio4 { | ||
117 | status = "okay"; | ||
118 | }; | ||
119 | |||
120 | &mmc1 { | ||
121 | status = "okay"; | ||
122 | vmmc-supply = <&vmmcsd_fixed>; | ||
123 | bus-width = <4>; | ||
124 | pinctrl-names = "default"; | ||
125 | pinctrl-0 = <&mmc1_pins>; | ||
126 | cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; | ||
127 | }; | ||