| // SPDX-License-Identifier: GPL-2.0-only |
| /* |
| * Copyright (c) 2023, Barnabas Czeman |
| */ |
| |
| /dts-v1/; |
| |
| #include "msm8917-xiaomi-wingtech.dtsi" |
| |
| / { |
| model = "Xiaomi Redmi 5A (riva)"; |
| compatible = "xiaomi,riva", "qcom,msm8917"; |
| |
| qcom,board-id = <0x1000b 1>, <0x1000b 2>; |
| |
| battery: battery { |
| compatible = "simple-battery"; |
| charge-full-design-microamp-hours = <3000000>; |
| energy-full-design-microwatt-hours = <11500000>; |
| constant-charge-current-max-microamp = <1000000>; |
| constant-charge-voltage-max-microvolt = <4400000>; |
| precharge-current-microamp = <256000>; |
| charge-term-current-microamp = <60000>; |
| voltage-min-design-microvolt = <3400000>; |
| }; |
| }; |
| |
| &blsp2_i2c1 { |
| status = "okay"; |
| |
| power-monitor@55 { |
| compatible = "ti,bq27426"; |
| reg = <0x55>; |
| monitored-battery = <&battery>; |
| }; |
| |
| charger@6b { |
| compatible = "ti,bq25601"; |
| reg = <0x6b>; |
| interrupts-extended = <&tlmm 61 IRQ_TYPE_EDGE_FALLING>; |
| pinctrl-0 = <&bq25601_int_default>; |
| pinctrl-names = "default"; |
| input-voltage-limit-microvolt = <4400000>; |
| input-current-limit-microamp = <1000000>; |
| monitored-battery = <&battery>; |
| }; |
| }; |
| |
| &tlmm { |
| bq25601_int_default: bq25601-int-default-state { |
| pins = "gpio61"; |
| function = "gpio"; |
| drive-strength = <2>; |
| bias-pull-up; |
| }; |
| }; |