* [PATCH v2] dt-bindings: mfd: bd71828: Use charger resistor in mOhm instead of MOhm
@ 2024-11-11 10:27 Andreas Kemnade
2024-11-11 20:08 ` Conor Dooley
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Andreas Kemnade @ 2024-11-11 10:27 UTC (permalink / raw)
To: lee, robh, krzk+dt, conor+dt, mazziesaccount, devicetree,
linux-kernel
Cc: Andreas Kemnade, sre
Apparently there was some confusion regarding milliohm vs. megaohm.
(m/M). Use microohms to be able to properly specify the charger
resistor like other drivers do. This is not used yet by mainline code
yet. Specify a current sense resistor in milliohms range rather then
megaohms range in the examples.
CC: sre@kernel.org
Reported-by: Matti Vaittinen <mazziesaccount@gmail.com>
Closes: https://lore.kernel.org/imx/6dcd724a-a55c-4cba-a45b-21e76b1973b0@gmail.com/T/#mf590875a9f4d3955cd1041d7196ff0c65c0a7e9d
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
---
Changes in V2:
- typo fix
.../devicetree/bindings/mfd/rohm,bd71828-pmic.yaml | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml b/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml
index fa17686a64f7..09e7d68e92bf 100644
--- a/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml
+++ b/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml
@@ -55,14 +55,15 @@ properties:
minimum: 0
maximum: 1
- rohm,charger-sense-resistor-ohms:
- minimum: 10000000
- maximum: 50000000
+ rohm,charger-sense-resistor-micro-ohms:
+ minimum: 10000
+ maximum: 50000
+ default: 30000
description: |
BD71827 and BD71828 have SAR ADC for measuring charging currents.
External sense resistor (RSENSE in data sheet) should be used. If some
- other but 30MOhm resistor is used the resistance value should be given
- here in Ohms.
+ other but 30mOhm resistor is used the resistance value should be given
+ here in microohms.
regulators:
$ref: /schemas/regulator/rohm,bd71828-regulator.yaml
@@ -114,7 +115,7 @@ examples:
#gpio-cells = <2>;
gpio-reserved-ranges = <0 1>, <2 1>;
- rohm,charger-sense-resistor-ohms = <10000000>;
+ rohm,charger-sense-resistor-micro-ohms = <10000>;
regulators {
buck1: BUCK1 {
--
2.39.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] dt-bindings: mfd: bd71828: Use charger resistor in mOhm instead of MOhm
2024-11-11 10:27 [PATCH v2] dt-bindings: mfd: bd71828: Use charger resistor in mOhm instead of MOhm Andreas Kemnade
@ 2024-11-11 20:08 ` Conor Dooley
2024-11-11 23:56 ` Sebastian Reichel
2024-11-12 15:06 ` (subset) " Lee Jones
2 siblings, 0 replies; 4+ messages in thread
From: Conor Dooley @ 2024-11-11 20:08 UTC (permalink / raw)
To: Andreas Kemnade
Cc: lee, robh, krzk+dt, conor+dt, mazziesaccount, devicetree,
linux-kernel, sre
[-- Attachment #1: Type: text/plain, Size: 771 bytes --]
On Mon, Nov 11, 2024 at 11:27:01AM +0100, Andreas Kemnade wrote:
> Apparently there was some confusion regarding milliohm vs. megaohm.
> (m/M). Use microohms to be able to properly specify the charger
> resistor like other drivers do. This is not used yet by mainline code
> yet. Specify a current sense resistor in milliohms range rather then
> megaohms range in the examples.
>
> CC: sre@kernel.org
> Reported-by: Matti Vaittinen <mazziesaccount@gmail.com>
> Closes: https://lore.kernel.org/imx/6dcd724a-a55c-4cba-a45b-21e76b1973b0@gmail.com/T/#mf590875a9f4d3955cd1041d7196ff0c65c0a7e9d
> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
> Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] dt-bindings: mfd: bd71828: Use charger resistor in mOhm instead of MOhm
2024-11-11 10:27 [PATCH v2] dt-bindings: mfd: bd71828: Use charger resistor in mOhm instead of MOhm Andreas Kemnade
2024-11-11 20:08 ` Conor Dooley
@ 2024-11-11 23:56 ` Sebastian Reichel
2024-11-12 15:06 ` (subset) " Lee Jones
2 siblings, 0 replies; 4+ messages in thread
From: Sebastian Reichel @ 2024-11-11 23:56 UTC (permalink / raw)
To: Andreas Kemnade
Cc: lee, robh, krzk+dt, conor+dt, mazziesaccount, devicetree,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2415 bytes --]
Hi,
On Mon, Nov 11, 2024 at 11:27:01AM +0100, Andreas Kemnade wrote:
> Apparently there was some confusion regarding milliohm vs. megaohm.
> (m/M). Use microohms to be able to properly specify the charger
> resistor like other drivers do. This is not used yet by mainline code
> yet. Specify a current sense resistor in milliohms range rather then
> megaohms range in the examples.
>
> CC: sre@kernel.org
> Reported-by: Matti Vaittinen <mazziesaccount@gmail.com>
> Closes: https://lore.kernel.org/imx/6dcd724a-a55c-4cba-a45b-21e76b1973b0@gmail.com/T/#mf590875a9f4d3955cd1041d7196ff0c65c0a7e9d
> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
> Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
> ---
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
-- Sebastian
> Changes in V2:
> - typo fix
>
> .../devicetree/bindings/mfd/rohm,bd71828-pmic.yaml | 13 +++++++------
> 1 file changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml b/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml
> index fa17686a64f7..09e7d68e92bf 100644
> --- a/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml
> +++ b/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml
> @@ -55,14 +55,15 @@ properties:
> minimum: 0
> maximum: 1
>
> - rohm,charger-sense-resistor-ohms:
> - minimum: 10000000
> - maximum: 50000000
> + rohm,charger-sense-resistor-micro-ohms:
> + minimum: 10000
> + maximum: 50000
> + default: 30000
> description: |
> BD71827 and BD71828 have SAR ADC for measuring charging currents.
> External sense resistor (RSENSE in data sheet) should be used. If some
> - other but 30MOhm resistor is used the resistance value should be given
> - here in Ohms.
> + other but 30mOhm resistor is used the resistance value should be given
> + here in microohms.
>
> regulators:
> $ref: /schemas/regulator/rohm,bd71828-regulator.yaml
> @@ -114,7 +115,7 @@ examples:
> #gpio-cells = <2>;
> gpio-reserved-ranges = <0 1>, <2 1>;
>
> - rohm,charger-sense-resistor-ohms = <10000000>;
> + rohm,charger-sense-resistor-micro-ohms = <10000>;
>
> regulators {
> buck1: BUCK1 {
> --
> 2.39.5
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: (subset) [PATCH v2] dt-bindings: mfd: bd71828: Use charger resistor in mOhm instead of MOhm
2024-11-11 10:27 [PATCH v2] dt-bindings: mfd: bd71828: Use charger resistor in mOhm instead of MOhm Andreas Kemnade
2024-11-11 20:08 ` Conor Dooley
2024-11-11 23:56 ` Sebastian Reichel
@ 2024-11-12 15:06 ` Lee Jones
2 siblings, 0 replies; 4+ messages in thread
From: Lee Jones @ 2024-11-12 15:06 UTC (permalink / raw)
To: lee, robh, krzk+dt, conor+dt, mazziesaccount, devicetree,
linux-kernel, Andreas Kemnade
Cc: sre
On Mon, 11 Nov 2024 11:27:01 +0100, Andreas Kemnade wrote:
> Apparently there was some confusion regarding milliohm vs. megaohm.
> (m/M). Use microohms to be able to properly specify the charger
> resistor like other drivers do. This is not used yet by mainline code
> yet. Specify a current sense resistor in milliohms range rather then
> megaohms range in the examples.
>
>
> [...]
Applied, thanks!
[1/1] dt-bindings: mfd: bd71828: Use charger resistor in mOhm instead of MOhm
commit: 8ece9d248b851b97e1e0779caa2ca98df9bc41f7
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-11-12 15:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11 10:27 [PATCH v2] dt-bindings: mfd: bd71828: Use charger resistor in mOhm instead of MOhm Andreas Kemnade
2024-11-11 20:08 ` Conor Dooley
2024-11-11 23:56 ` Sebastian Reichel
2024-11-12 15:06 ` (subset) " Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox