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,meson8-pinctrl-aobus.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Amlogic Meson8 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    oneOf:
18      - enum:
19          - amlogic,meson8-aobus-pinctrl
20          - amlogic,meson8b-aobus-pinctrl
21          - amlogic,meson-gxbb-aobus-pinctrl
22          - amlogic,meson-gxl-aobus-pinctrl
23          - amlogic,meson-axg-aobus-pinctrl
24      - items:
25          - const: amlogic,meson8m2-aobus-pinctrl
26          - const: amlogic,meson8-aobus-pinctrl
27
28required:
29  - compatible
30
31patternProperties:
32  "^bank@[0-9a-z]+$":
33    $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-gpio
34
35    unevaluatedProperties: false
36
37    properties:
38      reg:
39        maxItems: 3
40
41      reg-names:
42        items:
43          - const: mux
44          - const: pull
45          - const: gpio
46
47unevaluatedProperties:
48  type: object
49  $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-pins
50
51examples:
52  - |
53    pinctrl_aobus: pinctrl {
54      compatible = "amlogic,meson8-aobus-pinctrl";
55      #address-cells = <1>;
56      #size-cells = <1>;
57      ranges;
58
59      bank@14 {
60        reg = <0x14 0x4>,
61              <0x2c 0x4>,
62              <0x24 0x8>;
63        reg-names = "mux", "pull", "gpio";
64        gpio-controller;
65        #gpio-cells = <2>;
66        gpio-ranges = <&pinctrl_aobus 0 0 16>;
67      };
68
69      cec_ao_a_h_pins: cec_ao_a_h {
70        mux {
71          groups = "cec_ao_a_h";
72          function = "cec_ao_a_h";
73          bias-disable;
74        };
75      };
76    };
77