Skip to content

Commit

Permalink
dt-bindings: More whitespace clean-ups in schema files
Browse files Browse the repository at this point in the history
Clean-up incorrect indentation, extra spaces, and missing EOF newline in
schema files. Most of the clean-ups are for list indentation which
should always be 2 spaces more than the preceding keyword.

Found with yamllint (now integrated into the checks).

Cc: linux-arm-kernel@lists.infradead.org
Cc: dri-devel@lists.freedesktop.org
Cc: linux-gpio@vger.kernel.org
Cc: linux-i2c@vger.kernel.org
Cc: linux-iio@vger.kernel.org
Cc: linux-pm@vger.kernel.org
Cc: alsa-devel@alsa-project.org
Cc: linux-mmc@vger.kernel.org
Cc: linux-mtd@lists.infradead.org
Cc: linux-serial@vger.kernel.org
Cc: linux-usb@vger.kernel.org
Acked-by: Wolfram Sang <wsa@kernel.org> # for I2C
Acked-by: Sam Ravnborg <sam@ravnborg.org> # for display
Acked-by:  Jonathan Cameron <Jonathan.Cameron@huawei.com> #for-iio
Signed-off-by: Rob Herring <robh@kernel.org>
  • Loading branch information
robherring committed Oct 26, 2020
1 parent 5c024e6 commit 6ad8838
Show file tree
Hide file tree
Showing 34 changed files with 223 additions and 219 deletions.
8 changes: 4 additions & 4 deletions Documentation/devicetree/bindings/arm/stm32/stm32.yaml
Expand Up @@ -54,8 +54,8 @@ properties:
- const: st,stm32mp157
- description: Odyssey STM32MP1 SoM based Boards
items:
- enum:
- seeed,stm32mp157c-odyssey
- const: seeed,stm32mp157c-odyssey-som
- const: st,stm32mp157
- enum:
- seeed,stm32mp157c-odyssey
- const: seeed,stm32mp157c-odyssey-som
- const: st,stm32mp157
...
Expand Up @@ -7,17 +7,17 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Toshiba TC358775 DSI to LVDS bridge bindings

maintainers:
- Vinay Simha BN <simhavcs@gmail.com>
- Vinay Simha BN <simhavcs@gmail.com>

description: |
This binding supports DSI to LVDS bridge TC358775
This binding supports DSI to LVDS bridge TC358775
MIPI DSI-RX Data 4-lane, CLK 1-lane with data rates up to 800 Mbps/lane.
Video frame size:
Up to 1600x1200 24-bit/pixel resolution for single-link LVDS display panel
limited by 135 MHz LVDS speed
Up to WUXGA (1920x1200 24-bit pixels) resolution for dual-link LVDS display
panel, limited by 270 MHz LVDS speed.
MIPI DSI-RX Data 4-lane, CLK 1-lane with data rates up to 800 Mbps/lane.
Video frame size:
Up to 1600x1200 24-bit/pixel resolution for single-link LVDS display panel
limited by 135 MHz LVDS speed
Up to WUXGA (1920x1200 24-bit pixels) resolution for dual-link LVDS display
panel, limited by 270 MHz LVDS speed.
properties:
compatible:
Expand All @@ -29,7 +29,7 @@ properties:

vdd-supply:
maxItems: 1
description: 1.2V LVDS Power Supply
description: 1.2V LVDS Power Supply

vddio-supply:
maxItems: 1
Expand Down Expand Up @@ -77,16 +77,16 @@ properties:
- port@1

required:
- compatible
- reg
- vdd-supply
- vddio-supply
- stby-gpios
- reset-gpios
- ports
- compatible
- reg
- vdd-supply
- vddio-supply
- stby-gpios
- reset-gpios
- ports

examples:
- |
- |
#include <dt-bindings/gpio/gpio.h>
/* For single-link LVDS display panel */
Expand Down Expand Up @@ -147,7 +147,7 @@ examples:
};
};
- |
- |
/* For dual-link LVDS display panel */
i2c@78b8000 {
Expand Down
Expand Up @@ -13,9 +13,8 @@ properties:
compatible:
items:
- enum:
- bananapi,lhr050h41
- feixin,k101-im2byl02

- bananapi,lhr050h41
- feixin,k101-im2byl02
- const: ilitek,ili9881c

backlight: true
Expand Down
6 changes: 3 additions & 3 deletions Documentation/devicetree/bindings/eeprom/at25.yaml
Expand Up @@ -81,14 +81,14 @@ properties:
at25,byte-len:
$ref: /schemas/types.yaml#/definitions/uint32
description:
Total eeprom size in bytes. Deprecated, use "size" property instead.
Total eeprom size in bytes. Deprecated, use "size" property instead.
deprecated: true

at25,addr-mode:
$ref: /schemas/types.yaml#/definitions/uint32
description:
Addr-mode flags, as defined in include/linux/spi/eeprom.h.
Deprecated, use "address-width" property instead.
Addr-mode flags, as defined in include/linux/spi/eeprom.h.
Deprecated, use "address-width" property instead.
deprecated: true

at25,page-size:
Expand Down
Expand Up @@ -43,8 +43,8 @@ properties:
gpio-controller: true

gpio-line-names:
minItems: 1
maxItems: 8
minItems: 1
maxItems: 8

required:
- compatible
Expand Down
8 changes: 4 additions & 4 deletions Documentation/devicetree/bindings/i2c/ingenic,i2c.yaml
Expand Up @@ -19,11 +19,11 @@ properties:
compatible:
oneOf:
- enum:
- ingenic,jz4770-i2c
- ingenic,x1000-i2c
- ingenic,jz4770-i2c
- ingenic,x1000-i2c
- items:
- const: ingenic,jz4780-i2c
- const: ingenic,jz4770-i2c
- const: ingenic,jz4780-i2c
- const: ingenic,jz4770-i2c

reg:
maxItems: 1
Expand Down
3 changes: 2 additions & 1 deletion Documentation/devicetree/bindings/iio/adc/adi,ad7291.yaml
Expand Up @@ -43,4 +43,5 @@ examples:
vref-supply = <&adc_vref>;
};
};
...
...

3 changes: 2 additions & 1 deletion Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml
Expand Up @@ -46,7 +46,8 @@ properties:
spi-max-frequency: true

spi-cpol: true
spi-cpha : true

spi-cpha: true

"#io-channel-cells":
const: 1
Expand Down
Expand Up @@ -22,8 +22,8 @@ properties:
adc-reserved-channels:
$ref: /schemas/types.yaml#/definitions/uint32
description:
Bitmask of reserved channels, i.e. channels that cannot be
used by the OS.
Bitmask of reserved channels, i.e. channels that cannot be
used by the OS.

clocks:
maxItems: 1
Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/iio/adc/holt,hi8435.yaml
Expand Up @@ -21,7 +21,7 @@ properties:

gpios:
description:
GPIO used for controlling the reset pin
GPIO used for controlling the reset pin
maxItems: 1

spi-max-frequency: true
Expand Down
Expand Up @@ -94,12 +94,12 @@ properties:
instances.
required:
- compatible
- reg
- interrupts
- interrupt-names
- interrupt-controller
- "#interrupt-cells"
- compatible
- reg
- interrupts
- interrupt-names
- interrupt-controller
- "#interrupt-cells"

additionalProperties: false

Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/mfd/ene-kb3930.yaml
Expand Up @@ -17,7 +17,7 @@ properties:
compatible:
items:
- enum:
- dell,wyse-ariel-ec # Dell Wyse Ariel board (3020)
- dell,wyse-ariel-ec # Dell Wyse Ariel board (3020)
- const: ene,kb3930
reg:
maxItems: 1
Expand Down
8 changes: 4 additions & 4 deletions Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml
Expand Up @@ -32,11 +32,11 @@ allOf:
clock-output-names:
oneOf:
- items:
- const: clk_out_sd0
- const: clk_in_sd0
- const: clk_out_sd0
- const: clk_in_sd0
- items:
- const: clk_out_sd1
- const: clk_in_sd1
- const: clk_out_sd1
- const: clk_in_sd1

properties:
compatible:
Expand Down
15 changes: 7 additions & 8 deletions Documentation/devicetree/bindings/mmc/sdhci-am654.yaml
Expand Up @@ -3,7 +3,7 @@
%YAML 1.2
---
$id: "http://devicetree.org/schemas/mmc/sdhci-am654.yaml#"
$schema : "http://devicetree.org/meta-schemas/core.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"

title: TI AM654 MMC Controller

Expand Down Expand Up @@ -163,13 +163,12 @@ properties:
ti,driver-strength-ohm:
description: DLL drive strength in ohms
$ref: "/schemas/types.yaml#/definitions/uint32"
oneOf:
- enum:
- 33
- 40
- 50
- 66
- 100
enum:
- 33
- 40
- 50
- 66
- 100

ti,strobe-sel:
description: strobe select delay for HS400 speed mode.
Expand Down
Expand Up @@ -29,16 +29,16 @@ properties:
reg-names:
oneOf:
- items:
- const: dbi
- const: dbi2
- const: link
- const: addr_space
- const: dbi
- const: dbi2
- const: link
- const: addr_space
- items:
- const: dbi
- const: dbi2
- const: link
- const: addr_space
- const: atu
- const: dbi
- const: dbi2
- const: link
- const: addr_space
- const: atu

clocks:
maxItems: 2
Expand Down
Expand Up @@ -31,10 +31,10 @@ properties:
clock-names:
oneOf:
- items: # for PXs2
- const: link
- const: link
- items: # for others
- const: link
- const: phy
- const: link
- const: phy

resets:
maxItems: 2
Expand Down
20 changes: 10 additions & 10 deletions Documentation/devicetree/bindings/phy/ti,omap-usb2.yaml
Expand Up @@ -7,23 +7,23 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: OMAP USB2 PHY

maintainers:
- Kishon Vijay Abraham I <kishon@ti.com>
- Roger Quadros <rogerq@ti.com>
- Kishon Vijay Abraham I <kishon@ti.com>
- Roger Quadros <rogerq@ti.com>

properties:
compatible:
oneOf:
- items:
- enum:
- ti,dra7x-usb2
- ti,dra7x-usb2-phy2
- ti,am654-usb2
- enum:
- ti,omap-usb2
- enum:
- ti,dra7x-usb2
- ti,dra7x-usb2-phy2
- ti,am654-usb2
- enum:
- ti,omap-usb2
- items:
- const: ti,am437x-usb2
- const: ti,am437x-usb2
- items:
- const: ti,omap-usb2
- const: ti,omap-usb2

reg:
maxItems: 1
Expand Down

0 comments on commit 6ad8838

Please sign in to comment.