xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/ralink,rt2880-pinmux.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1*5def4c47SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*5def4c47SEmmanuel Vadot%YAML 1.2
3*5def4c47SEmmanuel Vadot---
4*5def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/ralink,rt2880-pinmux.yaml#
5*5def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5def4c47SEmmanuel Vadot
7*5def4c47SEmmanuel Vadottitle: Ralink rt2880 pinmux controller
8*5def4c47SEmmanuel Vadot
9*5def4c47SEmmanuel Vadotmaintainers:
10*5def4c47SEmmanuel Vadot  - Sergio Paracuellos <sergio.paracuellos@gmail.com>
11*5def4c47SEmmanuel Vadot
12*5def4c47SEmmanuel Vadotdescription:
13*5def4c47SEmmanuel Vadot  The rt2880 pinmux can only set the muxing of pin groups. muxing indiviual pins
14*5def4c47SEmmanuel Vadot  is not supported. There is no pinconf support.
15*5def4c47SEmmanuel Vadot
16*5def4c47SEmmanuel Vadotproperties:
17*5def4c47SEmmanuel Vadot  compatible:
18*5def4c47SEmmanuel Vadot    const: ralink,rt2880-pinmux
19*5def4c47SEmmanuel Vadot
20*5def4c47SEmmanuel VadotpatternProperties:
21*5def4c47SEmmanuel Vadot  '-pins$':
22*5def4c47SEmmanuel Vadot    type: object
23*5def4c47SEmmanuel Vadot    patternProperties:
24*5def4c47SEmmanuel Vadot      '^(.*-)?pinmux$':
25*5def4c47SEmmanuel Vadot        type: object
26*5def4c47SEmmanuel Vadot        description: node for pinctrl.
27*5def4c47SEmmanuel Vadot        $ref: pinmux-node.yaml#
28*5def4c47SEmmanuel Vadot
29*5def4c47SEmmanuel Vadot        properties:
30*5def4c47SEmmanuel Vadot          groups:
31*5def4c47SEmmanuel Vadot            description: Name of the pin group to use for the functions.
32*5def4c47SEmmanuel Vadot            enum: [i2c, spi, uart1, uart2, uart3, rgmii1, rgmii2, mdio,
33*5def4c47SEmmanuel Vadot                   pcie, sdhci]
34*5def4c47SEmmanuel Vadot          function:
35*5def4c47SEmmanuel Vadot            description: The mux function to select
36*5def4c47SEmmanuel Vadot            enum: [gpio, i2c, spi, uart1, uart2, uart3, rgmii1, rgmii2,
37*5def4c47SEmmanuel Vadot                   mdio, nand1, nand2, sdhci]
38*5def4c47SEmmanuel Vadot
39*5def4c47SEmmanuel Vadot        required:
40*5def4c47SEmmanuel Vadot          - groups
41*5def4c47SEmmanuel Vadot          - function
42*5def4c47SEmmanuel Vadot
43*5def4c47SEmmanuel Vadot        additionalProperties: false
44*5def4c47SEmmanuel Vadot
45*5def4c47SEmmanuel Vadot    additionalProperties: false
46*5def4c47SEmmanuel Vadot
47*5def4c47SEmmanuel Vadotrequired:
48*5def4c47SEmmanuel Vadot  - compatible
49*5def4c47SEmmanuel Vadot
50*5def4c47SEmmanuel VadotadditionalProperties: false
51*5def4c47SEmmanuel Vadot
52*5def4c47SEmmanuel Vadotexamples:
53*5def4c47SEmmanuel Vadot  # Pinmux controller node
54*5def4c47SEmmanuel Vadot  - |
55*5def4c47SEmmanuel Vadot    pinctrl {
56*5def4c47SEmmanuel Vadot      compatible = "ralink,rt2880-pinmux";
57*5def4c47SEmmanuel Vadot
58*5def4c47SEmmanuel Vadot      i2c_pins: i2c0-pins {
59*5def4c47SEmmanuel Vadot        pinmux {
60*5def4c47SEmmanuel Vadot          groups = "i2c";
61*5def4c47SEmmanuel Vadot          function = "i2c";
62*5def4c47SEmmanuel Vadot        };
63*5def4c47SEmmanuel Vadot      };
64*5def4c47SEmmanuel Vadot    };
65