Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[cascardo/linux.git] / arch / arm / boot / dts / omap5-igep0050.dts
1 /*
2  * Copyright (C) 2013 ISEE 2007 SL - http://www.isee.biz/
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 /dts-v1/;
9
10 #include <dt-bindings/input/input.h>
11 #include "omap5-board-common.dtsi"
12
13 / {
14         model = "IGEPv5";
15         compatible = "isee,omap5-igep0050", "ti,omap5";
16
17         memory@80000000 {
18                 device_type = "memory";
19                 reg = <0x0 0x80000000 0 0x7f000000>;    /* 2032 MB */
20         };
21
22         gpio_keys {
23                 compatible = "gpio-keys";
24                 pinctrl-0 = <&power_button_pin>;
25                 pinctrl-names = "default";
26
27                 power-button {
28                         label = "Power Button";
29                         linux,code = <KEY_POWER>;
30                         gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
31                 };
32         };
33
34         leds {
35                 compatible = "gpio-leds";
36                 led@1 {
37                         label = "board:green:usr0";
38                         gpios = <&tca6416 1 0>;
39                         default-state = "off";
40                 };
41                 led@2 {
42                         label = "board:red:usr1";
43                         gpios = <&tca6416 2 0>;
44                         default-state = "off";
45                 };
46                 led@3 {
47                         label = "board:blue:usr1";
48                         gpios = <&tca6416 3 0>;
49                         default-state = "off";
50                 };
51         };
52 };
53
54 &hdmi {
55         vdda-supply = <&ldo7_reg>;
56 };
57
58 &i2c4 {
59         pinctrl-names = "default";
60         pinctrl-0 = <&i2c4_pins>;
61
62         tca6416: tca6416@21 {
63                 compatible = "ti,tca6416";
64                 reg = <0x21>;
65                 gpio-controller;
66                 #gpio-cells = <2>;
67         };
68 };
69
70 /* LDO4 is VPP1 - ball AD9 */
71 &ldo4_reg {
72         regulator-min-microvolt = <2000000>;
73         regulator-max-microvolt = <2000000>;
74 };
75
76 /*
77  * LDO7 is used for HDMI: VDDA_DSIPORTA - ball AA33, VDDA_DSIPORTC - ball AE33,
78  * VDDA_HDMI - ball AN25
79  */
80 &ldo7_reg {
81         status = "okay";
82         regulator-min-microvolt = <1800000>;
83         regulator-max-microvolt = <1800000>;
84 };
85
86 &omap5_pmx_core {
87         i2c4_pins: pinmux_i2c4_pins {
88                 pinctrl-single,pins = <
89                         OMAP5_IOPAD(0x0f8, PIN_INPUT | MUX_MODE0)       /* i2c4_scl */
90                         OMAP5_IOPAD(0x0fa, PIN_INPUT | MUX_MODE0)       /* i2c4_sda */
91                 >;
92         };
93
94         power_button_pin: pinctrl_power_button_pin {
95                 pinctrl-single,pins = <
96                         OMAP5_IOPAD(0x086, PIN_INPUT | MUX_MODE6)       /* gpio4_118 */
97                 >;
98         };
99 };
100
101 &tpd12s015 {
102         gpios = <&tca6416 11 0>,        /* TCA6416 P01, CT_CP_HDP */
103                 <&tca6416 12 0>,        /* TCA6416 P00, LS_OE*/
104                 <&gpio7 1 0>,           /* 193, HPD */
105                 <&gpio7 2 0>,           /* 194, SCL */
106                 <&gpio7 3 0>;           /* 195, SDA */
107 };
108
109 &twl6040 {
110         ti,audpwron-gpio = <&gpio5 16 GPIO_ACTIVE_HIGH>;  /* gpio line 144 */
111 };
112
113 &twl6040_pins {
114         pinctrl-single,pins = <
115                 OMAP5_IOPAD(0x1c4, PIN_OUTPUT | MUX_MODE6)      /* mcspi1_somi.gpio5_144 */
116                 OMAP5_IOPAD(0x1ca, PIN_OUTPUT | MUX_MODE6)      /* perslimbus2_clock.gpio5_145 */
117         >;
118 };