xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/intel,lgm-io.yaml (revision ec0ea6efa1ad229d75c394c1a9b9cac33af2b1d3)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/pinctrl/intel,lgm-io.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Intel Lightning Mountain SoC pinmux & GPIO controller binding
8
9maintainers:
10  - Rahul Tanwar <rahul.tanwar@linux.intel.com>
11
12description: |
13  Pinmux & GPIO controller controls pin multiplexing & configuration including
14  GPIO function selection & GPIO attributes configuration.
15
16properties:
17  compatible:
18    const: intel,lgm-io
19
20  reg:
21    maxItems: 1
22
23# Client device subnode's properties
24patternProperties:
25  '-pins$':
26    type: object
27    description:
28      Pinctrl node's client devices use subnodes for desired pin configuration.
29      Client device subnodes use below standard properties.
30    $ref: pinmux-node.yaml#
31
32    properties:
33      function: true
34      groups: true
35      pins: true
36      pinmux: true
37      bias-pull-up: true
38      bias-pull-down: true
39      drive-strength: true
40      slew-rate: true
41      drive-open-drain: true
42      output-enable: true
43
44    required:
45      - function
46      - groups
47
48    additionalProperties: false
49
50required:
51  - compatible
52  - reg
53
54additionalProperties: false
55
56examples:
57  # Pinmux controller node
58  - |
59    pinctrl: pinctrl@e2880000 {
60        compatible = "intel,lgm-io";
61        reg = <0xe2880000 0x100000>;
62
63        uart0-pins {
64             pins = <64>, /* UART_RX0 */
65                    <65>; /* UART_TX0 */
66             function = "CONSOLE_UART0";
67             pinmux = <1>,
68                      <1>;
69             groups = "CONSOLE_UART0";
70          };
71    };
72
73...
74