Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | #include "msm8916-samsung-a2015-common.dtsi" |
| 4 | |
| 5 | / { |
| 6 | haptic { |
| 7 | compatible = "regulator-haptic"; |
| 8 | haptic-supply = <®_motor_vdd>; |
| 9 | min-microvolt = <3300000>; |
| 10 | max-microvolt = <3300000>; |
| 11 | }; |
| 12 | |
| 13 | i2c-muic { |
| 14 | /* SM5504 MUIC instead of SM5502 */ |
| 15 | /delete-node/ extcon@25; |
| 16 | |
| 17 | muic: extcon@14 { |
| 18 | compatible = "siliconmitus,sm5504-muic"; |
| 19 | reg = <0x14>; |
| 20 | |
| 21 | interrupt-parent = <&tlmm>; |
| 22 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; |
| 23 | |
| 24 | pinctrl-names = "default"; |
| 25 | pinctrl-0 = <&muic_int_default>; |
| 26 | }; |
| 27 | }; |
| 28 | |
| 29 | reg_touch_key: regulator-touch-key { |
| 30 | compatible = "regulator-fixed"; |
| 31 | regulator-name = "touch_key"; |
| 32 | regulator-min-microvolt = <3300000>; |
| 33 | regulator-max-microvolt = <3300000>; |
| 34 | |
| 35 | gpio = <&tlmm 97 GPIO_ACTIVE_HIGH>; |
| 36 | enable-active-high; |
| 37 | |
| 38 | pinctrl-names = "default"; |
| 39 | pinctrl-0 = <&tkey_en_default>; |
| 40 | }; |
| 41 | }; |
| 42 | |
| 43 | &blsp_i2c2 { |
| 44 | /* lis2hh12 accelerometer instead of BMC150 */ |
| 45 | /delete-node/ accelerometer@10; |
| 46 | /delete-node/ magnetometer@12; |
| 47 | |
| 48 | accelerometer@1d { |
| 49 | compatible = "st,lis2hh12"; |
| 50 | reg = <0x1d>; |
| 51 | |
| 52 | interrupt-parent = <&tlmm>; |
| 53 | interrupts = <115 IRQ_TYPE_LEVEL_HIGH>; |
| 54 | |
| 55 | vdd-supply = <&pm8916_l5>; |
| 56 | vddio-supply = <&pm8916_l5>; |
| 57 | |
| 58 | st,drdy-int-pin = <1>; |
| 59 | mount-matrix = "1", "0", "0", |
| 60 | "0", "-1", "0", |
| 61 | "0", "0", "1"; |
| 62 | |
| 63 | pinctrl-0 = <&accel_int_default>; |
| 64 | pinctrl-names = "default"; |
| 65 | }; |
| 66 | }; |
| 67 | |
| 68 | ®_motor_vdd { |
| 69 | regulator-min-microvolt = <3300000>; |
| 70 | regulator-max-microvolt = <3300000>; |
| 71 | }; |
| 72 | |
| 73 | &touchkey { |
| 74 | vcc-supply = <®_touch_key>; |
| 75 | vdd-supply = <®_touch_key>; |
| 76 | }; |
| 77 | |
| 78 | &wcnss { |
| 79 | status = "okay"; |
| 80 | }; |
| 81 | |
| 82 | &wcnss_iris { |
| 83 | compatible = "qcom,wcn3620"; |
| 84 | }; |
| 85 | |
| 86 | &wcnss_mem { |
| 87 | status = "okay"; |
| 88 | }; |
| 89 | |
| 90 | &tlmm { |
| 91 | tkey_en_default: tkey-en-default-state { |
| 92 | pins = "gpio97"; |
| 93 | function = "gpio"; |
| 94 | |
| 95 | drive-strength = <2>; |
| 96 | bias-disable; |
| 97 | }; |
| 98 | }; |