001f94c5a54678d706db1a382fcb8e9e8bc1fbd4
[openwrt/staging/stintel.git] /
1 From 6d591614bfe881bb7664c9bebb6a48231c059411 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <noltari@gmail.com>
3 Date: Wed, 24 Mar 2021 09:19:09 +0100
4 Subject: [PATCH 08/22] dt-bindings: add BCM6358 pincontroller binding
5 documentation
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 Add binding documentation for the pincontrol core found in BCM6358 SoCs.
11
12 Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
13 Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
14 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
15 Reviewed-by: Rob Herring <robh@kernel.org>
16 Link: https://lore.kernel.org/r/20210324081923.20379-9-noltari@gmail.com
17 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
18 ---
19 .../pinctrl/brcm,bcm6358-pinctrl.yaml | 93 +++++++++++++++++++
20 1 file changed, 93 insertions(+)
21 create mode 100644 Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml
22
23 --- /dev/null
24 +++ b/Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml
25 @@ -0,0 +1,93 @@
26 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
27 +%YAML 1.2
28 +---
29 +$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6358-pinctrl.yaml#
30 +$schema: http://devicetree.org/meta-schemas/core.yaml#
31 +
32 +title: Broadcom BCM6358 pin controller
33 +
34 +maintainers:
35 + - Álvaro Fernández Rojas <noltari@gmail.com>
36 + - Jonas Gorski <jonas.gorski@gmail.com>
37 +
38 +description:
39 + Bindings for Broadcom's BCM6358 memory-mapped pin controller.
40 +
41 +properties:
42 + compatible:
43 + const: brcm,bcm6358-pinctrl
44 +
45 + reg:
46 + maxItems: 1
47 +
48 +patternProperties:
49 + '-pins$':
50 + type: object
51 + $ref: pinmux-node.yaml#
52 +
53 + properties:
54 + function:
55 + enum: [ ebi_cs, uart1, serial_led, legacy_led, led, spi_cs, utopia,
56 + pwm_syn_clk, sys_irq ]
57 +
58 + pins:
59 + enum: [ ebi_cs_grp, uart1_grp, serial_led_grp, legacy_led_grp,
60 + led_grp, spi_cs_grp, utopia_grp, pwm_syn_clk, sys_irq_grp ]
61 +
62 +required:
63 + - compatible
64 + - reg
65 +
66 +additionalProperties: false
67 +
68 +examples:
69 + - |
70 + pinctrl@18 {
71 + compatible = "brcm,bcm6358-pinctrl";
72 + reg = <0x18 0x4>;
73 +
74 + pinctrl_ebi_cs: ebi_cs-pins {
75 + function = "ebi_cs";
76 + groups = "ebi_cs_grp";
77 + };
78 +
79 + pinctrl_uart1: uart1-pins {
80 + function = "uart1";
81 + groups = "uart1_grp";
82 + };
83 +
84 + pinctrl_serial_led: serial_led-pins {
85 + function = "serial_led";
86 + groups = "serial_led_grp";
87 + };
88 +
89 + pinctrl_legacy_led: legacy_led-pins {
90 + function = "legacy_led";
91 + groups = "legacy_led_grp";
92 + };
93 +
94 + pinctrl_led: led-pins {
95 + function = "led";
96 + groups = "led_grp";
97 + };
98 +
99 + pinctrl_spi_cs_23: spi_cs-pins {
100 + function = "spi_cs";
101 + groups = "spi_cs_grp";
102 + };
103 +
104 + pinctrl_utopia: utopia-pins {
105 + function = "utopia";
106 + groups = "utopia_grp";
107 + };
108 +
109 + pinctrl_pwm_syn_clk: pwm_syn_clk-pins {
110 + function = "pwm_syn_clk";
111 + groups = "pwm_syn_clk_grp";
112 + };
113 +
114 + pinctrl_sys_irq: sys_irq-pins {
115 + function = "sys_irq";
116 + groups = "sys_irq_grp";
117 + };
118 + };