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

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

A straightforward conversion of the the spi-pxa2xx binding to DT schema
format using json-schema.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
[robh: add unevaluatedProperties]
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Lubomir Rintel and committed by
Rob Herring
7882d822 3591105b

+58 -27
+58
Documentation/devicetree/bindings/spi/marvell,mmp2-ssp.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + # Copyright 2019,2020 Lubomir Rintel <lkundrak@v3.sk> 3 + %YAML 1.2 4 + --- 5 + $id: http://devicetree.org/schemas/spi/marvell,mmp2-ssp.yaml# 6 + $schema: http://devicetree.org/meta-schemas/core.yaml# 7 + 8 + title: PXA2xx SSP SPI Controller bindings 9 + 10 + maintainers: 11 + - Lubomir Rintel <lkundrak@v3.sk> 12 + 13 + allOf: 14 + - $ref: spi-controller.yaml# 15 + 16 + properties: 17 + compatible: 18 + const: marvell,mmp2-ssp 19 + 20 + interrupts: 21 + maxItems: 1 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + clocks: 27 + maxItems: 1 28 + 29 + ready-gpios: 30 + description: | 31 + GPIO used to signal a SPI master that the FIFO is filled and we're 32 + ready to service a transfer. Only useful in slave mode. 33 + maxItems: 1 34 + 35 + required: 36 + - compatible 37 + - reg 38 + - interrupts 39 + - clocks 40 + 41 + dependencies: 42 + ready-gpios: [ spi-slave ] 43 + 44 + unevaluatedProperties: false 45 + 46 + examples: 47 + - | 48 + #include <dt-bindings/clock/marvell,mmp2.h> 49 + spi@d4035000 { 50 + compatible = "marvell,mmp2-ssp"; 51 + #address-cells = <1>; 52 + #size-cells = <0>; 53 + reg = <0xd4035000 0x1000>; 54 + clocks = <&soc_clocks MMP2_CLK_SSP0>; 55 + interrupts = <0>; 56 + }; 57 + 58 + ...
-27
Documentation/devicetree/bindings/spi/spi-pxa2xx.txt
··· 1 - PXA2xx SSP SPI Controller 2 - 3 - Required properties: 4 - - compatible: Must be "marvell,mmp2-ssp". 5 - - reg: Offset and length of the device's register set. 6 - - interrupts: Should be the interrupt number. 7 - - clocks: Should contain a single entry describing the clock input. 8 - - #address-cells: Number of cells required to define a chip select address. 9 - - #size-cells: Should be zero. 10 - 11 - Optional properties: 12 - - cs-gpios: list of GPIO chip selects. See the SPI bus bindings, 13 - Documentation/devicetree/bindings/spi/spi-bus.txt 14 - - spi-slave: Empty property indicating the SPI controller is used in slave mode. 15 - - ready-gpios: GPIO used to signal a SPI master that the FIFO is filled 16 - and we're ready to service a transfer. Only useful in slave mode. 17 - 18 - Child nodes represent devices on the SPI bus 19 - See ../spi/spi-bus.txt 20 - 21 - Example: 22 - ssp1: spi@d4035000 { 23 - compatible = "marvell,mmp2-ssp"; 24 - reg = <0xd4035000 0x1000>; 25 - clocks = <&soc_clocks MMP2_CLK_SSP0>; 26 - interrupts = <0>; 27 - };