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

dt-bindings: mmc: Convert MMC Card binding to a schema

MMC Cards can have an optional Device Tree binding to add
non-discoverable properties.

Now that we have the DT validation in place, let's convert the device
tree bindings for that driver over to a YAML schema.

Some of these properties were already described in the MMC controller
binding, even though they are not generic and do not apply to any
device, so we took the occasion to fix this.

Cc: linux-mmc@vger.kernel.org
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210901091852.479202-31-maxime@cerno.tech
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Maxime Ripard and committed by
Ulf Hansson
295c894c 9c1aaec4

+48 -36
-30
Documentation/devicetree/bindings/mmc/mmc-card.txt
··· 1 - mmc-card / eMMC bindings 2 - ------------------------ 3 - 4 - This documents describes the devicetree bindings for a mmc-host controller 5 - child node describing a mmc-card / an eMMC, see "Use of Function subnodes" 6 - in mmc.txt 7 - 8 - Required properties: 9 - -compatible : Must be "mmc-card" 10 - -reg : Must be <0> 11 - 12 - Optional properties: 13 - -broken-hpi : Use this to indicate that the mmc-card has a broken hpi 14 - implementation, and that hpi should not be used 15 - 16 - Example: 17 - 18 - &mmc2 { 19 - pinctrl-names = "default"; 20 - pinctrl-0 = <&mmc2_pins_a>; 21 - vmmc-supply = <&reg_vcc3v3>; 22 - bus-width = <8>; 23 - non-removable; 24 - 25 - mmccard: mmccard@0 { 26 - reg = <0>; 27 - compatible = "mmc-card"; 28 - broken-hpi; 29 - }; 30 - };
+48
Documentation/devicetree/bindings/mmc/mmc-card.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mmc/mmc-card.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: MMC Card / eMMC Generic Device Tree Bindings 8 + 9 + maintainers: 10 + - Ulf Hansson <ulf.hansson@linaro.org> 11 + 12 + description: | 13 + This documents describes the devicetree bindings for a mmc-host controller 14 + child node describing a mmc-card / an eMMC. 15 + 16 + properties: 17 + compatible: 18 + const: mmc-card 19 + 20 + reg: 21 + const: 0 22 + 23 + broken-hpi: 24 + $ref: /schemas/types.yaml#/definitions/flag 25 + description: 26 + Use this to indicate that the mmc-card has a broken hpi 27 + implementation, and that hpi should not be used. 28 + 29 + required: 30 + - compatible 31 + - reg 32 + 33 + additionalProperties: false 34 + 35 + examples: 36 + - | 37 + mmc { 38 + #address-cells = <1>; 39 + #size-cells = <0>; 40 + 41 + card@0 { 42 + compatible = "mmc-card"; 43 + reg = <0>; 44 + broken-hpi; 45 + }; 46 + }; 47 + 48 + ...
-6
Documentation/devicetree/bindings/mmc/mmc-controller.yaml
··· 333 333 subnode describes. A value of 0 denotes the memory SD 334 334 function, values from 1 to 7 denote the SDIO functions. 335 335 336 - broken-hpi: 337 - $ref: /schemas/types.yaml#/definitions/flag 338 - description: 339 - Use this to indicate that the mmc-card has a broken hpi 340 - implementation, and that hpi should not be used. 341 - 342 336 required: 343 337 - reg 344 338