|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
| 2 | + |
| 3 | +/dts-v1/; |
| 4 | + |
| 5 | +#include "msm8939-pm8916.dtsi" |
| 6 | +#include "msm8916-modem-qdsp6.dtsi" |
| 7 | + |
| 8 | +#include <dt-bindings/gpio/gpio.h> |
| 9 | +#include <dt-bindings/input/input.h> |
| 10 | +#include <dt-bindings/interrupt-controller/irq.h> |
| 11 | + |
| 12 | +/ { |
| 13 | + model = "Asus ZenFone 2 Laser/Selfie (1080p)"; |
| 14 | + compatible = "asus,z00t", "qcom,msm8939"; |
| 15 | + chassis-type = "handset"; |
| 16 | + |
| 17 | + aliases { |
| 18 | + mmc0 = &sdhc_1; |
| 19 | + mmc1 = &sdhc_2; |
| 20 | + serial0 = &blsp_uart2; |
| 21 | + }; |
| 22 | + |
| 23 | + chosen { |
| 24 | + stdout-path = "serial0"; |
| 25 | + }; |
| 26 | + |
| 27 | + gpio-keys { |
| 28 | + compatible = "gpio-keys"; |
| 29 | + |
| 30 | + pinctrl-0 = <&gpio_keys_default>; |
| 31 | + pinctrl-names = "default"; |
| 32 | + |
| 33 | + button-volume-up { |
| 34 | + label = "Volume Up"; |
| 35 | + gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; |
| 36 | + linux,code = <KEY_VOLUMEUP>; |
| 37 | + debounce-interval = <15>; |
| 38 | + }; |
| 39 | + |
| 40 | + button-volume-down { |
| 41 | + label = "Volume Down"; |
| 42 | + gpios = <&tlmm 117 GPIO_ACTIVE_LOW>; |
| 43 | + linux,code = <KEY_VOLUMEDOWN>; |
| 44 | + debounce-interval = <15>; |
| 45 | + }; |
| 46 | + }; |
| 47 | + |
| 48 | + battery: battery { |
| 49 | + compatible = "simple-battery"; |
| 50 | + device-chemistry = "lithium-ion-polymer"; |
| 51 | + voltage-min-design-microvolt = <3400000>; |
| 52 | + voltage-max-design-microvolt = <4400000>; |
| 53 | + energy-full-design-microwatt-hours = <11500000>; |
| 54 | + charge-full-design-microamp-hours = <3000000>; |
| 55 | + |
| 56 | + ocv-capacity-celsius = <25>; |
| 57 | + ocv-capacity-table-0 = <4372000 100>, <4306000 95>, <4247000 90>, |
| 58 | + <4190000 85>, <4134000 80>, <4081000 75>, <4030000 70>, |
| 59 | + <3984000 65>, <3930000 60>, <3884000 55>, <3850000 50>, |
| 60 | + <3826000 45>, <3804000 40>, <3786000 35>, <3770000 30>, |
| 61 | + <3753000 25>, <3734000 20>, <3712000 16>, <3693000 13>, |
| 62 | + <3686000 11>, <3684000 10>, <3682000 9>, <3680000 8>, |
| 63 | + <3676000 7>, <3668000 6>, <3643000 5>, <3600000 4>, |
| 64 | + <3542000 3>, <3462000 2>, <3340000 1>, <3000000 0>; |
| 65 | + }; |
| 66 | + |
| 67 | + reg_sd_vmmc: regulator-sdcard-vmmc { |
| 68 | + compatible = "regulator-fixed"; |
| 69 | + regulator-name = "sdcard-vmmc"; |
| 70 | + regulator-min-microvolt = <2950000>; |
| 71 | + regulator-max-microvolt = <2950000>; |
| 72 | + |
| 73 | + gpio = <&tlmm 87 GPIO_ACTIVE_HIGH>; |
| 74 | + enable-active-high; |
| 75 | + |
| 76 | + startup-delay-us = <200>; |
| 77 | + |
| 78 | + pinctrl-0 = <&sd_vmmc_en_default>; |
| 79 | + pinctrl-names = "default"; |
| 80 | + }; |
| 81 | + |
| 82 | + usb_id: usb-id { |
| 83 | + compatible = "linux,extcon-usb-gpio"; |
| 84 | + id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>; |
| 85 | + pinctrl-0 = <&usb_id_default>; |
| 86 | + pinctrl-names = "default"; |
| 87 | + }; |
| 88 | +}; |
| 89 | + |
| 90 | +&blsp_i2c2 { |
| 91 | + status = "okay"; |
| 92 | + |
| 93 | + magnetometer@c { |
| 94 | + compatible = "asahi-kasei,ak09911"; |
| 95 | + reg = <0x0c>; |
| 96 | + |
| 97 | + vdd-supply = <&pm8916_l8>; |
| 98 | + vid-supply = <&pm8916_l6>; |
| 99 | + |
| 100 | + reset-gpios = <&tlmm 112 GPIO_ACTIVE_LOW>; |
| 101 | + pinctrl-0 = <&mag_reset_default>; |
| 102 | + pinctrl-names = "default"; |
| 103 | + }; |
| 104 | + |
| 105 | + imu@68 { |
| 106 | + compatible = "invensense,mpu6515"; |
| 107 | + reg = <0x68>; |
| 108 | + |
| 109 | + interrupts-extended = <&tlmm 36 IRQ_TYPE_EDGE_RISING>; |
| 110 | + |
| 111 | + vdd-supply = <&pm8916_l8>; |
| 112 | + vddio-supply = <&pm8916_l6>; |
| 113 | + |
| 114 | + pinctrl-0 = <&imu_default>; |
| 115 | + pinctrl-names = "default"; |
| 116 | + |
| 117 | + mount-matrix = "0", "1", "0", |
| 118 | + "-1", "0", "0", |
| 119 | + "0", "0", "1"; |
| 120 | + }; |
| 121 | +}; |
| 122 | + |
| 123 | +&blsp_i2c5 { |
| 124 | + status = "okay"; |
| 125 | + |
| 126 | + touchscreen@38 { |
| 127 | + compatible = "edt,edt-ft5306"; |
| 128 | + reg = <0x38>; |
| 129 | + |
| 130 | + interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>; |
| 131 | + |
| 132 | + reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>; |
| 133 | + |
| 134 | + vcc-supply = <&pm8916_l8>; |
| 135 | + iovcc-supply = <&pm8916_l6>; |
| 136 | + |
| 137 | + touchscreen-size-x = <1080>; |
| 138 | + touchscreen-size-y = <1920>; |
| 139 | + |
| 140 | + pinctrl-0 = <&touchscreen_default>; |
| 141 | + pinctrl-names = "default"; |
| 142 | + }; |
| 143 | +}; |
| 144 | + |
| 145 | +&blsp_uart2 { |
| 146 | + pinctrl-0 = <&blsp_uart2_console_default>; |
| 147 | + pinctrl-1 = <&blsp_uart2_console_sleep>; |
| 148 | + pinctrl-names = "default", "sleep"; |
| 149 | + status = "okay"; |
| 150 | +}; |
| 151 | + |
| 152 | +&mpss_mem { |
| 153 | + reg = <0x0 0x86800000 0x0 0x5500000>; |
| 154 | +}; |
| 155 | + |
| 156 | +&pm8916_bms { |
| 157 | + monitored-battery = <&battery>; |
| 158 | + status = "okay"; |
| 159 | +}; |
| 160 | + |
| 161 | +&pm8916_codec { |
| 162 | + qcom,micbias-lvl = <2800>; |
| 163 | + qcom,mbhc-vthreshold-low = <75 150 237 450 500>; |
| 164 | + qcom,mbhc-vthreshold-high = <75 150 237 450 500>; |
| 165 | + qcom,micbias1-ext-cap; |
| 166 | + qcom,hphl-jack-type-normally-open; |
| 167 | + status = "okay"; |
| 168 | +}; |
| 169 | + |
| 170 | +&pm8916_vib { |
| 171 | + status = "okay"; |
| 172 | +}; |
| 173 | + |
| 174 | +&sdhc_1 { |
| 175 | + status = "okay"; |
| 176 | +}; |
| 177 | + |
| 178 | +&sdhc_2 { |
| 179 | + vmmc-supply = <®_sd_vmmc>; |
| 180 | + |
| 181 | + pinctrl-0 = <&sdc2_default &sdc2_cd_default>; |
| 182 | + pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>; |
| 183 | + pinctrl-names = "default", "sleep"; |
| 184 | + cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; |
| 185 | + status = "okay"; |
| 186 | +}; |
| 187 | + |
| 188 | +&sound { |
| 189 | + audio-routing = |
| 190 | + "AMIC1", "MIC BIAS External1", |
| 191 | + "AMIC2", "MIC BIAS Internal2", |
| 192 | + "AMIC3", "MIC BIAS External1"; |
| 193 | + status = "okay"; |
| 194 | +}; |
| 195 | + |
| 196 | +&usb { |
| 197 | + extcon = <&usb_id>, <&usb_id>; |
| 198 | + status = "okay"; |
| 199 | +}; |
| 200 | + |
| 201 | +&usb_hs_phy { |
| 202 | + extcon = <&usb_id>; |
| 203 | +}; |
| 204 | + |
| 205 | +&wcnss { |
| 206 | + status = "okay"; |
| 207 | +}; |
| 208 | + |
| 209 | +&wcnss_iris { |
| 210 | + compatible = "qcom,wcn3660b"; |
| 211 | +}; |
| 212 | + |
| 213 | +&wcnss_mem { |
| 214 | + status = "okay"; |
| 215 | +}; |
| 216 | + |
| 217 | +&tlmm { |
| 218 | + gpio_keys_default: gpio-keys-default-state { |
| 219 | + pins = "gpio107", "gpio117"; |
| 220 | + function = "gpio"; |
| 221 | + drive-strength = <2>; |
| 222 | + bias-pull-up; |
| 223 | + }; |
| 224 | + |
| 225 | + imu_default: imu-default-state { |
| 226 | + pins = "gpio36"; |
| 227 | + function = "gpio"; |
| 228 | + |
| 229 | + drive-strength = <2>; |
| 230 | + bias-disable; |
| 231 | + }; |
| 232 | + |
| 233 | + mag_reset_default: mag-reset-default-state { |
| 234 | + pins = "gpio112"; |
| 235 | + function = "gpio"; |
| 236 | + |
| 237 | + drive-strength = <2>; |
| 238 | + bias-disable; |
| 239 | + }; |
| 240 | + |
| 241 | + sd_vmmc_en_default: sd-vmmc-en-default-state { |
| 242 | + pins = "gpio87"; |
| 243 | + function = "gpio"; |
| 244 | + drive-strength = <2>; |
| 245 | + bias-disable; |
| 246 | + }; |
| 247 | + |
| 248 | + sdc2_cd_default: sdc2-cd-default-state { |
| 249 | + pins = "gpio38"; |
| 250 | + function = "gpio"; |
| 251 | + drive-strength = <2>; |
| 252 | + bias-disable; |
| 253 | + }; |
| 254 | + |
| 255 | + touchscreen_default: touchscreen-default-state { |
| 256 | + touch-pins { |
| 257 | + pins = "gpio13"; |
| 258 | + function = "gpio"; |
| 259 | + |
| 260 | + drive-strength = <2>; |
| 261 | + bias-pull-up; |
| 262 | + }; |
| 263 | + |
| 264 | + reset-pins { |
| 265 | + pins = "gpio12"; |
| 266 | + function = "gpio"; |
| 267 | + |
| 268 | + drive-strength = <2>; |
| 269 | + bias-disable; |
| 270 | + }; |
| 271 | + }; |
| 272 | + |
| 273 | + usb_id_default: usb-id-default-state { |
| 274 | + pins = "gpio110"; |
| 275 | + function = "gpio"; |
| 276 | + drive-strength = <8>; |
| 277 | + bias-pull-up; |
| 278 | + }; |
| 279 | +}; |
0 commit comments