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

spi: dt-bindings: brcm,bcm2835-spi: convert to dtschema

Convert the Broadcom BCM2835 SPI0 controller to newer DT
schema. Created DT schema based on the .txt file which had
`comaptible`, `reg`, `interrupts`, `clocks` as required
properties.
Added GPL-2.0 OR BSD-2-Clause License

Signed-off-by: Kanak Shilledar <kanakshilledar111@protonmail.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://msgid.link/r/20240514070051.2959-1-kanakshilledar111@protonmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kanak Shilledar and committed by
Mark Brown
85ce0dc2 2d19ea9e

+50 -23
-23
Documentation/devicetree/bindings/spi/brcm,bcm2835-spi.txt
··· 1 - Broadcom BCM2835 SPI0 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 SPI0 controller. 6 - 7 - Required properties: 8 - - compatible: Should be one of "brcm,bcm2835-spi" for BCM2835/2836/2837 or 9 - "brcm,bcm2711-spi" for BCM2711 or "brcm,bcm7211-spi" for BCM7211. 10 - - reg: Should contain register location and length. 11 - - interrupts: Should contain interrupt. 12 - - clocks: The clock feeding the SPI controller. 13 - 14 - Example: 15 - 16 - spi@20204000 { 17 - compatible = "brcm,bcm2835-spi"; 18 - reg = <0x7e204000 0x1000>; 19 - interrupts = <2 22>; 20 - clocks = <&clk_spi>; 21 - #address-cells = <1>; 22 - #size-cells = <0>; 23 - };
+50
Documentation/devicetree/bindings/spi/brcm,bcm2835-spi.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/spi/brcm,bcm2835-spi.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom BCM2835 SPI0 controller 8 + 9 + maintainers: 10 + - Florian Fainelli <florian.fainelli@broadcom.com> 11 + - Kanak Shilledar <kanakshilledar111@protonmail.com> 12 + - Stefan Wahren <wahrenst@gmx.net> 13 + 14 + allOf: 15 + - $ref: spi-controller.yaml# 16 + 17 + properties: 18 + compatible: 19 + enum: 20 + - brcm,bcm2835-spi 21 + - brcm,bcm2711-spi 22 + - brcm,bcm7211-spi 23 + 24 + reg: 25 + maxItems: 1 26 + 27 + interrupts: 28 + maxItems: 1 29 + 30 + clocks: 31 + maxItems: 1 32 + 33 + required: 34 + - compatible 35 + - reg 36 + - interrupts 37 + - clocks 38 + 39 + unevaluatedProperties: false 40 + 41 + examples: 42 + - | 43 + spi@20204000 { 44 + compatible = "brcm,bcm2835-spi"; 45 + reg = <0x7e204000 0x1000>; 46 + interrupts = <2 22>; 47 + clocks = <&clk_spi>; 48 + #address-cells = <1>; 49 + #size-cells = <0>; 50 + };