e4bb7fee18
Instead of listing directly properties typical for SPI peripherals, reference the spi-peripheral-props.yaml schema. This allows using all properties typical for SPI-connected devices, even these which device bindings author did not tried yet. Remove the spi-* properties which now come via spi-peripheral-props.yaml schema, except for the cases when device schema adds some constraints like maximum frequency. While changing additionalProperties->unevaluatedProperties, put it in typical place, just before example DTS.a The binding references also input.yaml and lists explicitly allowed properties, thus here reference only spi-peripheral-props.yaml for purpose of documenting the SPI slave device and bringing spi-max-frequency type validation. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220727164230.385614-1-krzysztof.kozlowski@linaro.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/input/ariel-pwrbutton.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Dell Wyse 3020 a.k.a. "Ariel" Power Button
|
|
|
|
maintainers:
|
|
- Lubomir Rintel <lkundrak@v3.sk>
|
|
|
|
description: |
|
|
The ENE Embedded Controller on the Ariel board has an interface to the
|
|
SPI bus that is capable of sending keyboard and mouse data. A single
|
|
power button is attached to it. This binding describes this
|
|
configuration.
|
|
|
|
allOf:
|
|
- $ref: input.yaml#
|
|
- $ref: /schemas/spi/spi-peripheral-props.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
items:
|
|
- const: dell,wyse-ariel-ec-input
|
|
- const: ene,kb3930-input
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
spi-max-frequency: true
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
spi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
power-button@0 {
|
|
compatible = "dell,wyse-ariel-ec-input", "ene,kb3930-input";
|
|
reg = <0>;
|
|
interrupt-parent = <&gpio>;
|
|
interrupts = <60 IRQ_TYPE_EDGE_RISING>;
|
|
spi-max-frequency = <33000000>;
|
|
};
|
|
};
|