-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: mmc: samsung,s3c6410-sdhci: convert to dtschema
Convert the Samsung SoC SDHCI Controller bindings to DT schema. The original bindings were quite old and incomplete, so add during conversion typical (already used) properties like reg, clocks, interrupts. The bindings were not precising the clocks, although the upstream DTS and Linux driver were expecting bus clocks in certain patterns in any order. Document the status quo even though it is not a proper approach for bindings. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220626120342.38851-6-krzysztof.kozlowski@linaro.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
- Loading branch information
Krzysztof Kozlowski
authored and
Ulf Hansson
committed
Jul 12, 2022
1 parent
2e586f8
commit f3daa7e
Showing
2 changed files
with
81 additions
and
32 deletions.
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
81
Documentation/devicetree/bindings/mmc/samsung,s3c6410-sdhci.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/mmc/samsung,s3c6410-sdhci.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Samsung SoC SDHCI Controller | ||
|
||
maintainers: | ||
- Jaehoon Chung <jh80.chung@samsung.com> | ||
- Krzysztof Kozlowski <krzk@kernel.org> | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- samsung,s3c6410-sdhci | ||
- samsung,exynos4210-sdhci | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
minItems: 2 | ||
maxItems: 5 | ||
|
||
clock-names: | ||
minItems: 2 | ||
items: | ||
- const: hsmmc | ||
- pattern: "^mmc_busclk.[0-3]$" | ||
- pattern: "^mmc_busclk.[0-3]$" | ||
- pattern: "^mmc_busclk.[0-3]$" | ||
- pattern: "^mmc_busclk.[0-3]$" | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
- clocks | ||
- clock-names | ||
|
||
allOf: | ||
- $ref: mmc-controller.yaml# | ||
- if: | ||
properties: | ||
compatible: | ||
contains: | ||
enum: | ||
- samsung,exynos4210-sdhci | ||
then: | ||
properties: | ||
clocks: | ||
maxItems: 2 | ||
clock-names: | ||
items: | ||
- const: hsmmc | ||
- const: mmc_busclk.2 | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/clock/exynos4.h> | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
mmc@12510000 { | ||
compatible = "samsung,exynos4210-sdhci"; | ||
reg = <0x12510000 0x100>; | ||
interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&clock CLK_SDMMC0>, <&clock CLK_SCLK_MMC0>; | ||
clock-names = "hsmmc", "mmc_busclk.2"; | ||
bus-width = <4>; | ||
cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>; | ||
pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sdhci2_cd>; | ||
pinctrl-names = "default"; | ||
vmmc-supply = <&ldo21_reg>; | ||
}; |
This file was deleted.
Oops, something went wrong.