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