Skip to content

Commit f14ed2f

Browse files
krzkjic23
authored andcommitted
dt-bindings: iio: cleanup examples - indentation
Use 4-space indentation (for cases when it is neither 4 not 2 space). Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Alexandru Lazar <[email protected]> # max1241 Acked-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 57b73eb commit f14ed2f

34 files changed

+440
-441
lines changed

Documentation/devicetree/bindings/iio/accel/adi,adxl355.yaml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -58,34 +58,34 @@ unevaluatedProperties: false
5858

5959
examples:
6060
- |
61-
#include <dt-bindings/gpio/gpio.h>
62-
#include <dt-bindings/interrupt-controller/irq.h>
63-
i2c {
64-
#address-cells = <1>;
65-
#size-cells = <0>;
61+
#include <dt-bindings/gpio/gpio.h>
62+
#include <dt-bindings/interrupt-controller/irq.h>
63+
i2c {
64+
#address-cells = <1>;
65+
#size-cells = <0>;
6666
67-
/* Example for a I2C device node */
68-
accelerometer@1d {
69-
compatible = "adi,adxl355";
70-
reg = <0x1d>;
71-
interrupt-parent = <&gpio>;
72-
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
73-
interrupt-names = "DRDY";
74-
};
67+
/* Example for a I2C device node */
68+
accelerometer@1d {
69+
compatible = "adi,adxl355";
70+
reg = <0x1d>;
71+
interrupt-parent = <&gpio>;
72+
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
73+
interrupt-names = "DRDY";
7574
};
75+
};
7676
- |
77-
#include <dt-bindings/gpio/gpio.h>
78-
#include <dt-bindings/interrupt-controller/irq.h>
79-
spi {
80-
#address-cells = <1>;
81-
#size-cells = <0>;
77+
#include <dt-bindings/gpio/gpio.h>
78+
#include <dt-bindings/interrupt-controller/irq.h>
79+
spi {
80+
#address-cells = <1>;
81+
#size-cells = <0>;
8282
83-
accelerometer@0 {
84-
compatible = "adi,adxl355";
85-
reg = <0>;
86-
spi-max-frequency = <1000000>;
87-
interrupt-parent = <&gpio>;
88-
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
89-
interrupt-names = "DRDY";
90-
};
83+
accelerometer@0 {
84+
compatible = "adi,adxl355";
85+
reg = <0>;
86+
spi-max-frequency = <1000000>;
87+
interrupt-parent = <&gpio>;
88+
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
89+
interrupt-names = "DRDY";
9190
};
91+
};

Documentation/devicetree/bindings/iio/accel/adi,adxl372.yaml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,32 +37,32 @@ unevaluatedProperties: false
3737

3838
examples:
3939
- |
40-
#include <dt-bindings/gpio/gpio.h>
41-
#include <dt-bindings/interrupt-controller/irq.h>
42-
i2c0 {
43-
#address-cells = <1>;
44-
#size-cells = <0>;
40+
#include <dt-bindings/gpio/gpio.h>
41+
#include <dt-bindings/interrupt-controller/irq.h>
42+
i2c {
43+
#address-cells = <1>;
44+
#size-cells = <0>;
4545
46-
/* Example for a I2C device node */
47-
accelerometer@53 {
48-
compatible = "adi,adxl372";
49-
reg = <0x53>;
50-
interrupt-parent = <&gpio>;
51-
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
52-
};
46+
/* Example for a I2C device node */
47+
accelerometer@53 {
48+
compatible = "adi,adxl372";
49+
reg = <0x53>;
50+
interrupt-parent = <&gpio>;
51+
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
5352
};
53+
};
5454
- |
55-
#include <dt-bindings/gpio/gpio.h>
56-
#include <dt-bindings/interrupt-controller/irq.h>
57-
spi0 {
58-
#address-cells = <1>;
59-
#size-cells = <0>;
55+
#include <dt-bindings/gpio/gpio.h>
56+
#include <dt-bindings/interrupt-controller/irq.h>
57+
spi {
58+
#address-cells = <1>;
59+
#size-cells = <0>;
6060
61-
accelerometer@0 {
62-
compatible = "adi,adxl372";
63-
reg = <0>;
64-
spi-max-frequency = <1000000>;
65-
interrupt-parent = <&gpio>;
66-
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
67-
};
61+
accelerometer@0 {
62+
compatible = "adi,adxl372";
63+
reg = <0>;
64+
spi-max-frequency = <1000000>;
65+
interrupt-parent = <&gpio>;
66+
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
6867
};
68+
};

Documentation/devicetree/bindings/iio/adc/adi,ad7091r5.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ examples:
4444
#size-cells = <0>;
4545
4646
adc@2f {
47-
compatible = "adi,ad7091r5";
48-
reg = <0x2f>;
47+
compatible = "adi,ad7091r5";
48+
reg = <0x2f>;
4949
50-
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
51-
interrupt-parent = <&gpio>;
50+
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
51+
interrupt-parent = <&gpio>;
5252
};
5353
};
5454
...

Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -100,25 +100,25 @@ unevaluatedProperties: false
100100
examples:
101101
- |
102102
spi {
103-
#address-cells = <1>;
104-
#size-cells = <0>;
105-
106-
adc@0 {
107-
compatible = "adi,ad7192";
108-
reg = <0>;
109-
spi-max-frequency = <1000000>;
110-
spi-cpol;
111-
spi-cpha;
112-
clocks = <&ad7192_mclk>;
113-
clock-names = "mclk";
114-
interrupts = <25 0x2>;
115-
interrupt-parent = <&gpio>;
116-
dvdd-supply = <&dvdd>;
117-
avdd-supply = <&avdd>;
118-
119-
adi,refin2-pins-enable;
120-
adi,rejection-60-Hz-enable;
121-
adi,buffer-enable;
122-
adi,burnout-currents-enable;
103+
#address-cells = <1>;
104+
#size-cells = <0>;
105+
106+
adc@0 {
107+
compatible = "adi,ad7192";
108+
reg = <0>;
109+
spi-max-frequency = <1000000>;
110+
spi-cpol;
111+
spi-cpha;
112+
clocks = <&ad7192_mclk>;
113+
clock-names = "mclk";
114+
interrupts = <25 0x2>;
115+
interrupt-parent = <&gpio>;
116+
dvdd-supply = <&dvdd>;
117+
avdd-supply = <&avdd>;
118+
119+
adi,refin2-pins-enable;
120+
adi,rejection-60-Hz-enable;
121+
adi,buffer-enable;
122+
adi,burnout-currents-enable;
123123
};
124124
};

Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -117,25 +117,25 @@ examples:
117117
#size-cells = <0>;
118118
119119
adc@0 {
120-
compatible = "adi,ad7606-8";
121-
reg = <0>;
122-
spi-max-frequency = <1000000>;
123-
spi-cpol;
124-
spi-cpha;
125-
126-
avcc-supply = <&adc_vref>;
127-
128-
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
129-
interrupt-parent = <&gpio>;
130-
131-
adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
132-
reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
133-
adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
134-
adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>,
135-
<&gpio 23 GPIO_ACTIVE_HIGH>,
136-
<&gpio 26 GPIO_ACTIVE_HIGH>;
137-
standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
138-
adi,sw-mode;
120+
compatible = "adi,ad7606-8";
121+
reg = <0>;
122+
spi-max-frequency = <1000000>;
123+
spi-cpol;
124+
spi-cpha;
125+
126+
avcc-supply = <&adc_vref>;
127+
128+
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
129+
interrupt-parent = <&gpio>;
130+
131+
adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
132+
reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
133+
adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
134+
adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>,
135+
<&gpio 23 GPIO_ACTIVE_HIGH>,
136+
<&gpio 26 GPIO_ACTIVE_HIGH>;
137+
standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
138+
adi,sw-mode;
139139
};
140140
};
141141
...

Documentation/devicetree/bindings/iio/adc/adi,ad799x.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@ additionalProperties: false
5757
examples:
5858
- |
5959
i2c {
60-
#address-cells = <1>;
61-
#size-cells = <0>;
60+
#address-cells = <1>;
61+
#size-cells = <0>;
6262
63-
adc1: adc@28 {
64-
reg = <0x28>;
65-
compatible = "adi,ad7991";
66-
interrupts = <13 2>;
67-
interrupt-parent = <&gpio6>;
63+
adc1: adc@28 {
64+
reg = <0x28>;
65+
compatible = "adi,ad7991";
66+
interrupts = <13 2>;
67+
interrupt-parent = <&gpio6>;
6868
69-
vcc-supply = <&vcc_3v3>;
70-
vref-supply = <&adc_vref>;
69+
vcc-supply = <&vcc_3v3>;
70+
vref-supply = <&adc_vref>;
7171
};
7272
};
7373
...

Documentation/devicetree/bindings/iio/adc/adi,ad9467.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ examples:
6464
#size-cells = <0>;
6565
6666
adc@0 {
67-
compatible = "adi,ad9467";
68-
reg = <0>;
69-
clocks = <&adc_clk>;
70-
clock-names = "adc-clk";
67+
compatible = "adi,ad9467";
68+
reg = <0>;
69+
clocks = <&adc_clk>;
70+
clock-names = "adc-clk";
7171
};
7272
};
7373
...

Documentation/devicetree/bindings/iio/adc/adi,axi-adc.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ additionalProperties: false
5151
examples:
5252
- |
5353
axi-adc@44a00000 {
54-
compatible = "adi,axi-adc-10.0.a";
55-
reg = <0x44a00000 0x10000>;
56-
dmas = <&rx_dma 0>;
57-
dma-names = "rx";
54+
compatible = "adi,axi-adc-10.0.a";
55+
reg = <0x44a00000 0x10000>;
56+
dmas = <&rx_dma 0>;
57+
dma-names = "rx";
5858
59-
adi,adc-dev = <&spi_adc>;
59+
adi,adc-dev = <&spi_adc>;
6060
};
6161
...

Documentation/devicetree/bindings/iio/adc/ingenic,adc.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ examples:
7878
#include <dt-bindings/iio/adc/ingenic,adc.h>
7979
8080
adc@10070000 {
81-
compatible = "ingenic,jz4740-adc";
82-
#io-channel-cells = <1>;
81+
compatible = "ingenic,jz4740-adc";
82+
#io-channel-cells = <1>;
8383
84-
reg = <0x10070000 0x30>;
84+
reg = <0x10070000 0x30>;
8585
86-
clocks = <&cgu JZ4740_CLK_ADC>;
87-
clock-names = "adc";
86+
clocks = <&cgu JZ4740_CLK_ADC>;
87+
clock-names = "adc";
8888
89-
interrupt-parent = <&intc>;
90-
interrupts = <18>;
89+
interrupt-parent = <&intc>;
90+
interrupts = <18>;
9191
};

Documentation/devicetree/bindings/iio/adc/maxim,max1027.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ examples:
5454
- |
5555
#include <dt-bindings/interrupt-controller/irq.h>
5656
spi {
57-
#address-cells = <1>;
58-
#size-cells = <0>;
57+
#address-cells = <1>;
58+
#size-cells = <0>;
5959
maxadc: adc@0 {
6060
compatible = "maxim,max1027";
6161
reg = <0>;

0 commit comments

Comments
 (0)