thanks all for your input.
I conclude here in one answer:
On 7/26/23 18:14, Krzysztof Kozlowski wrote:
It does not look like you tested the bindings, at least after quicksorry i missed that, fixed for [Patch v2].
look. Please run `make dt_binding_check` (see
On 7/26/23 18:14, Krzysztof Kozlowski wrote:
replaced with+ shunt-gain:1. Missing vendor prefix (does not look like generic property)
2. -microvolt
And then enum is for 40, 80, 160 and 320.
renesas,shunt-range-milli-volts:
description: |
maximal shunt voltage range of 40mV, 80mV, 160mV or 320mV
$ref: /schemas/types.yaml#/definitions/uint32-array
default: 320
enum: [40, 80, 160, 320]
On 26/07/2023 18:16, Guenter Roeck wrote:
When shunt resistor value is not known, current and power calculation can not be done,+ shunt-resistor-micro-ohms:+
+ description:
+ Shunt resistor value in micro-Ohm
+ defaults to <0> when not set
+ monitoring of current and power not supported when <0>
Should not default to 0 (disabled).
but the shunt voltage still can be measured.
As the resistor is externaly connected to the ISL28022 chip there is no default.
When i set default to any value (e.g 1000 micro Ohm), current and power calculation
will give wrong results (except when the shunt _is_ 1000 micro Ohm)
On 26/07/2023 18:16, Guenter Roeck wrote:
From datasheet table 6 on page 15 there are two similar ADC modes:+ average:Should not default to 0 (disabled).
+ description: |
+ Number of samples to be used to report voltage, current and power values.
+ defaults to <0> when not set
+ enum: [0, 1, 2, 4, 8, 16, 32, 64, 128]
3 - without samples
8 - with one? sample
I intended enum 0 to ADC mode 3, 1 to ADC mode 8,
but i can live without ADC mode 3.