Commit 08be4233 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Guenter Roeck

dt-bindings: hwmon: correct indentation and style in examples

Fix mixed indentation to 4-spaces, remove unnecessary suffix from
i2c node name and use lower-case hex.  No functional impact.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230118172237.349111-2-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 22f0fd20
...@@ -52,16 +52,16 @@ examples: ...@@ -52,16 +52,16 @@ examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
i2c0 { i2c {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
pwmon@5a { pwmon@5a {
compatible = "adi,adm1177"; compatible = "adi,adm1177";
reg = <0x5a>; reg = <0x5a>;
shunt-resistor-micro-ohms = <50000>; /* 50 mOhm */ shunt-resistor-micro-ohms = <50000>; /* 50 mOhm */
adi,shutdown-threshold-microamp = <1059000>; /* 1.059 A */ adi,shutdown-threshold-microamp = <1059000>; /* 1.059 A */
adi,vrange-high-enable; adi,vrange-high-enable;
}; };
}; };
... ...
...@@ -39,13 +39,13 @@ additionalProperties: false ...@@ -39,13 +39,13 @@ additionalProperties: false
examples: examples:
- | - |
i2c0 { i2c {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
adm1266@40 { adm1266@40 {
compatible = "adi,adm1266"; compatible = "adi,adm1266";
reg = <0x40>; reg = <0x40>;
}; };
}; };
... ...
...@@ -49,15 +49,15 @@ additionalProperties: false ...@@ -49,15 +49,15 @@ additionalProperties: false
examples: examples:
- | - |
fpga_axi: fpga-axi { fpga_axi: fpga-axi {
#address-cells = <0x2>; #address-cells = <0x2>;
#size-cells = <0x1>; #size-cells = <0x1>;
axi_fan_control: axi-fan-control@80000000 { axi_fan_control: axi-fan-control@80000000 {
compatible = "adi,axi-fan-control-1.00.a"; compatible = "adi,axi-fan-control-1.00.a";
reg = <0x0 0x80000000 0x10000>; reg = <0x0 0x80000000 0x10000>;
clocks = <&clk 71>; clocks = <&clk 71>;
interrupts = <0 110 0>; interrupts = <0 110 0>;
pulses-per-revolution = <2>; pulses-per-revolution = <2>;
}; };
}; };
... ...
...@@ -87,15 +87,15 @@ additionalProperties: false ...@@ -87,15 +87,15 @@ additionalProperties: false
examples: examples:
- | - |
spi { spi {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
ltc2947_spi: ltc2947@0 { ltc2947_spi: ltc2947@0 {
compatible = "adi,ltc2947"; compatible = "adi,ltc2947";
reg = <0>; reg = <0>;
/* accumulation takes place always for energ1/charge1. */ /* accumulation takes place always for energ1/charge1. */
/* accumulation only on positive current for energy2/charge2. */ /* accumulation only on positive current for energy2/charge2. */
adi,accumulator-ctl-pol = <0 1>; adi,accumulator-ctl-pol = <0 1>;
}; };
}; };
... ...
...@@ -55,26 +55,26 @@ additionalProperties: false ...@@ -55,26 +55,26 @@ additionalProperties: false
examples: examples:
- | - |
i2c1 { i2c {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
ltc2992@6f { ltc2992@6f {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
compatible = "adi,ltc2992"; compatible = "adi,ltc2992";
reg = <0x6f>; reg = <0x6f>;
channel@0 { channel@0 {
reg = <0x0>; reg = <0x0>;
shunt-resistor-micro-ohms = <10000>; shunt-resistor-micro-ohms = <10000>;
}; };
channel@1 { channel@1 {
reg = <0x1>; reg = <0x1>;
shunt-resistor-micro-ohms = <10000>; shunt-resistor-micro-ohms = <10000>;
}; };
}; };
}; };
... ...
...@@ -41,13 +41,13 @@ additionalProperties: false ...@@ -41,13 +41,13 @@ additionalProperties: false
examples: examples:
- | - |
i2c0 { i2c {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
sbrmi@3c { sbrmi@3c {
compatible = "amd,sbrmi"; compatible = "amd,sbrmi";
reg = <0x3c>; reg = <0x3c>;
}; };
}; };
... ...
...@@ -42,13 +42,13 @@ additionalProperties: false ...@@ -42,13 +42,13 @@ additionalProperties: false
examples: examples:
- | - |
i2c0 { i2c {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
sbtsi@4c { sbtsi@4c {
compatible = "amd,sbtsi"; compatible = "amd,sbtsi";
reg = <0x4c>; reg = <0x4c>;
}; };
}; };
... ...
...@@ -31,7 +31,7 @@ additionalProperties: false ...@@ -31,7 +31,7 @@ additionalProperties: false
examples: examples:
- | - |
iio-hwmon { iio-hwmon {
compatible = "iio-hwmon"; compatible = "iio-hwmon";
io-channels = <&adc 1>, <&adc 2>; io-channels = <&adc 1>, <&adc 2>;
}; };
...@@ -198,30 +198,30 @@ examples: ...@@ -198,30 +198,30 @@ examples:
}; };
- | - |
i2c { i2c {
#address-cells = <1>;
#size-cells = <0>;
sensor@4c {
compatible = "adi,adt7481";
reg = <0x4c>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
channel@0 { sensor@4c {
reg = <0x0>; compatible = "adi,adt7481";
label = "local"; reg = <0x4c>;
}; #address-cells = <1>;
#size-cells = <0>;
channel@1 {
reg = <0x1>; channel@0 {
label = "front"; reg = <0x0>;
temperature-offset-millicelsius = <4000>; label = "local";
}; };
channel@2 { channel@1 {
reg = <0x2>; reg = <0x1>;
label = "back"; label = "front";
temperature-offset-millicelsius = <750>; temperature-offset-millicelsius = <4000>;
};
channel@2 {
reg = <0x2>;
label = "back";
temperature-offset-millicelsius = <750>;
};
}; };
};
}; };
...@@ -131,7 +131,7 @@ additionalProperties: false ...@@ -131,7 +131,7 @@ additionalProperties: false
examples: examples:
- | - |
thermistor0 { thermistor {
compatible = "murata,ncp18wb473"; compatible = "murata,ncp18wb473";
io-channels = <&gpadc 0x06>; io-channels = <&gpadc 0x06>;
pullup-uv = <1800000>; pullup-uv = <1800000>;
......
...@@ -123,23 +123,23 @@ examples: ...@@ -123,23 +123,23 @@ examples:
#size-cells = <0>; #size-cells = <0>;
channel@0 { /* LTD */ channel@0 { /* LTD */
reg = <0>; reg = <0>;
}; };
channel@1 { /* RTD1 */ channel@1 { /* RTD1 */
reg = <1>; reg = <1>;
sensor-type = "voltage"; sensor-type = "voltage";
}; };
channel@2 { /* RTD2 */ channel@2 { /* RTD2 */
reg = <2>; reg = <2>;
sensor-type = "temperature"; sensor-type = "temperature";
temperature-mode = "thermal-diode"; temperature-mode = "thermal-diode";
}; };
channel@3 { /* RTD3 */ channel@3 { /* RTD3 */
reg = <3>; reg = <3>;
sensor-type = "temperature"; sensor-type = "temperature";
}; };
}; };
}; };
...@@ -77,15 +77,15 @@ additionalProperties: false ...@@ -77,15 +77,15 @@ additionalProperties: false
examples: examples:
- | - |
i2c { i2c {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
tmp513@5c { tmp513@5c {
compatible = "ti,tmp513"; compatible = "ti,tmp513";
reg = <0x5C>; reg = <0x5c>;
shunt-resistor-micro-ohms = <330000>; shunt-resistor-micro-ohms = <330000>;
ti,bus-range-microvolt = <32000000>; ti,bus-range-microvolt = <32000000>;
ti,pga-gain = <8>; ti,pga-gain = <8>;
ti,nfactor = <0x1 0xF3 0x00>; ti,nfactor = <0x1 0xf3 0x00>;
}; };
}; };
...@@ -40,12 +40,12 @@ additionalProperties: false ...@@ -40,12 +40,12 @@ additionalProperties: false
examples: examples:
- | - |
i2c { i2c {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
tps23861@30 { tps23861@30 {
compatible = "ti,tps23861"; compatible = "ti,tps23861";
reg = <0x30>; reg = <0x30>;
shunt-resistor-micro-ohms = <255000>; shunt-resistor-micro-ohms = <255000>;
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment