xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/ralink,rt2880-pinmux.yaml (revision c9ccf3a32da427475985b85d7df023ccfb138c27)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/ralink,rt2880-pinmux.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: Ralink rt2880 pinmux controller
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Sergio Paracuellos <sergio.paracuellos@gmail.com>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotdescription:
13*c9ccf3a3SEmmanuel Vadot  The rt2880 pinmux can only set the muxing of pin groups. Muxing indiviual pins
145def4c47SEmmanuel Vadot  is not supported. There is no pinconf support.
155def4c47SEmmanuel Vadot
165def4c47SEmmanuel Vadotproperties:
175def4c47SEmmanuel Vadot  compatible:
185def4c47SEmmanuel Vadot    const: ralink,rt2880-pinmux
195def4c47SEmmanuel Vadot
205def4c47SEmmanuel VadotpatternProperties:
215def4c47SEmmanuel Vadot  '-pins$':
225def4c47SEmmanuel Vadot    type: object
235def4c47SEmmanuel Vadot    patternProperties:
245def4c47SEmmanuel Vadot      '^(.*-)?pinmux$':
255def4c47SEmmanuel Vadot        type: object
265def4c47SEmmanuel Vadot        description: node for pinctrl.
275def4c47SEmmanuel Vadot        $ref: pinmux-node.yaml#
285def4c47SEmmanuel Vadot
295def4c47SEmmanuel Vadot        properties:
305def4c47SEmmanuel Vadot          groups:
315def4c47SEmmanuel Vadot            description: Name of the pin group to use for the functions.
32*c9ccf3a3SEmmanuel Vadot            enum: [i2c, jtag, mdio, pcie, rgmii1, rgmii2, sdhci, spi,
33*c9ccf3a3SEmmanuel Vadot                   uart1, uart2, uart3, wdt]
345def4c47SEmmanuel Vadot          function:
355def4c47SEmmanuel Vadot            description: The mux function to select
36*c9ccf3a3SEmmanuel Vadot            enum: [gpio, i2c, i2s, jtag, mdio, nand1, nand2, pcie refclk,
37*c9ccf3a3SEmmanuel Vadot                   pcie rst, pcm, rgmii1, rgmii2, sdhci, spdif2, spdif3,
38*c9ccf3a3SEmmanuel Vadot                   spi, uart1, uart2, uart3, wdt refclk, wdt rst]
395def4c47SEmmanuel Vadot
405def4c47SEmmanuel Vadot        required:
415def4c47SEmmanuel Vadot          - groups
425def4c47SEmmanuel Vadot          - function
435def4c47SEmmanuel Vadot
445def4c47SEmmanuel Vadot        additionalProperties: false
455def4c47SEmmanuel Vadot
465def4c47SEmmanuel Vadot    additionalProperties: false
475def4c47SEmmanuel Vadot
48e67e8565SEmmanuel VadotallOf:
49e67e8565SEmmanuel Vadot  - $ref: "pinctrl.yaml#"
50e67e8565SEmmanuel Vadot
515def4c47SEmmanuel Vadotrequired:
525def4c47SEmmanuel Vadot  - compatible
535def4c47SEmmanuel Vadot
545def4c47SEmmanuel VadotadditionalProperties: false
555def4c47SEmmanuel Vadot
565def4c47SEmmanuel Vadotexamples:
575def4c47SEmmanuel Vadot  # Pinmux controller node
585def4c47SEmmanuel Vadot  - |
595def4c47SEmmanuel Vadot    pinctrl {
605def4c47SEmmanuel Vadot      compatible = "ralink,rt2880-pinmux";
615def4c47SEmmanuel Vadot
625def4c47SEmmanuel Vadot      i2c_pins: i2c0-pins {
635def4c47SEmmanuel Vadot        pinmux {
645def4c47SEmmanuel Vadot          groups = "i2c";
655def4c47SEmmanuel Vadot          function = "i2c";
665def4c47SEmmanuel Vadot        };
675def4c47SEmmanuel Vadot      };
685def4c47SEmmanuel Vadot    };
69