xref: /linux/Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-common.yaml (revision 5e3992fe72748ed3892be876f09d4d990548b7af)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/pinctrl/amlogic,meson-pinctrl-common.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Amlogic Meson pinmux controller
8
9maintainers:
10  - Neil Armstrong <neil.armstrong@linaro.org>
11
12allOf:
13  - $ref: pinctrl.yaml#
14
15properties:
16  ranges: true
17
18  "#address-cells":
19    enum: [1, 2]
20
21  "#size-cells":
22    enum: [1, 2]
23
24required:
25  - ranges
26  - "#address-cells"
27  - "#size-cells"
28
29additionalProperties: true
30
31$defs:
32  meson-gpio:
33    type: object
34
35    properties:
36      gpio-controller: true
37
38      "#gpio-cells":
39        const: 2
40
41      gpio-ranges:
42        maxItems: 1
43
44    required:
45      - reg
46      - reg-names
47      - gpio-controller
48      - "#gpio-cells"
49      - gpio-ranges
50
51  meson-pins:
52    type: object
53    additionalProperties:
54      type: object
55      allOf:
56        - $ref: pincfg-node.yaml#
57        - $ref: pinmux-node.yaml#
58