0454357faa
When running "make dt_binding_check" (even if restricted to an unrelated binding document using DT_SCHEMA_FILES=...): Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml: ignoring, error in schema: properties: fsl,spi-only-use-cs1-sel warning: no schema found in file: Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml Fix this by adding a proper type definition for the vendor-specific fsl,spi-only-use-cs1-sel property. Fixes: 7ac9bbf6ab3085c2 ("dt-bindings: lpspi: New property in document DT bindings for LPSPI") Suggested-by: Rob Herring <robh+dt@kernel.org> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20200807121057.14204-1-geert+renesas@glider.be Signed-off-by: Mark Brown <broonie@kernel.org>
69 lines
1.5 KiB
YAML
69 lines
1.5 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/spi/spi-fsl-lpspi.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Freescale Low Power SPI (LPSPI) for i.MX
|
|
|
|
maintainers:
|
|
- Anson Huang <Anson.Huang@nxp.com>
|
|
|
|
allOf:
|
|
- $ref: "/schemas/spi/spi-controller.yaml#"
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- fsl,imx7ulp-spi
|
|
- fsl,imx8qxp-spi
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
items:
|
|
- description: SoC SPI per clock
|
|
- description: SoC SPI ipg clock
|
|
|
|
clock-names:
|
|
items:
|
|
- const: per
|
|
- const: ipg
|
|
|
|
fsl,spi-only-use-cs1-sel:
|
|
description:
|
|
spi common code does not support use of CS signals discontinuously.
|
|
i.MX8DXL-EVK board only uses CS1 without using CS0. Therefore, add
|
|
this property to re-config the chipselect value in the LPSPI driver.
|
|
type: boolean
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- clocks
|
|
- clock-names
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/imx7ulp-clock.h>
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
|
|
spi@40290000 {
|
|
compatible = "fsl,imx7ulp-spi";
|
|
reg = <0x40290000 0x10000>;
|
|
interrupt-parent = <&intc>;
|
|
interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&clks IMX7ULP_CLK_LPSPI2>,
|
|
<&clks IMX7ULP_CLK_DUMMY>;
|
|
clock-names = "per", "ipg";
|
|
spi-slave;
|
|
fsl,spi-only-use-cs1-sel;
|
|
};
|