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-a1.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Amlogic Meson A1 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-a1-periphs-pinctrl
19      - amlogic,meson-s4-periphs-pinctrl
20
21required:
22  - compatible
23
24patternProperties:
25  "^bank@[0-9a-z]+$":
26    $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-gpio
27
28    unevaluatedProperties: false
29
30    properties:
31      reg:
32        maxItems: 2
33
34      reg-names:
35        items:
36          - const: mux
37          - const: gpio
38
39unevaluatedProperties:
40  type: object
41  $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-pins
42
43examples:
44  - |
45    periphs_pinctrl: pinctrl {
46      compatible = "amlogic,meson-a1-periphs-pinctrl";
47      #address-cells = <1>;
48      #size-cells = <1>;
49      ranges;
50
51      bank@400 {
52        reg = <0x0400 0x003c>,
53              <0x0480 0x0118>;
54        reg-names = "mux", "gpio";
55        gpio-controller;
56        #gpio-cells = <2>;
57        gpio-ranges = <&periphs_pinctrl 0 0 62>;
58      };
59
60      cec_ao_a_h_pins: cec_ao_a_h {
61        mux {
62          groups = "cec_ao_a_h";
63          function = "cec_ao_a_h";
64          bias-disable;
65        };
66      };
67    };
68