2020-12-08 08:55:22 +01:00
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
2022-04-14 20:39:12 +03:00
$id : http://devicetree.org/schemas/pinctrl/ralink,rt2880-pinctrl.yaml#
2020-12-08 08:55:22 +01:00
$schema : http://devicetree.org/meta-schemas/core.yaml#
2022-04-14 20:39:12 +03:00
title : Ralink RT2880 Pin Controller
2020-12-08 08:55:22 +01:00
maintainers :
2022-04-14 20:39:12 +03:00
- Arı nç ÜNAL <arinc.unal@arinc9.com>
2020-12-08 08:55:22 +01:00
- Sergio Paracuellos <sergio.paracuellos@gmail.com>
description :
2022-04-14 20:39:12 +03:00
Ralink RT2880 pin controller for RT2880 SoC.
The pin controller can only set the muxing of pin groups. Muxing individual
pins is not supported. There is no pinconf support.
2020-12-08 08:55:22 +01:00
properties :
compatible :
2022-04-14 20:39:12 +03:00
const : ralink,rt2880-pinctrl
2020-12-08 08:55:22 +01:00
2020-12-13 17:17:14 +01:00
patternProperties :
'-pins$' :
type : object
patternProperties :
'^(.*-)?pinmux$' :
type : object
description : node for pinctrl.
$ref : pinmux-node.yaml#
properties :
groups :
2022-04-14 20:39:12 +03:00
description : The pin group to select.
enum : [ i2c, spi, uartlite, jtag, mdio, sdram, pci]
2020-12-13 17:17:14 +01:00
function :
2022-04-14 20:39:12 +03:00
description : The mux function to select.
enum : [ gpio, i2c, spi, uartlite, jtag, mdio, sdram, pci]
2020-12-13 17:17:14 +01:00
required :
- groups
- function
additionalProperties : false
2020-12-08 08:55:22 +01:00
2020-12-13 17:17:14 +01:00
additionalProperties : false
2020-12-08 08:55:22 +01:00
2021-12-02 07:32:16 +01:00
allOf :
- $ref : "pinctrl.yaml#"
2020-12-08 08:55:22 +01:00
required :
- compatible
additionalProperties : false
examples :
# Pinmux controller node
- |
pinctrl {
2022-04-14 20:39:12 +03:00
compatible = "ralink,rt2880-pinctrl";
2020-12-08 08:55:22 +01:00
2020-12-13 17:17:14 +01:00
i2c_pins : i2c0-pins {
pinmux {
2020-12-08 08:55:22 +01:00
groups = "i2c";
function = "i2c";
};
};
};