Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: hwmon: convert AD ADM1275 bindings to dt-schema

Convert the Analog Devices ADM1275 bindings to dt-schema.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20201117220807.208747-4-krzk@kernel.org
[groeck: Removed unnecessary type ($ref) declaration]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Krzysztof Kozlowski and committed by
Guenter Roeck
15d4a6f7 db4919ec

+58 -26
+57
Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + 5 + $id: http://devicetree.org/schemas/hwmon/adi,adm1275.yaml# 6 + $schema: http://devicetree.org/meta-schemas/core.yaml# 7 + 8 + title: Analog Devices ADM1075/ADM127x/ADM129x digital power monitors 9 + 10 + maintainers: 11 + - Krzysztof Kozlowski <krzk@kernel.org> 12 + 13 + description: | 14 + The ADM1293 and ADM1294 are high accuracy integrated digital power monitors 15 + that offer digital current, voltage, and power monitoring using an on-chip, 16 + 12-bit analog-to-digital converter (ADC), communicated through a PMBus 17 + compliant I2C interface. 18 + 19 + Datasheets: 20 + https://www.analog.com/en/products/adm1294.html 21 + 22 + properties: 23 + compatible: 24 + enum: 25 + - adi,adm1075 26 + - adi,adm1272 27 + - adi,adm1275 28 + - adi,adm1276 29 + - adi,adm1278 30 + - adi,adm1293 31 + - adi,adm1294 32 + 33 + reg: 34 + maxItems: 1 35 + 36 + shunt-resistor-micro-ohms: 37 + description: 38 + Shunt resistor value in micro-Ohm. 39 + 40 + required: 41 + - compatible 42 + - reg 43 + 44 + additionalProperties: false 45 + 46 + examples: 47 + - | 48 + i2c { 49 + #address-cells = <1>; 50 + #size-cells = <0>; 51 + 52 + power-sensor@10 { 53 + compatible = "adi,adm1272"; 54 + reg = <0x10>; 55 + shunt-resistor-micro-ohms = <500>; 56 + }; 57 + };
-25
Documentation/devicetree/bindings/hwmon/adm1275.txt
··· 1 - adm1275 properties 2 - 3 - Required properties: 4 - - compatible: Must be one of the supported compatible strings: 5 - - "adi,adm1075" for adm1075 6 - - "adi,adm1272" for adm1272 7 - - "adi,adm1275" for adm1275 8 - - "adi,adm1276" for adm1276 9 - - "adi,adm1278" for adm1278 10 - - "adi,adm1293" for adm1293 11 - - "adi,adm1294" for adm1294 12 - - reg: I2C address 13 - 14 - Optional properties: 15 - 16 - - shunt-resistor-micro-ohms 17 - Shunt resistor value in micro-Ohm 18 - 19 - Example: 20 - 21 - adm1272@10 { 22 - compatible = "adi,adm1272"; 23 - reg = <0x10>; 24 - shunt-resistor-micro-ohms = <500>; 25 - };
+1 -1
Documentation/hwmon/adm1275.rst
··· 83 83 and will typically have to be scaled. 84 84 85 85 The shunt value in micro-ohms can be set via device tree at compile-time. Please 86 - refer to the Documentation/devicetree/bindings/hwmon/adm1275.txt for bindings 86 + refer to the Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml for bindings 87 87 if the device tree is used. 88 88 89 89 Platform data support