]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/omap3-evm-common.dtsi
Merge branch 'drm-armada-devel' of git://ftp.arm.linux.org.uk/~rmk/linux-arm into...
[karo-tx-linux.git] / arch / arm / boot / dts / omap3-evm-common.dtsi
1 /*
2  * Common support for omap3 EVM boards
3  */
4
5 #include <dt-bindings/input/input.h>
6 #include "omap-gpmc-smsc911x.dtsi"
7
8 / {
9         cpus {
10                 cpu@0 {
11                         cpu0-supply = <&vcc>;
12                 };
13         };
14
15         leds {
16                 compatible = "gpio-leds";
17                 ledb {
18                         label = "omap3evm::ledb";
19                         gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */
20                         linux,default-trigger = "default-on";
21                 };
22         };
23
24         wl12xx_vmmc: wl12xx_vmmc {
25                 compatible = "regulator-fixed";
26                 regulator-name = "vwl1271";
27                 regulator-min-microvolt = <1800000>;
28                 regulator-max-microvolt = <1800000>;
29                 gpio = <&gpio5 22 GPIO_ACTIVE_HIGH>;    /* gpio150 */
30                 startup-delay-us = <70000>;
31                 enable-active-high;
32                 vin-supply = <&vmmc2>;
33         };
34 };
35
36 &i2c1 {
37         clock-frequency = <2600000>;
38
39         twl: twl@48 {
40                 reg = <0x48>;
41                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
42                 interrupt-parent = <&intc>;
43         };
44 };
45
46 #include "twl4030.dtsi"
47 #include "twl4030_omap3.dtsi"
48 #include "omap3-panel-sharp-ls037v7dw01.dtsi"
49
50 &backlight0 {
51         gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>;
52 };
53
54 &twl {
55         twl_power: power {
56                 compatible = "ti,twl4030-power-omap3-evm", "ti,twl4030-power-idle";
57                 ti,use_poweroff;
58         };
59 };
60
61 &i2c2 {
62         clock-frequency = <400000>;
63 };
64
65 &i2c3 {
66         clock-frequency = <400000>;
67
68         /*
69          * TVP5146 Video decoder-in for analog input support.
70          */
71         tvp5146@5c {
72                 compatible = "ti,tvp5146m2";
73                 reg = <0x5c>;
74         };
75 };
76
77 &lcd_3v3 {
78         gpio = <&gpio5 25 GPIO_ACTIVE_LOW>;     /* gpio153 */
79         enable-active-low;
80 };
81
82 &lcd0 {
83         enable-gpios = <&gpio5 24 GPIO_ACTIVE_HIGH>;    /* gpio152, lcd INI */
84         reset-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;     /* gpio155, lcd RESB */
85         mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH        /* gpio154, lcd MO */
86                       &gpio1 2 GPIO_ACTIVE_HIGH         /* gpio2, lcd LR */
87                       &gpio1 3 GPIO_ACTIVE_HIGH>;       /* gpio3, lcd UD */
88 };
89
90 &mcspi1 {
91         tsc2046@0 {
92                 interrupt-parent = <&gpio6>;
93                 interrupts = <15 0>;            /* gpio175 */
94                 pendown-gpio = <&gpio6 15 GPIO_ACTIVE_HIGH>;
95         };
96 };
97
98 &mmc1 {
99         interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>;
100         vmmc-supply = <&vmmc1>;
101         vmmc_aux-supply = <&vsim>;
102         bus-width = <8>;
103 };
104
105 &mmc2 {
106         vmmc-supply = <&wl12xx_vmmc>;
107         non-removable;
108         bus-width = <4>;
109         cap-power-off-card;
110
111         #address-cells = <1>;
112         #size-cells = <0>;
113         wlcore: wlcore@2 {
114                 compatible = "ti,wl1271";
115                 reg = <2>;
116                 interrupt-parent = <&gpio5>;
117                 interrupts = <21 IRQ_TYPE_LEVEL_HIGH>; /* gpio 149 */
118                 ref-clock-frequency = <38400000>;
119         };
120 };
121
122 &twl_gpio {
123         ti,use-leds;
124 };
125
126 &twl_keypad {
127         linux,keymap = <
128                         MATRIX_KEY(2, 2, KEY_1)
129                         MATRIX_KEY(1, 1, KEY_2)
130                         MATRIX_KEY(0, 0, KEY_3)
131                         MATRIX_KEY(3, 2, KEY_4)
132                         MATRIX_KEY(2, 1, KEY_5)
133                         MATRIX_KEY(1, 0, KEY_6)
134                         MATRIX_KEY(1, 3, KEY_7)
135                         MATRIX_KEY(3, 1, KEY_8)
136                         MATRIX_KEY(2, 0, KEY_9)
137                         MATRIX_KEY(2, 3, KEY_KPASTERISK)
138                         MATRIX_KEY(0, 2, KEY_0)
139                         MATRIX_KEY(3, 0, KEY_KPDOT)
140                         /* s4 not wired */
141                         MATRIX_KEY(1, 2, KEY_BACKSPACE)
142                         MATRIX_KEY(0, 1, KEY_ENTER)
143                         >;
144 };
145
146 &usb_otg_hs {
147         interface-type = <0>;
148         usb-phy = <&usb2_phy>;
149         phys = <&usb2_phy>;
150         phy-names = "usb2-phy";
151         mode = <3>;
152         power = <50>;
153 };
154
155 &gpmc {
156         ethernet@gpmc {
157                 interrupt-parent = <&gpio6>;
158                 interrupts = <16 8>;
159                 reg = <5 0 0xff>;
160         };
161 };