3d21a46093
json-schema versions draft7 and earlier have a weird behavior in that any keywords combined with a '$ref' are ignored (silently). The correct form was to put a '$ref' under an 'allOf'. This behavior is now changed in the 2019-09 json-schema spec and '$ref' can be mixed with other keywords. The json-schema library doesn't yet support this, but the tooling now does a fixup for this and either way works. This has been a constant source of review comments, so let's change this treewide so everyone copies the simpler syntax. Scripted with ruamel.yaml with some manual fixups. Some minor whitespace changes from the script. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Maxime Ripard <mripard@kernel.org> Acked-by: Lee Jones <lee.jones@linaro.org> Acked-By: Vinod Koul <vkoul@kernel.org> Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Acked-by: Wolfram Sang <wsa@the-dreams.de> # for I2C Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> #for-iio Reviewed-by: Stephen Boyd <sboyd@kernel.org> # clock Signed-off-by: Rob Herring <robh@kernel.org>
74 lines
1.6 KiB
YAML
74 lines
1.6 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/pinctrl/intel,lgm-io.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Intel Lightning Mountain SoC pinmux & GPIO controller binding
|
|
|
|
maintainers:
|
|
- Rahul Tanwar <rahul.tanwar@linux.intel.com>
|
|
|
|
description: |
|
|
Pinmux & GPIO controller controls pin multiplexing & configuration including
|
|
GPIO function selection & GPIO attributes configuration.
|
|
|
|
properties:
|
|
compatible:
|
|
const: intel,lgm-io
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
# Client device subnode's properties
|
|
patternProperties:
|
|
'-pins$':
|
|
type: object
|
|
description:
|
|
Pinctrl node's client devices use subnodes for desired pin configuration.
|
|
Client device subnodes use below standard properties.
|
|
$ref: pinmux-node.yaml#
|
|
|
|
properties:
|
|
function: true
|
|
groups: true
|
|
pins: true
|
|
pinmux: true
|
|
bias-pull-up: true
|
|
bias-pull-down: true
|
|
drive-strength: true
|
|
slew-rate: true
|
|
drive-open-drain: true
|
|
output-enable: true
|
|
|
|
required:
|
|
- function
|
|
- groups
|
|
|
|
additionalProperties: false
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
# Pinmux controller node
|
|
- |
|
|
pinctrl: pinctrl@e2880000 {
|
|
compatible = "intel,lgm-io";
|
|
reg = <0xe2880000 0x100000>;
|
|
|
|
uart0-pins {
|
|
pins = <64>, /* UART_RX0 */
|
|
<65>; /* UART_TX0 */
|
|
function = "CONSOLE_UART0";
|
|
pinmux = <1>,
|
|
<1>;
|
|
groups = "CONSOLE_UART0";
|
|
};
|
|
};
|
|
|
|
...
|