mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 23:46:45 +00:00

Cleanup bindings dropping unneeded quotes. Once all these are fixed, checking for this can be enabled in yamllint. Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> # for bindings/net/can Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com> Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp> # for bindings/net/toshiba,visconti-dwmac.yaml Reviewed-by: Heiko Stuebner <heiko@sntech.de> #rockchip Link: https://lore.kernel.org/r/20230320233758.2918972-1-robh@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
66 lines
1.2 KiB
YAML
66 lines
1.2 KiB
YAML
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/net/nfc/nxp,pn532.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: NXP Semiconductors PN532 NFC controller
|
|
|
|
maintainers:
|
|
- Krzysztof Kozlowski <krzk@kernel.org>
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- const: nxp,pn532
|
|
- description: Deprecated bindings
|
|
enum:
|
|
- nxp,pn532-i2c
|
|
- nxp,pn533-i2c
|
|
deprecated: true
|
|
|
|
interrupts:
|
|
description: Required if connected via I2C
|
|
maxItems: 1
|
|
|
|
reg:
|
|
description: Required if connected via I2C
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
|
|
dependencies:
|
|
interrupts: [ reg ]
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
# PN532 on I2C bus
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
nfc@24 {
|
|
compatible = "nxp,pn532";
|
|
|
|
reg = <0x24>;
|
|
|
|
interrupt-parent = <&gpio1>;
|
|
interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
|
|
};
|
|
};
|
|
|
|
# PN532 connected via UART
|
|
- |
|
|
serial@49042000 {
|
|
reg = <0x49042000 0x400>;
|
|
|
|
nfc {
|
|
compatible = "nxp,pn532";
|
|
};
|
|
};
|