Add a binding for Dialog Semiconductors slg7xl45106 I2C GPO expander Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xxxxxxxxxx> --- .../bindings/gpio/gpio-slg7xl45106.yaml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-slg7xl45106.yaml diff --git a/Documentation/devicetree/bindings/gpio/gpio-slg7xl45106.yaml b/Documentation/devicetree/bindings/gpio/gpio-slg7xl45106.yaml new file mode 100644 index 000000000000..7551ea5c2ef7 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-slg7xl45106.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/gpio-slg7xl45106.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: slg7xl45106 I2C GPO expander + +maintainers: + - Shubhrajyoti Datta <shubhrajyoti.datta@xxxxxxx> + +properties: + compatible: + enum: + - dlg,slg7xl45106 + + reg: + maxItems: 1 + + gpio-controller: true + + '#gpio-cells': + const: 2 + +required: + - compatible + - reg + - gpio-controller + - "#gpio-cells" + +additionalProperties: false + +examples: + - | + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + gpio@10 { + compatible = "dlg,slg7xl45106"; + reg = <0x10>; + gpio-controller; + #gpio-cells = <2>; + }; + }; + +... -- 2.17.1