xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/cirrus,clps711x-mctrl-gpio.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*833e5d42SEmmanuel Vadot%YAML 1.2
3*833e5d42SEmmanuel Vadot---
4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/gpio/cirrus,clps711x-mctrl-gpio.yaml#
5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*833e5d42SEmmanuel Vadot
7*833e5d42SEmmanuel Vadottitle: ARM Cirrus Logic CLPS711X SYSFLG1 MCTRL GPIOs
8*833e5d42SEmmanuel Vadot
9*833e5d42SEmmanuel Vadotmaintainers:
10*833e5d42SEmmanuel Vadot  - Alexander Shiyan <shc_work@mail.ru>
11*833e5d42SEmmanuel Vadot
12*833e5d42SEmmanuel Vadotproperties:
13*833e5d42SEmmanuel Vadot  compatible:
14*833e5d42SEmmanuel Vadot    oneOf:
15*833e5d42SEmmanuel Vadot      - items:
16*833e5d42SEmmanuel Vadot          - const: cirrus,ep7312-mctrl-gpio
17*833e5d42SEmmanuel Vadot          - const: cirrus,ep7209-mctrl-gpio
18*833e5d42SEmmanuel Vadot      - const: cirrus,ep7209-mctrl-gpio
19*833e5d42SEmmanuel Vadot
20*833e5d42SEmmanuel Vadot  gpio-controller: true
21*833e5d42SEmmanuel Vadot
22*833e5d42SEmmanuel Vadot  '#gpio-cells':
23*833e5d42SEmmanuel Vadot    const: 2
24*833e5d42SEmmanuel Vadot
25*833e5d42SEmmanuel Vadot  gpio,syscon-dev:
26*833e5d42SEmmanuel Vadot    description:
27*833e5d42SEmmanuel Vadot      Phandle and offset of device's specific registers within the syscon state
28*833e5d42SEmmanuel Vadot      control registers
29*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle-array
30*833e5d42SEmmanuel Vadot    items:
31*833e5d42SEmmanuel Vadot      - items:
32*833e5d42SEmmanuel Vadot          - description: phandle to syscon
33*833e5d42SEmmanuel Vadot          - description: register offset within state control registers
34*833e5d42SEmmanuel Vadot
35*833e5d42SEmmanuel Vadotrequired:
36*833e5d42SEmmanuel Vadot  - compatible
37*833e5d42SEmmanuel Vadot  - gpio-controller
38*833e5d42SEmmanuel Vadot  - '#gpio-cells'
39*833e5d42SEmmanuel Vadot
40*833e5d42SEmmanuel VadotadditionalProperties: false
41*833e5d42SEmmanuel Vadot
42*833e5d42SEmmanuel Vadotexamples:
43*833e5d42SEmmanuel Vadot  - |
44*833e5d42SEmmanuel Vadot    sysgpio: sysgpio {
45*833e5d42SEmmanuel Vadot        compatible = "cirrus,ep7312-mctrl-gpio",
46*833e5d42SEmmanuel Vadot                     "cirrus,ep7209-mctrl-gpio";
47*833e5d42SEmmanuel Vadot        gpio-controller;
48*833e5d42SEmmanuel Vadot        #gpio-cells = <2>;
49*833e5d42SEmmanuel Vadot    };
50