xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/amlogic,meson-pinctrl-common.yaml (revision a0ca4af9455b844c5e094fc1b09b1390ffa979fc)
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    patternProperties:
45      "^.+-hog(-[0-9]+)?$":
46        type: object
47
48        required:
49          - gpio-hog
50
51    required:
52      - reg
53      - reg-names
54      - gpio-controller
55      - "#gpio-cells"
56      - gpio-ranges
57
58  meson-pins:
59    type: object
60    additionalProperties:
61      type: object
62      allOf:
63        - $ref: pincfg-node.yaml#
64        - $ref: pinmux-node.yaml#
65