aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation/devicetree/bindings/pinctrl/mediatek,mt76x8-pinctrl.yaml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Documentation/devicetree/bindings/pinctrl/mediatek,mt76x8-pinctrl.yaml (renamed from Documentation/devicetree/bindings/pinctrl/ralink,mt7620-pinctrl.yaml)252
1 files changed, 22 insertions, 230 deletions
diff --git a/Documentation/devicetree/bindings/pinctrl/ralink,mt7620-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt76x8-pinctrl.yaml
index 1e63ea34146a..31849dd5940b 100644
--- a/Documentation/devicetree/bindings/pinctrl/ralink,mt7620-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt76x8-pinctrl.yaml
@@ -1,50 +1,46 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
-$id: http://devicetree.org/schemas/pinctrl/ralink,mt7620-pinctrl.yaml#
+$id: http://devicetree.org/schemas/pinctrl/mediatek,mt76x8-pinctrl.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
-title: Ralink MT7620 Pin Controller
+title: MediaTek MT76X8 Pin Controller
maintainers:
- Arınç ÜNAL <arinc.unal@arinc9.com>
- Sergio Paracuellos <sergio.paracuellos@gmail.com>
-description:
- Ralink MT7620 pin controller for MT7620, MT7628 and MT7688 SoCs.
+description: |
+ 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:
compatible:
- const: ralink,mt7620-pinctrl
+ const: ralink,mt76x8-pinctrl
patternProperties:
'-pins$':
type: object
+ additionalProperties: false
+
patternProperties:
'^(.*-)?pinmux$':
type: object
description: node for pinctrl.
$ref: pinmux-node.yaml#
+ additionalProperties: false
properties:
function:
description:
A string containing the name of the function to mux to the group.
- anyOf:
- - description: For MT7620 SoC
- enum: [ephy, gpio, gpio i2s, gpio uartf, i2c, i2s uartf, mdio, nand, pa,
- pcie refclk, pcie rst, pcm gpio, pcm i2s, pcm uartf, refclk,
- rgmii1, rgmii2, sd, spi, spi refclk, uartf, uartlite, wdt refclk,
- wdt rst, wled]
-
- - description: For MT7628 and MT7688 SoCs
- 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, -]
+ 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:
description:
@@ -77,48 +73,15 @@ patternProperties:
- if:
properties:
function:
- const: ephy
- then:
- properties:
- groups:
- enum: [ephy]
-
- - if:
- properties:
- function:
const: gpio
then:
properties:
groups:
- anyOf:
- - description: For MT7620 SoC
- enum: [ephy, i2c, mdio, nd_sd, pa, pcie, rgmii1, rgmii2,
- spi, spi refclk, uartf, uartlite, wdt, wled]
-
- - description: For MT7628 and MT7688 SoCs
- 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]
-
- - if:
- properties:
- function:
- const: gpio i2s
- then:
- properties:
- groups:
- enum: [uartf]
-
- - if:
- properties:
- function:
- const: gpio uartf
- then:
- properties:
- groups:
- enum: [uartf]
+ 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]
- if:
properties:
@@ -141,15 +104,6 @@ patternProperties:
- if:
properties:
function:
- const: i2s uartf
- then:
- properties:
- groups:
- enum: [uartf]
-
- - if:
- properties:
- function:
const: jtag
then:
properties:
@@ -161,24 +115,6 @@ patternProperties:
- if:
properties:
function:
- const: mdio
- then:
- properties:
- groups:
- enum: [mdio]
-
- - if:
- properties:
- function:
- const: nand
- then:
- properties:
- groups:
- enum: [nd_sd]
-
- - if:
- properties:
- function:
const: p0led_an
then:
properties:
@@ -269,15 +205,6 @@ patternProperties:
- if:
properties:
function:
- const: pa
- then:
- properties:
- groups:
- enum: [pa]
-
- - if:
- properties:
- function:
const: pcie
then:
properties:
@@ -287,24 +214,6 @@ patternProperties:
- if:
properties:
function:
- const: pcie refclk
- then:
- properties:
- groups:
- enum: [pcie]
-
- - if:
- properties:
- function:
- const: pcie rst
- then:
- properties:
- groups:
- enum: [pcie]
-
- - if:
- properties:
- function:
const: pcm
then:
properties:
@@ -314,33 +223,6 @@ patternProperties:
- if:
properties:
function:
- const: pcm gpio
- then:
- properties:
- groups:
- enum: [uartf]
-
- - if:
- properties:
- function:
- const: pcm i2s
- then:
- properties:
- groups:
- enum: [uartf]
-
- - if:
- properties:
- function:
- const: pcm uartf
- then:
- properties:
- groups:
- enum: [uartf]
-
- - if:
- properties:
- function:
const: perst
then:
properties:
@@ -390,30 +272,7 @@ patternProperties:
then:
properties:
groups:
- anyOf:
- - description: For MT7620 SoC
- enum: [mdio]
-
- - description: For MT7628 and MT7688 SoCs
- enum: [gpio, refclk, spi cs1]
-
- - if:
- properties:
- function:
- const: rgmii1
- then:
- properties:
- groups:
- enum: [rgmii1]
-
- - if:
- properties:
- function:
- const: rgmii2
- then:
- properties:
- groups:
- enum: [rgmii2]
+ enum: [gpio, refclk, spi cs1]
- if:
properties:
@@ -427,15 +286,6 @@ patternProperties:
- if:
properties:
function:
- const: sd
- then:
- properties:
- groups:
- enum: [nd_sd]
-
- - if:
- properties:
- function:
const: sdxc
then:
properties:
@@ -490,15 +340,6 @@ patternProperties:
- if:
properties:
function:
- const: spi refclk
- then:
- properties:
- groups:
- enum: [spi refclk]
-
- - if:
- properties:
- function:
const: spis
then:
properties:
@@ -544,24 +385,6 @@ patternProperties:
- if:
properties:
function:
- const: uartf
- then:
- properties:
- groups:
- enum: [uartf]
-
- - if:
- properties:
- function:
- const: uartlite
- then:
- properties:
- groups:
- enum: [uartlite]
-
- - if:
- properties:
- function:
const: utif
then:
properties:
@@ -581,33 +404,6 @@ patternProperties:
- if:
properties:
function:
- const: wdt refclk
- then:
- properties:
- groups:
- enum: [wdt]
-
- - if:
- properties:
- function:
- const: wdt rst
- then:
- properties:
- groups:
- enum: [wdt]
-
- - if:
- properties:
- function:
- const: wled
- then:
- properties:
- groups:
- enum: [wled]
-
- - if:
- properties:
- function:
const: wled_an
then:
properties:
@@ -632,12 +428,8 @@ patternProperties:
groups:
enum: [i2c, spi cs1, uart0]
- additionalProperties: false
-
- additionalProperties: false
-
allOf:
- - $ref: "pinctrl.yaml#"
+ - $ref: pinctrl.yaml#
required:
- compatible
@@ -647,7 +439,7 @@ additionalProperties: false
examples:
- |
pinctrl {
- compatible = "ralink,mt7620-pinctrl";
+ compatible = "ralink,mt76x8-pinctrl";
i2c_pins: i2c0-pins {
pinmux {