MediaTek MT76X8 Pin Controller

Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/mediatek,mt76x8-pinctrl.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Arınç ÜNAL <arinc.unal@arinc9.com>", "Sergio Paracuellos <sergio.paracuellos@gmail.com>"

MediaTek MT76X8 pin controller for MT7628 and MT7688 SoCs. The pin controller can only set the muxing of pin groups. Muxing individual pins is not supported. There is no pinconf support.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ralink,mt76x8-pinctrl"

Properties matching a name pattern (patternProperties) #

-pins$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

^(.*-)?pinmux$ — name matches this regular expression

Value type (type): "object"

node for pinctrl.

Shared schema rule ($ref): pinmux-node.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

function — required here

A string containing the name of the function to mux to the group.

Allowed values (enum): "antenna", "debug", "gpio", "i2c", "i2s", "jtag", "p0led_an", "p0led_kn", "p1led_an", "p1led_kn", "p2led_an", "p2led_kn", "p3led_an", "p3led_kn", "p4led_an", "p4led_kn", "pcie", "pcm", "perst", "pwm", "pwm0", "pwm1", "pwm_uart2", "refclk", "rsvd", "sdxc", "sdxc d5 d4", "sdxc d6", "sdxc d7", "spi", "spi cs1", "spis", "sw_r", "uart0", "uart1", "uart2", "utif", "wdt", "wled_an", "wled_kn", "-"

groups — required here

An array of strings. Each string contains the name of a group.

Maximum number of items (maxItems): 1

Required in this object (required): "groups", "function"

All of these rules must match (allOf)

Rule 1

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "antenna"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "i2s"

Rule 2

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "debug"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "i2c"

Rule 3

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "gpio"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "gpio", "i2c", "i2s", "p0led_an", "p0led_kn", "p1led_an", "p1led_kn", "p2led_an", "p2led_kn", "p3led_an", "p3led_kn", "p4led_an", "p4led_kn", "perst", "pwm0", "pwm1", "refclk", "sdmode", "spi", "spi cs1", "spis", "uart0", "uart1", "uart2", "wdt", "wled_an", "wled_kn"

Rule 4

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "i2c"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "i2c"

Rule 5

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "i2s"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "i2s"

Rule 6

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "jtag"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "p0led_an", "p0led_kn", "p1led_an", "p1led_kn", "p2led_an", "p2led_kn", "p3led_an", "p3led_kn", "p4led_an", "p4led_kn", "sdmode"

Rule 7

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "p0led_an"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "p0led_an"

Rule 8

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "p0led_kn"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "p0led_kn"

Rule 9

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "p1led_an"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "p1led_an"

Rule 10

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "p1led_kn"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "p1led_kn"

Rule 11

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "p2led_an"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "p2led_an"

Rule 12

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "p2led_kn"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "p2led_kn"

Rule 13

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "p3led_an"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "p3led_an"

Rule 14

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "p3led_kn"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "p3led_kn"

Rule 15

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "p4led_an"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "p4led_an"

Rule 16

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "p4led_kn"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "p4led_kn"

Rule 17

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "pcie"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "gpio"

Rule 18

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "pcm"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "i2s"

Rule 19

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "perst"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "perst"

Rule 20

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "pwm"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "uart1", "uart2"

Rule 21

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "pwm0"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "pwm0"

Rule 22

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "pwm1"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "pwm1"

Rule 23

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "pwm_uart2"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "spis"

Rule 24

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "refclk"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "gpio", "refclk", "spi cs1"

Rule 25

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "rsvd"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "p0led_an", "p0led_kn", "wled_an", "wled_kn"

Rule 26

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "sdxc"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "sdmode"

Rule 27

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "sdxc d5 d4"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "uart2"

Rule 28

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "sdxc d6"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "pwm1"

Rule 29

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "sdxc d7"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "pwm0"

Rule 30

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "spi"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "spi"

Rule 31

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "spi cs1"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "spi cs1"

Rule 32

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "spis"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "spis"

Rule 33

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "sw_r"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "uart1"

Rule 34

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "uart0"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "uart0"

Rule 35

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "uart1"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "uart1"

Rule 36

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "uart2"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "uart2"

Rule 37

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "utif"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "p1led_an", "p1led_kn", "p2led_an", "p2led_kn", "p3led_an", "p3led_kn", "p4led_an", "p4led_kn", "pwm0", "pwm1", "sdmode", "spis"

Rule 38

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "wdt"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "wdt"

Rule 39

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "wled_an"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "wled_an"

Rule 40

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "wled_kn"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "wled_kn"

Rule 41

Condition (if)

Properties and child nodes (properties)

function — not listed as required here

Exact value (const): "-"

When the condition matches (then)

Properties and child nodes (properties)

groups — not listed as required here

Allowed values (enum): "i2c", "spi cs1", "uart0"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pinctrl.yaml#

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pinctrl {
  compatible = "ralink,mt76x8-pinctrl";

  i2c_pins: i2c0-pins {
    pinmux {
      groups = "i2c";
      function = "i2c";
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page