blob: add83c676327cc157b04f05be825f7b2c4b6f55c [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,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:
Tom Rini6bb92fc2024-05-20 09:54:58 -060032 "^bank@[0-9a-f]+$":
Tom Rini53633a82024-02-29 12:33:36 -050033 $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
47 gpio-line-names:
48 minItems: 11 # GXL
49 maxItems: 16 # Meson8
50
51unevaluatedProperties:
52 type: object
53 $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-pins
54
55examples:
56 - |
57 pinctrl_aobus: pinctrl {
58 compatible = "amlogic,meson8-aobus-pinctrl";
59 #address-cells = <1>;
60 #size-cells = <1>;
61 ranges;
62
63 bank@14 {
64 reg = <0x14 0x4>,
65 <0x2c 0x4>,
66 <0x24 0x8>;
67 reg-names = "mux", "pull", "gpio";
68 gpio-controller;
69 #gpio-cells = <2>;
70 gpio-ranges = <&pinctrl_aobus 0 0 16>;
71 };
72
73 cec_ao_a_h_pins: cec_ao_a_h {
74 mux {
75 groups = "cec_ao_a_h";
76 function = "cec_ao_a_h";
77 bias-disable;
78 };
79 };
80 };