diff options
author | Rob Herring <robh@kernel.org> | 2022-05-19 16:14:11 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2022-05-23 11:53:30 -0500 |
commit | 4e71ed985389ce213003927cfa65c1352e70396c (patch) | |
tree | 6095d665a55b79ae67f76bf05551b8e78daee3ac /Documentation/devicetree/bindings/power/supply/battery.yaml | |
parent | 028818e374c8424641f42d09a03d3d9c88aa9cab (diff) | |
download | lwn-4e71ed985389ce213003927cfa65c1352e70396c.tar.gz lwn-4e71ed985389ce213003927cfa65c1352e70396c.zip |
dt-bindings: Fix properties without any type
Now that the schema tools can extract type information for all
properties (in order to decode dtb files), finding properties missing
any type definition is fairly trivial though not yet automated.
Fix the various property schemas which are missing a type. Most of these
tend to be device specific properties which don't have a vendor prefix.
A vendor prefix is how we normally ensure a type is defined.
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org> # for everything in .../bindings/display/
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Peter Rosin <peda@axentia.se>
Acked-by: Bartosz Golaszewski <brgl@bgdev.pl>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20220519211411.2200720-1-robh@kernel.org
Diffstat (limited to 'Documentation/devicetree/bindings/power/supply/battery.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/power/supply/battery.yaml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/power/supply/battery.yaml b/Documentation/devicetree/bindings/power/supply/battery.yaml index d56ac484fec5..491488e7b970 100644 --- a/Documentation/devicetree/bindings/power/supply/battery.yaml +++ b/Documentation/devicetree/bindings/power/supply/battery.yaml @@ -85,8 +85,13 @@ properties: description: battery factory internal resistance resistance-temp-table: + $ref: /schemas/types.yaml#/definitions/uint32-matrix + items: + items: + - description: the temperature in degree Celsius + - description: battery internal resistance percent description: | - An array providing the temperature in degree Celsius + A table providing the temperature in degree Celsius and corresponding battery internal resistance percent, which is used to look up the resistance percent according to current temperature to get an accurate batterty internal resistance in different temperatures. |