Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | |
| 7 | title: Amlogic Meson A1 pinmux controller |
| 8 | |
| 9 | maintainers: |
| 10 | - Neil Armstrong <neil.armstrong@linaro.org> |
| 11 | |
| 12 | allOf: |
| 13 | - $ref: amlogic,meson-pinctrl-common.yaml# |
| 14 | |
| 15 | properties: |
| 16 | compatible: |
| 17 | enum: |
| 18 | - amlogic,c3-periphs-pinctrl |
| 19 | - amlogic,t7-periphs-pinctrl |
| 20 | - amlogic,meson-a1-periphs-pinctrl |
| 21 | - amlogic,meson-s4-periphs-pinctrl |
| 22 | |
| 23 | required: |
| 24 | - compatible |
| 25 | |
| 26 | patternProperties: |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 27 | "^bank@[0-9a-f]+$": |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 28 | $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-gpio |
| 29 | |
| 30 | unevaluatedProperties: false |
| 31 | |
| 32 | properties: |
| 33 | reg: |
| 34 | maxItems: 2 |
| 35 | |
| 36 | reg-names: |
| 37 | items: |
| 38 | - const: mux |
| 39 | - const: gpio |
| 40 | |
| 41 | gpio-line-names: |
| 42 | minItems: 62 # A1 |
| 43 | maxItems: 82 # S4 |
| 44 | |
| 45 | unevaluatedProperties: |
| 46 | type: object |
| 47 | $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-pins |
| 48 | |
| 49 | examples: |
| 50 | - | |
| 51 | periphs_pinctrl: pinctrl { |
| 52 | compatible = "amlogic,meson-a1-periphs-pinctrl"; |
| 53 | #address-cells = <1>; |
| 54 | #size-cells = <1>; |
| 55 | ranges; |
| 56 | |
| 57 | bank@400 { |
| 58 | reg = <0x0400 0x003c>, |
| 59 | <0x0480 0x0118>; |
| 60 | reg-names = "mux", "gpio"; |
| 61 | gpio-controller; |
| 62 | #gpio-cells = <2>; |
| 63 | gpio-ranges = <&periphs_pinctrl 0 0 62>; |
| 64 | }; |
| 65 | |
| 66 | cec_ao_a_h_pins: cec_ao_a_h { |
| 67 | mux { |
| 68 | groups = "cec_ao_a_h"; |
| 69 | function = "cec_ao_a_h"; |
| 70 | bias-disable; |
| 71 | }; |
| 72 | }; |
| 73 | }; |