]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/arm/boot/dts/ste-href-tvk1281618.dtsi
ARM: ux500: replace legacy *,wakeup property with wakeup-source
[mirror_ubuntu-zesty-kernel.git] / arch / arm / boot / dts / ste-href-tvk1281618.dtsi
CommitLineData
9c19cfa9
LW
1/*
2 * Copyright 2012 ST-Ericsson AB
3 *
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
7 *
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
10 *
11 * Device Tree for the TVK1281618 UIB
12 */
13
14#include <dt-bindings/interrupt-controller/irq.h>
15
16/ {
1a780d45
LW
17 gpio_keys {
18 compatible = "gpio-keys";
19 #address-cells = <1>;
20 #size-cells = <0>;
21 vdd-supply = <&ab8500_ldo_aux1_reg>;
22 pinctrl-names = "default";
23 pinctrl-0 = <&prox_tvk_mode>, <&hall_tvk_mode>;
24
25 button@139 {
26 /* Proximity sensor */
27 gpios = <&gpio6 25 0x4>;
28 linux,code = <11>; /* SW_FRONT_PROXIMITY */
29 label = "SFH7741 Proximity Sensor";
30 };
31 button@145 {
32 /* Hall sensor */
33 gpios = <&gpio4 17 0x4>;
34 linux,code = <0>; /* SW_LID */
35 label = "HED54XXU11 Hall Effect Sensor";
36 };
37 };
38
9c19cfa9 39 soc {
7e0a51a0 40 /* Add Synaptics touch screen, TC35893 keypad etc here */
84919b96 41 i2c@80004000 {
7e0a51a0
LW
42 tc35893@44 {
43 compatible = "toshiba,tc35893";
84919b96
LW
44 reg = <0x44>;
45 interrupt-parent = <&gpio6>;
46 interrupts = <26 IRQ_TYPE_EDGE_RISING>;
a45cb698
LW
47 pinctrl-names = "default";
48 pinctrl-0 = <&tc35893_tvk_mode>;
84919b96
LW
49
50 interrupt-controller;
7e0a51a0 51 #interrupt-cells = <1>;
84919b96
LW
52
53 tc3589x_gpio {
7e0a51a0
LW
54 compatible = "toshiba,tc3589x-gpio";
55 interrupts = <0>;
84919b96
LW
56
57 interrupt-controller;
58 #interrupt-cells = <2>;
59 gpio-controller;
60 #gpio-cells = <2>;
61 };
7e0a51a0
LW
62 tc3589x_keypad {
63 compatible = "toshiba,tc3589x-keypad";
64 interrupts = <6>;
65 debounce-delay-ms = <4>;
66 keypad,num-columns = <8>;
67 keypad,num-rows = <8>;
68 linux,no-autorepeat;
506822ea 69 wakeup-source;
7e0a51a0
LW
70 linux,keymap = <0x0301006b
71 0x04010066
72 0x06040072
73 0x040200d7
74 0x0303006a
75 0x0205000e
76 0x0607008b
77 0x0500001c
78 0x0403000b
79 0x03040034
80 0x05020067
81 0x0305006c
82 0x040500e7
83 0x0005009e
84 0x06020073
85 0x01030039
86 0x07060069
87 0x050500d9>;
88 };
84919b96
LW
89 };
90 };
d0e3bc81
LW
91 /* Sensors mounted on this board variant */
92 i2c@80128000 {
93 lsm303dlh@18 {
94 /* Accelerometer */
95 compatible = "st,lsm303dlh-accel";
96 st,drdy-int-pin = <1>;
97 reg = <0x18>;
98 vdd-supply = <&ab8500_ldo_aux1_reg>;
99 vddio-supply = <&db8500_vsmps2_reg>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&accel_tvk_mode>;
22a93167
LW
102 interrupt-parent = <&gpio2>;
103 interrupts = <18 IRQ_TYPE_EDGE_RISING>,
104 <19 IRQ_TYPE_EDGE_RISING>;
d0e3bc81 105 };
93deea9a 106 lsm303dlh@1e {
d0e3bc81 107 /* Magnetometer */
93deea9a 108 compatible = "st,lsm303dlh-magn";
d0e3bc81
LW
109 reg = <0x1e>;
110 vdd-supply = <&ab8500_ldo_aux1_reg>;
111 vddio-supply = <&db8500_vsmps2_reg>;
112 pinctrl-names = "default";
113 pinctrl-0 = <&magneto_tvk_mode>;
114 };
115 l3g4200d@68 {
116 /* Gyroscope */
117 compatible = "st,l3g4200d-gyro";
118 st,drdy-int-pin = <2>;
119 reg = <0x68>;
120 vdd-supply = <&ab8500_ldo_aux1_reg>;
121 vddio-supply = <&db8500_vsmps2_reg>;
122 };
123 lsp001wm@5c {
124 /* Barometer/pressure sensor */
125 compatible = "st,lps001wp-press";
126 reg = <0x5c>;
127 vdd-supply = <&ab8500_ldo_aux1_reg>;
128 vddio-supply = <&db8500_vsmps2_reg>;
129 };
130 };
a45cb698
LW
131 pinctrl {
132 /* Pull up this GPIO pin */
133 tc35893 {
134 tc35893_tvk_mode: tc35893_tvk {
135 tvk_cfg {
1637d480 136 pins = "GPIO218_AH11";
a45cb698
LW
137 ste,config = <&gpio_in_pu>;
138 };
139 };
140 };
1a780d45
LW
141 prox {
142 prox_tvk_mode: prox_tvk {
143 tvk_cfg {
1637d480 144 pins = "GPIO217_AH12";
1a780d45
LW
145 ste,config = <&gpio_in_pu>;
146 };
147 };
148 };
149 hall {
150 hall_tvk_mode: hall_tvk {
151 tvk_cfg {
1637d480 152 pins = "GPIO145_C13";
1a780d45
LW
153 ste,config = <&gpio_in_pu>;
154 };
155 };
156 };
d0e3bc81
LW
157 accelerometer {
158 accel_tvk_mode: accel_tvk {
159 /* Accelerometer interrupt lines 1 & 2 */
160 tvk_cfg {
1637d480 161 pins = "GPIO82_C1", "GPIO83_D3";
d0e3bc81
LW
162 ste,config = <&gpio_in_pu>;
163 };
164 };
165 };
166 magnetometer {
167 magneto_tvk_mode: magneto_tvk {
168 /* Magnetometer uses GPIO 31 and 32, pull these up/down respectively */
169 tvk_cfg1 {
1637d480 170 pins = "GPIO31_V3";
d0e3bc81
LW
171 ste,config = <&gpio_in_pu>;
172 };
173 tvk_cfg2 {
1637d480 174 pins = "GPIO32_V2";
d0e3bc81
LW
175 ste,config = <&gpio_in_pd>;
176 };
177 };
178 };
a45cb698 179 };
9c19cfa9
LW
180 };
181};