1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 2 3 /dts-v1/; 3 /dts-v1/; 4 4 5 #include "msm8916-pm8916.dtsi" 5 #include "msm8916-pm8916.dtsi" 6 #include "msm8916-modem-qdsp6.dtsi" << 7 << 8 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/interrupt-controller/irq 8 #include <dt-bindings/interrupt-controller/irq.h> 11 9 12 / { 10 / { 13 model = "Asus Zenfone 2 Laser"; 11 model = "Asus Zenfone 2 Laser"; 14 compatible = "asus,z00l", "qcom,msm891 12 compatible = "asus,z00l", "qcom,msm8916"; 15 chassis-type = "handset"; 13 chassis-type = "handset"; 16 14 17 aliases { 15 aliases { 18 mmc0 = &sdhc_1; /* eMMC */ !! 16 serial0 = &blsp1_uart2; 19 mmc1 = &sdhc_2; /* SD card */ << 20 serial0 = &blsp_uart2; << 21 }; 17 }; 22 18 23 chosen { 19 chosen { 24 stdout-path = "serial0"; 20 stdout-path = "serial0"; 25 }; 21 }; 26 22 27 gpio-keys { 23 gpio-keys { 28 compatible = "gpio-keys"; 24 compatible = "gpio-keys"; 29 25 30 pinctrl-names = "default"; 26 pinctrl-names = "default"; 31 pinctrl-0 = <&gpio_keys_defaul 27 pinctrl-0 = <&gpio_keys_default>; 32 28 33 label = "GPIO Buttons"; 29 label = "GPIO Buttons"; 34 30 35 button-volume-up { 31 button-volume-up { 36 label = "Volume Up"; 32 label = "Volume Up"; 37 gpios = <&tlmm 107 GPI !! 33 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>; 38 linux,code = <KEY_VOLU 34 linux,code = <KEY_VOLUMEUP>; 39 debounce-interval = <1 35 debounce-interval = <15>; 40 }; 36 }; 41 37 42 button-volume-down { 38 button-volume-down { 43 label = "Volume Down"; 39 label = "Volume Down"; 44 gpios = <&tlmm 117 GPI !! 40 gpios = <&msmgpio 117 GPIO_ACTIVE_LOW>; 45 linux,code = <KEY_VOLU 41 linux,code = <KEY_VOLUMEDOWN>; 46 debounce-interval = <1 42 debounce-interval = <15>; 47 }; 43 }; 48 }; 44 }; 49 45 50 reg_sd_vmmc: regulator-sdcard-vmmc { 46 reg_sd_vmmc: regulator-sdcard-vmmc { 51 compatible = "regulator-fixed" 47 compatible = "regulator-fixed"; 52 regulator-name = "sdcard-vmmc" 48 regulator-name = "sdcard-vmmc"; 53 regulator-min-microvolt = <295 49 regulator-min-microvolt = <2950000>; 54 regulator-max-microvolt = <295 50 regulator-max-microvolt = <2950000>; 55 51 56 gpio = <&tlmm 87 GPIO_ACTIVE_H !! 52 gpio = <&msmgpio 87 GPIO_ACTIVE_HIGH>; 57 enable-active-high; 53 enable-active-high; 58 54 59 startup-delay-us = <200>; 55 startup-delay-us = <200>; 60 56 61 pinctrl-names = "default"; 57 pinctrl-names = "default"; 62 pinctrl-0 = <&sd_vmmc_en_defau 58 pinctrl-0 = <&sd_vmmc_en_default>; 63 }; 59 }; 64 60 65 usb_id: usb-id { 61 usb_id: usb-id { 66 compatible = "linux,extcon-usb 62 compatible = "linux,extcon-usb-gpio"; 67 id-gpios = <&tlmm 110 GPIO_ACT !! 63 id-gpios = <&msmgpio 110 GPIO_ACTIVE_HIGH>; 68 pinctrl-names = "default"; 64 pinctrl-names = "default"; 69 pinctrl-0 = <&usb_id_default>; 65 pinctrl-0 = <&usb_id_default>; 70 }; 66 }; 71 }; 67 }; 72 68 73 &blsp_i2c2 { 69 &blsp_i2c2 { 74 status = "okay"; 70 status = "okay"; 75 71 76 magnetometer@c { 72 magnetometer@c { 77 compatible = "asahi-kasei,ak09 73 compatible = "asahi-kasei,ak09911"; 78 reg = <0x0c>; 74 reg = <0x0c>; 79 75 80 vdd-supply = <&pm8916_l8>; 76 vdd-supply = <&pm8916_l8>; 81 vid-supply = <&pm8916_l6>; 77 vid-supply = <&pm8916_l6>; 82 78 83 reset-gpios = <&tlmm 112 GPIO_ !! 79 reset-gpios = <&msmgpio 112 GPIO_ACTIVE_LOW>; 84 80 85 pinctrl-names = "default"; 81 pinctrl-names = "default"; 86 pinctrl-0 = <&mag_reset_defaul 82 pinctrl-0 = <&mag_reset_default>; 87 }; 83 }; 88 84 89 imu@68 { 85 imu@68 { 90 compatible = "invensense,mpu65 86 compatible = "invensense,mpu6515"; 91 reg = <0x68>; 87 reg = <0x68>; 92 88 93 interrupt-parent = <&tlmm>; !! 89 interrupt-parent = <&msmgpio>; 94 interrupts = <36 IRQ_TYPE_EDGE 90 interrupts = <36 IRQ_TYPE_EDGE_RISING>; 95 91 96 vdd-supply = <&pm8916_l17>; 92 vdd-supply = <&pm8916_l17>; 97 vddio-supply = <&pm8916_l6>; 93 vddio-supply = <&pm8916_l6>; 98 94 99 pinctrl-names = "default"; 95 pinctrl-names = "default"; 100 pinctrl-0 = <&imu_default>; 96 pinctrl-0 = <&imu_default>; 101 97 102 mount-matrix = "1", "0", "0", 98 mount-matrix = "1", "0", "0", 103 "0", "-1", "0", 99 "0", "-1", "0", 104 "0", "0", "1"; 100 "0", "0", "1"; 105 }; 101 }; 106 }; 102 }; 107 103 108 &blsp_i2c5 { 104 &blsp_i2c5 { 109 status = "okay"; 105 status = "okay"; 110 106 111 touchscreen@38 { 107 touchscreen@38 { 112 compatible = "edt,edt-ft5306"; 108 compatible = "edt,edt-ft5306"; 113 reg = <0x38>; 109 reg = <0x38>; 114 110 115 interrupt-parent = <&tlmm>; !! 111 interrupt-parent = <&msmgpio>; 116 interrupts = <13 IRQ_TYPE_EDGE 112 interrupts = <13 IRQ_TYPE_EDGE_FALLING>; 117 113 118 reset-gpios = <&tlmm 12 GPIO_A !! 114 reset-gpios = <&msmgpio 12 GPIO_ACTIVE_LOW>; 119 115 120 vcc-supply = <&pm8916_l11>; 116 vcc-supply = <&pm8916_l11>; 121 iovcc-supply = <&pm8916_l6>; 117 iovcc-supply = <&pm8916_l6>; 122 118 123 touchscreen-size-x = <720>; 119 touchscreen-size-x = <720>; 124 touchscreen-size-y = <1280>; 120 touchscreen-size-y = <1280>; 125 121 126 pinctrl-names = "default"; 122 pinctrl-names = "default"; 127 pinctrl-0 = <&touchscreen_defa 123 pinctrl-0 = <&touchscreen_default>; 128 }; 124 }; 129 }; 125 }; 130 126 131 &blsp_uart2 { !! 127 &blsp1_uart2 { 132 status = "okay"; 128 status = "okay"; 133 }; 129 }; 134 130 135 &mpss_mem { !! 131 &pronto { 136 reg = <0x0 0x86800000 0x0 0x5500000>; !! 132 status = "okay"; 137 }; << 138 << 139 &pm8916_codec { << 140 qcom,micbias-lvl = <2800>; << 141 qcom,mbhc-vthreshold-low = <75 150 237 << 142 qcom,mbhc-vthreshold-high = <75 150 23 << 143 qcom,micbias1-ext-cap; << 144 qcom,hphl-jack-type-normally-open; << 145 }; << 146 << 147 &pm8916_rpm_regulators { << 148 pm8916_l17: l17 { << 149 regulator-min-microvolt = <285 << 150 regulator-max-microvolt = <285 << 151 }; << 152 }; 133 }; 153 134 154 &sdhc_1 { 135 &sdhc_1 { 155 status = "okay"; 136 status = "okay"; >> 137 >> 138 pinctrl-names = "default", "sleep"; >> 139 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>; >> 140 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>; 156 }; 141 }; 157 142 158 &sdhc_2 { 143 &sdhc_2 { 159 status = "okay"; 144 status = "okay"; 160 vmmc-supply = <®_sd_vmmc>; 145 vmmc-supply = <®_sd_vmmc>; 161 146 162 pinctrl-names = "default", "sleep"; 147 pinctrl-names = "default", "sleep"; 163 pinctrl-0 = <&sdc2_default &sdc2_cd_de !! 148 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; 164 pinctrl-1 = <&sdc2_sleep &sdc2_cd_defa !! 149 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; 165 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; !! 150 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>; 166 }; << 167 << 168 &sound { << 169 audio-routing = << 170 "AMIC1", "MIC BIAS External1", << 171 "AMIC2", "MIC BIAS Internal2", << 172 "AMIC3", "MIC BIAS External1"; << 173 }; 151 }; 174 152 175 &usb { 153 &usb { 176 status = "okay"; 154 status = "okay"; 177 extcon = <&usb_id>, <&usb_id>; 155 extcon = <&usb_id>, <&usb_id>; 178 }; 156 }; 179 157 180 &usb_hs_phy { 158 &usb_hs_phy { 181 extcon = <&usb_id>; 159 extcon = <&usb_id>; 182 }; 160 }; 183 161 184 &venus { !! 162 &smd_rpm_regulators { 185 status = "okay"; !! 163 vdd_l1_l2_l3-supply = <&pm8916_s3>; 186 }; !! 164 vdd_l4_l5_l6-supply = <&pm8916_s4>; >> 165 vdd_l7-supply = <&pm8916_s4>; 187 166 188 &venus_mem { !! 167 s3 { 189 status = "okay"; !! 168 regulator-min-microvolt = <1200000>; 190 }; !! 169 regulator-max-microvolt = <1300000>; >> 170 }; 191 171 192 &wcnss { !! 172 s4 { 193 status = "okay"; !! 173 regulator-min-microvolt = <1800000>; 194 }; !! 174 regulator-max-microvolt = <2100000>; >> 175 }; 195 176 196 &wcnss_iris { !! 177 l1 { 197 compatible = "qcom,wcn3620"; !! 178 regulator-min-microvolt = <1225000>; 198 }; !! 179 regulator-max-microvolt = <1225000>; >> 180 }; 199 181 200 &wcnss_mem { !! 182 l2 { 201 status = "okay"; !! 183 regulator-min-microvolt = <1200000>; >> 184 regulator-max-microvolt = <1200000>; >> 185 }; >> 186 >> 187 l4 { >> 188 regulator-min-microvolt = <2050000>; >> 189 regulator-max-microvolt = <2050000>; >> 190 }; >> 191 >> 192 l5 { >> 193 regulator-min-microvolt = <1800000>; >> 194 regulator-max-microvolt = <1800000>; >> 195 }; >> 196 >> 197 l6 { >> 198 regulator-min-microvolt = <1800000>; >> 199 regulator-max-microvolt = <1800000>; >> 200 }; >> 201 >> 202 l7 { >> 203 regulator-min-microvolt = <1800000>; >> 204 regulator-max-microvolt = <1800000>; >> 205 }; >> 206 >> 207 l8 { >> 208 regulator-min-microvolt = <2850000>; >> 209 regulator-max-microvolt = <2900000>; >> 210 }; >> 211 >> 212 l9 { >> 213 regulator-min-microvolt = <3300000>; >> 214 regulator-max-microvolt = <3300000>; >> 215 }; >> 216 >> 217 l10 { >> 218 regulator-min-microvolt = <2700000>; >> 219 regulator-max-microvolt = <2800000>; >> 220 }; >> 221 >> 222 l11 { >> 223 regulator-min-microvolt = <1800000>; >> 224 regulator-max-microvolt = <2950000>; >> 225 regulator-allow-set-load; >> 226 regulator-system-load = <200000>; >> 227 }; >> 228 >> 229 l12 { >> 230 regulator-min-microvolt = <1800000>; >> 231 regulator-max-microvolt = <2950000>; >> 232 }; >> 233 >> 234 l13 { >> 235 regulator-min-microvolt = <3075000>; >> 236 regulator-max-microvolt = <3075000>; >> 237 }; >> 238 >> 239 l14 { >> 240 regulator-min-microvolt = <1800000>; >> 241 regulator-max-microvolt = <3300000>; >> 242 }; >> 243 >> 244 l15 { >> 245 regulator-min-microvolt = <1800000>; >> 246 regulator-max-microvolt = <3300000>; >> 247 }; >> 248 >> 249 l16 { >> 250 regulator-min-microvolt = <1800000>; >> 251 regulator-max-microvolt = <3300000>; >> 252 }; >> 253 >> 254 l17 { >> 255 regulator-min-microvolt = <2850000>; >> 256 regulator-max-microvolt = <2850000>; >> 257 }; >> 258 >> 259 l18 { >> 260 regulator-min-microvolt = <2700000>; >> 261 regulator-max-microvolt = <2700000>; >> 262 }; 202 }; 263 }; 203 264 204 &tlmm { !! 265 &msmgpio { 205 gpio_keys_default: gpio-keys-default-s !! 266 gpio_keys_default: gpio-keys-default { 206 pins = "gpio107", "gpio117"; 267 pins = "gpio107", "gpio117"; 207 function = "gpio"; 268 function = "gpio"; 208 269 209 drive-strength = <2>; 270 drive-strength = <2>; 210 bias-pull-up; 271 bias-pull-up; 211 }; 272 }; 212 273 213 imu_default: imu-default-state { !! 274 imu_default: imu-default { 214 pins = "gpio36"; 275 pins = "gpio36"; 215 function = "gpio"; 276 function = "gpio"; 216 277 217 drive-strength = <2>; 278 drive-strength = <2>; 218 bias-disable; 279 bias-disable; 219 }; 280 }; 220 281 221 mag_reset_default: mag-reset-default-s !! 282 mag_reset_default: mag-reset-default { 222 pins = "gpio112"; 283 pins = "gpio112"; 223 function = "gpio"; 284 function = "gpio"; 224 285 225 drive-strength = <2>; 286 drive-strength = <2>; 226 bias-disable; 287 bias-disable; 227 }; 288 }; 228 289 229 sd_vmmc_en_default: sd-vmmc-en-default !! 290 sd_vmmc_en_default: sd-vmmc-en-default { 230 pins = "gpio87"; 291 pins = "gpio87"; 231 function = "gpio"; 292 function = "gpio"; 232 293 233 drive-strength = <2>; 294 drive-strength = <2>; 234 bias-disable; 295 bias-disable; 235 }; 296 }; 236 297 237 sdc2_cd_default: sdc2-cd-default-state !! 298 touchscreen_default: touchscreen-default { 238 pins = "gpio38"; !! 299 pins = "gpio13"; 239 function = "gpio"; 300 function = "gpio"; 240 drive-strength = <2>; << 241 bias-disable; << 242 }; << 243 << 244 touchscreen_default: touchscreen-defau << 245 touch-pins { << 246 pins = "gpio13"; << 247 function = "gpio"; << 248 301 249 drive-strength = <2>; !! 302 drive-strength = <2>; 250 bias-pull-up; !! 303 bias-pull-up; 251 }; << 252 304 253 reset-pins { !! 305 reset { 254 pins = "gpio12"; 306 pins = "gpio12"; 255 function = "gpio"; 307 function = "gpio"; 256 308 257 drive-strength = <2>; 309 drive-strength = <2>; 258 bias-disable; 310 bias-disable; 259 }; 311 }; 260 }; 312 }; 261 313 262 usb_id_default: usb-id-default-state { !! 314 usb_id_default: usb-id-default { 263 pins = "gpio110"; 315 pins = "gpio110"; 264 function = "gpio"; 316 function = "gpio"; 265 317 266 drive-strength = <8>; 318 drive-strength = <8>; 267 bias-pull-up; 319 bias-pull-up; 268 }; 320 }; 269 }; 321 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.