Skip to content

Commit 0434cd2

Browse files
Rahul TanwarLinus Walleij
authored andcommitted
dt-bindings: pinctrl: intel: Update to use generic bindings
Kernel 5.5 adds generic pin mux & cfg node schema. Update pinctrl bindings for LGM to use these newly added schemas. Also, rename filename to match the compatible string. Signed-off-by: Rahul Tanwar <rahul.tanwar@linux.intel.com> Link: https://lore.kernel.org/r/20191218062024.25475-1-rahul.tanwar@linux.intel.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 4805746 commit 0434cd2

2 files changed

Lines changed: 76 additions & 116 deletions

File tree

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

‎Documentation/devicetree/bindings/pinctrl/intel,lgm-pinctrl.yaml‎

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)