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 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/leds/common.h> 12 10 13 / { 11 / { 14 model = "Longcheer L8150"; 12 model = "Longcheer L8150"; 15 compatible = "longcheer,l8150", "qcom, !! 13 compatible = "longcheer,l8150", "qcom,msm8916-v1-qrd/9-v1", "qcom,msm8916"; 16 chassis-type = "handset"; 14 chassis-type = "handset"; 17 15 18 aliases { 16 aliases { 19 mmc0 = &sdhc_1; /* eMMC */ 17 mmc0 = &sdhc_1; /* eMMC */ 20 mmc1 = &sdhc_2; /* SD card */ 18 mmc1 = &sdhc_2; /* SD card */ 21 serial0 = &blsp_uart2; 19 serial0 = &blsp_uart2; 22 }; 20 }; 23 21 24 chosen { 22 chosen { 25 stdout-path = "serial0"; 23 stdout-path = "serial0"; 26 }; 24 }; 27 25 28 /* 26 /* 29 * For some reason, the signed wcnss f 27 * For some reason, the signed wcnss firmware is not relocatable. 30 * It must be loaded at 0x8b600000. Un !! 28 * It must be loaded at 0x8b600000. All other firmware is relocatable, 31 * mpss_mem does not fit when loaded t !! 29 * so place wcnss at the fixed address and then all other firmware 32 * !! 30 * regions will be automatically allocated at a fitting place. 33 * Load wcnss_mem to the fixed address << 34 * working higher address. For some re << 35 * boot when placed at 0x8a800000 to 0 << 36 */ 31 */ 37 reserved-memory { 32 reserved-memory { 38 /delete-node/ mpss@86800000; << 39 /delete-node/ wcnss; 33 /delete-node/ wcnss; 40 34 41 wcnss_mem: wcnss@8b600000 { 35 wcnss_mem: wcnss@8b600000 { 42 reg = <0x0 0x8b600000 36 reg = <0x0 0x8b600000 0x0 0x600000>; 43 no-map; 37 no-map; 44 }; 38 }; 45 << 46 mpss_mem: mpss@8e800000 { << 47 reg = <0x0 0x8e800000 << 48 no-map; << 49 }; << 50 }; << 51 << 52 battery: battery { << 53 compatible = "simple-battery"; << 54 voltage-min-design-microvolt = << 55 voltage-max-design-microvolt = << 56 energy-full-design-microwatt-h << 57 charge-full-design-microamp-ho << 58 << 59 ocv-capacity-celsius = <25>; << 60 ocv-capacity-table-0 = <433000 << 61 <4208000 90>, <4153000 << 62 <4001000 70>, <3962000 << 63 <3839000 50>, <3817000 << 64 <3767000 30>, <3747000 << 65 <3688000 13>, <3681000 << 66 <3677000 8>, <3674000 << 67 <3597000 4>, <3537000 << 68 <3000000 0>; << 69 }; 39 }; 70 40 71 gpio-keys { 41 gpio-keys { 72 compatible = "gpio-keys"; 42 compatible = "gpio-keys"; 73 43 74 pinctrl-names = "default"; 44 pinctrl-names = "default"; 75 pinctrl-0 = <&gpio_keys_defaul 45 pinctrl-0 = <&gpio_keys_default>; 76 46 77 label = "GPIO Buttons"; 47 label = "GPIO Buttons"; 78 48 79 button-volume-up { 49 button-volume-up { 80 label = "Volume Up"; 50 label = "Volume Up"; 81 gpios = <&tlmm 107 GPI 51 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; 82 linux,code = <KEY_VOLU 52 linux,code = <KEY_VOLUMEUP>; 83 }; 53 }; 84 }; 54 }; 85 55 86 reg_ctp: regulator-ctp { 56 reg_ctp: regulator-ctp { 87 compatible = "regulator-fixed" 57 compatible = "regulator-fixed"; 88 regulator-name = "ctp"; 58 regulator-name = "ctp"; 89 59 90 regulator-min-microvolt = <280 60 regulator-min-microvolt = <2800000>; 91 regulator-max-microvolt = <280 61 regulator-max-microvolt = <2800000>; 92 62 93 gpio = <&tlmm 17 GPIO_ACTIVE_H 63 gpio = <&tlmm 17 GPIO_ACTIVE_HIGH>; 94 enable-active-high; 64 enable-active-high; 95 65 96 pinctrl-names = "default"; 66 pinctrl-names = "default"; 97 pinctrl-0 = <&ctp_pwr_en_defau 67 pinctrl-0 = <&ctp_pwr_en_default>; 98 }; 68 }; 99 69 100 flash-led-controller { 70 flash-led-controller { 101 compatible = "sgmicro,sgm3140" 71 compatible = "sgmicro,sgm3140"; 102 flash-gpios = <&tlmm 31 GPIO_A 72 flash-gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>; 103 enable-gpios = <&tlmm 32 GPIO_ 73 enable-gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>; 104 74 105 pinctrl-names = "default"; 75 pinctrl-names = "default"; 106 pinctrl-0 = <&camera_flash_def 76 pinctrl-0 = <&camera_flash_default>; 107 77 108 flash_led: led { 78 flash_led: led { 109 function = LED_FUNCTIO 79 function = LED_FUNCTION_FLASH; 110 color = <LED_COLOR_ID_ 80 color = <LED_COLOR_ID_WHITE>; 111 flash-max-timeout-us = 81 flash-max-timeout-us = <250000>; 112 }; 82 }; 113 }; 83 }; 114 }; 84 }; 115 85 116 &blsp_i2c1 { 86 &blsp_i2c1 { 117 status = "okay"; 87 status = "okay"; 118 88 119 led-controller@45 { 89 led-controller@45 { 120 compatible = "awinic,aw2013"; 90 compatible = "awinic,aw2013"; 121 reg = <0x45>; 91 reg = <0x45>; 122 #address-cells = <1>; 92 #address-cells = <1>; 123 #size-cells = <0>; 93 #size-cells = <0>; 124 94 125 vcc-supply = <&pm8916_l17>; 95 vcc-supply = <&pm8916_l17>; 126 vio-supply = <&pm8916_l6>; 96 vio-supply = <&pm8916_l6>; 127 97 128 led@0 { 98 led@0 { 129 reg = <0>; 99 reg = <0>; 130 led-max-microamp = <50 100 led-max-microamp = <5000>; 131 function = LED_FUNCTIO 101 function = LED_FUNCTION_INDICATOR; 132 color = <LED_COLOR_ID_ 102 color = <LED_COLOR_ID_RED>; 133 }; 103 }; 134 104 135 led@1 { 105 led@1 { 136 reg = <1>; 106 reg = <1>; 137 led-max-microamp = <50 107 led-max-microamp = <5000>; 138 function = LED_FUNCTIO 108 function = LED_FUNCTION_INDICATOR; 139 color = <LED_COLOR_ID_ 109 color = <LED_COLOR_ID_GREEN>; 140 }; 110 }; 141 111 142 led@2 { 112 led@2 { 143 reg = <2>; 113 reg = <2>; 144 led-max-microamp = <50 114 led-max-microamp = <5000>; 145 function = LED_FUNCTIO 115 function = LED_FUNCTION_INDICATOR; 146 color = <LED_COLOR_ID_ 116 color = <LED_COLOR_ID_BLUE>; 147 }; 117 }; 148 }; 118 }; 149 }; 119 }; 150 120 151 &blsp_i2c2 { 121 &blsp_i2c2 { 152 status = "okay"; 122 status = "okay"; 153 123 154 accelerometer@10 { 124 accelerometer@10 { 155 compatible = "bosch,bmc156_acc 125 compatible = "bosch,bmc156_accel"; 156 reg = <0x10>; 126 reg = <0x10>; 157 127 158 /* 128 /* 159 * For some reason the interru 129 * For some reason the interrupt line is usually not connected 160 * to the BMC156. However, the 130 * to the BMC156. However, there are two pads next to the chip 161 * that can be shorted to make 131 * that can be shorted to make it work if needed. 162 * 132 * 163 * interrupt-parent = <&tlmm>; 133 * interrupt-parent = <&tlmm>; 164 * interrupts = <116 IRQ_TYPE_ 134 * interrupts = <116 IRQ_TYPE_EDGE_RISING>; 165 */ 135 */ 166 136 167 pinctrl-names = "default"; 137 pinctrl-names = "default"; 168 pinctrl-0 = <&accel_int_defaul 138 pinctrl-0 = <&accel_int_default>; 169 139 170 vdd-supply = <&pm8916_l17>; 140 vdd-supply = <&pm8916_l17>; 171 vddio-supply = <&pm8916_l6>; 141 vddio-supply = <&pm8916_l6>; 172 142 173 mount-matrix = "0", "1", "0", 143 mount-matrix = "0", "1", "0", 174 "-1", "0", "0", 144 "-1", "0", "0", 175 "0", "0", "1"; 145 "0", "0", "1"; 176 }; 146 }; 177 147 178 magnetometer@12 { 148 magnetometer@12 { 179 compatible = "bosch,bmc156_mag 149 compatible = "bosch,bmc156_magn"; 180 reg = <0x12>; 150 reg = <0x12>; 181 151 182 interrupt-parent = <&tlmm>; 152 interrupt-parent = <&tlmm>; 183 interrupts = <113 IRQ_TYPE_EDG 153 interrupts = <113 IRQ_TYPE_EDGE_RISING>; 184 154 185 pinctrl-names = "default"; 155 pinctrl-names = "default"; 186 pinctrl-0 = <&magn_int_default 156 pinctrl-0 = <&magn_int_default>; 187 157 188 vdd-supply = <&pm8916_l17>; 158 vdd-supply = <&pm8916_l17>; 189 vddio-supply = <&pm8916_l6>; 159 vddio-supply = <&pm8916_l6>; 190 }; 160 }; 191 161 192 light-sensor@23 { 162 light-sensor@23 { 193 compatible = "liteon,ltr559"; 163 compatible = "liteon,ltr559"; 194 reg = <0x23>; 164 reg = <0x23>; 195 proximity-near-level = <75>; 165 proximity-near-level = <75>; 196 166 197 interrupt-parent = <&tlmm>; 167 interrupt-parent = <&tlmm>; 198 interrupts = <115 IRQ_TYPE_EDG 168 interrupts = <115 IRQ_TYPE_EDGE_FALLING>; 199 169 200 pinctrl-names = "default"; 170 pinctrl-names = "default"; 201 pinctrl-0 = <&light_int_defaul 171 pinctrl-0 = <&light_int_default>; 202 172 203 vdd-supply = <&pm8916_l17>; 173 vdd-supply = <&pm8916_l17>; 204 vddio-supply = <&pm8916_l6>; 174 vddio-supply = <&pm8916_l6>; 205 }; 175 }; 206 176 207 gyroscope@68 { 177 gyroscope@68 { 208 compatible = "bosch,bmg160"; 178 compatible = "bosch,bmg160"; 209 reg = <0x68>; 179 reg = <0x68>; 210 180 211 interrupt-parent = <&tlmm>; 181 interrupt-parent = <&tlmm>; 212 interrupts = <23 IRQ_TYPE_EDGE 182 interrupts = <23 IRQ_TYPE_EDGE_RISING>, 213 <22 IRQ_TYPE_EDGE 183 <22 IRQ_TYPE_EDGE_RISING>; 214 184 215 pinctrl-names = "default"; 185 pinctrl-names = "default"; 216 pinctrl-0 = <&gyro_int_default 186 pinctrl-0 = <&gyro_int_default>; 217 187 218 vdd-supply = <&pm8916_l17>; 188 vdd-supply = <&pm8916_l17>; 219 vddio-supply = <&pm8916_l6>; 189 vddio-supply = <&pm8916_l6>; 220 }; 190 }; 221 }; 191 }; 222 192 223 &blsp_i2c5 { 193 &blsp_i2c5 { 224 status = "okay"; 194 status = "okay"; 225 195 226 rmi4@20 { 196 rmi4@20 { 227 compatible = "syna,rmi4-i2c"; 197 compatible = "syna,rmi4-i2c"; 228 reg = <0x20>; 198 reg = <0x20>; 229 #address-cells = <1>; 199 #address-cells = <1>; 230 #size-cells = <0>; 200 #size-cells = <0>; 231 201 232 interrupt-parent = <&tlmm>; 202 interrupt-parent = <&tlmm>; 233 interrupts = <13 IRQ_TYPE_EDGE 203 interrupts = <13 IRQ_TYPE_EDGE_FALLING>; 234 204 235 vdd-supply = <®_ctp>; 205 vdd-supply = <®_ctp>; 236 vio-supply = <&pm8916_l6>; 206 vio-supply = <&pm8916_l6>; 237 207 238 pinctrl-names = "default"; 208 pinctrl-names = "default"; 239 pinctrl-0 = <&tp_int_default>; 209 pinctrl-0 = <&tp_int_default>; 240 210 241 syna,startup-delay-ms = <10>; 211 syna,startup-delay-ms = <10>; 242 212 243 rmi4-f01@1 { 213 rmi4-f01@1 { 244 reg = <0x1>; 214 reg = <0x1>; 245 syna,nosleep-mode = <1 215 syna,nosleep-mode = <1>; /* Allow sleeping */ 246 }; 216 }; 247 217 248 rmi4-f12@12 { 218 rmi4-f12@12 { 249 reg = <0x12>; 219 reg = <0x12>; 250 syna,sensor-type = <1> 220 syna,sensor-type = <1>; /* Touchscreen */ 251 }; 221 }; 252 }; 222 }; 253 }; 223 }; 254 224 255 &blsp_uart2 { 225 &blsp_uart2 { 256 status = "okay"; 226 status = "okay"; 257 }; 227 }; 258 228 259 &pm8916_bms { << 260 status = "okay"; << 261 << 262 monitored-battery = <&battery>; << 263 power-supplies = <&pm8916_charger>; << 264 }; << 265 << 266 &pm8916_charger { << 267 status = "okay"; << 268 << 269 monitored-battery = <&battery>; << 270 << 271 qcom,fast-charge-safe-current = <90000 << 272 qcom,fast-charge-safe-voltage = <43000 << 273 }; << 274 << 275 &pm8916_codec { << 276 qcom,micbias-lvl = <2800>; << 277 qcom,mbhc-vthreshold-low = <75 150 237 << 278 qcom,mbhc-vthreshold-high = <75 150 23 << 279 qcom,hphl-jack-type-normally-open; << 280 }; << 281 << 282 &pm8916_resin { 229 &pm8916_resin { 283 status = "okay"; 230 status = "okay"; 284 linux,code = <KEY_VOLUMEDOWN>; 231 linux,code = <KEY_VOLUMEDOWN>; 285 }; 232 }; 286 233 287 &pm8916_rpm_regulators { 234 &pm8916_rpm_regulators { 288 pm8916_l17: l17 { 235 pm8916_l17: l17 { 289 regulator-min-microvolt = <285 236 regulator-min-microvolt = <2850000>; 290 regulator-max-microvolt = <285 237 regulator-max-microvolt = <2850000>; 291 }; 238 }; 292 }; 239 }; 293 240 >> 241 &pm8916_usbin { >> 242 status = "okay"; >> 243 }; >> 244 294 &pm8916_vib { 245 &pm8916_vib { 295 status = "okay"; 246 status = "okay"; 296 }; 247 }; 297 248 298 &sdhc_1 { 249 &sdhc_1 { 299 status = "okay"; 250 status = "okay"; 300 }; 251 }; 301 252 302 &sdhc_2 { 253 &sdhc_2 { 303 status = "okay"; 254 status = "okay"; 304 non-removable; 255 non-removable; 305 }; 256 }; 306 257 307 &sound { << 308 audio-routing = << 309 "AMIC1", "MIC BIAS Internal1", << 310 "AMIC2", "MIC BIAS Internal2", << 311 "AMIC3", "MIC BIAS Internal3"; << 312 }; << 313 << 314 &usb { 258 &usb { 315 status = "okay"; 259 status = "okay"; 316 dr_mode = "peripheral"; 260 dr_mode = "peripheral"; 317 extcon = <&pm8916_charger>; !! 261 extcon = <&pm8916_usbin>; 318 }; 262 }; 319 263 320 &usb_hs_phy { 264 &usb_hs_phy { 321 extcon = <&pm8916_charger>; !! 265 extcon = <&pm8916_usbin>; 322 }; 266 }; 323 267 324 &venus { 268 &venus { 325 status = "okay"; 269 status = "okay"; 326 }; 270 }; 327 271 328 &venus_mem { 272 &venus_mem { 329 status = "okay"; 273 status = "okay"; 330 }; 274 }; 331 275 332 &wcnss { 276 &wcnss { 333 status = "okay"; 277 status = "okay"; 334 }; 278 }; 335 279 336 &wcnss_iris { 280 &wcnss_iris { 337 compatible = "qcom,wcn3620"; 281 compatible = "qcom,wcn3620"; 338 }; 282 }; 339 283 340 &wcnss_mem { 284 &wcnss_mem { 341 status = "okay"; 285 status = "okay"; 342 }; 286 }; 343 287 344 &tlmm { 288 &tlmm { 345 accel_int_default: accel-int-default-s 289 accel_int_default: accel-int-default-state { 346 pins = "gpio116"; 290 pins = "gpio116"; 347 function = "gpio"; 291 function = "gpio"; 348 292 349 drive-strength = <2>; 293 drive-strength = <2>; 350 bias-disable; 294 bias-disable; 351 }; 295 }; 352 296 353 camera_flash_default: camera-flash-def 297 camera_flash_default: camera-flash-default-state { 354 pins = "gpio31", "gpio32"; 298 pins = "gpio31", "gpio32"; 355 function = "gpio"; 299 function = "gpio"; 356 300 357 drive-strength = <2>; 301 drive-strength = <2>; 358 bias-disable; 302 bias-disable; 359 }; 303 }; 360 304 361 ctp_pwr_en_default: ctp-pwr-en-default 305 ctp_pwr_en_default: ctp-pwr-en-default-state { 362 pins = "gpio17"; 306 pins = "gpio17"; 363 function = "gpio"; 307 function = "gpio"; 364 308 365 drive-strength = <2>; 309 drive-strength = <2>; 366 bias-disable; 310 bias-disable; 367 }; 311 }; 368 312 369 gpio_keys_default: gpio-keys-default-s 313 gpio_keys_default: gpio-keys-default-state { 370 pins = "gpio107"; 314 pins = "gpio107"; 371 function = "gpio"; 315 function = "gpio"; 372 316 373 drive-strength = <2>; 317 drive-strength = <2>; 374 bias-pull-up; 318 bias-pull-up; 375 }; 319 }; 376 320 377 gyro_int_default: gyro-int-default-sta 321 gyro_int_default: gyro-int-default-state { 378 pins = "gpio22", "gpio23"; 322 pins = "gpio22", "gpio23"; 379 function = "gpio"; 323 function = "gpio"; 380 324 381 drive-strength = <2>; 325 drive-strength = <2>; 382 bias-disable; 326 bias-disable; 383 }; 327 }; 384 328 385 light_int_default: light-int-default-s 329 light_int_default: light-int-default-state { 386 pins = "gpio115"; 330 pins = "gpio115"; 387 function = "gpio"; 331 function = "gpio"; 388 332 389 drive-strength = <2>; 333 drive-strength = <2>; 390 bias-disable; 334 bias-disable; 391 }; 335 }; 392 336 393 magn_int_default: magn-int-default-sta 337 magn_int_default: magn-int-default-state { 394 pins = "gpio113"; 338 pins = "gpio113"; 395 function = "gpio"; 339 function = "gpio"; 396 340 397 drive-strength = <2>; 341 drive-strength = <2>; 398 bias-disable; 342 bias-disable; 399 }; 343 }; 400 344 401 tp_int_default: tp-int-default-state { 345 tp_int_default: tp-int-default-state { 402 pins = "gpio13"; 346 pins = "gpio13"; 403 function = "gpio"; 347 function = "gpio"; 404 348 405 drive-strength = <2>; 349 drive-strength = <2>; 406 bias-disable; 350 bias-disable; 407 }; 351 }; 408 }; 352 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.