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/leds/common.h> 8 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h << 12 9 13 / { 10 / { 14 model = "BQ Aquaris X5 (Longcheer L891 11 model = "BQ Aquaris X5 (Longcheer L8910)"; 15 compatible = "longcheer,l8910", "qcom, 12 compatible = "longcheer,l8910", "qcom,msm8916"; 16 chassis-type = "handset"; 13 chassis-type = "handset"; 17 14 18 aliases { 15 aliases { 19 mmc0 = &sdhc_1; /* eMMC */ 16 mmc0 = &sdhc_1; /* eMMC */ 20 mmc1 = &sdhc_2; /* SD card */ 17 mmc1 = &sdhc_2; /* SD card */ 21 serial0 = &blsp_uart2; 18 serial0 = &blsp_uart2; 22 }; 19 }; 23 20 24 chosen { 21 chosen { 25 stdout-path = "serial0"; 22 stdout-path = "serial0"; 26 }; 23 }; 27 24 28 speaker_amp: audio-amplifier { << 29 compatible = "awinic,aw8738"; << 30 mode-gpios = <&tlmm 114 GPIO_A << 31 awinic,mode = <5>; << 32 sound-name-prefix = "Speaker A << 33 << 34 pinctrl-0 = <&spk_ext_pa_defau << 35 pinctrl-names = "default"; << 36 }; << 37 << 38 flash-led-controller { 25 flash-led-controller { 39 compatible = "ocs,ocp8110"; 26 compatible = "ocs,ocp8110"; 40 enable-gpios = <&tlmm 49 GPIO_ 27 enable-gpios = <&tlmm 49 GPIO_ACTIVE_HIGH>; 41 flash-gpios = <&tlmm 119 GPIO_ 28 flash-gpios = <&tlmm 119 GPIO_ACTIVE_HIGH>; 42 29 43 pinctrl-0 = <&camera_front_fla 30 pinctrl-0 = <&camera_front_flash_default>; 44 pinctrl-names = "default"; 31 pinctrl-names = "default"; 45 32 46 flash_led: led { 33 flash_led: led { 47 function = LED_FUNCTIO 34 function = LED_FUNCTION_FLASH; 48 color = <LED_COLOR_ID_ 35 color = <LED_COLOR_ID_WHITE>; 49 flash-max-timeout-us = 36 flash-max-timeout-us = <250000>; 50 }; 37 }; 51 }; 38 }; 52 39 53 gpio-keys { 40 gpio-keys { 54 compatible = "gpio-keys"; 41 compatible = "gpio-keys"; 55 42 56 pinctrl-names = "default"; 43 pinctrl-names = "default"; 57 pinctrl-0 = <&gpio_keys_defaul 44 pinctrl-0 = <&gpio_keys_default>; 58 45 59 label = "GPIO Buttons"; 46 label = "GPIO Buttons"; 60 47 61 button-volume-up { 48 button-volume-up { 62 label = "Volume Up"; 49 label = "Volume Up"; 63 gpios = <&tlmm 107 GPI 50 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; 64 linux,code = <KEY_VOLU 51 linux,code = <KEY_VOLUMEUP>; 65 }; 52 }; 66 }; 53 }; 67 54 68 leds { 55 leds { 69 compatible = "gpio-leds"; 56 compatible = "gpio-leds"; 70 57 71 led-0 { 58 led-0 { 72 gpios = <&tlmm 17 GPIO 59 gpios = <&tlmm 17 GPIO_ACTIVE_HIGH>; 73 color = <LED_COLOR_ID_ 60 color = <LED_COLOR_ID_WHITE>; 74 default-state = "off"; 61 default-state = "off"; 75 function = LED_FUNCTIO 62 function = LED_FUNCTION_KBD_BACKLIGHT; 76 63 77 pinctrl-names = "defau 64 pinctrl-names = "default"; 78 pinctrl-0 = <&button_b 65 pinctrl-0 = <&button_backlight_default>; 79 }; 66 }; 80 }; 67 }; 81 68 82 usb_id: usb-id { 69 usb_id: usb-id { 83 compatible = "linux,extcon-usb 70 compatible = "linux,extcon-usb-gpio"; 84 id-gpios = <&tlmm 110 GPIO_ACT 71 id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>; 85 pinctrl-names = "default"; 72 pinctrl-names = "default"; 86 pinctrl-0 = <&usb_id_default>; 73 pinctrl-0 = <&usb_id_default>; 87 }; 74 }; 88 }; 75 }; 89 76 90 &blsp_i2c2 { << 91 status = "okay"; << 92 << 93 led-controller@30 { << 94 compatible = "kinetic,ktd2026" << 95 reg = <0x30>; << 96 #address-cells = <1>; << 97 #size-cells = <0>; << 98 << 99 vin-supply = <&pm8916_l17>; << 100 vio-supply = <&pm8916_l6>; << 101 << 102 pinctrl-0 = <&status_led_defau << 103 pinctrl-names = "default"; << 104 << 105 multi-led { << 106 color = <LED_COLOR_ID_ << 107 function = LED_FUNCTIO << 108 << 109 #address-cells = <1>; << 110 #size-cells = <0>; << 111 << 112 led@0 { << 113 reg = <0>; << 114 color = <LED_C << 115 }; << 116 << 117 led@1 { << 118 reg = <1>; << 119 color = <LED_C << 120 }; << 121 << 122 led@2 { << 123 reg = <2>; << 124 color = <LED_C << 125 }; << 126 }; << 127 }; << 128 << 129 flash-led-controller@53 { << 130 compatible = "silergy,sy7802"; << 131 reg = <0x53>; << 132 << 133 enable-gpios = <&tlmm 16 GPIO_ << 134 << 135 pinctrl-0 = <&camera_rear_flas << 136 pinctrl-names = "default"; << 137 << 138 #address-cells = <1>; << 139 #size-cells = <0>; << 140 << 141 led@0 { << 142 reg = <0>; << 143 function = LED_FUNCTIO << 144 color = <LED_COLOR_ID_ << 145 led-sources = <0>, <1> << 146 }; << 147 }; << 148 }; << 149 << 150 &blsp_i2c3 { 77 &blsp_i2c3 { 151 status = "okay"; 78 status = "okay"; 152 79 153 magnetometer@d { 80 magnetometer@d { 154 compatible = "asahi-kasei,ak09 81 compatible = "asahi-kasei,ak09911"; 155 reg = <0x0d>; 82 reg = <0x0d>; 156 83 157 vdd-supply = <&pm8916_l17>; 84 vdd-supply = <&pm8916_l17>; 158 vid-supply = <&pm8916_l6>; 85 vid-supply = <&pm8916_l6>; 159 86 160 reset-gpios = <&tlmm 111 GPIO_ 87 reset-gpios = <&tlmm 111 GPIO_ACTIVE_LOW>; 161 88 162 pinctrl-names = "default"; 89 pinctrl-names = "default"; 163 pinctrl-0 = <&mag_reset_defaul 90 pinctrl-0 = <&mag_reset_default>; 164 }; 91 }; 165 92 166 imu@68 { 93 imu@68 { 167 compatible = "bosch,bmi160"; 94 compatible = "bosch,bmi160"; 168 reg = <0x68>; 95 reg = <0x68>; 169 96 170 vdd-supply = <&pm8916_l17>; 97 vdd-supply = <&pm8916_l17>; 171 vddio-supply = <&pm8916_l6>; 98 vddio-supply = <&pm8916_l6>; 172 99 173 mount-matrix = "0", "1", "0", 100 mount-matrix = "0", "1", "0", 174 "-1", "0", "0", 101 "-1", "0", "0", 175 "0", "0", "1"; 102 "0", "0", "1"; 176 }; 103 }; 177 }; 104 }; 178 105 179 &blsp_uart2 { 106 &blsp_uart2 { 180 status = "okay"; 107 status = "okay"; 181 }; 108 }; 182 109 183 &mpss_mem { << 184 reg = <0x0 0x86800000 0x0 0x5000000>; << 185 }; << 186 << 187 &pm8916_codec { << 188 qcom,micbias-lvl = <2800>; << 189 qcom,mbhc-vthreshold-low = <75 100 120 << 190 qcom,mbhc-vthreshold-high = <75 100 12 << 191 qcom,hphl-jack-type-normally-open; << 192 }; << 193 << 194 &pm8916_gpios { << 195 status_led_default: status-led-default << 196 pins = "gpio3"; << 197 function = PMIC_GPIO_FUNC_NORM << 198 power-source = <PM8916_GPIO_VP << 199 bias-disable; << 200 output-high; << 201 }; << 202 }; << 203 << 204 &pm8916_resin { 110 &pm8916_resin { 205 status = "okay"; 111 status = "okay"; 206 linux,code = <KEY_VOLUMEDOWN>; 112 linux,code = <KEY_VOLUMEDOWN>; 207 }; 113 }; 208 114 209 &pm8916_rpm_regulators { 115 &pm8916_rpm_regulators { 210 pm8916_l17: l17 { 116 pm8916_l17: l17 { 211 regulator-min-microvolt = <285 117 regulator-min-microvolt = <2850000>; 212 regulator-max-microvolt = <285 118 regulator-max-microvolt = <2850000>; 213 }; 119 }; 214 }; 120 }; 215 121 216 &pm8916_vib { 122 &pm8916_vib { 217 status = "okay"; 123 status = "okay"; 218 }; 124 }; 219 125 220 &sdhc_1 { 126 &sdhc_1 { 221 status = "okay"; 127 status = "okay"; 222 }; 128 }; 223 129 224 &sdhc_2 { 130 &sdhc_2 { 225 status = "okay"; 131 status = "okay"; 226 132 227 pinctrl-names = "default", "sleep"; 133 pinctrl-names = "default", "sleep"; 228 pinctrl-0 = <&sdc2_default &sdc2_cd_de 134 pinctrl-0 = <&sdc2_default &sdc2_cd_default>; 229 pinctrl-1 = <&sdc2_sleep &sdc2_cd_defa 135 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>; 230 136 231 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; 137 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; 232 }; 138 }; 233 139 234 &sound { << 235 /* << 236 * Provide widgets/pin-switches to all << 237 * The hardware does not provide a way << 238 * headphone jack when the speaker is << 239 */ << 240 model = "bq-paella"; << 241 widgets = << 242 "Speaker", "Speaker", << 243 "Headphone", "Headphones"; << 244 pin-switches = "Speaker"; << 245 audio-routing = << 246 "Speaker", "Speaker Amp OUT", << 247 "Speaker Amp IN", "HPH_R", << 248 "Headphones", "HPH_L", << 249 "Headphones", "HPH_R", << 250 "AMIC1", "MIC BIAS External1", << 251 "AMIC2", "MIC BIAS Internal2", << 252 "AMIC3", "MIC BIAS External1"; << 253 aux-devs = <&speaker_amp>; << 254 }; << 255 << 256 &usb { 140 &usb { 257 status = "okay"; 141 status = "okay"; 258 extcon = <&usb_id>, <&usb_id>; 142 extcon = <&usb_id>, <&usb_id>; 259 }; 143 }; 260 144 261 &usb_hs_phy { 145 &usb_hs_phy { 262 extcon = <&usb_id>; 146 extcon = <&usb_id>; 263 }; 147 }; 264 148 265 &venus { 149 &venus { 266 status = "okay"; 150 status = "okay"; 267 }; 151 }; 268 152 269 &venus_mem { 153 &venus_mem { 270 status = "okay"; 154 status = "okay"; 271 }; 155 }; 272 156 273 &wcnss { 157 &wcnss { 274 status = "okay"; 158 status = "okay"; 275 }; 159 }; 276 160 277 &wcnss_iris { 161 &wcnss_iris { 278 compatible = "qcom,wcn3620"; 162 compatible = "qcom,wcn3620"; 279 }; 163 }; 280 164 281 &wcnss_mem { 165 &wcnss_mem { 282 status = "okay"; 166 status = "okay"; 283 }; 167 }; 284 168 285 &tlmm { 169 &tlmm { 286 button_backlight_default: button-backl 170 button_backlight_default: button-backlight-default-state { 287 pins = "gpio17"; 171 pins = "gpio17"; 288 function = "gpio"; 172 function = "gpio"; 289 173 290 drive-strength = <2>; 174 drive-strength = <2>; 291 bias-disable; 175 bias-disable; 292 }; 176 }; 293 177 294 camera_front_flash_default: camera-fro 178 camera_front_flash_default: camera-front-flash-default-state { 295 pins = "gpio49", "gpio119"; 179 pins = "gpio49", "gpio119"; 296 function = "gpio"; 180 function = "gpio"; 297 drive-strength = <2>; 181 drive-strength = <2>; 298 bias-disable; 182 bias-disable; 299 }; 183 }; 300 184 301 camera_rear_flash_default: camera-rear << 302 pins = "gpio9", "gpio16", "gpi << 303 function = "gpio"; << 304 drive-strength = <2>; << 305 bias-disable; << 306 }; << 307 << 308 gpio_keys_default: gpio-keys-default-s 185 gpio_keys_default: gpio-keys-default-state { 309 pins = "gpio107"; 186 pins = "gpio107"; 310 function = "gpio"; 187 function = "gpio"; 311 188 312 drive-strength = <2>; 189 drive-strength = <2>; 313 bias-pull-up; 190 bias-pull-up; 314 }; 191 }; 315 192 316 mag_reset_default: mag-reset-default-s 193 mag_reset_default: mag-reset-default-state { 317 pins = "gpio111"; 194 pins = "gpio111"; 318 function = "gpio"; 195 function = "gpio"; 319 196 320 drive-strength = <2>; 197 drive-strength = <2>; 321 bias-disable; 198 bias-disable; 322 }; 199 }; 323 200 324 sdc2_cd_default: sdc2-cd-default-state 201 sdc2_cd_default: sdc2-cd-default-state { 325 pins = "gpio38"; 202 pins = "gpio38"; 326 function = "gpio"; << 327 drive-strength = <2>; << 328 bias-disable; << 329 }; << 330 << 331 spk_ext_pa_default: spk-ext-pa-default << 332 pins = "gpio114"; << 333 function = "gpio"; 203 function = "gpio"; 334 drive-strength = <2>; 204 drive-strength = <2>; 335 bias-disable; 205 bias-disable; 336 }; 206 }; 337 207 338 usb_id_default: usb-id-default-state { 208 usb_id_default: usb-id-default-state { 339 pins = "gpio110"; 209 pins = "gpio110"; 340 function = "gpio"; 210 function = "gpio"; 341 211 342 drive-strength = <8>; 212 drive-strength = <8>; 343 bias-pull-up; 213 bias-pull-up; 344 }; 214 }; 345 }; 215 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.