blob: e3c8bde305594093ff7599d171cae1bef963eab7 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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
41 gpio-line-names:
42 maxItems: 85
43
44unevaluatedProperties:
45 type: object
46 $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-pins
47
48examples:
49 - |
50 periphs_pinctrl: pinctrl {
51 compatible = "amlogic,meson-g12a-periphs-pinctrl";
52 #address-cells = <1>;
53 #size-cells = <1>;
54 ranges;
55
56 bank@40 {
57 reg = <0x40 0x4c>,
58 <0xe8 0x18>,
59 <0x120 0x18>,
60 <0x2c0 0x40>,
61 <0x340 0x1c>;
62 reg-names = "gpio", "pull", "pull-enable", "mux", "ds";
63 gpio-controller;
64 #gpio-cells = <2>;
65 gpio-ranges = <&periphs_pinctrl 0 0 86>;
66 };
67
68 cec_ao_a_h_pins: cec_ao_a_h {
69 mux {
70 groups = "cec_ao_a_h";
71 function = "cec_ao_a_h";
72 bias-disable;
73 };
74 };
75 };