Commit 2362c730 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Andi Shyti
Browse files

dt-bindings: i2c: adjust indentation in DTS example to coding style



Bindings coding style expects 2- or 4-space indentation in the DTS
example.  Correct files having something odd (6- or 8-space) to 4-space
while re-ordering few properties according to DTS coding style (the
first property should be compatible, then reg/ranges).  No functional
impact.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent a95ab3d2
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
@@ -77,10 +77,10 @@ else:
examples:
  - |
    bsca: i2c@f0406200 {
          clock-frequency = <390000>;
        compatible = "brcm,brcmstb-i2c";
          interrupt-parent = <&irq0_intc>;
        reg = <0xf0406200 0x58>;
        clock-frequency = <390000>;
        interrupt-parent = <&irq0_intc>;
        interrupts = <0x18>;
        interrupt-names = "upg_bsca";
    };
+7 −7
Original line number Diff line number Diff line
@@ -44,11 +44,11 @@ examples:
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    iic0: i2c@e0070000 {
            #address-cells = <1>;
            #size-cells = <0>;
        compatible = "renesas,iic-emev2";
        reg = <0xe0070000 0x28>;
        interrupts = <GIC_SPI 32 IRQ_TYPE_EDGE_RISING>;
        clocks = <&iic0_sclk>;
        clock-names = "sclk";
        #address-cells = <1>;
        #size-cells = <0>;
    };
+10 −10
Original line number Diff line number Diff line
@@ -153,8 +153,6 @@ examples:
    #include <dt-bindings/power/r8a7791-sysc.h>

    i2c0: i2c@e6508000 {
            #address-cells = <1>;
            #size-cells = <0>;
        compatible = "renesas,i2c-r8a7791", "renesas,rcar-gen2-i2c";
        reg = <0xe6508000 0x40>;
        interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>;
@@ -163,4 +161,6 @@ examples:
        power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
        resets = <&cpg 931>;
        i2c-scl-internal-delay-ns = <6>;
        #address-cells = <1>;
        #size-cells = <0>;
    };
+33 −33
Original line number Diff line number Diff line
@@ -147,13 +147,13 @@ examples:
    //Example 1 (with st,stm32f4-i2c compatible)
    i2c@40005400 {
        compatible = "st,stm32f4-i2c";
          #address-cells = <1>;
          #size-cells = <0>;
        reg = <0x40005400 0x400>;
        interrupts = <31>,
                     <32>;
        resets = <&rcc 277>;
        clocks = <&rcc 0 149>;
        #address-cells = <1>;
        #size-cells = <0>;
    };

  - |
@@ -162,13 +162,13 @@ examples:
    //Example 2 (with st,stm32f7-i2c compatible)
    i2c@40005800 {
        compatible = "st,stm32f7-i2c";
          #address-cells = <1>;
          #size-cells = <0>;
        reg = <0x40005800 0x400>;
        interrupts = <31>,
                     <32>;
        resets = <&rcc STM32F7_APB1_RESET(I2C1)>;
        clocks = <&rcc 1 CLK_I2C1>;
        #address-cells = <1>;
        #size-cells = <0>;
    };

  - |
@@ -180,8 +180,6 @@ examples:
    #include <dt-bindings/reset/stm32mp1-resets.h>
    i2c@40013000 {
        compatible = "st,stm32mp15-i2c";
          #address-cells = <1>;
          #size-cells = <0>;
        reg = <0x40013000 0x400>;
        interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
@@ -190,4 +188,6 @@ examples:
        i2c-scl-rising-time-ns = <185>;
        i2c-scl-falling-time-ns = <20>;
        st,syscfg-fmp = <&syscfg 0x4 0x2>;
        #address-cells = <1>;
        #size-cells = <0>;
    };
+6 −6

File changed.

Contains only whitespace changes.

+56 −56

File changed.

Contains only whitespace changes.

+17 −17

File changed.

Contains only whitespace changes.

+12 −12

File changed.

Contains only whitespace changes.

Loading