Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: pinctrl: rt2880: add binding document

The commit adds rt2880 compatible node in binding document.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20201208075523.7060-2-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sergio Paracuellos and committed by
Greg Kroah-Hartman
289fa46a 8764c27f

+70
+70
Documentation/devicetree/bindings/pinctrl/ralink,rt2880-pinmux.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/pinctrl/ralink,rt2880-pinmux.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Ralink rt2880 pinmux controller 8 + 9 + maintainers: 10 + - Sergio Paracuellos <sergio.paracuellos@gmail.com> 11 + 12 + description: 13 + The rt2880 pinmux can only set the muxing of pin groups. muxing indiviual pins 14 + is not supported. There is no pinconf support. 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - ralink,rt2880-pinmux 20 + 21 + pinctrl-0: 22 + description: 23 + A phandle to the node containing the subnodes containing default 24 + configurations. This is for pinctrl hogs. 25 + 26 + pinctrl-names: 27 + description: 28 + A pinctrl state named "default" can be defined. 29 + const: default 30 + 31 + required: 32 + - compatible 33 + 34 + patternProperties: 35 + '[a-z0-9_-]+': 36 + if: 37 + type: object 38 + description: node for pinctrl. 39 + $ref: "pinmux-node.yaml" 40 + then: 41 + properties: 42 + groups: 43 + description: Name of the pin group to use for the functions. 44 + enum: [i2c, spi, uart1, uart2, uart3, rgmii1, rgmii2, mdio, 45 + pcie, sdhci] 46 + function: 47 + description: The mux function to select 48 + enum: [gpio, i2c, spi, uart1, uart2, uart3, rgmii1, rgmii2, 49 + mdio, nand1, nand2, sdhci] 50 + 51 + additionalProperties: false 52 + 53 + examples: 54 + # Pinmux controller node 55 + - | 56 + pinctrl { 57 + compatible = "ralink,rt2880-pinmux"; 58 + pinctrl-names = "default"; 59 + pinctrl-0 = <&state_default>; 60 + 61 + state_default: pinctrl0 { 62 + }; 63 + 64 + i2c_pins: i2c0 { 65 + i2c0 { 66 + groups = "i2c"; 67 + function = "i2c"; 68 + }; 69 + }; 70 + };