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