1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2021, Luca Weiss <luca@z3ntu.x 3 * Copyright (c) 2021, Luca Weiss <luca@z3ntu.xyz> 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 7 8 #include "qcom-msm8226.dtsi" 8 #include "qcom-msm8226.dtsi" 9 #include "pm8226.dtsi" 9 #include "pm8226.dtsi" 10 #include <dt-bindings/clock/qcom,mmcc-msm8974. << 11 10 12 /delete-node/ &adsp_region; 11 /delete-node/ &adsp_region; 13 12 14 / { 13 / { 15 model = "LG G Watch R"; 14 model = "LG G Watch R"; 16 compatible = "lg,lenok", "qcom,apq8026 15 compatible = "lg,lenok", "qcom,apq8026"; 17 chassis-type = "watch"; 16 chassis-type = "watch"; 18 qcom,board-id = <132 0x0a>; 17 qcom,board-id = <132 0x0a>; 19 qcom,msm-id = <199 0x20000>; 18 qcom,msm-id = <199 0x20000>; 20 19 21 aliases { 20 aliases { 22 serial0 = &blsp1_uart3; 21 serial0 = &blsp1_uart3; 23 serial1 = &blsp1_uart4; 22 serial1 = &blsp1_uart4; 24 }; 23 }; 25 24 26 chosen { 25 chosen { 27 stdout-path = "serial0:115200n 26 stdout-path = "serial0:115200n8"; 28 }; 27 }; 29 28 30 reserved-memory { 29 reserved-memory { 31 sbl_region: sbl@2f00000 { 30 sbl_region: sbl@2f00000 { 32 reg = <0x02f00000 0x10 31 reg = <0x02f00000 0x100000>; 33 no-map; 32 no-map; 34 }; 33 }; 35 34 36 external_image_region: externa 35 external_image_region: external-image@3100000 { 37 reg = <0x03100000 0x20 36 reg = <0x03100000 0x200000>; 38 no-map; 37 no-map; 39 }; 38 }; 40 39 41 adsp_region: adsp@3300000 { 40 adsp_region: adsp@3300000 { 42 reg = <0x03300000 0x14 41 reg = <0x03300000 0x1400000>; 43 no-map; 42 no-map; 44 }; 43 }; 45 }; 44 }; 46 45 47 vreg_wlan: wlan-regulator { 46 vreg_wlan: wlan-regulator { 48 compatible = "regulator-fixed" 47 compatible = "regulator-fixed"; 49 48 50 regulator-name = "wl-reg"; 49 regulator-name = "wl-reg"; 51 regulator-min-microvolt = <295 50 regulator-min-microvolt = <2950000>; 52 regulator-max-microvolt = <295 51 regulator-max-microvolt = <2950000>; 53 52 54 gpio = <&tlmm 46 GPIO_ACTIVE_H 53 gpio = <&tlmm 46 GPIO_ACTIVE_HIGH>; 55 enable-active-high; 54 enable-active-high; 56 55 57 pinctrl-names = "default"; 56 pinctrl-names = "default"; 58 pinctrl-0 = <&wlan_regulator_d 57 pinctrl-0 = <&wlan_regulator_default_state>; 59 }; 58 }; 60 << 61 pwm_vibrator: pwm { << 62 compatible = "clk-pwm"; << 63 clocks = <&mmcc CAMSS_GP0_CLK> << 64 << 65 pinctrl-0 = <&vibrator_clk_def << 66 pinctrl-names = "default"; << 67 << 68 #pwm-cells = <2>; << 69 }; << 70 << 71 vibrator { << 72 compatible = "pwm-vibrator"; << 73 << 74 pwms = <&pwm_vibrator 0 10000> << 75 pwm-names = "enable"; << 76 << 77 vcc-supply = <&pm8226_l28>; << 78 enable-gpios = <&tlmm 62 GPIO_ << 79 << 80 pinctrl-0 = <&vibrator_en_defa << 81 pinctrl-names = "default"; << 82 }; << 83 }; 59 }; 84 60 85 &adsp { 61 &adsp { 86 status = "okay"; 62 status = "okay"; 87 }; 63 }; 88 64 89 &blsp1_i2c1 { 65 &blsp1_i2c1 { 90 status = "okay"; 66 status = "okay"; 91 67 92 fuel-gauge@55 { 68 fuel-gauge@55 { 93 compatible = "ti,bq27421"; 69 compatible = "ti,bq27421"; 94 reg = <0x55>; 70 reg = <0x55>; 95 }; 71 }; 96 }; 72 }; 97 73 98 &blsp1_i2c5 { 74 &blsp1_i2c5 { 99 status = "okay"; 75 status = "okay"; 100 clock-frequency = <384000>; 76 clock-frequency = <384000>; 101 77 102 touchscreen@20 { 78 touchscreen@20 { 103 compatible = "syna,rmi4-i2c"; 79 compatible = "syna,rmi4-i2c"; 104 reg = <0x20>; 80 reg = <0x20>; 105 81 106 interrupts-extended = <&tlmm 1 82 interrupts-extended = <&tlmm 17 IRQ_TYPE_EDGE_FALLING>; 107 vdd-supply = <&pm8226_l15>; 83 vdd-supply = <&pm8226_l15>; 108 vio-supply = <&pm8226_l22>; 84 vio-supply = <&pm8226_l22>; 109 85 110 pinctrl-names = "default"; 86 pinctrl-names = "default"; 111 pinctrl-0 = <&touch_pins>; 87 pinctrl-0 = <&touch_pins>; 112 88 113 #address-cells = <1>; 89 #address-cells = <1>; 114 #size-cells = <0>; 90 #size-cells = <0>; 115 91 116 rmi4-f01@1 { 92 rmi4-f01@1 { 117 reg = <0x1>; 93 reg = <0x1>; 118 syna,nosleep-mode = <1 94 syna,nosleep-mode = <1>; 119 }; 95 }; 120 96 121 rmi4-f12@12 { 97 rmi4-f12@12 { 122 reg = <0x12>; 98 reg = <0x12>; 123 syna,sensor-type = <1> 99 syna,sensor-type = <1>; 124 }; 100 }; 125 }; 101 }; 126 }; 102 }; 127 103 128 &blsp1_uart3 { 104 &blsp1_uart3 { 129 status = "okay"; 105 status = "okay"; 130 }; 106 }; 131 107 132 &blsp1_uart4 { 108 &blsp1_uart4 { 133 status = "okay"; 109 status = "okay"; 134 110 135 pinctrl-names = "default"; 111 pinctrl-names = "default"; 136 pinctrl-0 = <&blsp1_uart4_default_stat 112 pinctrl-0 = <&blsp1_uart4_default_state>; 137 113 138 bluetooth { 114 bluetooth { 139 compatible = "brcm,bcm43430a0- 115 compatible = "brcm,bcm43430a0-bt"; 140 116 141 max-speed = <3000000>; 117 max-speed = <3000000>; 142 118 143 pinctrl-names = "default"; 119 pinctrl-names = "default"; 144 pinctrl-0 = <&bluetooth_defaul 120 pinctrl-0 = <&bluetooth_default_state>; 145 121 146 host-wakeup-gpios = <&tlmm 48 122 host-wakeup-gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>; 147 device-wakeup-gpios = <&tlmm 4 123 device-wakeup-gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>; 148 shutdown-gpios = <&tlmm 45 GPI 124 shutdown-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>; 149 }; 125 }; 150 }; 126 }; 151 127 152 &rpm_requests { 128 &rpm_requests { 153 regulators { 129 regulators { 154 compatible = "qcom,rpm-pm8226- 130 compatible = "qcom,rpm-pm8226-regulators"; 155 131 156 pm8226_s3: s3 { 132 pm8226_s3: s3 { 157 regulator-min-microvol 133 regulator-min-microvolt = <1200000>; 158 regulator-max-microvol 134 regulator-max-microvolt = <1350000>; 159 }; 135 }; 160 pm8226_s4: s4 { 136 pm8226_s4: s4 { 161 regulator-min-microvol 137 regulator-min-microvolt = <1800000>; 162 regulator-max-microvol 138 regulator-max-microvolt = <2200000>; 163 }; 139 }; 164 pm8226_s5: s5 { 140 pm8226_s5: s5 { 165 regulator-min-microvol 141 regulator-min-microvolt = <1150000>; 166 regulator-max-microvol 142 regulator-max-microvolt = <1150000>; 167 }; 143 }; 168 144 169 pm8226_l1: l1 { 145 pm8226_l1: l1 { 170 regulator-min-microvol 146 regulator-min-microvolt = <1225000>; 171 regulator-max-microvol 147 regulator-max-microvolt = <1225000>; 172 }; 148 }; 173 pm8226_l2: l2 { 149 pm8226_l2: l2 { 174 regulator-min-microvol 150 regulator-min-microvolt = <1200000>; 175 regulator-max-microvol 151 regulator-max-microvolt = <1200000>; 176 }; 152 }; 177 pm8226_l3: l3 { 153 pm8226_l3: l3 { 178 regulator-min-microvol 154 regulator-min-microvolt = <750000>; 179 regulator-max-microvol 155 regulator-max-microvolt = <1337500>; 180 }; 156 }; 181 pm8226_l4: l4 { 157 pm8226_l4: l4 { 182 regulator-min-microvol 158 regulator-min-microvolt = <1200000>; 183 regulator-max-microvol 159 regulator-max-microvolt = <1200000>; 184 }; 160 }; 185 pm8226_l5: l5 { 161 pm8226_l5: l5 { 186 regulator-min-microvol 162 regulator-min-microvolt = <1200000>; 187 regulator-max-microvol 163 regulator-max-microvolt = <1200000>; 188 }; 164 }; 189 pm8226_l6: l6 { 165 pm8226_l6: l6 { 190 regulator-min-microvol 166 regulator-min-microvolt = <1800000>; 191 regulator-max-microvol 167 regulator-max-microvolt = <1800000>; 192 }; 168 }; 193 pm8226_l7: l7 { 169 pm8226_l7: l7 { 194 regulator-min-microvol 170 regulator-min-microvolt = <1850000>; 195 regulator-max-microvol 171 regulator-max-microvolt = <1850000>; 196 }; 172 }; 197 pm8226_l8: l8 { 173 pm8226_l8: l8 { 198 regulator-min-microvol 174 regulator-min-microvolt = <1800000>; 199 regulator-max-microvol 175 regulator-max-microvolt = <1800000>; 200 }; 176 }; 201 pm8226_l9: l9 { 177 pm8226_l9: l9 { 202 regulator-min-microvol 178 regulator-min-microvolt = <2050000>; 203 regulator-max-microvol 179 regulator-max-microvolt = <2050000>; 204 }; 180 }; 205 pm8226_l10: l10 { 181 pm8226_l10: l10 { 206 regulator-min-microvol 182 regulator-min-microvolt = <1800000>; 207 regulator-max-microvol 183 regulator-max-microvolt = <1800000>; 208 }; 184 }; 209 pm8226_l12: l12 { 185 pm8226_l12: l12 { 210 regulator-min-microvol 186 regulator-min-microvolt = <1800000>; 211 regulator-max-microvol 187 regulator-max-microvolt = <1800000>; 212 }; 188 }; 213 pm8226_l14: l14 { 189 pm8226_l14: l14 { 214 regulator-min-microvol 190 regulator-min-microvolt = <2750000>; 215 regulator-max-microvol 191 regulator-max-microvolt = <2750000>; 216 }; 192 }; 217 pm8226_l15: l15 { 193 pm8226_l15: l15 { 218 regulator-min-microvol 194 regulator-min-microvolt = <3300000>; 219 regulator-max-microvol 195 regulator-max-microvolt = <3300000>; 220 }; 196 }; 221 pm8226_l16: l16 { 197 pm8226_l16: l16 { 222 regulator-min-microvol 198 regulator-min-microvolt = <3000000>; 223 regulator-max-microvol 199 regulator-max-microvolt = <3350000>; 224 }; 200 }; 225 pm8226_l17: l17 { 201 pm8226_l17: l17 { 226 regulator-min-microvol 202 regulator-min-microvolt = <2950000>; 227 regulator-max-microvol 203 regulator-max-microvolt = <2950000>; 228 }; 204 }; 229 pm8226_l18: l18 { 205 pm8226_l18: l18 { 230 regulator-min-microvol 206 regulator-min-microvolt = <3000000>; 231 regulator-max-microvol 207 regulator-max-microvolt = <3300000>; 232 }; 208 }; 233 pm8226_l19: l19 { 209 pm8226_l19: l19 { 234 regulator-min-microvol 210 regulator-min-microvolt = <3000000>; 235 regulator-max-microvol 211 regulator-max-microvolt = <3000000>; 236 }; 212 }; 237 pm8226_l20: l20 { 213 pm8226_l20: l20 { 238 regulator-min-microvol 214 regulator-min-microvolt = <3075000>; 239 regulator-max-microvol 215 regulator-max-microvolt = <3075000>; 240 }; 216 }; 241 pm8226_l21: l21 { 217 pm8226_l21: l21 { 242 regulator-min-microvol 218 regulator-min-microvolt = <1800000>; 243 regulator-max-microvol 219 regulator-max-microvolt = <2950000>; 244 }; 220 }; 245 pm8226_l22: l22 { 221 pm8226_l22: l22 { 246 regulator-min-microvol 222 regulator-min-microvolt = <1800000>; 247 regulator-max-microvol 223 regulator-max-microvolt = <1800000>; 248 }; 224 }; 249 pm8226_l23: l23 { 225 pm8226_l23: l23 { 250 regulator-min-microvol 226 regulator-min-microvolt = <1800000>; 251 regulator-max-microvol 227 regulator-max-microvolt = <2950000>; 252 }; 228 }; 253 pm8226_l24: l24 { 229 pm8226_l24: l24 { 254 regulator-min-microvol 230 regulator-min-microvolt = <1300000>; 255 regulator-max-microvol 231 regulator-max-microvolt = <1350000>; 256 }; 232 }; 257 pm8226_l25: l25 { 233 pm8226_l25: l25 { 258 regulator-min-microvol 234 regulator-min-microvolt = <1775000>; 259 regulator-max-microvol 235 regulator-max-microvolt = <2125000>; 260 }; 236 }; 261 pm8226_l26: l26 { 237 pm8226_l26: l26 { 262 regulator-min-microvol 238 regulator-min-microvolt = <1225000>; 263 regulator-max-microvol 239 regulator-max-microvolt = <1225000>; 264 }; 240 }; 265 pm8226_l27: l27 { 241 pm8226_l27: l27 { 266 regulator-min-microvol 242 regulator-min-microvolt = <2050000>; 267 regulator-max-microvol 243 regulator-max-microvolt = <2050000>; 268 }; 244 }; 269 pm8226_l28: l28 { 245 pm8226_l28: l28 { 270 regulator-min-microvol 246 regulator-min-microvolt = <2700000>; 271 regulator-max-microvol 247 regulator-max-microvolt = <3000000>; 272 }; 248 }; 273 249 274 pm8226_lvs1: lvs1 {}; 250 pm8226_lvs1: lvs1 {}; 275 }; 251 }; 276 }; 252 }; 277 253 278 &sdhc_1 { 254 &sdhc_1 { 279 status = "okay"; 255 status = "okay"; 280 256 281 vmmc-supply = <&pm8226_l17>; 257 vmmc-supply = <&pm8226_l17>; 282 vqmmc-supply = <&pm8226_l6>; 258 vqmmc-supply = <&pm8226_l6>; 283 259 284 bus-width = <8>; 260 bus-width = <8>; 285 non-removable; 261 non-removable; 286 }; 262 }; 287 263 288 &sdhc_3 { 264 &sdhc_3 { 289 status = "okay"; 265 status = "okay"; 290 266 291 max-frequency = <100000000>; 267 max-frequency = <100000000>; 292 non-removable; 268 non-removable; 293 269 294 vmmc-supply = <&vreg_wlan>; 270 vmmc-supply = <&vreg_wlan>; 295 vqmmc-supply = <&pm8226_l6>; 271 vqmmc-supply = <&pm8226_l6>; 296 272 297 #address-cells = <1>; 273 #address-cells = <1>; 298 #size-cells = <0>; 274 #size-cells = <0>; 299 275 300 wifi@1 { 276 wifi@1 { 301 compatible = "brcm,bcm43430a0- 277 compatible = "brcm,bcm43430a0-fmac", "brcm,bcm4329-fmac"; 302 reg = <1>; 278 reg = <1>; 303 279 304 interrupts-extended = <&tlmm 3 280 interrupts-extended = <&tlmm 37 IRQ_TYPE_EDGE_FALLING>; 305 interrupt-names = "host-wake"; 281 interrupt-names = "host-wake"; 306 282 307 pinctrl-names = "default"; 283 pinctrl-names = "default"; 308 pinctrl-0 = <&wlan_hostwake_de 284 pinctrl-0 = <&wlan_hostwake_default_state>; 309 }; 285 }; 310 }; 286 }; 311 287 312 &smbb { 288 &smbb { 313 qcom,fast-charge-safe-current = <45000 289 qcom,fast-charge-safe-current = <450000>; 314 qcom,fast-charge-current-limit = <4000 290 qcom,fast-charge-current-limit = <400000>; 315 qcom,fast-charge-safe-voltage = <43500 291 qcom,fast-charge-safe-voltage = <4350000>; 316 qcom,fast-charge-high-threshold-voltag 292 qcom,fast-charge-high-threshold-voltage = <4350000>; 317 qcom,auto-recharge-threshold-voltage = 293 qcom,auto-recharge-threshold-voltage = <4240000>; 318 qcom,minimum-input-voltage = <4450000> 294 qcom,minimum-input-voltage = <4450000>; 319 << 320 status = "okay"; << 321 }; 295 }; 322 296 323 &tlmm { 297 &tlmm { 324 blsp1_uart4_default_state: blsp1-uart4 298 blsp1_uart4_default_state: blsp1-uart4-default-state { 325 pins = "gpio12", "gpio13", "gp 299 pins = "gpio12", "gpio13", "gpio14", "gpio15"; 326 function = "blsp_uart4"; 300 function = "blsp_uart4"; 327 drive-strength = <8>; 301 drive-strength = <8>; 328 bias-disable; 302 bias-disable; 329 }; 303 }; 330 304 331 bluetooth_default_state: bluetooth-def 305 bluetooth_default_state: bluetooth-default-state { 332 pins = "gpio47", "gpio48"; 306 pins = "gpio47", "gpio48"; 333 function = "gpio"; 307 function = "gpio"; 334 drive-strength = <2>; 308 drive-strength = <2>; 335 bias-disable; 309 bias-disable; 336 }; 310 }; 337 311 338 touch_pins: touch-state { 312 touch_pins: touch-state { 339 irq-pins { 313 irq-pins { 340 pins = "gpio17"; 314 pins = "gpio17"; 341 function = "gpio"; 315 function = "gpio"; 342 316 343 drive-strength = <8>; 317 drive-strength = <8>; 344 bias-pull-down; 318 bias-pull-down; 345 }; 319 }; 346 320 347 reset-pins { 321 reset-pins { 348 pins = "gpio16"; 322 pins = "gpio16"; 349 function = "gpio"; 323 function = "gpio"; 350 324 351 drive-strength = <8>; 325 drive-strength = <8>; 352 bias-disable; 326 bias-disable; 353 output-high; 327 output-high; 354 }; 328 }; 355 }; << 356 << 357 vibrator_clk_default_state: vibrator-c << 358 pins = "gpio33"; << 359 function = "gp0_clk"; << 360 drive-strength = <2>; << 361 bias-disable; << 362 }; << 363 << 364 vibrator_en_default_state: vibrator-en << 365 pins = "gpio62"; << 366 function = "gpio"; << 367 drive-strength = <2>; << 368 bias-disable; << 369 }; 329 }; 370 330 371 wlan_hostwake_default_state: wlan-host 331 wlan_hostwake_default_state: wlan-hostwake-default-state { 372 pins = "gpio37"; 332 pins = "gpio37"; 373 function = "gpio"; 333 function = "gpio"; 374 drive-strength = <2>; 334 drive-strength = <2>; 375 bias-disable; 335 bias-disable; 376 }; 336 }; 377 337 378 wlan_regulator_default_state: wlan-reg 338 wlan_regulator_default_state: wlan-regulator-default-state { 379 pins = "gpio46"; 339 pins = "gpio46"; 380 function = "gpio"; 340 function = "gpio"; 381 drive-strength = <2>; 341 drive-strength = <2>; 382 bias-pull-up; 342 bias-pull-up; 383 }; 343 }; 384 }; 344 }; 385 345 386 &usb { 346 &usb { 387 status = "okay"; 347 status = "okay"; 388 extcon = <&smbb>; 348 extcon = <&smbb>; 389 dr_mode = "peripheral"; 349 dr_mode = "peripheral"; 390 }; 350 }; 391 351 392 &usb_hs_phy { 352 &usb_hs_phy { 393 extcon = <&smbb>; 353 extcon = <&smbb>; 394 v1p8-supply = <&pm8226_l10>; 354 v1p8-supply = <&pm8226_l10>; 395 v3p3-supply = <&pm8226_l20>; 355 v3p3-supply = <&pm8226_l20>; 396 }; 356 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.