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

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 <krzysztof.kozlowski@linaro.org>
Reviewed-by: Alexandru Lazar <alazar@startmail.com> # max1241
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230124081037.31013-5-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Krzysztof Kozlowski and committed by
Jonathan Cameron
f14ed2f3 57b73eb9

+413 -414
+26 -26
Documentation/devicetree/bindings/iio/accel/adi,adxl355.yaml
··· 58 58 59 59 examples: 60 60 - | 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>; 66 66 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"; 75 74 }; 75 + }; 76 76 - | 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>; 82 82 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"; 91 90 }; 91 + };
+24 -24
Documentation/devicetree/bindings/iio/accel/adi,adxl372.yaml
··· 37 37 38 38 examples: 39 39 - | 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>; 45 45 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>; 53 52 }; 53 + }; 54 54 - | 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>; 60 60 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>; 68 67 }; 68 + };
+4 -4
Documentation/devicetree/bindings/iio/adc/adi,ad7091r5.yaml
··· 44 44 #size-cells = <0>; 45 45 46 46 adc@2f { 47 - compatible = "adi,ad7091r5"; 48 - reg = <0x2f>; 47 + compatible = "adi,ad7091r5"; 48 + reg = <0x2f>; 49 49 50 - interrupts = <25 IRQ_TYPE_EDGE_FALLING>; 51 - interrupt-parent = <&gpio>; 50 + interrupts = <25 IRQ_TYPE_EDGE_FALLING>; 51 + interrupt-parent = <&gpio>; 52 52 }; 53 53 }; 54 54 ...
+18 -18
Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml
··· 100 100 examples: 101 101 - | 102 102 spi { 103 - #address-cells = <1>; 104 - #size-cells = <0>; 103 + #address-cells = <1>; 104 + #size-cells = <0>; 105 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>; 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 118 119 - adi,refin2-pins-enable; 120 - adi,rejection-60-Hz-enable; 121 - adi,buffer-enable; 122 - adi,burnout-currents-enable; 119 + adi,refin2-pins-enable; 120 + adi,rejection-60-Hz-enable; 121 + adi,buffer-enable; 122 + adi,burnout-currents-enable; 123 123 }; 124 124 };
+16 -16
Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml
··· 117 117 #size-cells = <0>; 118 118 119 119 adc@0 { 120 - compatible = "adi,ad7606-8"; 121 - reg = <0>; 122 - spi-max-frequency = <1000000>; 123 - spi-cpol; 124 - spi-cpha; 120 + compatible = "adi,ad7606-8"; 121 + reg = <0>; 122 + spi-max-frequency = <1000000>; 123 + spi-cpol; 124 + spi-cpha; 125 125 126 - avcc-supply = <&adc_vref>; 126 + avcc-supply = <&adc_vref>; 127 127 128 - interrupts = <25 IRQ_TYPE_EDGE_FALLING>; 129 - interrupt-parent = <&gpio>; 128 + interrupts = <25 IRQ_TYPE_EDGE_FALLING>; 129 + interrupt-parent = <&gpio>; 130 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; 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; 139 139 }; 140 140 }; 141 141 ...
+9 -9
Documentation/devicetree/bindings/iio/adc/adi,ad799x.yaml
··· 57 57 examples: 58 58 - | 59 59 i2c { 60 - #address-cells = <1>; 61 - #size-cells = <0>; 60 + #address-cells = <1>; 61 + #size-cells = <0>; 62 62 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>; 68 68 69 - vcc-supply = <&vcc_3v3>; 70 - vref-supply = <&adc_vref>; 69 + vcc-supply = <&vcc_3v3>; 70 + vref-supply = <&adc_vref>; 71 71 }; 72 72 }; 73 73 ...
+4 -4
Documentation/devicetree/bindings/iio/adc/adi,ad9467.yaml
··· 64 64 #size-cells = <0>; 65 65 66 66 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"; 71 71 }; 72 72 }; 73 73 ...
+5 -5
Documentation/devicetree/bindings/iio/adc/adi,axi-adc.yaml
··· 51 51 examples: 52 52 - | 53 53 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"; 58 58 59 - adi,adc-dev = <&spi_adc>; 59 + adi,adc-dev = <&spi_adc>; 60 60 }; 61 61 ...
+7 -7
Documentation/devicetree/bindings/iio/adc/ingenic,adc.yaml
··· 78 78 #include <dt-bindings/iio/adc/ingenic,adc.h> 79 79 80 80 adc@10070000 { 81 - compatible = "ingenic,jz4740-adc"; 82 - #io-channel-cells = <1>; 81 + compatible = "ingenic,jz4740-adc"; 82 + #io-channel-cells = <1>; 83 83 84 - reg = <0x10070000 0x30>; 84 + reg = <0x10070000 0x30>; 85 85 86 - clocks = <&cgu JZ4740_CLK_ADC>; 87 - clock-names = "adc"; 86 + clocks = <&cgu JZ4740_CLK_ADC>; 87 + clock-names = "adc"; 88 88 89 - interrupt-parent = <&intc>; 90 - interrupts = <18>; 89 + interrupt-parent = <&intc>; 90 + interrupts = <18>; 91 91 };
+2 -2
Documentation/devicetree/bindings/iio/adc/maxim,max1027.yaml
··· 54 54 - | 55 55 #include <dt-bindings/interrupt-controller/irq.h> 56 56 spi { 57 - #address-cells = <1>; 58 - #size-cells = <0>; 57 + #address-cells = <1>; 58 + #size-cells = <0>; 59 59 maxadc: adc@0 { 60 60 compatible = "maxim,max1027"; 61 61 reg = <0>;
+2 -2
Documentation/devicetree/bindings/iio/adc/maxim,max1241.yaml
··· 54 54 - | 55 55 #include <dt-bindings/gpio/gpio.h> 56 56 spi { 57 - #address-cells = <1>; 58 - #size-cells = <0>; 57 + #address-cells = <1>; 58 + #size-cells = <0>; 59 59 60 60 adc@0 { 61 61 compatible = "maxim,max1241";
+1 -1
Documentation/devicetree/bindings/iio/adc/qcom,pm8018-adc.yaml
··· 160 160 }; 161 161 ref_muxoff: adc-channel@f { 162 162 reg = <0x00 0x0f>; 163 - }; 163 + }; 164 164 }; 165 165 }; 166 166 ...
+7 -7
Documentation/devicetree/bindings/iio/adc/qcom,spmi-rradc.yaml
··· 40 40 examples: 41 41 - | 42 42 pmic { 43 - #address-cells = <1>; 44 - #size-cells = <0>; 43 + #address-cells = <1>; 44 + #size-cells = <0>; 45 45 46 - pmic_rradc: adc@4500 { 47 - compatible = "qcom,pmi8998-rradc"; 48 - reg = <0x4500>; 49 - #io-channel-cells = <1>; 50 - }; 46 + pmic_rradc: adc@4500 { 47 + compatible = "qcom,pmi8998-rradc"; 48 + reg = <0x4500>; 49 + #io-channel-cells = <1>; 50 + }; 51 51 };
+1 -1
Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml
··· 142 142 pullup-ohm = <47000>; 143 143 pulldown-ohm = <0>; 144 144 io-channels = <&adc 4>; 145 - }; 145 + }; 146 146 }; 147 147 148 148 - |
+4 -4
Documentation/devicetree/bindings/iio/adc/ti,ads1015.yaml
··· 104 104 #address-cells = <1>; 105 105 #size-cells = <0>; 106 106 channel@0 { 107 - reg = <0>; 107 + reg = <0>; 108 108 }; 109 109 channel@4 { 110 - reg = <4>; 111 - ti,gain = <3>; 112 - ti,datarate = <5>; 110 + reg = <4>; 111 + ti,gain = <3>; 112 + ti,datarate = <5>; 113 113 }; 114 114 }; 115 115 };
+16 -16
Documentation/devicetree/bindings/iio/adc/ti,tsc2046.yaml
··· 83 83 #size-cells = <0>; 84 84 85 85 channel@0 { 86 - reg = <0>; 86 + reg = <0>; 87 87 }; 88 88 channel@1 { 89 - reg = <1>; 90 - settling-time-us = <700>; 91 - oversampling-ratio = <5>; 89 + reg = <1>; 90 + settling-time-us = <700>; 91 + oversampling-ratio = <5>; 92 92 }; 93 93 channel@2 { 94 - reg = <2>; 94 + reg = <2>; 95 95 }; 96 96 channel@3 { 97 - reg = <3>; 98 - settling-time-us = <700>; 99 - oversampling-ratio = <5>; 97 + reg = <3>; 98 + settling-time-us = <700>; 99 + oversampling-ratio = <5>; 100 100 }; 101 101 channel@4 { 102 - reg = <4>; 103 - settling-time-us = <700>; 104 - oversampling-ratio = <5>; 102 + reg = <4>; 103 + settling-time-us = <700>; 104 + oversampling-ratio = <5>; 105 105 }; 106 106 channel@5 { 107 - reg = <5>; 108 - settling-time-us = <700>; 109 - oversampling-ratio = <5>; 107 + reg = <5>; 108 + settling-time-us = <700>; 109 + oversampling-ratio = <5>; 110 110 }; 111 111 channel@6 { 112 - reg = <6>; 112 + reg = <6>; 113 113 }; 114 114 channel@7 { 115 - reg = <7>; 115 + reg = <7>; 116 116 }; 117 117 }; 118 118 };
+20 -20
Documentation/devicetree/bindings/iio/dac/adi,ad3552r.yaml
··· 192 192 examples: 193 193 - | 194 194 spi { 195 - #address-cells = <1>; 196 - #size-cells = <0>; 197 - ad3552r@0 { 198 - compatible = "adi,ad3552r"; 199 - reg = <0>; 200 - spi-max-frequency = <20000000>; 201 - #address-cells = <1>; 202 - #size-cells = <0>; 203 - channel@0 { 204 - reg = <0>; 205 - adi,output-range-microvolt = <0 10000000>; 206 - }; 207 - channel@1 { 208 - reg = <1>; 209 - custom-output-range-config { 210 - adi,gain-offset = <5>; 211 - adi,gain-scaling-p-inv-log2 = <1>; 212 - adi,gain-scaling-n-inv-log2 = <2>; 213 - adi,rfb-ohms = <1>; 214 - }; 195 + #address-cells = <1>; 196 + #size-cells = <0>; 197 + ad3552r@0 { 198 + compatible = "adi,ad3552r"; 199 + reg = <0>; 200 + spi-max-frequency = <20000000>; 201 + #address-cells = <1>; 202 + #size-cells = <0>; 203 + channel@0 { 204 + reg = <0>; 205 + adi,output-range-microvolt = <0 10000000>; 206 + }; 207 + channel@1 { 208 + reg = <1>; 209 + custom-output-range-config { 210 + adi,gain-offset = <5>; 211 + adi,gain-scaling-p-inv-log2 = <1>; 212 + adi,gain-scaling-n-inv-log2 = <2>; 213 + adi,rfb-ohms = <1>; 214 + }; 215 215 }; 216 216 }; 217 217 };
+11 -11
Documentation/devicetree/bindings/iio/dac/adi,ad5766.yaml
··· 51 51 examples: 52 52 - | 53 53 spi { 54 - #address-cells = <1>; 55 - #size-cells = <0>; 54 + #address-cells = <1>; 55 + #size-cells = <0>; 56 56 57 - ad5766@0 { 58 - compatible = "adi,ad5766"; 59 - output-range-microvolts = <(-5000000) 5000000>; 60 - reg = <0>; 61 - spi-cpol; 62 - spi-max-frequency = <1000000>; 63 - reset-gpios = <&gpio 22 0>; 64 - }; 65 - }; 57 + ad5766@0 { 58 + compatible = "adi,ad5766"; 59 + output-range-microvolts = <(-5000000) 5000000>; 60 + reg = <0>; 61 + spi-cpol; 62 + spi-max-frequency = <1000000>; 63 + reset-gpios = <&gpio 22 0>; 64 + }; 65 + };
+37 -37
Documentation/devicetree/bindings/iio/dac/adi,ad5770r.yaml
··· 147 147 148 148 examples: 149 149 - | 150 - spi { 151 - #address-cells = <1>; 152 - #size-cells = <0>; 150 + spi { 151 + #address-cells = <1>; 152 + #size-cells = <0>; 153 153 154 - ad5770r@0 { 155 - compatible = "adi,ad5770r"; 156 - reg = <0>; 157 - spi-max-frequency = <1000000>; 158 - vref-supply = <&vref>; 159 - adi,external-resistor; 160 - reset-gpios = <&gpio 22 0>; 161 - #address-cells = <1>; 162 - #size-cells = <0>; 154 + ad5770r@0 { 155 + compatible = "adi,ad5770r"; 156 + reg = <0>; 157 + spi-max-frequency = <1000000>; 158 + vref-supply = <&vref>; 159 + adi,external-resistor; 160 + reset-gpios = <&gpio 22 0>; 161 + #address-cells = <1>; 162 + #size-cells = <0>; 163 163 164 - channel@0 { 165 - reg = <0>; 166 - adi,range-microamp = <0 300000>; 167 - }; 164 + channel@0 { 165 + reg = <0>; 166 + adi,range-microamp = <0 300000>; 167 + }; 168 168 169 - channel@1 { 170 - reg = <1>; 171 - adi,range-microamp = <0 140000>; 172 - }; 169 + channel@1 { 170 + reg = <1>; 171 + adi,range-microamp = <0 140000>; 172 + }; 173 173 174 - channel@2 { 175 - reg = <2>; 176 - adi,range-microamp = <0 55000>; 177 - }; 174 + channel@2 { 175 + reg = <2>; 176 + adi,range-microamp = <0 55000>; 177 + }; 178 178 179 - channel@3 { 180 - reg = <3>; 181 - adi,range-microamp = <0 45000>; 182 - }; 179 + channel@3 { 180 + reg = <3>; 181 + adi,range-microamp = <0 45000>; 182 + }; 183 183 184 - channel@4 { 185 - reg = <4>; 186 - adi,range-microamp = <0 45000>; 187 - }; 184 + channel@4 { 185 + reg = <4>; 186 + adi,range-microamp = <0 45000>; 187 + }; 188 188 189 - channel@5 { 190 - reg = <5>; 191 - adi,range-microamp = <0 45000>; 192 - }; 193 - }; 189 + channel@5 { 190 + reg = <5>; 191 + adi,range-microamp = <0 45000>; 192 + }; 194 193 }; 194 + }; 195 195 ...
+22 -22
Documentation/devicetree/bindings/iio/dac/adi,ltc2688.yaml
··· 116 116 - | 117 117 118 118 spi { 119 - #address-cells = <1>; 120 - #size-cells = <0>; 121 - ltc2688: ltc2688@0 { 122 - compatible = "adi,ltc2688"; 123 - reg = <0>; 119 + #address-cells = <1>; 120 + #size-cells = <0>; 121 + ltc2688: ltc2688@0 { 122 + compatible = "adi,ltc2688"; 123 + reg = <0>; 124 124 125 - vcc-supply = <&vcc>; 126 - iovcc-supply = <&vcc>; 127 - vref-supply = <&vref>; 125 + vcc-supply = <&vcc>; 126 + iovcc-supply = <&vcc>; 127 + vref-supply = <&vref>; 128 128 129 - #address-cells = <1>; 130 - #size-cells = <0>; 131 - channel@0 { 132 - reg = <0>; 133 - adi,toggle-mode; 134 - adi,overrange; 135 - }; 129 + #address-cells = <1>; 130 + #size-cells = <0>; 131 + channel@0 { 132 + reg = <0>; 133 + adi,toggle-mode; 134 + adi,overrange; 135 + }; 136 136 137 - channel@1 { 138 - reg = <1>; 139 - adi,output-range-microvolt = <0 10000000>; 137 + channel@1 { 138 + reg = <1>; 139 + adi,output-range-microvolt = <0 10000000>; 140 140 141 - clocks = <&clock_tgp3>; 142 - adi,toggle-dither-input = <2>; 143 - }; 144 - }; 141 + clocks = <&clock_tgp3>; 142 + adi,toggle-dither-input = <2>; 143 + }; 144 + }; 145 145 }; 146 146 147 147 ...
+8 -8
Documentation/devicetree/bindings/iio/dac/lltc,ltc2632.yaml
··· 64 64 }; 65 65 66 66 spi { 67 - #address-cells = <1>; 68 - #size-cells = <0>; 67 + #address-cells = <1>; 68 + #size-cells = <0>; 69 69 70 - dac@0 { 71 - compatible = "lltc,ltc2632-l12"; 72 - reg = <0>; /* CS0 */ 73 - spi-max-frequency = <1000000>; 74 - vref-supply = <&vref>; 75 - }; 70 + dac@0 { 71 + compatible = "lltc,ltc2632-l12"; 72 + reg = <0>; /* CS0 */ 73 + spi-max-frequency = <1000000>; 74 + vref-supply = <&vref>; 75 + }; 76 76 }; 77 77 ...
+5 -5
Documentation/devicetree/bindings/iio/frequency/adf4371.yaml
··· 58 58 #size-cells = <0>; 59 59 60 60 frequency@0 { 61 - compatible = "adi,adf4371"; 62 - reg = <0>; 63 - spi-max-frequency = <1000000>; 64 - clocks = <&adf4371_clkin>; 65 - clock-names = "clkin"; 61 + compatible = "adi,adf4371"; 62 + reg = <0>; 63 + spi-max-frequency = <1000000>; 64 + clocks = <&adf4371_clkin>; 65 + clock-names = "clkin"; 66 66 }; 67 67 }; 68 68 ...
+7 -7
Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml
··· 50 50 #address-cells = <1>; 51 51 #size-cells = <0>; 52 52 gyro@0 { 53 - compatible = "adi,adxrs290"; 54 - reg = <0>; 55 - spi-max-frequency = <5000000>; 56 - spi-cpol; 57 - spi-cpha; 58 - interrupt-parent = <&gpio>; 59 - interrupts = <25 IRQ_TYPE_EDGE_RISING>; 53 + compatible = "adi,adxrs290"; 54 + reg = <0>; 55 + spi-max-frequency = <5000000>; 56 + spi-cpol; 57 + spi-cpha; 58 + interrupt-parent = <&gpio>; 59 + interrupts = <25 IRQ_TYPE_EDGE_RISING>; 60 60 }; 61 61 }; 62 62 ...
+13 -13
Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.yaml
··· 70 70 #size-cells = <0>; 71 71 72 72 gyroscope@20 { 73 - compatible = "nxp,fxas21002c"; 74 - reg = <0x20>; 73 + compatible = "nxp,fxas21002c"; 74 + reg = <0x20>; 75 75 76 - vdd-supply = <&reg_peri_3p15v>; 77 - vddio-supply = <&reg_peri_3p15v>; 76 + vdd-supply = <&reg_peri_3p15v>; 77 + vddio-supply = <&reg_peri_3p15v>; 78 78 79 - interrupt-parent = <&gpio1>; 80 - interrupts = <7 IRQ_TYPE_EDGE_RISING>; 81 - interrupt-names = "INT1"; 79 + interrupt-parent = <&gpio1>; 80 + interrupts = <7 IRQ_TYPE_EDGE_RISING>; 81 + interrupt-names = "INT1"; 82 82 }; 83 83 }; 84 84 spi { ··· 86 86 #size-cells = <0>; 87 87 88 88 gyroscope@0 { 89 - compatible = "nxp,fxas21002c"; 90 - reg = <0x0>; 89 + compatible = "nxp,fxas21002c"; 90 + reg = <0x0>; 91 91 92 - spi-max-frequency = <2000000>; 92 + spi-max-frequency = <2000000>; 93 93 94 - interrupt-parent = <&gpio2>; 95 - interrupts = <7 IRQ_TYPE_EDGE_RISING>; 96 - interrupt-names = "INT2"; 94 + interrupt-parent = <&gpio2>; 95 + interrupts = <7 IRQ_TYPE_EDGE_RISING>; 96 + interrupt-names = "INT2"; 97 97 }; 98 98 };
+6 -6
Documentation/devicetree/bindings/iio/humidity/ti,hdc2010.yaml
··· 36 36 examples: 37 37 - | 38 38 i2c { 39 - #address-cells = <1>; 40 - #size-cells = <0>; 39 + #address-cells = <1>; 40 + #size-cells = <0>; 41 41 42 - humidity@40 { 43 - compatible = "ti,hdc2010"; 44 - reg = <0x40>; 45 - }; 42 + humidity@40 { 43 + compatible = "ti,hdc2010"; 44 + reg = <0x40>; 45 + }; 46 46 };
+11 -11
Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml
··· 114 114 - | 115 115 #include <dt-bindings/interrupt-controller/irq.h> 116 116 spi { 117 - #address-cells = <1>; 118 - #size-cells = <0>; 117 + #address-cells = <1>; 118 + #size-cells = <0>; 119 119 120 - adis16475: adis16475-3@0 { 121 - compatible = "adi,adis16475-3"; 122 - reg = <0>; 123 - spi-cpha; 124 - spi-cpol; 125 - spi-max-frequency = <2000000>; 126 - interrupts = <4 IRQ_TYPE_EDGE_RISING>; 127 - interrupt-parent = <&gpio>; 128 - }; 120 + adis16475: adis16475-3@0 { 121 + compatible = "adi,adis16475-3"; 122 + reg = <0>; 123 + spi-cpha; 124 + spi-cpol; 125 + spi-max-frequency = <2000000>; 126 + interrupts = <4 IRQ_TYPE_EDGE_RISING>; 127 + interrupt-parent = <&gpio>; 128 + }; 129 129 }; 130 130 ...
+16 -16
Documentation/devicetree/bindings/iio/imu/bosch,bmi160.yaml
··· 64 64 #size-cells = <0>; 65 65 66 66 bmi160@68 { 67 - compatible = "bosch,bmi160"; 68 - reg = <0x68>; 69 - vdd-supply = <&pm8916_l17>; 70 - vddio-supply = <&pm8916_l6>; 71 - interrupt-parent = <&gpio4>; 72 - interrupts = <12 IRQ_TYPE_EDGE_RISING>; 73 - interrupt-names = "INT1"; 74 - mount-matrix = "0", "1", "0", 75 - "-1", "0", "0", 76 - "0", "0", "1"; 67 + compatible = "bosch,bmi160"; 68 + reg = <0x68>; 69 + vdd-supply = <&pm8916_l17>; 70 + vddio-supply = <&pm8916_l6>; 71 + interrupt-parent = <&gpio4>; 72 + interrupts = <12 IRQ_TYPE_EDGE_RISING>; 73 + interrupt-names = "INT1"; 74 + mount-matrix = "0", "1", "0", 75 + "-1", "0", "0", 76 + "0", "0", "1"; 77 77 }; 78 78 }; 79 79 - | ··· 84 84 #size-cells = <0>; 85 85 86 86 bmi160@0 { 87 - compatible = "bosch,bmi160"; 88 - reg = <0>; 89 - spi-max-frequency = <10000000>; 90 - interrupt-parent = <&gpio2>; 91 - interrupts = <12 IRQ_TYPE_EDGE_RISING>; 92 - interrupt-names = "INT2"; 87 + compatible = "bosch,bmi160"; 88 + reg = <0>; 89 + spi-max-frequency = <10000000>; 90 + interrupt-parent = <&gpio2>; 91 + interrupts = <12 IRQ_TYPE_EDGE_RISING>; 92 + interrupt-names = "INT2"; 93 93 }; 94 94 };
+15 -15
Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml
··· 70 70 #size-cells = <0>; 71 71 72 72 icm42605@68 { 73 - compatible = "invensense,icm42605"; 74 - reg = <0x68>; 75 - interrupt-parent = <&gpio2>; 76 - interrupts = <7 IRQ_TYPE_EDGE_FALLING>; 77 - vdd-supply = <&vdd>; 78 - vddio-supply = <&vddio>; 73 + compatible = "invensense,icm42605"; 74 + reg = <0x68>; 75 + interrupt-parent = <&gpio2>; 76 + interrupts = <7 IRQ_TYPE_EDGE_FALLING>; 77 + vdd-supply = <&vdd>; 78 + vddio-supply = <&vddio>; 79 79 }; 80 80 }; 81 81 - | ··· 86 86 #size-cells = <0>; 87 87 88 88 icm42602@0 { 89 - compatible = "invensense,icm42602"; 90 - reg = <0>; 91 - spi-max-frequency = <24000000>; 92 - spi-cpha; 93 - spi-cpol; 94 - interrupt-parent = <&gpio1>; 95 - interrupts = <2 IRQ_TYPE_EDGE_FALLING>; 96 - vdd-supply = <&vdd>; 97 - vddio-supply = <&vddio>; 89 + compatible = "invensense,icm42602"; 90 + reg = <0>; 91 + spi-max-frequency = <24000000>; 92 + spi-cpha; 93 + spi-cpol; 94 + interrupt-parent = <&gpio1>; 95 + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; 96 + vdd-supply = <&vdd>; 97 + vddio-supply = <&vddio>; 98 98 }; 99 99 };
+11 -11
Documentation/devicetree/bindings/iio/imu/nxp,fxos8700.yaml
··· 54 54 #size-cells = <0>; 55 55 56 56 fxos8700@1e { 57 - compatible = "nxp,fxos8700"; 58 - reg = <0x1e>; 57 + compatible = "nxp,fxos8700"; 58 + reg = <0x1e>; 59 59 60 - interrupt-parent = <&gpio2>; 61 - interrupts = <7 IRQ_TYPE_EDGE_RISING>; 62 - interrupt-names = "INT1"; 60 + interrupt-parent = <&gpio2>; 61 + interrupts = <7 IRQ_TYPE_EDGE_RISING>; 62 + interrupt-names = "INT1"; 63 63 }; 64 64 }; 65 65 - | ··· 70 70 #size-cells = <0>; 71 71 72 72 fxos8700@0 { 73 - compatible = "nxp,fxos8700"; 74 - reg = <0>; 73 + compatible = "nxp,fxos8700"; 74 + reg = <0>; 75 75 76 - spi-max-frequency = <1000000>; 77 - interrupt-parent = <&gpio1>; 78 - interrupts = <7 IRQ_TYPE_EDGE_RISING>; 79 - interrupt-names = "INT2"; 76 + spi-max-frequency = <1000000>; 77 + interrupt-parent = <&gpio1>; 78 + interrupts = <7 IRQ_TYPE_EDGE_RISING>; 79 + interrupt-names = "INT2"; 80 80 }; 81 81 };
+9 -9
Documentation/devicetree/bindings/iio/magnetometer/yamaha,yas530.yaml
··· 91 91 #size-cells = <0>; 92 92 93 93 magnetometer@2e { 94 - compatible = "yamaha,yas530"; 95 - reg = <0x2e>; 96 - vdd-supply = <&ldo1_reg>; 97 - iovdd-supply = <&ldo2_reg>; 98 - reset-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>; 99 - interrupts = <13 IRQ_TYPE_EDGE_RISING>; 94 + compatible = "yamaha,yas530"; 95 + reg = <0x2e>; 96 + vdd-supply = <&ldo1_reg>; 97 + iovdd-supply = <&ldo2_reg>; 98 + reset-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>; 99 + interrupts = <13 IRQ_TYPE_EDGE_RISING>; 100 100 }; 101 101 }; 102 102 ··· 105 105 #size-cells = <0>; 106 106 107 107 magnetometer@2e { 108 - compatible = "yamaha,yas539"; 109 - reg = <0x2e>; 110 - vdd-supply = <&ldo1_reg>; 108 + compatible = "yamaha,yas539"; 109 + reg = <0x2e>; 110 + vdd-supply = <&ldo1_reg>; 111 111 }; 112 112 };
+11 -11
Documentation/devicetree/bindings/iio/pressure/bmp085.yaml
··· 61 61 #include <dt-bindings/gpio/gpio.h> 62 62 #include <dt-bindings/interrupt-controller/irq.h> 63 63 i2c { 64 - #address-cells = <1>; 65 - #size-cells = <0>; 66 - pressure@77 { 67 - compatible = "bosch,bmp085"; 68 - reg = <0x77>; 69 - interrupt-parent = <&gpio0>; 70 - interrupts = <25 IRQ_TYPE_EDGE_RISING>; 71 - reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; 72 - vddd-supply = <&foo>; 73 - vdda-supply = <&bar>; 74 - }; 64 + #address-cells = <1>; 65 + #size-cells = <0>; 66 + pressure@77 { 67 + compatible = "bosch,bmp085"; 68 + reg = <0x77>; 69 + interrupt-parent = <&gpio0>; 70 + interrupts = <25 IRQ_TYPE_EDGE_RISING>; 71 + reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; 72 + vddd-supply = <&foo>; 73 + vdda-supply = <&bar>; 74 + }; 75 75 };
+1 -1
Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml
··· 60 60 #address-cells = <1>; 61 61 #size-cells = <0>; 62 62 63 - lightning@0 { 63 + lightning@0 { 64 64 compatible = "ams,as3935"; 65 65 reg = <0>; 66 66 spi-max-frequency = <400000>;
+59 -60
Documentation/devicetree/bindings/iio/temperature/adi,ltc2983.yaml
··· 472 472 #size-cells = <0>; 473 473 474 474 temperature-sensor@0 { 475 - compatible = "adi,ltc2983"; 476 - reg = <0>; 475 + compatible = "adi,ltc2983"; 476 + reg = <0>; 477 477 478 - #address-cells = <1>; 479 - #size-cells = <0>; 478 + #address-cells = <1>; 479 + #size-cells = <0>; 480 480 481 - interrupts = <20 IRQ_TYPE_EDGE_RISING>; 482 - interrupt-parent = <&gpio>; 481 + interrupts = <20 IRQ_TYPE_EDGE_RISING>; 482 + interrupt-parent = <&gpio>; 483 483 484 - thermocouple@18 { 485 - reg = <18>; 486 - adi,sensor-type = <8>; //Type B 487 - adi,sensor-oc-current-microamp = <10>; 488 - adi,cold-junction-handle = <&diode5>; 489 - }; 484 + thermocouple@18 { 485 + reg = <18>; 486 + adi,sensor-type = <8>; //Type B 487 + adi,sensor-oc-current-microamp = <10>; 488 + adi,cold-junction-handle = <&diode5>; 489 + }; 490 490 491 - diode5: diode@5 { 492 - reg = <5>; 493 - adi,sensor-type = <28>; 494 - }; 491 + diode5: diode@5 { 492 + reg = <5>; 493 + adi,sensor-type = <28>; 494 + }; 495 495 496 - rsense2: rsense@2 { 497 - reg = <2>; 498 - adi,sensor-type = <29>; 499 - adi,rsense-val-milli-ohms = <1200000>; //1.2Kohms 500 - }; 496 + rsense2: rsense@2 { 497 + reg = <2>; 498 + adi,sensor-type = <29>; 499 + adi,rsense-val-milli-ohms = <1200000>; //1.2Kohms 500 + }; 501 501 502 - rtd@14 { 503 - reg = <14>; 504 - adi,sensor-type = <15>; //PT1000 505 - /*2-wire, internal gnd, no current rotation*/ 506 - adi,number-of-wires = <2>; 507 - adi,rsense-share; 508 - adi,excitation-current-microamp = <500>; 509 - adi,rsense-handle = <&rsense2>; 510 - }; 502 + rtd@14 { 503 + reg = <14>; 504 + adi,sensor-type = <15>; //PT1000 505 + /*2-wire, internal gnd, no current rotation*/ 506 + adi,number-of-wires = <2>; 507 + adi,rsense-share; 508 + adi,excitation-current-microamp = <500>; 509 + adi,rsense-handle = <&rsense2>; 510 + }; 511 511 512 - adc@10 { 513 - reg = <10>; 514 - adi,sensor-type = <30>; 515 - adi,single-ended; 516 - }; 512 + adc@10 { 513 + reg = <10>; 514 + adi,sensor-type = <30>; 515 + adi,single-ended; 516 + }; 517 517 518 - thermistor@12 { 519 - reg = <12>; 520 - adi,sensor-type = <26>; //Steinhart 521 - adi,rsense-handle = <&rsense2>; 522 - adi,custom-steinhart = <0x00f371ec 0x12345678 523 - 0x2c0f8733 0x10018c66 0xa0feaccd 524 - 0x90021d99>; //6 entries 525 - }; 518 + thermistor@12 { 519 + reg = <12>; 520 + adi,sensor-type = <26>; //Steinhart 521 + adi,rsense-handle = <&rsense2>; 522 + adi,custom-steinhart = <0x00f371ec 0x12345678 523 + 0x2c0f8733 0x10018c66 0xa0feaccd 524 + 0x90021d99>; //6 entries 525 + }; 526 526 527 - thermocouple@20 { 528 - reg = <20>; 529 - adi,sensor-type = <9>; //custom thermocouple 530 - adi,single-ended; 531 - adi,custom-thermocouple = 532 - /bits/ 64 <(-50220000) 0>, 533 - /bits/ 64 <(-30200000) 99100000>, 534 - /bits/ 64 <(-5300000) 135400000>, 535 - /bits/ 64 <0 273150000>, 536 - /bits/ 64 <40200000 361200000>, 537 - /bits/ 64 <55300000 522100000>, 538 - /bits/ 64 <88300000 720300000>, 539 - /bits/ 64 <132200000 811200000>, 540 - /bits/ 64 <188700000 922500000>, 541 - /bits/ 64 <460400000 1000000000>; //10 pairs 542 - }; 543 - 527 + thermocouple@20 { 528 + reg = <20>; 529 + adi,sensor-type = <9>; //custom thermocouple 530 + adi,single-ended; 531 + adi,custom-thermocouple = 532 + /bits/ 64 <(-50220000) 0>, 533 + /bits/ 64 <(-30200000) 99100000>, 534 + /bits/ 64 <(-5300000) 135400000>, 535 + /bits/ 64 <0 273150000>, 536 + /bits/ 64 <40200000 361200000>, 537 + /bits/ 64 <55300000 522100000>, 538 + /bits/ 64 <88300000 720300000>, 539 + /bits/ 64 <132200000 811200000>, 540 + /bits/ 64 <188700000 922500000>, 541 + /bits/ 64 <460400000 1000000000>; //10 pairs 542 + }; 544 543 }; 545 544 }; 546 545 ...
+5 -5
Documentation/devicetree/bindings/iio/temperature/maxim,max31865.yaml
··· 44 44 #size-cells = <0>; 45 45 46 46 temperature-sensor@0 { 47 - compatible = "maxim,max31865"; 48 - reg = <0>; 49 - spi-max-frequency = <400000>; 50 - spi-cpha; 51 - maxim,3-wire; 47 + compatible = "maxim,max31865"; 48 + reg = <0>; 49 + spi-max-frequency = <400000>; 50 + spi-cpha; 51 + maxim,3-wire; 52 52 }; 53 53 }; 54 54 ...