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

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>

authored by

Neil Armstrong and committed by
Wolfram Sang
7375e079 52d3be71

+53 -30
+53
Documentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + # Copyright 2019 BayLibre, SAS 3 + %YAML 1.2 4 + --- 5 + $id: "http://devicetree.org/schemas/i2c/amlogic,meson6-i2c.yaml#" 6 + $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 + 8 + title: Amlogic Meson I2C Controller 9 + 10 + maintainers: 11 + - Neil Armstrong <narmstrong@baylibre.com> 12 + - Beniamino Galvani <b.galvani@gmail.com> 13 + 14 + allOf: 15 + - $ref: /schemas/i2c/i2c-controller.yaml# 16 + 17 + properties: 18 + compatible: 19 + enum: 20 + - amlogic,meson6-i2c # Meson6, Meson8 and compatible SoCs 21 + - amlogic,meson-gxbb-i2c # GXBB and compatible SoCs 22 + - amlogic,meson-axg-i2c # AXG and compatible SoCs 23 + 24 + reg: 25 + maxItems: 1 26 + 27 + interrupts: 28 + maxItems: 1 29 + 30 + clocks: 31 + minItems: 1 32 + 33 + required: 34 + - compatible 35 + - reg 36 + - interrupts 37 + - clocks 38 + 39 + examples: 40 + - | 41 + i2c@c8100500 { 42 + compatible = "amlogic,meson6-i2c"; 43 + reg = <0xc8100500 0x20>; 44 + interrupts = <92>; 45 + clocks = <&clk81>; 46 + #address-cells = <1>; 47 + #size-cells = <0>; 48 + 49 + eeprom@52 { 50 + compatible = "atmel,24c32"; 51 + reg = <0x52>; 52 + }; 53 + };
-30
Documentation/devicetree/bindings/i2c/i2c-meson.txt
··· 1 - Amlogic Meson I2C controller 2 - 3 - Required properties: 4 - - compatible: must be: 5 - "amlogic,meson6-i2c" for Meson8 and compatible SoCs 6 - "amlogic,meson-gxbb-i2c" for GXBB and compatible SoCs 7 - "amlogic,meson-axg-i2c"for AXG and compatible SoCs 8 - 9 - - reg: physical address and length of the device registers 10 - - interrupts: a single interrupt specifier 11 - - clocks: clock for the device 12 - - #address-cells: should be <1> 13 - - #size-cells: should be <0> 14 - 15 - For details regarding the following core I2C bindings see also i2c.txt. 16 - 17 - Optional properties: 18 - - clock-frequency: the desired I2C bus clock frequency in Hz; in 19 - absence of this property the default value is used (100 kHz). 20 - 21 - Examples: 22 - 23 - i2c@c8100500 { 24 - compatible = "amlogic,meson6-i2c"; 25 - reg = <0xc8100500 0x20>; 26 - interrupts = <0 92 1>; 27 - clocks = <&clk81>; 28 - #address-cells = <1>; 29 - #size-cells = <0>; 30 - };