Documentation / devicetree / bindings / gpio / cirrus,clps711x-mctrl-gpio.yaml


Based on kernel version 6.17. Page generated on 2025-10-03 10:04 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/gpio/cirrus,clps711x-mctrl-gpio.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: ARM Cirrus Logic CLPS711X SYSFLG1 MCTRL GPIOs

maintainers:
  - Alexander Shiyan <shc_work@mail.ru>

properties:
  compatible:
    oneOf:
      - items:
          - const: cirrus,ep7312-mctrl-gpio
          - const: cirrus,ep7209-mctrl-gpio
      - const: cirrus,ep7209-mctrl-gpio

  gpio-controller: true
 
  '#gpio-cells':
    const: 2

  gpio,syscon-dev:
    description:
      Phandle and offset of device's specific registers within the syscon state
      control registers
    $ref: /schemas/types.yaml#/definitions/phandle-array
    items:
      - items:
          - description: phandle to syscon
          - description: register offset within state control registers

required:
  - compatible
  - gpio-controller
  - '#gpio-cells'

additionalProperties: false

examples:
  - |
    sysgpio: sysgpio {
        compatible = "cirrus,ep7312-mctrl-gpio",
                     "cirrus,ep7209-mctrl-gpio";
        gpio-controller;
        #gpio-cells = <2>;
    };