Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
87 lines
2.3 KiB
YAML
87 lines
2.3 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/pinctrl/marvell,berlin2-soc-pinctrl.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Marvell Berlin pin-controller driver
|
|
|
|
maintainers:
|
|
- Antoine Tenart <atenart@kernel.org>
|
|
- Jisheng Zhang <jszhang@kernel.org>
|
|
|
|
description: >
|
|
Pin control registers are part of both chip controller and system controller
|
|
register sets. Pin controller nodes should be a sub-node of either the chip
|
|
controller or system controller node. The pins controlled are organized in
|
|
groups, so no actual pin information is needed.
|
|
|
|
A pin-controller node should contain subnodes representing the pin group
|
|
configurations, one per function. Each subnode has the group name and the
|
|
muxing function used.
|
|
|
|
Be aware the Marvell Berlin datasheets use the keyword 'mode' for what is
|
|
called a 'function' in the pin-controller subsystem.
|
|
|
|
properties:
|
|
compatible:
|
|
items:
|
|
- enum:
|
|
- marvell,berlin2-soc-pinctrl
|
|
- marvell,berlin2-system-pinctrl
|
|
- marvell,berlin2cd-soc-pinctrl
|
|
- marvell,berlin2cd-system-pinctrl
|
|
- marvell,berlin2q-soc-pinctrl
|
|
- marvell,berlin2q-system-pinctrl
|
|
- marvell,berlin4ct-avio-pinctrl
|
|
- marvell,berlin4ct-soc-pinctrl
|
|
- marvell,berlin4ct-system-pinctrl
|
|
- syna,as370-soc-pinctrl
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
additionalProperties:
|
|
description: Pin group configuration subnodes.
|
|
type: object
|
|
$ref: /schemas/pinctrl/pinmux-node.yaml#
|
|
additionalProperties: false
|
|
|
|
properties:
|
|
groups:
|
|
description: List of pin group names.
|
|
$ref: /schemas/types.yaml#/definitions/string-array
|
|
|
|
function:
|
|
description: Function used to mux the group.
|
|
$ref: /schemas/types.yaml#/definitions/string
|
|
|
|
required:
|
|
- groups
|
|
- function
|
|
|
|
allOf:
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- marvell,berlin4ct-avio-pinctrl
|
|
- marvell,berlin4ct-soc-pinctrl
|
|
- marvell,berlin4ct-system-pinctrl
|
|
- syna,as370-soc-pinctrl
|
|
then:
|
|
required:
|
|
- reg
|
|
|
|
examples:
|
|
- |
|
|
pinctrl {
|
|
compatible = "marvell,berlin2q-system-pinctrl";
|
|
|
|
uart0-pmux {
|
|
groups = "GSM12";
|
|
function = "uart0";
|
|
};
|
|
};
|