xref: /linux/Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-g12a-aobus.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
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-g12a-aobus.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Amlogic Meson G12 AOBUS pinmux controller
8
9maintainers:
10  - Neil Armstrong <neil.armstrong@linaro.org>
11
12allOf:
13  - $ref: amlogic,meson-pinctrl-common.yaml#
14
15properties:
16  compatible:
17    enum:
18      - amlogic,meson-g12a-aobus-pinctrl
19
20required:
21  - compatible
22
23patternProperties:
24  "^bank@[0-9a-f]+$":
25    $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-gpio
26
27    unevaluatedProperties: false
28
29    properties:
30      reg:
31        maxItems: 3
32
33      reg-names:
34        items:
35          - const: mux
36          - const: ds
37          - const: gpio
38
39      gpio-line-names:
40        maxItems: 15
41
42unevaluatedProperties:
43  type: object
44  $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-pins
45
46examples:
47  - |
48    ao_pinctrl: pinctrl {
49      compatible = "amlogic,meson-g12a-aobus-pinctrl";
50      #address-cells = <1>;
51      #size-cells = <1>;
52      ranges;
53
54      bank@14 {
55        reg = <0x14 0x8>,
56              <0x1c 0x8>,
57              <0x24 0x14>;
58        reg-names = "mux", "ds", "gpio";
59        gpio-controller;
60        #gpio-cells = <2>;
61        gpio-ranges = <&ao_pinctrl 0 0 15>;
62      };
63
64      cec_ao_a_h_pins: cec_ao_a_h {
65        mux {
66          groups = "cec_ao_a_h";
67          function = "cec_ao_a_h";
68          bias-disable;
69        };
70      };
71    };
72