|
33 | 33 | };
|
34 | 34 | };
|
35 | 35 |
|
| 36 | + battery: battery { |
| 37 | + compatible = "simple-battery"; |
| 38 | + charge-term-current-microamp = <150000>; |
| 39 | + constant-charge-current-max-microamp = <1500000>; |
| 40 | + constant-charge-voltage-max-microvolt = <4300000>; |
| 41 | + precharge-current-microamp = <450000>; |
| 42 | + precharge-upper-limit-microvolt = <3500000>; |
| 43 | + }; |
| 44 | + |
36 | 45 | gpio-hall-sensor {
|
37 | 46 | compatible = "gpio-keys";
|
38 | 47 |
|
|
82 | 91 | #address-cells = <1>;
|
83 | 92 | #size-cells = <0>;
|
84 | 93 |
|
85 |
| - battery@35 { |
| 94 | + fuel-gauge@35 { |
86 | 95 | compatible = "richtek,rt5033-battery";
|
87 | 96 | reg = <0x35>;
|
88 | 97 |
|
|
91 | 100 |
|
92 | 101 | pinctrl-0 = <&fg_alert_default>;
|
93 | 102 | pinctrl-names = "default";
|
| 103 | + |
| 104 | + power-supplies = <&charger>; |
94 | 105 | };
|
95 | 106 | };
|
96 | 107 |
|
|
327 | 338 |
|
328 | 339 | pinctrl-0 = <&muic_int_default>;
|
329 | 340 | pinctrl-names = "default";
|
| 341 | + |
| 342 | + usb_con: connector { |
| 343 | + compatible = "usb-b-connector"; |
| 344 | + label = "micro-USB"; |
| 345 | + type = "micro"; |
| 346 | + }; |
330 | 347 | };
|
331 | 348 | };
|
332 | 349 |
|
|
360 | 377 | };
|
361 | 378 | };
|
362 | 379 |
|
| 380 | +&blsp_i2c6 { |
| 381 | + status = "okay"; |
| 382 | + |
| 383 | + pmic@34 { |
| 384 | + compatible = "richtek,rt5033"; |
| 385 | + reg = <0x34>; |
| 386 | + |
| 387 | + interrupts-extended = <&tlmm 62 IRQ_TYPE_EDGE_FALLING>; |
| 388 | + |
| 389 | + pinctrl-0 = <&pmic_int_default>; |
| 390 | + pinctrl-names = "default"; |
| 391 | + |
| 392 | + regulators { |
| 393 | + rt5033_reg_safe_ldo: SAFE_LDO { |
| 394 | + regulator-min-microvolt = <4900000>; |
| 395 | + regulator-max-microvolt = <4900000>; |
| 396 | + regulator-always-on; |
| 397 | + }; |
| 398 | + |
| 399 | + /* |
| 400 | + * Needed for camera, but not used yet. |
| 401 | + * Define empty nodes to allow disabling the unused |
| 402 | + * regulators. |
| 403 | + */ |
| 404 | + LDO {}; |
| 405 | + BUCK {}; |
| 406 | + }; |
| 407 | + |
| 408 | + charger: charger { |
| 409 | + compatible = "richtek,rt5033-charger"; |
| 410 | + monitored-battery = <&battery>; |
| 411 | + richtek,usb-connector = <&usb_con>; |
| 412 | + }; |
| 413 | + }; |
| 414 | +}; |
| 415 | + |
363 | 416 | &blsp_uart2 {
|
364 | 417 | status = "okay";
|
365 | 418 | };
|
|
639 | 692 | bias-disable;
|
640 | 693 | };
|
641 | 694 |
|
| 695 | + pmic_int_default: pmic-int-default-state { |
| 696 | + pins = "gpio62"; |
| 697 | + function = "gpio"; |
| 698 | + drive-strength = <2>; |
| 699 | + bias-disable; |
| 700 | + }; |
| 701 | + |
642 | 702 | reg_tsp_en_default: reg-tsp-en-default-state {
|
643 | 703 | pins = "gpio73";
|
644 | 704 | function = "gpio";
|
|
0 commit comments