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