Merge tag 'nfs-for-5.2-2' of git://git.linux-nfs.org/projects/anna/linux-nfs
[linux-2.6-microblaze.git] / arch / arm / boot / dts / ste-href-stuib.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright 2012 ST-Ericsson AB
4  */
5
6 #include <dt-bindings/interrupt-controller/irq.h>
7
8 / {
9         gpio_keys {
10                 compatible = "gpio-keys";
11                 #address-cells = <1>;
12                 #size-cells = <0>;
13                 vdd-supply = <&ab8500_ldo_aux1_reg>;
14                 pinctrl-names = "default";
15                 pinctrl-0 = <&prox_stuib_mode>, <&hall_stuib_mode>;
16
17                 button@139 {
18                         /* Proximity sensor */
19                         gpios = <&gpio6 25 GPIO_ACTIVE_HIGH>;
20                         linux,code = <11>; /* SW_FRONT_PROXIMITY */
21                         label = "SFH7741 Proximity Sensor";
22                 };
23                 button@145 {
24                         /* Hall sensor */
25                         gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>;
26                         linux,code = <0>; /* SW_LID */
27                         label = "HED54XXU11 Hall Effect Sensor";
28                 };
29         };
30
31         soc {
32                 i2c@80004000 {
33                         stmpe1601: stmpe1601@40 {
34                                 compatible = "st,stmpe1601";
35                                 reg = <0x40>;
36                                 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
37                                 interrupt-parent = <&gpio6>;
38                                 interrupt-controller;
39                                 vcc-supply = <&db8500_vsmps2_reg>;
40                                 vio-supply = <&db8500_vsmps2_reg>;
41
42                                 wakeup-source;
43                                 st,autosleep-timeout = <1024>;
44
45                                 stmpe_keypad {
46                                         compatible = "st,stmpe-keypad";
47
48                                         debounce-interval = <64>;
49                                         st,scan-count = <8>;
50                                         st,no-autorepeat;
51
52                                         linux,keymap = <0x205006b
53                                                         0x4010074
54                                                         0x3050072
55                                                         0x1030004
56                                                         0x502006a
57                                                         0x500000a
58                                                         0x5008b
59                                                         0x706001c
60                                                         0x405000b
61                                                         0x6070003
62                                                         0x3040067
63                                                         0x303006c
64                                                         0x60400e7
65                                                         0x602009e
66                                                         0x4020073
67                                                         0x5050002
68                                                         0x4030069
69                                                         0x3020008>;
70                                 };
71                         };
72                 };
73
74                 /* Sensors mounted on this board variant */
75                 i2c@80128000 {
76                         lis331dl@1c {
77                                 /* Accelerometer */
78                                 compatible = "st,lis331dl-accel";
79                                 st,drdy-int-pin = <1>;
80                                 reg = <0x1c>;
81                                 vdd-supply = <&ab8500_ldo_aux1_reg>;
82                                 vddio-supply = <&db8500_vsmps2_reg>;
83                                 pinctrl-names = "default";
84                                 pinctrl-0 = <&accel_stuib_mode>;
85                                 interrupt-parent = <&gpio2>;
86                                 interrupts = <18 IRQ_TYPE_EDGE_RISING>,
87                                              <19 IRQ_TYPE_EDGE_RISING>;
88                         };
89                         ak8974@f {
90                                 /* Magnetometer */
91                                 compatible = "asahi-kasei,ak8974";
92                                 reg = <0x0f>;
93                                 vdd-supply = <&ab8500_ldo_aux1_reg>;
94                                 vddio-supply = <&db8500_vsmps2_reg>;
95                                 pinctrl-names = "default";
96                                 pinctrl-0 = <&magneto_stuib_mode>;
97                                 interrupt-parent = <&gpio1>;
98                                 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
99                         };
100                 };
101
102                 i2c@80110000 {
103                         bu21013_tp@5c {
104                                 compatible = "rohm,bu21013_tp";
105                                 reg = <0x5c>;
106                                 avdd-supply = <&ab8500_ldo_aux1_reg>;
107
108                                 rohm,touch-max-x = <384>;
109                                 rohm,touch-max-y = <704>;
110                                 rohm,flip-y;
111                                 pinctrl-names = "default";
112                                 pinctrl-0 = <&touch_rohm_mode>;
113                         };
114
115                         bu21013_tp@5d {
116                                 compatible = "rohm,bu21013_tp";
117                                 reg = <0x5d>;
118                                 avdd-supply = <&ab8500_ldo_aux1_reg>;
119
120                                 rohm,touch-max-x = <384>;
121                                 rohm,touch-max-y = <704>;
122                                 rohm,flip-y;
123                                 pinctrl-names = "default";
124                                 pinctrl-0 = <&touch_rohm_mode>;
125                         };
126                 };
127
128                 pinctrl {
129                         prox {
130                                 prox_stuib_mode: prox_stuib {
131                                         stuib_cfg {
132                                                 pins = "GPIO217_AH12";
133                                                 ste,config = <&gpio_in_pu>;
134                                         };
135                                 };
136                         };
137                         hall {
138                                 hall_stuib_mode: stuib_tvk {
139                                         stuib_cfg {
140                                                 pins = "GPIO145_C13";
141                                                 ste,config = <&gpio_in_pu>;
142                                         };
143                                 };
144                         };
145                         accelerometer {
146                                 accel_stuib_mode: accel_stuib {
147                                         /* Accelerometer interrupt lines 1 & 2 */
148                                         stuib_cfg {
149                                                 pins = "GPIO82_C1", "GPIO83_D3";
150                                                 ste,config = <&gpio_in_pu>;
151                                         };
152                                 };
153                         };
154                         magnetometer {
155                                 magneto_stuib_mode: magneto_stuib {
156                                         /* Magnetometer uses GPIO 31 and 32, pull these up/down respectively */
157                                         stuib_cfg1 {
158                                                 pins = "GPIO31_V3";
159                                                 ste,config = <&gpio_in_pu>;
160                                         };
161                                         stuib_cfg2 {
162                                                 pins = "GPIO32_V2";
163                                                 ste,config = <&gpio_in_pd>;
164                                         };
165                                 };
166                         };
167                         touch {
168                                 touch_rohm_mode: touch_rohm {
169                                         /*
170                                          * ROHM touch screen uses GPIO 143 for
171                                          * RST1, GPIO 146 for RST2 and
172                                          * GPIO 67 for interrupts. Pull-up
173                                          * the IRQ line and drive both
174                                          * reset signals low.
175                                          */
176                                         stuib_cfg1 {
177                                                 pins = "GPIO143_D12", "GPIO146_D13";
178                                                 ste,config = <&gpio_out_lo>;
179                                         };
180                                         stuib_cfg2 {
181                                                 pins = "GPIO67_G2";
182                                                 ste,config = <&gpio_in_pu>;
183                                         };
184                                 };
185                         };
186                 };
187
188                 mcde@a0350000 {
189                         status = "okay";
190
191                         dsi@a0351000 {
192                                 panel {
193                                         compatible = "samsung,s6d16d0";
194                                         reg = <0>;
195                                         vdd1-supply = <&ab8500_ldo_aux1_reg>;
196                                         reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
197                                 };
198                         };
199                 };
200         };
201 };