SPI and I2C bus node names are expected to be "spi" or "i2c", respectively, with nothing else, a unit-address, or a '-N' index. A pattern of 'spi0' or 'i2c0' or similar has crept in. Fix all these cases. Mostly scripted with the following commands: git grep -l '\si2c[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/i2c[0-9] {/i2c {/' git grep -l '\sspi[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/spi[0-9] {/spi {/' With this, a few errors in examples were exposed and fixed. Acked-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> # for the microchip,mcp251xfd.yaml Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> # for power-supply Acked-by: Wolfram Sang <wsa@kernel.org> Acked-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230228215433.3944508-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
100 lines
1.9 KiB
YAML
100 lines
1.9 KiB
YAML
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/net/nfc/samsung,s3fwrn5.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Samsung S3FWRN5 NCI NFC Controller
|
|
|
|
maintainers:
|
|
- Krzysztof Kozlowski <krzk@kernel.org>
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- samsung,s3fwrn5-i2c
|
|
- samsung,s3fwrn82
|
|
|
|
en-gpios:
|
|
maxItems: 1
|
|
description:
|
|
Output GPIO pin used for enabling/disabling the chip
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
maxItems: 1
|
|
|
|
wake-gpios:
|
|
maxItems: 1
|
|
description:
|
|
Output GPIO pin used to enter firmware mode and sleep/wakeup control
|
|
|
|
s3fwrn5,en-gpios:
|
|
maxItems: 1
|
|
deprecated: true
|
|
description:
|
|
Use en-gpios
|
|
|
|
s3fwrn5,fw-gpios:
|
|
maxItems: 1
|
|
deprecated: true
|
|
description:
|
|
Use wake-gpios
|
|
|
|
additionalProperties: false
|
|
|
|
required:
|
|
- compatible
|
|
- en-gpios
|
|
- wake-gpios
|
|
|
|
allOf:
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: samsung,s3fwrn5-i2c
|
|
then:
|
|
required:
|
|
- interrupts
|
|
- reg
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
s3fwrn5@27 {
|
|
compatible = "samsung,s3fwrn5-i2c";
|
|
reg = <0x27>;
|
|
|
|
interrupt-parent = <&gpa1>;
|
|
interrupts = <3 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
en-gpios = <&gpf1 4 GPIO_ACTIVE_HIGH>;
|
|
wake-gpios = <&gpj0 2 GPIO_ACTIVE_HIGH>;
|
|
|
|
clocks = <&rpmcc 20>;
|
|
};
|
|
};
|
|
# UART example on Raspberry Pi
|
|
- |
|
|
uart0 {
|
|
nfc {
|
|
compatible = "samsung,s3fwrn82";
|
|
|
|
en-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
|
|
wake-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
};
|