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

spi: dt-bindings: brcm,bcm2835-aux-spi: Convert to dtschema

Convert bcm2835-aux-spi binding to Dt schema

Signed-off-by: Karan Sanghavi <karansanghvi98@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/ZxEm-H-PjlQyXeOH@Emma
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Karan Sanghavi and committed by
Mark Brown
4de1cdb3 941584e2

+53 -38
-38
Documentation/devicetree/bindings/spi/brcm,bcm2835-aux-spi.txt
··· 1 - Broadcom BCM2835 auxiliary SPI1/2 controller 2 - 3 - The BCM2835 contains two forms of SPI master controller, one known simply as 4 - SPI0, and the other known as the "Universal SPI Master"; part of the 5 - auxiliary block. This binding applies to the SPI1/2 controller. 6 - 7 - Required properties: 8 - - compatible: Should be "brcm,bcm2835-aux-spi". 9 - - reg: Should contain register location and length for the spi block 10 - - interrupts: Should contain shared interrupt of the aux block 11 - - clocks: The clock feeding the SPI controller - needs to 12 - point to the auxiliary clock driver of the bcm2835, 13 - as this clock will enable the output gate for the specific 14 - clock. 15 - - cs-gpios: the cs-gpios (native cs is NOT supported) 16 - see also spi-bus.txt 17 - 18 - Example: 19 - 20 - spi1@7e215080 { 21 - compatible = "brcm,bcm2835-aux-spi"; 22 - reg = <0x7e215080 0x40>; 23 - interrupts = <1 29>; 24 - clocks = <&aux_clocks BCM2835_AUX_CLOCK_SPI1>; 25 - #address-cells = <1>; 26 - #size-cells = <0>; 27 - cs-gpios = <&gpio 18>, <&gpio 17>, <&gpio 16>; 28 - }; 29 - 30 - spi2@7e2150c0 { 31 - compatible = "brcm,bcm2835-aux-spi"; 32 - reg = <0x7e2150c0 0x40>; 33 - interrupts = <1 29>; 34 - clocks = <&aux_clocks BCM2835_AUX_CLOCK_SPI2>; 35 - #address-cells = <1>; 36 - #size-cells = <0>; 37 - cs-gpios = <&gpio 43>, <&gpio 44>, <&gpio 45>; 38 - };
+53
Documentation/devicetree/bindings/spi/brcm,bcm2835-aux-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/brcm,bcm2835-aux-spi.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom BCM2835 Auxiliary SPI1/2 Controller 8 + 9 + maintainers: 10 + - Karan Sanghavi <karansanghvi98@gmail.com> 11 + 12 + description: 13 + The BCM2835 contains two forms of SPI master controller. One is known simply 14 + as SPI0, and the other as the "Universal SPI Master," which is part of the 15 + auxiliary block. This binding applies to the SPI1 and SPI2 auxiliary 16 + controllers. 17 + 18 + allOf: 19 + - $ref: spi-controller.yaml# 20 + 21 + properties: 22 + compatible: 23 + enum: 24 + - brcm,bcm2835-aux-spi 25 + 26 + reg: 27 + maxItems: 1 28 + 29 + interrupts: 30 + maxItems: 1 31 + 32 + clocks: 33 + maxItems: 1 34 + 35 + required: 36 + - compatible 37 + - reg 38 + - interrupts 39 + - clocks 40 + 41 + unevaluatedProperties: false 42 + 43 + examples: 44 + - | 45 + #include <dt-bindings/clock/bcm2835-aux.h> 46 + spi@7e215080 { 47 + compatible = "brcm,bcm2835-aux-spi"; 48 + reg = <0x7e215080 0x40>; 49 + interrupts = <1 29>; 50 + clocks = <&aux_clocks BCM2835_AUX_CLOCK_SPI1>; 51 + #address-cells = <1>; 52 + #size-cells = <0>; 53 + };