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

dt-bindings: mmc: brcm,kona-sdhci: convert to YAML

Convert Broadcom Kona family SDHCI controller bindings to DT schema.

Changes during conversion:
- also mark reg and interrupts as required
- drop deprecated compatible (it's been deprecated for ~10 years)

Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/a1fd4092b8a31c2ee58a3cd4cca062db13197b45.1683548624.git.stano.jakubek@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Stanislav Jakubek and committed by
Ulf Hansson
77a83be8 982fe2e0

+48 -21
-21
Documentation/devicetree/bindings/mmc/brcm,kona-sdhci.txt
··· 1 - Broadcom BCM281xx SDHCI 2 - 3 - This file documents differences between the core properties in mmc.txt 4 - and the properties present in the bcm281xx SDHCI 5 - 6 - Required properties: 7 - - compatible : Should be "brcm,kona-sdhci" 8 - - DEPRECATED: compatible : Should be "bcm,kona-sdhci" 9 - - clocks: phandle + clock specifier pair of the external clock 10 - 11 - Refer to clocks/clock-bindings.txt for generic clock consumer properties. 12 - 13 - Example: 14 - 15 - sdio2: sdio@3f1a0000 { 16 - compatible = "brcm,kona-sdhci"; 17 - reg = <0x3f1a0000 0x10000>; 18 - clocks = <&sdio3_clk>; 19 - interrupts = <0x0 74 0x4>; 20 - }; 21 -
+48
Documentation/devicetree/bindings/mmc/brcm,kona-sdhci.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mmc/brcm,kona-sdhci.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom Kona family SDHCI controller 8 + 9 + maintainers: 10 + - Florian Fainelli <f.fainelli@gmail.com> 11 + 12 + allOf: 13 + - $ref: sdhci-common.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: brcm,kona-sdhci 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + clocks: 23 + maxItems: 1 24 + 25 + interrupts: 26 + maxItems: 1 27 + 28 + required: 29 + - compatible 30 + - reg 31 + - clocks 32 + - interrupts 33 + 34 + unevaluatedProperties: false 35 + 36 + examples: 37 + - | 38 + #include <dt-bindings/interrupt-controller/arm-gic.h> 39 + #include <dt-bindings/interrupt-controller/irq.h> 40 + #include <dt-bindings/clock/bcm281xx.h> 41 + 42 + mmc@3f1a0000 { 43 + compatible = "brcm,kona-sdhci"; 44 + reg = <0x3f1a0000 0x10000>; 45 + clocks = <&master_ccu BCM281XX_MASTER_CCU_SDIO3>; 46 + interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; 47 + }; 48 + ...