-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: i2c: meson: convert to yaml
Now that we have the DT validation in place, let's convert the device tree bindings for the Amlogic I2C Controller over to YAML schemas. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Acked-by: Beniamino Galvani <b.galvani@gmail.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
- Loading branch information
Neil Armstrong
authored and
Wolfram Sang
committed
Nov 11, 2019
1 parent
52d3be7
commit 7375e07
Showing
2 changed files
with
53 additions
and
30 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
Documentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
# Copyright 2019 BayLibre, SAS | ||
%YAML 1.2 | ||
--- | ||
$id: "http://devicetree.org/schemas/i2c/amlogic,meson6-i2c.yaml#" | ||
$schema: "http://devicetree.org/meta-schemas/core.yaml#" | ||
|
||
title: Amlogic Meson I2C Controller | ||
|
||
maintainers: | ||
- Neil Armstrong <narmstrong@baylibre.com> | ||
- Beniamino Galvani <b.galvani@gmail.com> | ||
|
||
allOf: | ||
- $ref: /schemas/i2c/i2c-controller.yaml# | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- amlogic,meson6-i2c # Meson6, Meson8 and compatible SoCs | ||
- amlogic,meson-gxbb-i2c # GXBB and compatible SoCs | ||
- amlogic,meson-axg-i2c # AXG and compatible SoCs | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
clocks: | ||
minItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
- clocks | ||
|
||
examples: | ||
- | | ||
i2c@c8100500 { | ||
compatible = "amlogic,meson6-i2c"; | ||
reg = <0xc8100500 0x20>; | ||
interrupts = <92>; | ||
clocks = <&clk81>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
eeprom@52 { | ||
compatible = "atmel,24c32"; | ||
reg = <0x52>; | ||
}; | ||
}; |
This file was deleted.
Oops, something went wrong.