xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/amlogic,meson-pinctrl-g12a-periphs.yaml (revision e1e636193db45630c7881246d25902e57c43d24e)
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-periphs.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Amlogic Meson G12 PERIPHS 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-periphs-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: 5
32
33      reg-names:
34        items:
35          - const: gpio
36          - const: pull
37          - const: pull-enable
38          - const: mux
39          - const: ds
40
41unevaluatedProperties:
42  type: object
43  $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-pins
44
45examples:
46  - |
47    periphs_pinctrl: pinctrl {
48      compatible = "amlogic,meson-g12a-periphs-pinctrl";
49      #address-cells = <1>;
50      #size-cells = <1>;
51      ranges;
52
53      bank@40 {
54        reg = <0x40  0x4c>,
55              <0xe8  0x18>,
56              <0x120 0x18>,
57              <0x2c0 0x40>,
58              <0x340 0x1c>;
59        reg-names = "gpio", "pull", "pull-enable", "mux", "ds";
60        gpio-controller;
61        #gpio-cells = <2>;
62        gpio-ranges = <&periphs_pinctrl 0 0 86>;
63      };
64
65      cec_ao_a_h_pins: cec_ao_a_h {
66        mux {
67          groups = "cec_ao_a_h";
68          function = "cec_ao_a_h";
69          bias-disable;
70        };
71      };
72    };
73