arm64: dts: qcom: ipq8074: Fix hwlock index for SMEM
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / qcom / msm8916-samsung-j5-common.dtsi
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "msm8916-pm8916.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/interrupt-controller/irq.h>
7
8 / {
9         aliases {
10                 mmc0 = &sdhc_1; /* eMMC */
11                 mmc1 = &sdhc_2; /* SD card */
12                 serial0 = &blsp_uart2;
13         };
14
15         chosen {
16                 stdout-path = "serial0";
17         };
18
19         reserved-memory {
20                 /* Additional memory used by Samsung firmware modifications */
21                 tz-apps@85500000 {
22                         reg = <0x0 0x85500000 0x0 0xb00000>;
23                         no-map;
24                 };
25         };
26
27         gpio_hall_sensor: gpio-hall-sensor {
28                 compatible = "gpio-keys";
29
30                 pinctrl-names = "default";
31                 pinctrl-0 = <&gpio_hall_sensor_default>;
32
33                 label = "GPIO Hall Effect Sensor";
34
35                 event-hall-sensor {
36                         label = "Hall Effect Sensor";
37                         gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
38                         linux,input-type = <EV_SW>;
39                         linux,code = <SW_LID>;
40                         linux,can-disable;
41                 };
42         };
43
44         gpio-keys {
45                 compatible = "gpio-keys";
46
47                 pinctrl-names = "default";
48                 pinctrl-0 = <&gpio_keys_default>;
49
50                 label = "GPIO Buttons";
51
52                 button-volume-up {
53                         label = "Volume Up";
54                         gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
55                         linux,code = <KEY_VOLUMEUP>;
56                 };
57
58                 button-home {
59                         label = "Home Key";
60                         gpios = <&tlmm 109 GPIO_ACTIVE_LOW>;
61                         linux,code = <KEY_HOMEPAGE>;
62                 };
63         };
64
65         i2c_muic: i2c-muic {
66                 compatible = "i2c-gpio";
67                 sda-gpios = <&tlmm 105 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
68                 scl-gpios = <&tlmm 106 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
69
70                 pinctrl-names = "default";
71                 pinctrl-0 = <&muic_i2c_default>;
72
73                 #address-cells = <1>;
74                 #size-cells = <0>;
75
76                 muic: extcon@25 {
77                         compatible = "siliconmitus,sm5703-muic";
78                         reg = <0x25>;
79
80                         interrupt-parent = <&tlmm>;
81                         interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
82
83                         pinctrl-names = "default";
84                         pinctrl-0 = <&muic_int_default>;
85                 };
86         };
87
88         i2c_sensors: i2c-sensors {
89                 compatible = "i2c-gpio";
90
91                 sda-gpios = <&tlmm 31 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
92                 scl-gpios = <&tlmm 32 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
93
94                 pinctrl-0 = <&sensors_i2c_default>;
95                 pinctrl-names = "default";
96
97                 #address-cells = <1>;
98                 #size-cells = <0>;
99
100                 accelerometer: accelerometer@1d {
101                         compatible = "st,lis2hh12";
102                         reg = <0x1d>;
103
104                         interrupts-extended = <&tlmm 115 IRQ_TYPE_LEVEL_HIGH>;
105
106                         pinctrl-0 = <&accel_int_default>;
107                         pinctrl-names = "default";
108
109                         st,drdy-int-pin = <1>;
110                 };
111         };
112 };
113
114 &blsp_i2c5 {
115         status = "okay";
116
117         touchscreen: touchscreen@50 {
118                 compatible = "imagis,ist3038c";
119                 reg = <0x50>;
120
121                 interrupt-parent = <&tlmm>;
122                 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
123
124                 touchscreen-size-x = <720>;
125                 touchscreen-size-y = <1280>;
126
127                 vddio-supply = <&pm8916_l6>;
128
129                 pinctrl-0 = <&tsp_int_default>;
130                 pinctrl-names = "default";
131         };
132 };
133
134 &blsp_uart2 {
135         status = "okay";
136 };
137
138 &pm8916_resin {
139         status = "okay";
140         linux,code = <KEY_VOLUMEDOWN>;
141 };
142
143 &sdhc_1 {
144         status = "okay";
145 };
146
147 &sdhc_2 {
148         status = "okay";
149
150         pinctrl-names = "default", "sleep";
151         pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
152         pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
153
154         cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
155 };
156
157 &usb {
158         extcon = <&muic>, <&muic>;
159         status = "okay";
160 };
161
162 &usb_hs_phy {
163         extcon = <&muic>;
164 };
165
166 &wcnss {
167         status = "okay";
168 };
169
170 &wcnss_iris {
171         compatible = "qcom,wcn3620";
172 };
173
174 &tlmm {
175         accel_int_default: accel-int-default-state {
176                 pins = "gpio115";
177                 function = "gpio";
178                 drive-strength = <2>;
179                 bias-disable;
180         };
181
182         gpio_hall_sensor_default: gpio-hall-sensor-default-state {
183                 pins = "gpio52";
184                 function = "gpio";
185
186                 drive-strength = <2>;
187                 bias-disable;
188         };
189
190         gpio_keys_default: gpio-keys-default-state {
191                 pins = "gpio107", "gpio109";
192                 function = "gpio";
193
194                 drive-strength = <2>;
195                 bias-pull-up;
196         };
197
198         muic_i2c_default: muic-i2c-default-state {
199                 pins = "gpio105", "gpio106";
200                 function = "gpio";
201
202                 drive-strength = <2>;
203                 bias-disable;
204         };
205
206         muic_int_default: muic-int-default-state {
207                 pins = "gpio12";
208                 function = "gpio";
209
210                 drive-strength = <2>;
211                 bias-disable;
212         };
213
214         sdc2_cd_default: sdc2-cd-default-state {
215                 pins = "gpio38";
216                 function = "gpio";
217
218                 drive-strength = <2>;
219                 bias-disable;
220         };
221
222         sensors_i2c_default: sensors-i2c-default-state {
223                 pins = "gpio31", "gpio32";
224                 function = "gpio";
225                 drive-strength = <2>;
226                 bias-disable;
227         };
228
229         tsp_int_default: tsp-int-default-state {
230                 pins = "gpio13";
231                 function = "gpio";
232
233                 drive-strength = <2>;
234                 bias-disable;
235         };
236 };