~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/qcom/msm8916-samsung-fortuna-common.dtsi

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-only
  2 
  3 #include "msm8916-pm8916.dtsi"
  4 #include "msm8916-modem-qdsp6.dtsi"
  5 
  6 #include <dt-bindings/gpio/gpio.h>
  7 #include <dt-bindings/input/input.h>
  8 #include <dt-bindings/interrupt-controller/irq.h>
  9 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
 10 
 11 / {
 12         aliases {
 13                 mmc0 = &sdhc_1; /* eMMC */
 14                 mmc1 = &sdhc_2; /* SD card */
 15                 serial0 = &blsp_uart2;
 16         };
 17 
 18         chosen {
 19                 stdout-path = "serial0";
 20         };
 21 
 22         reserved-memory {
 23                 /* Additional memory used by Samsung firmware modifications */
 24                 tz-apps@85a00000 {
 25                         reg = <0x0 0x85a00000 0x0 0x600000>;
 26                         no-map;
 27                 };
 28         };
 29 
 30         battery: battery {
 31                 compatible = "simple-battery";
 32                 precharge-current-microamp = <450000>;
 33                 precharge-upper-limit-microvolt = <3500000>;
 34         };
 35 
 36         clk_pwm_backlight: backlight {
 37                 compatible = "pwm-backlight";
 38                 pwms = <&clk_pwm 0 100000>;
 39 
 40                 enable-gpios = <&tlmm 98 GPIO_ACTIVE_HIGH>;
 41 
 42                 brightness-levels = <0 255>;
 43                 num-interpolated-steps = <255>;
 44                 default-brightness-level = <128>;
 45 
 46                 pinctrl-0 = <&backlight_en_default>;
 47                 pinctrl-names = "default";
 48         };
 49 
 50         clk_pwm: pwm {
 51                 compatible = "clk-pwm";
 52                 #pwm-cells = <2>;
 53 
 54                 clocks = <&gcc GCC_GP2_CLK>;
 55 
 56                 pinctrl-0 = <&backlight_pwm_default>;
 57                 pinctrl-names = "default";
 58         };
 59 
 60         gpio-keys {
 61                 compatible = "gpio-keys";
 62 
 63                 pinctrl-0 = <&gpio_keys_default>;
 64                 pinctrl-names = "default";
 65 
 66                 label = "GPIO Buttons";
 67 
 68                 button-volume-up {
 69                         label = "Volume Up";
 70                         gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
 71                         linux,code = <KEY_VOLUMEUP>;
 72                 };
 73 
 74                 button-home {
 75                         label = "Home";
 76                         gpios = <&tlmm 109 GPIO_ACTIVE_LOW>;
 77                         linux,code = <KEY_HOMEPAGE>;
 78                 };
 79         };
 80 
 81         haptic {
 82                 compatible = "regulator-haptic";
 83                 haptic-supply = <&reg_motor_vdd>;
 84                 min-microvolt = <3300000>;
 85                 max-microvolt = <3300000>;
 86         };
 87 
 88         i2c_nfc: i2c-nfc {
 89                 compatible = "i2c-gpio";
 90                 sda-gpios = <&tlmm 0 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
 91                 scl-gpios = <&tlmm 1 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
 92 
 93                 pinctrl-0 = <&nfc_i2c_default>;
 94                 pinctrl-names = "default";
 95 
 96                 #address-cells = <1>;
 97                 #size-cells = <0>;
 98 
 99                 s3fwrn5_nfc: nfc@27 {
100                         compatible = "samsung,s3fwrn5-i2c";
101                         reg = <0x27>;
102 
103                         interrupts-extended = <&tlmm 21 IRQ_TYPE_EDGE_RISING>;
104 
105                         en-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
106                         wake-gpios = <&tlmm 49 GPIO_ACTIVE_HIGH>;
107 
108                         clocks = <&rpmcc RPM_SMD_BB_CLK2_PIN>;
109 
110                         pinctrl-0 = <&nfc_default>, <&nfc_clk_req>;
111                         pinctrl-names = "default";
112 
113                         status = "disabled";
114                 };
115         };
116 
117         reg_motor_vdd: regulator-motor-vdd {
118                 compatible = "regulator-fixed";
119                 regulator-name = "motor_vdd";
120                 regulator-min-microvolt = <3300000>;
121                 regulator-max-microvolt = <3300000>;
122 
123                 gpio = <&tlmm 72 GPIO_ACTIVE_HIGH>;
124                 enable-active-high;
125 
126                 pinctrl-0 = <&motor_en_default>;
127                 pinctrl-names = "default";
128         };
129 
130         reg_vdd_tsp_a: regulator-vdd-tsp-a {
131                 compatible = "regulator-fixed";
132                 regulator-name = "vdd_tsp_a";
133                 regulator-min-microvolt = <3000000>;
134                 regulator-max-microvolt = <3000000>;
135 
136                 gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>;
137                 enable-active-high;
138 
139                 pinctrl-0 = <&tsp_en_default>;
140                 pinctrl-names = "default";
141         };
142 };
143 
144 &blsp_i2c1 {
145         status = "okay";
146 
147         muic: extcon@25 {
148                 compatible = "siliconmitus,sm5502-muic";
149                 reg = <0x25>;
150                 interrupts-extended = <&tlmm 12 IRQ_TYPE_EDGE_FALLING>;
151                 pinctrl-0 = <&muic_int_default>;
152                 pinctrl-names = "default";
153 
154                 usb_con: connector {
155                         compatible = "usb-b-connector";
156                         label = "micro-USB";
157                         type = "micro";
158                 };
159         };
160 };
161 
162 &blsp_i2c2 {
163         /* Available sensors vary depending on model variant */
164         status = "okay";
165 
166         bosch_accel: accelerometer@10 {
167                 compatible = "bosch,bmc150_accel";
168                 reg = <0x10>;
169                 interrupts-extended = <&tlmm 115 IRQ_TYPE_EDGE_RISING>;
170 
171                 vdd-supply = <&pm8916_l5>;
172                 vddio-supply = <&pm8916_l5>;
173 
174                 pinctrl-0 = <&accel_int_default>;
175                 pinctrl-names = "default";
176 
177                 mount-matrix = "0", "-1", "0",
178                               "-1",  "0", "0",
179                                "0",  "0", "1";
180 
181                 status = "disabled";
182         };
183 
184         bosch_magn: magnetometer@12 {
185                 compatible = "bosch,bmc150_magn";
186                 reg = <0x12>;
187 
188                 vdd-supply = <&pm8916_l5>;
189                 vddio-supply = <&pm8916_l5>;
190 
191                 mount-matrix = "0", "-1", "0",
192                               "-1",  "0", "0",
193                                "0",  "0", "1";
194 
195                 status = "disabled";
196         };
197 
198         st_accel: accelerometer@1d {
199                 compatible = "st,lsm303c-accel";
200                 reg = <0x1d>;
201                 interrupts-extended = <&tlmm 115 IRQ_TYPE_LEVEL_HIGH>;
202 
203                 vdd-supply = <&pm8916_l17>;
204                 vddio-supply = <&pm8916_l5>;
205 
206                 pinctrl-0 = <&accel_int_default>;
207                 pinctrl-names = "default";
208 
209                 st,drdy-int-pin = <1>;
210                 mount-matrix = "0", "-1",  "0",
211                                "1",  "0",  "0",
212                                "0",  "0", "-1";
213 
214                 status = "disabled";
215         };
216 
217         st_magn: magnetometer@1e {
218                 compatible = "st,lsm303c-magn";
219                 reg = <0x1e>;
220 
221                 vdd-supply = <&pm8916_l17>;
222                 vddio-supply = <&pm8916_l5>;
223 
224                 mount-matrix = "0", "-1",  "0",
225                                "1",  "0",  "0",
226                                "0",  "0", "-1";
227 
228                 status = "disabled";
229         };
230 };
231 
232 &blsp_i2c4 {
233         status = "okay";
234 
235         fuel-gauge@35 {
236                 compatible = "richtek,rt5033-battery";
237                 reg = <0x35>;
238 
239                 interrupts-extended = <&tlmm 121 IRQ_TYPE_EDGE_FALLING>;
240 
241                 pinctrl-0 = <&fg_alert_default>;
242                 pinctrl-names = "default";
243 
244                 power-supplies = <&charger>;
245         };
246 };
247 
248 &blsp_i2c5 {
249         status = "okay";
250 
251         touchscreen: touchscreen@20 {
252                 compatible = "zinitix,bt541";
253                 reg = <0x20>;
254 
255                 interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>;
256 
257                 touchscreen-size-x = <540>;
258                 touchscreen-size-y = <960>;
259 
260                 vcca-supply = <&reg_vdd_tsp_a>;
261                 vdd-supply = <&pm8916_l6>;
262 
263                 pinctrl-0 = <&tsp_int_default>;
264                 pinctrl-names = "default";
265         };
266 };
267 
268 &blsp_i2c6 {
269         status = "okay";
270 
271         pmic@34 {
272                 compatible = "richtek,rt5033";
273                 reg = <0x34>;
274 
275                 interrupts-extended = <&tlmm 62 IRQ_TYPE_EDGE_FALLING>;
276 
277                 pinctrl-0 = <&pmic_int_default>;
278                 pinctrl-names = "default";
279 
280                 regulators {
281                         rt5033_reg_safe_ldo: SAFE_LDO {
282                                 regulator-min-microvolt = <4900000>;
283                                 regulator-max-microvolt = <4900000>;
284                                 regulator-always-on;
285                         };
286 
287                         /*
288                          * Needed for camera, but not used yet.
289                          * Define empty nodes to allow disabling the unused
290                          * regulators.
291                          */
292                         LDO {};
293                         BUCK {};
294                 };
295 
296                 charger: charger {
297                         compatible = "richtek,rt5033-charger";
298                         monitored-battery = <&battery>;
299                         richtek,usb-connector = <&usb_con>;
300                 };
301         };
302 };
303 
304 &blsp_uart2 {
305         status = "okay";
306 };
307 
308 &mpss_mem {
309         reg = <0x0 0x86800000 0x0 0x5000000>;
310 };
311 
312 &pm8916_resin {
313         linux,code = <KEY_VOLUMEDOWN>;
314         status = "okay";
315 };
316 
317 &pm8916_rpm_regulators {
318         pm8916_l17: l17 {
319                 regulator-min-microvolt = <2850000>;
320                 regulator-max-microvolt = <2850000>;
321         };
322 };
323 
324 &sdhc_1 {
325         status = "okay";
326 };
327 
328 &sdhc_2 {
329         pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
330         pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
331         pinctrl-names = "default", "sleep";
332 
333         cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
334 
335         status = "okay";
336 };
337 
338 &sound {
339         model = "msm8916-1mic";
340         audio-routing =
341                 "AMIC1", "MIC BIAS External1",
342                 "AMIC2", "MIC BIAS Internal2",
343                 "AMIC3", "MIC BIAS External1";
344 };
345 
346 &usb {
347         extcon = <&muic>, <&muic>;
348         status = "okay";
349 };
350 
351 &usb_hs_phy {
352         extcon = <&muic>;
353 };
354 
355 &venus {
356         status = "okay";
357 };
358 
359 &venus_mem {
360         status = "okay";
361 };
362 
363 &wcnss {
364         status = "okay";
365 };
366 
367 &wcnss_iris {
368         compatible = "qcom,wcn3620";
369 };
370 
371 &wcnss_mem {
372         status = "okay";
373 };
374 
375 &tlmm {
376         accel_int_default: accel-int-default-state {
377                 pins = "gpio115";
378                 function = "gpio";
379                 drive-strength = <2>;
380                 bias-disable;
381         };
382 
383         backlight_en_default: backlight-en-default-state {
384                 pins = "gpio98";
385                 function = "gpio";
386                 drive-strength = <2>;
387                 bias-disable;
388         };
389 
390         backlight_pwm_default: backlight-pwm-default-state {
391                 pins = "gpio50";
392                 function = "gcc_gp2_clk_a";
393         };
394 
395         fg_alert_default: fg-alert-default-state {
396                 pins = "gpio121";
397                 function = "gpio";
398                 drive-strength = <2>;
399                 bias-disable;
400         };
401 
402         gpio_keys_default: gpio-keys-default-state {
403                 pins = "gpio107", "gpio109";
404                 function = "gpio";
405                 drive-strength = <2>;
406                 bias-pull-up;
407         };
408 
409         motor_en_default: motor-en-default-state {
410                 pins = "gpio72";
411                 function = "gpio";
412                 drive-strength = <2>;
413                 bias-disable;
414         };
415 
416         muic_int_default: muic-int-default-state {
417                 pins = "gpio12";
418                 function = "gpio";
419                 drive-strength = <2>;
420                 bias-disable;
421         };
422 
423         nfc_default: nfc-default-state {
424                 irq-pins {
425                         pins = "gpio21";
426                         function = "gpio";
427                         drive-strength = <2>;
428                         bias-pull-down;
429                 };
430 
431                 nfc-pins {
432                         pins = "gpio20", "gpio49";
433                         function = "gpio";
434                         drive-strength = <2>;
435                         bias-disable;
436                 };
437         };
438 
439         nfc_i2c_default: nfc-i2c-default-state {
440                 pins = "gpio0", "gpio1";
441                 function = "gpio";
442                 drive-strength = <2>;
443                 bias-disable;
444         };
445 
446         pmic_int_default: pmic-int-default-state {
447                 pins = "gpio62";
448                 function = "gpio";
449                 drive-strength = <2>;
450                 bias-disable;
451         };
452 
453         sdc2_cd_default: sdc2-cd-default-state {
454                 pins = "gpio38";
455                 function = "gpio";
456                 drive-strength = <2>;
457                 bias-disable;
458         };
459 
460         tsp_en_default: tsp-en-default-state {
461                 pins = "gpio73";
462                 function = "gpio";
463                 drive-strength = <2>;
464                 bias-disable;
465         };
466 
467         tsp_int_default: tsp-int-default-state {
468                 pins = "gpio13";
469                 function = "gpio";
470                 drive-strength = <2>;
471                 bias-disable;
472         };
473 };
474 
475 &pm8916_gpios {
476         nfc_clk_req: nfc-clk-req-state {
477                 pins = "gpio2";
478                 function = "func1";
479                 power-source = <PM8916_GPIO_L2>;
480                 bias-disable;
481                 input-enable;
482         };
483 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php