Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: spi: Convert mxs spi to json-schema

Convert the MXS SPI binding to DT schema format using json-schema

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/1592281575-32708-2-git-send-email-Anson.Huang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Anson Huang and committed by
Mark Brown
e013bf2d 3ea4eac3

+56 -26
-26
Documentation/devicetree/bindings/spi/mxs-spi.txt
··· 1 - * Freescale MX233/MX28 SSP/SPI 2 - 3 - Required properties: 4 - - compatible: Should be "fsl,<soc>-spi", where soc is "imx23" or "imx28" 5 - - reg: Offset and length of the register set for the device 6 - - interrupts: Should contain SSP ERROR interrupt 7 - - dmas: DMA specifier, consisting of a phandle to DMA controller node 8 - and SSP DMA channel ID. 9 - Refer to dma.txt and fsl-mxs-dma.txt for details. 10 - - dma-names: Must be "rx-tx". 11 - 12 - Optional properties: 13 - - clock-frequency : Input clock frequency to the SPI block in Hz. 14 - Default is 160000000 Hz. 15 - 16 - Example: 17 - 18 - ssp0: ssp@80010000 { 19 - #address-cells = <1>; 20 - #size-cells = <0>; 21 - compatible = "fsl,imx28-spi"; 22 - reg = <0x80010000 0x2000>; 23 - interrupts = <96>; 24 - dmas = <&dma_apbh 0>; 25 - dma-names = "rx-tx"; 26 - };
+56
Documentation/devicetree/bindings/spi/mxs-spi.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/spi/mxs-spi.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale MX233/MX28 SSP/SPI 8 + 9 + maintainers: 10 + - Marek Vasut <marex@denx.de> 11 + 12 + allOf: 13 + - $ref: "/schemas/spi/spi-controller.yaml#" 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - fsl,imx23-spi 19 + - fsl,imx28-spi 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + interrupts: 25 + maxItems: 1 26 + 27 + dmas: 28 + maxItems: 1 29 + 30 + dma-names: 31 + const: rx-tx 32 + 33 + clock-frequency: 34 + description: input clock frequency to the SPI block in Hz. 35 + default: 160000000 36 + 37 + required: 38 + - compatible 39 + - reg 40 + - interrupts 41 + - dmas 42 + - dma-names 43 + 44 + unevaluatedProperties: false 45 + 46 + examples: 47 + - | 48 + spi@80010000 { 49 + #address-cells = <1>; 50 + #size-cells = <0>; 51 + compatible = "fsl,imx28-spi"; 52 + reg = <0x80010000 0x2000>; 53 + interrupts = <96>; 54 + dmas = <&dma_apbh 0>; 55 + dma-names = "rx-tx"; 56 + };