linux/Documentation/devicetree/bindings/i2c/i2c-pxa.yaml
Rob Herring f516fb704d dt-bindings: Whitespace clean-ups in schema files
Clean-up incorrect indentation, extra spaces, long lines, 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 (which I plan to integrate into the checks).

Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-clk@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: linux-spi@vger.kernel.org
Cc: linux-gpio@vger.kernel.org
Cc: linux-remoteproc@vger.kernel.org
Cc: linux-hwmon@vger.kernel.org
Cc: linux-i2c@vger.kernel.org
Cc: linux-fbdev@vger.kernel.org
Cc: linux-iio@vger.kernel.org
Cc: linux-input@vger.kernel.org
Cc: linux-pm@vger.kernel.org
Cc: linux-media@vger.kernel.org
Cc: alsa-devel@alsa-project.org
Cc: linux-mmc@vger.kernel.org
Cc: linux-mtd@lists.infradead.org
Cc: netdev@vger.kernel.org
Cc: linux-rtc@vger.kernel.org
Cc: linux-serial@vger.kernel.org
Cc: linux-usb@vger.kernel.org
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Rob Herring <robh@kernel.org>
2020-08-14 08:55:58 -06:00

75 lines
1.4 KiB
YAML

# SPDX-License-Identifier: GPL-2.0-only
%YAML 1.2
---
$id: http://devicetree.org/schemas/i2c/i2c-pxa.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Marvell MMP I2C controller bindings
maintainers:
- Rob Herring <robh+dt@kernel.org>
allOf:
- $ref: /schemas/i2c/i2c-controller.yaml#
- if:
not:
required:
- mrvl,i2c-polling
then:
required:
- interrupts
properties:
compatible:
enum:
- mrvl,mmp-twsi
- mrvl,pxa-i2c
- marvell,armada-3700-i2c
reg:
maxItems: 1
interrupts:
maxItems: 1
clocks:
minItems: 1
resets:
minItems: 1
mrvl,i2c-polling:
$ref: /schemas/types.yaml#/definitions/flag
description: |
Disable interrupt of i2c controller. Polling status register of i2c
controller instead.
mrvl,i2c-fast-mode:
$ref: /schemas/types.yaml#/definitions/flag
description: Enable fast mode of i2c controller.
unevaluatedProperties: false
required:
- compatible
- reg
- interrupts
- clocks
- '#address-cells'
- '#size-cells'
examples:
- |
#include <dt-bindings/clock/marvell,mmp2.h>
i2c@d4011000 {
compatible = "mrvl,mmp-twsi";
reg = <0xd4011000 0x1000>;
interrupts = <7>;
clocks = <&soc_clocks MMP2_CLK_TWSI1>;
mrvl,i2c-fast-mode;
#address-cells = <1>;
#size-cells = <0>;
};
...