1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/pinctrl/socionext,uniphier-pinctrl.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: UniPhier SoCs pin controller
9
10maintainers:
11  - Masahiro Yamada <yamada.masahiro@socionext.com>
12
13properties:
14  compatible:
15    enum:
16      - socionext,uniphier-ld4-pinctrl
17      - socionext,uniphier-pro4-pinctrl
18      - socionext,uniphier-sld8-pinctrl
19      - socionext,uniphier-pro5-pinctrl
20      - socionext,uniphier-pxs2-pinctrl
21      - socionext,uniphier-ld6b-pinctrl
22      - socionext,uniphier-ld11-pinctrl
23      - socionext,uniphier-ld20-pinctrl
24      - socionext,uniphier-pxs3-pinctrl
25      - socionext,uniphier-nx1-pinctrl
26
27additionalProperties:
28  type: object
29
30  allOf:
31    - $ref: pincfg-node.yaml#
32    - $ref: pinmux-node.yaml#
33
34  properties:
35    phandle: true
36    function: true
37    groups: true
38    pins: true
39    bias-pull-up: true
40    bias-pull-down: true
41    bias-pull-pin-default: true
42    drive-strength: true
43
44  additionalProperties:
45    type: object
46
47    allOf:
48      - $ref: pincfg-node.yaml#
49      - $ref: pinmux-node.yaml#
50
51    properties:
52      phandle: true
53      function: true
54      groups: true
55      pins: true
56      bias-pull-up: true
57      bias-pull-down: true
58      bias-pull-pin-default: true
59      drive-strength: true
60
61    unevaluatedProperties: false
62
63allOf:
64  - $ref: "pinctrl.yaml#"
65
66required:
67  - compatible
68
69examples:
70  - |
71    // The UniPhier pinctrl should be a subnode of a "syscon" compatible node.
72
73    pinctrl {
74        compatible = "socionext,uniphier-ld20-pinctrl";
75
76        pinctrl_ether_rgmii: ether-rgmii {
77            groups = "ether_rgmii";
78            function = "ether_rgmii";
79
80            tx {
81                pins = "RGMII_TXCLK", "RGMII_TXD0", "RGMII_TXD1",
82                       "RGMII_TXD2", "RGMII_TXD3", "RGMII_TXCTL";
83                drive-strength = <9>;
84            };
85        };
86    };
87