dt-bindings: i2c: meson: convert to yaml
PATCH 1/1 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.
--- .../bindings/i2c/amlogic,meson6-i2c.yaml | 53 +++++++++++++++++++ .../devicetree/bindings/i2c/i2c-meson.txt | 30 ----------- 2 files changed, 53 insertions(+), 30 deletions(-) create mode 100644 Documentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-meson.txt
Documentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml new file +53 -0
@@ -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 <[email protected]> + - Beniamino Galvani <[email protected]> + +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>; + }; + };
Documentation/devicetree/bindings/i2c/i2c-meson.txt deleted +0 -30
@@ -1,30 +0,0 @@ -Amlogic Meson I2C controller - -Required properties: - - compatible: must be: - "amlogic,meson6-i2c" for Meson8 and compatible SoCs - "amlogic,meson-gxbb-i2c" for GXBB and compatible SoCs - "amlogic,meson-axg-i2c"for AXG and compatible SoCs - - - reg: physical address and length of the device registers - - interrupts: a single interrupt specifier - - clocks: clock for the device - - #address-cells: should be <1> - - #size-cells: should be <0> - -For details regarding the following core I2C bindings see also i2c.txt. - -Optional properties: -- clock-frequency: the desired I2C bus clock frequency in Hz; in - absence of this property the default value is used (100 kHz). - -Examples: - - i2c@c8100500 { - compatible = "amlogic,meson6-i2c"; - reg = <0xc8100500 0x20>; - interrupts = <0 92 1>; - clocks = <&clk81>; - #address-cells = <1>; - #size-cells = <0>; - };
Signature · 1 line
2.22.0
Documentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml line 12
Quoted 4 lines
Documentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml new file +3
-0+maintainers: + - Neil Armstrong <[email protected]> + - Beniamino Galvani <[email protected]>
I need an ack from Beniamino for this.
Also, do you want to maintain only this file or also the driver? The latter would be much appreciated, of course!
Hi Wolfram,
Quoted 10 lines · Wolfram Sang
Documentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml line 12
Quoted 4 lines
Documentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml new file +3
-0+maintainers: + - Neil Armstrong <[email protected]> + - Beniamino Galvani <[email protected]>I need an ack from Beniamino for this.
Also, do you want to maintain only this file or also the driver? The latter would be much appreciated, of course!
I'm taking responsibility for the bindings to make sure the DT is correct, but I don't have time to maintain this driver for the moment, sorry,
Neil
Quoted 2 lines · Neil Armstrong
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.
Quoted 107 lines
Cc Beniamino Galvani <[email protected]>Signed-off-by Neil Armstrong <[email protected]>--- .../bindings/i2c/amlogic,meson6-i2c.yaml | 53 +++++++++++++++++++ .../devicetree/bindings/i2c/i2c-meson.txt | 30 ----------- 2 files changed, 53 insertions(+), 30 deletions(-) create mode 100644 Documentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-meson.txtDocumentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml new file +53
-0@@ -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 <[email protected]> + - Beniamino Galvani <[email protected]> + +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>; + }; + };Documentation/devicetree/bindings/i2c/i2c-meson.txt deleted +0
-30@@ -1,30 +0,0 @@ -Amlogic Meson I2C controller - -Required properties: - - compatible: must be: - "amlogic,meson6-i2c" for Meson8 and compatible SoCs - "amlogic,meson-gxbb-i2c" for GXBB and compatible SoCs - "amlogic,meson-axg-i2c"for AXG and compatible SoCs - - - reg: physical address and length of the device registers - - interrupts: a single interrupt specifier - - clocks: clock for the device - - #address-cells: should be <1> - - #size-cells: should be <0> - -For details regarding the following core I2C bindings see also i2c.txt. - -Optional properties: -- clock-frequency: the desired I2C bus clock frequency in Hz; in - absence of this property the default value is used (100 kHz). - -Examples: - - i2c@c8100500 { - compatible = "amlogic,meson6-i2c"; - reg = <0xc8100500 0x20>; - interrupts = <0 92 1>; - clocks = <&clk81>; - #address-cells = <1>; - #size-cells = <0>; - };Signature · 1 line
2.22.0
Quoted 12 lines · Neil Armstrong
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.
Cc Beniamino Galvani <[email protected]>Signed-off-by Neil Armstrong <[email protected]>--- .../bindings/i2c/amlogic,meson6-i2c.yaml | 53 +++++++++++++++++++ .../devicetree/bindings/i2c/i2c-meson.txt | 30 ----------- 2 files changed, 53 insertions(+), 30 deletions(-) create mode 100644 Documentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-meson.txt
Wolfram Sang
AppliedQuoted 5 lines · Neil Armstrong
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.
Cc Beniamino Galvani <[email protected]>Signed-off-by Neil Armstrong <[email protected]>
Applied to for-next, thanks!