|
7 | 7 | #include <dt-bindings/gpio/gpio.h>
|
8 | 8 | #include <dt-bindings/input/input.h>
|
9 | 9 | #include <dt-bindings/interrupt-controller/irq.h>
|
| 10 | +#include <dt-bindings/power/summit,smb347-charger.h> |
10 | 11 |
|
11 | 12 | / {
|
12 | 13 | model = "ASUS ZenPad 8.0";
|
|
21 | 22 | stdout-path = "serial0";
|
22 | 23 | };
|
23 | 24 |
|
| 25 | + bat: battery { |
| 26 | + compatible = "simple-battery"; |
| 27 | + voltage-min-design-microvolt = <3400000>; |
| 28 | + voltage-max-design-microvolt = <4350000>; |
| 29 | + energy-full-design-microwatt-hours = <15200000>; |
| 30 | + charge-full-design-microamp-hours = <3800000>; |
| 31 | + |
| 32 | + ocv-capacity-celsius = <25>; |
| 33 | + ocv-capacity-table-0 = <4331000 100>, <4261000 95>, <4204000 90>, |
| 34 | + <4152000 85>, <4102000 80>, <4060000 75>, <3998000 70>, |
| 35 | + <3964000 65>, <3924000 60>, <3874000 55>, <3842000 50>, |
| 36 | + <3820000 45>, <3800000 40>, <3785000 35>, <3720000 30>, |
| 37 | + <3758000 25>, <3735000 20>, <3706000 16>, <3690000 13>, |
| 38 | + <3687000 11>, <3686000 10>, <3684000 9>, <3680000 8>, |
| 39 | + <3668000 7>, <3640000 6>, <3596000 5>, <3542000 4>, |
| 40 | + <3472000 3>, <3378000 2>, <3239000 1>, <3000000 0>; |
| 41 | + }; |
| 42 | + |
24 | 43 | gpio-keys {
|
25 | 44 | compatible = "gpio-keys";
|
26 | 45 |
|
|
60 | 79 | };
|
61 | 80 | };
|
62 | 81 |
|
| 82 | +&blsp_i2c4 { |
| 83 | + status = "okay"; |
| 84 | + |
| 85 | + charger@6a { |
| 86 | + compatible = "summit,smb345"; |
| 87 | + reg = <0x6a>; |
| 88 | + |
| 89 | + summit,enable-charge-control = <SMB3XX_CHG_ENABLE_SW>; |
| 90 | + summit,chip-temperature-threshold-celsius = <110>; |
| 91 | + summit,usb-current-limit-microamp = <500000>; |
| 92 | + summit,enable-usb-charging; |
| 93 | + summit,enable-otg-charging; |
| 94 | + }; |
| 95 | +}; |
| 96 | + |
63 | 97 | &blsp1_uart2 {
|
64 | 98 | status = "okay";
|
65 | 99 | };
|
|
68 | 102 | status = "okay";
|
69 | 103 | };
|
70 | 104 |
|
| 105 | +&pm8916_bms { |
| 106 | + monitored-battery = <&bat>; |
| 107 | + status = "okay"; |
| 108 | +}; |
| 109 | + |
71 | 110 | &sdhc_1 {
|
72 | 111 | pinctrl-names = "default", "sleep";
|
73 | 112 | pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
|
|
0 commit comments