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"; << 17 13 18 aliases { 14 aliases { 19 mmc0 = &sdhc_1; /* eMMC */ !! 15 serial0 = &blsp1_uart2; 20 mmc1 = &sdhc_2; /* SD card */ << 21 serial0 = &blsp_uart2; << 22 }; 16 }; 23 17 24 chosen { 18 chosen { 25 stdout-path = "serial0"; 19 stdout-path = "serial0"; 26 }; 20 }; 27 21 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 { << 39 compatible = "ocs,ocp8110"; << 40 enable-gpios = <&tlmm 49 GPIO_ << 41 flash-gpios = <&tlmm 119 GPIO_ << 42 << 43 pinctrl-0 = <&camera_front_fla << 44 pinctrl-names = "default"; << 45 << 46 flash_led: led { << 47 function = LED_FUNCTIO << 48 color = <LED_COLOR_ID_ << 49 flash-max-timeout-us = << 50 }; << 51 }; << 52 << 53 gpio-keys { 22 gpio-keys { 54 compatible = "gpio-keys"; 23 compatible = "gpio-keys"; 55 24 56 pinctrl-names = "default"; 25 pinctrl-names = "default"; 57 pinctrl-0 = <&gpio_keys_defaul 26 pinctrl-0 = <&gpio_keys_default>; 58 27 59 label = "GPIO Buttons"; 28 label = "GPIO Buttons"; 60 29 61 button-volume-up { !! 30 volume-up { 62 label = "Volume Up"; 31 label = "Volume Up"; 63 gpios = <&tlmm 107 GPI !! 32 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>; 64 linux,code = <KEY_VOLU 33 linux,code = <KEY_VOLUMEUP>; 65 }; 34 }; 66 }; 35 }; 67 36 68 leds { 37 leds { 69 compatible = "gpio-leds"; 38 compatible = "gpio-leds"; 70 39 71 led-0 { 40 led-0 { 72 gpios = <&tlmm 17 GPIO !! 41 gpios = <&msmgpio 17 GPIO_ACTIVE_HIGH>; 73 color = <LED_COLOR_ID_ 42 color = <LED_COLOR_ID_WHITE>; 74 default-state = "off"; 43 default-state = "off"; 75 function = LED_FUNCTIO 44 function = LED_FUNCTION_KBD_BACKLIGHT; 76 45 77 pinctrl-names = "defau 46 pinctrl-names = "default"; 78 pinctrl-0 = <&button_b 47 pinctrl-0 = <&button_backlight_default>; 79 }; 48 }; 80 }; 49 }; 81 50 82 usb_id: usb-id { 51 usb_id: usb-id { 83 compatible = "linux,extcon-usb 52 compatible = "linux,extcon-usb-gpio"; 84 id-gpios = <&tlmm 110 GPIO_ACT !! 53 id-gpio = <&msmgpio 110 GPIO_ACTIVE_HIGH>; 85 pinctrl-names = "default"; 54 pinctrl-names = "default"; 86 pinctrl-0 = <&usb_id_default>; 55 pinctrl-0 = <&usb_id_default>; 87 }; 56 }; 88 }; 57 }; 89 58 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 { 59 &blsp_i2c3 { 151 status = "okay"; 60 status = "okay"; 152 61 153 magnetometer@d { 62 magnetometer@d { 154 compatible = "asahi-kasei,ak09 63 compatible = "asahi-kasei,ak09911"; 155 reg = <0x0d>; 64 reg = <0x0d>; 156 65 157 vdd-supply = <&pm8916_l17>; 66 vdd-supply = <&pm8916_l17>; 158 vid-supply = <&pm8916_l6>; 67 vid-supply = <&pm8916_l6>; 159 68 160 reset-gpios = <&tlmm 111 GPIO_ !! 69 reset-gpios = <&msmgpio 111 GPIO_ACTIVE_LOW>; 161 70 162 pinctrl-names = "default"; 71 pinctrl-names = "default"; 163 pinctrl-0 = <&mag_reset_defaul 72 pinctrl-0 = <&mag_reset_default>; 164 }; 73 }; 165 74 166 imu@68 { 75 imu@68 { 167 compatible = "bosch,bmi160"; 76 compatible = "bosch,bmi160"; 168 reg = <0x68>; 77 reg = <0x68>; 169 78 170 vdd-supply = <&pm8916_l17>; 79 vdd-supply = <&pm8916_l17>; 171 vddio-supply = <&pm8916_l6>; 80 vddio-supply = <&pm8916_l6>; 172 81 173 mount-matrix = "0", "1", "0", 82 mount-matrix = "0", "1", "0", 174 "-1", "0", "0", 83 "-1", "0", "0", 175 "0", "0", "1"; 84 "0", "0", "1"; 176 }; 85 }; 177 }; 86 }; 178 87 179 &blsp_uart2 { !! 88 &blsp1_uart2 { 180 status = "okay"; 89 status = "okay"; 181 }; 90 }; 182 91 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 { 92 &pm8916_resin { 205 status = "okay"; 93 status = "okay"; 206 linux,code = <KEY_VOLUMEDOWN>; 94 linux,code = <KEY_VOLUMEDOWN>; 207 }; 95 }; 208 96 209 &pm8916_rpm_regulators { !! 97 &pm8916_vib { 210 pm8916_l17: l17 { !! 98 status = "okay"; 211 regulator-min-microvolt = <285 << 212 regulator-max-microvolt = <285 << 213 }; << 214 }; 99 }; 215 100 216 &pm8916_vib { !! 101 &pronto { 217 status = "okay"; 102 status = "okay"; 218 }; 103 }; 219 104 220 &sdhc_1 { 105 &sdhc_1 { 221 status = "okay"; 106 status = "okay"; >> 107 >> 108 pinctrl-names = "default", "sleep"; >> 109 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>; >> 110 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>; 222 }; 111 }; 223 112 224 &sdhc_2 { 113 &sdhc_2 { 225 status = "okay"; 114 status = "okay"; 226 115 227 pinctrl-names = "default", "sleep"; 116 pinctrl-names = "default", "sleep"; 228 pinctrl-0 = <&sdc2_default &sdc2_cd_de !! 117 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; 229 pinctrl-1 = <&sdc2_sleep &sdc2_cd_defa !! 118 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; 230 << 231 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; << 232 }; << 233 119 234 &sound { !! 120 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>; 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 }; 121 }; 255 122 256 &usb { 123 &usb { 257 status = "okay"; 124 status = "okay"; 258 extcon = <&usb_id>, <&usb_id>; 125 extcon = <&usb_id>, <&usb_id>; 259 }; 126 }; 260 127 261 &usb_hs_phy { 128 &usb_hs_phy { 262 extcon = <&usb_id>; 129 extcon = <&usb_id>; 263 }; 130 }; 264 131 265 &venus { !! 132 &smd_rpm_regulators { 266 status = "okay"; !! 133 vdd_l1_l2_l3-supply = <&pm8916_s3>; 267 }; !! 134 vdd_l4_l5_l6-supply = <&pm8916_s4>; >> 135 vdd_l7-supply = <&pm8916_s4>; 268 136 269 &venus_mem { !! 137 s3 { 270 status = "okay"; !! 138 regulator-min-microvolt = <1200000>; 271 }; !! 139 regulator-max-microvolt = <1300000>; >> 140 }; 272 141 273 &wcnss { !! 142 s4 { 274 status = "okay"; !! 143 regulator-min-microvolt = <1800000>; 275 }; !! 144 regulator-max-microvolt = <2100000>; >> 145 }; 276 146 277 &wcnss_iris { !! 147 l1 { 278 compatible = "qcom,wcn3620"; !! 148 regulator-min-microvolt = <1225000>; 279 }; !! 149 regulator-max-microvolt = <1225000>; >> 150 }; 280 151 281 &wcnss_mem { !! 152 l2 { 282 status = "okay"; !! 153 regulator-min-microvolt = <1200000>; 283 }; !! 154 regulator-max-microvolt = <1200000>; >> 155 }; 284 156 285 &tlmm { !! 157 l4 { 286 button_backlight_default: button-backl !! 158 regulator-min-microvolt = <2050000>; 287 pins = "gpio17"; !! 159 regulator-max-microvolt = <2050000>; 288 function = "gpio"; !! 160 }; 289 161 290 drive-strength = <2>; !! 162 l5 { 291 bias-disable; !! 163 regulator-min-microvolt = <1800000>; >> 164 regulator-max-microvolt = <1800000>; 292 }; 165 }; 293 166 294 camera_front_flash_default: camera-fro !! 167 l6 { 295 pins = "gpio49", "gpio119"; !! 168 regulator-min-microvolt = <1800000>; 296 function = "gpio"; !! 169 regulator-max-microvolt = <1800000>; 297 drive-strength = <2>; << 298 bias-disable; << 299 }; 170 }; 300 171 301 camera_rear_flash_default: camera-rear !! 172 l7 { 302 pins = "gpio9", "gpio16", "gpi !! 173 regulator-min-microvolt = <1800000>; 303 function = "gpio"; !! 174 regulator-max-microvolt = <1800000>; 304 drive-strength = <2>; << 305 bias-disable; << 306 }; 175 }; 307 176 308 gpio_keys_default: gpio-keys-default-s !! 177 l8 { 309 pins = "gpio107"; !! 178 regulator-min-microvolt = <2850000>; 310 function = "gpio"; !! 179 regulator-max-microvolt = <2900000>; >> 180 }; 311 181 312 drive-strength = <2>; !! 182 l9 { 313 bias-pull-up; !! 183 regulator-min-microvolt = <3300000>; >> 184 regulator-max-microvolt = <3300000>; 314 }; 185 }; 315 186 316 mag_reset_default: mag-reset-default-s !! 187 l10 { 317 pins = "gpio111"; !! 188 regulator-min-microvolt = <2700000>; >> 189 regulator-max-microvolt = <2800000>; >> 190 }; >> 191 >> 192 l11 { >> 193 regulator-min-microvolt = <1800000>; >> 194 regulator-max-microvolt = <2950000>; >> 195 regulator-allow-set-load; >> 196 regulator-system-load = <200000>; >> 197 }; >> 198 >> 199 l12 { >> 200 regulator-min-microvolt = <1800000>; >> 201 regulator-max-microvolt = <2950000>; >> 202 }; >> 203 >> 204 l13 { >> 205 regulator-min-microvolt = <3075000>; >> 206 regulator-max-microvolt = <3075000>; >> 207 }; >> 208 >> 209 l14 { >> 210 regulator-min-microvolt = <1800000>; >> 211 regulator-max-microvolt = <3300000>; >> 212 }; >> 213 >> 214 l15 { >> 215 regulator-min-microvolt = <1800000>; >> 216 regulator-max-microvolt = <3300000>; >> 217 }; >> 218 >> 219 l16 { >> 220 regulator-min-microvolt = <1800000>; >> 221 regulator-max-microvolt = <3300000>; >> 222 }; >> 223 >> 224 l17 { >> 225 regulator-min-microvolt = <2850000>; >> 226 regulator-max-microvolt = <2850000>; >> 227 }; >> 228 >> 229 l18 { >> 230 regulator-min-microvolt = <2700000>; >> 231 regulator-max-microvolt = <2700000>; >> 232 }; >> 233 }; >> 234 >> 235 &msmgpio { >> 236 button_backlight_default: button-backlight-default { >> 237 pins = "gpio17"; 318 function = "gpio"; 238 function = "gpio"; 319 239 320 drive-strength = <2>; 240 drive-strength = <2>; 321 bias-disable; 241 bias-disable; 322 }; 242 }; 323 243 324 sdc2_cd_default: sdc2-cd-default-state !! 244 gpio_keys_default: gpio-keys-default { 325 pins = "gpio38"; !! 245 pins = "gpio107"; 326 function = "gpio"; 246 function = "gpio"; >> 247 327 drive-strength = <2>; 248 drive-strength = <2>; 328 bias-disable; !! 249 bias-pull-up; 329 }; 250 }; 330 251 331 spk_ext_pa_default: spk-ext-pa-default !! 252 mag_reset_default: mag-reset-default { 332 pins = "gpio114"; !! 253 pins = "gpio111"; 333 function = "gpio"; 254 function = "gpio"; >> 255 334 drive-strength = <2>; 256 drive-strength = <2>; 335 bias-disable; 257 bias-disable; 336 }; 258 }; 337 259 338 usb_id_default: usb-id-default-state { !! 260 usb_id_default: usb-id-default { 339 pins = "gpio110"; 261 pins = "gpio110"; 340 function = "gpio"; 262 function = "gpio"; 341 263 342 drive-strength = <8>; 264 drive-strength = <8>; 343 bias-pull-up; 265 bias-pull-up; 344 }; 266 }; 345 }; 267 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.