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