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-z]+$":
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
39unevaluatedProperties:
40  type: object
41  $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-pins
42
43examples:
44  - |
45    ao_pinctrl: pinctrl {
46      compatible = "amlogic,meson-g12a-aobus-pinctrl";
47      #address-cells = <1>;
48      #size-cells = <1>;
49      ranges;
50
51      bank@14 {
52        reg = <0x14 0x8>,
53              <0x1c 0x8>,
54              <0x24 0x14>;
55        reg-names = "mux", "ds", "gpio";
56        gpio-controller;
57        #gpio-cells = <2>;
58        gpio-ranges = <&ao_pinctrl 0 0 15>;
59      };
60
61      cec_ao_a_h_pins: cec_ao_a_h {
62        mux {
63          groups = "cec_ao_a_h";
64          function = "cec_ao_a_h";
65          bias-disable;
66        };
67      };
68    };
69