|
28 | 28 | }; |
29 | 29 | }; |
30 | 30 |
|
| 31 | + battery: battery { |
| 32 | + compatible = "simple-battery"; |
| 33 | + precharge-current-microamp = <450000>; |
| 34 | + precharge-upper-limit-microvolt = <3500000>; |
| 35 | + }; |
| 36 | + |
31 | 37 | clk_pwm: pwm { |
32 | 38 | compatible = "clk-pwm"; |
33 | 39 | #pwm-cells = <2>; |
|
128 | 134 |
|
129 | 135 | pinctrl-names = "default"; |
130 | 136 | pinctrl-0 = <&muic_int_default>; |
| 137 | + |
| 138 | + usb_con: connector { |
| 139 | + compatible = "usb-b-connector"; |
| 140 | + label = "micro-USB"; |
| 141 | + type = "micro"; |
| 142 | + }; |
131 | 143 | }; |
132 | 144 | }; |
133 | 145 |
|
|
239 | 251 | &blsp_i2c4 { |
240 | 252 | status = "okay"; |
241 | 253 |
|
242 | | - battery@35 { |
| 254 | + fuel-gauge@35 { |
243 | 255 | compatible = "richtek,rt5033-battery"; |
244 | 256 | reg = <0x35>; |
245 | 257 | interrupt-parent = <&tlmm>; |
246 | 258 | interrupts = <121 IRQ_TYPE_EDGE_BOTH>; |
247 | 259 |
|
248 | 260 | pinctrl-names = "default"; |
249 | 261 | pinctrl-0 = <&fg_alert_default>; |
| 262 | + |
| 263 | + power-supplies = <&charger>; |
| 264 | + }; |
| 265 | +}; |
| 266 | + |
| 267 | +&blsp_i2c6 { |
| 268 | + status = "okay"; |
| 269 | + |
| 270 | + pmic@34 { |
| 271 | + compatible = "richtek,rt5033"; |
| 272 | + reg = <0x34>; |
| 273 | + |
| 274 | + interrupts-extended = <&tlmm 62 IRQ_TYPE_EDGE_FALLING>; |
| 275 | + |
| 276 | + pinctrl-0 = <&pmic_int_default>; |
| 277 | + pinctrl-names = "default"; |
| 278 | + |
| 279 | + regulators { |
| 280 | + rt5033_reg_safe_ldo: SAFE_LDO { |
| 281 | + regulator-min-microvolt = <4900000>; |
| 282 | + regulator-max-microvolt = <4900000>; |
| 283 | + regulator-always-on; |
| 284 | + }; |
| 285 | + |
| 286 | + /* |
| 287 | + * Needed for camera, but not used yet. |
| 288 | + * Define empty nodes to allow disabling the unused |
| 289 | + * regulators. |
| 290 | + */ |
| 291 | + LDO {}; |
| 292 | + BUCK {}; |
| 293 | + }; |
| 294 | + |
| 295 | + charger: charger { |
| 296 | + compatible = "richtek,rt5033-charger"; |
| 297 | + monitored-battery = <&battery>; |
| 298 | + richtek,usb-connector = <&usb_con>; |
| 299 | + }; |
250 | 300 | }; |
251 | 301 | }; |
252 | 302 |
|
|
488 | 538 | bias-disable; |
489 | 539 | }; |
490 | 540 |
|
| 541 | + pmic_int_default: pmic-int-default-state { |
| 542 | + pins = "gpio62"; |
| 543 | + function = "gpio"; |
| 544 | + drive-strength = <2>; |
| 545 | + bias-disable; |
| 546 | + }; |
| 547 | + |
491 | 548 | sdc2_cd_default: sdc2-cd-default-state { |
492 | 549 | pins = "gpio38"; |
493 | 550 | function = "gpio"; |
|
0 commit comments