Skip to content

Commit 6856edf

Browse files
M-Vaittinenlag-linaro
authored andcommitted
dt-bindings: mfd: bd71815: Fix rsense and typos
The sense resistor used for measuring currents is typically some tens of milli Ohms. It has accidentally been documented to be tens of mega Ohms. Fix the size of this resistor and a few copy-paste errors while at it. Drop the unsuitable 'rohm,charger-sense-resistor-ohms' property (which can't represent resistors smaller than one Ohm), and introduce a new 'rohm,charger-sense-resistor-micro-ohms' property with appropriate minimum, maximum and default values instead. Fixes: 4238dc1 ("dt_bindings: mfd: Add ROHM BD71815 PMIC") Signed-off-by: Matti Vaittinen <[email protected]> Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/0efd8e9de0ae8d62ee4c6b78cc565b04007a245d.1731430700.git.mazziesaccount@gmail.com Signed-off-by: Lee Jones <[email protected]>
1 parent 1e89d21 commit 6856edf

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Documentation/devicetree/bindings/mfd/rohm,bd71815-pmic.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ properties:
5050
minimum: 0
5151
maximum: 1
5252

53-
rohm,charger-sense-resistor-ohms:
54-
minimum: 10000000
55-
maximum: 50000000
53+
rohm,charger-sense-resistor-micro-ohms:
54+
minimum: 10000
55+
maximum: 50000
5656
description: |
57-
BD71827 and BD71828 have SAR ADC for measuring charging currents.
58-
External sense resistor (RSENSE in data sheet) should be used. If
59-
something other but 30MOhm resistor is used the resistance value
60-
should be given here in Ohms.
61-
default: 30000000
57+
BD71815 has SAR ADC for measuring charging currents. External sense
58+
resistor (RSENSE in data sheet) should be used. If something other
59+
but a 30 mOhm resistor is used the resistance value should be given
60+
here in micro Ohms.
61+
default: 30000
6262

6363
regulators:
6464
$ref: /schemas/regulator/rohm,bd71815-regulator.yaml
@@ -67,7 +67,7 @@ properties:
6767

6868
gpio-reserved-ranges:
6969
description: |
70-
Usage of BD71828 GPIO pins can be changed via OTP. This property can be
70+
Usage of BD71815 GPIO pins can be changed via OTP. This property can be
7171
used to mark the pins which should not be configured for GPIO. Please see
7272
the ../gpio/gpio.txt for more information.
7373
@@ -113,7 +113,7 @@ examples:
113113
gpio-controller;
114114
#gpio-cells = <2>;
115115
116-
rohm,charger-sense-resistor-ohms = <10000000>;
116+
rohm,charger-sense-resistor-micro-ohms = <10000>;
117117
118118
regulators {
119119
buck1: buck1 {

0 commit comments

Comments
 (0)