From e7ae709a0032934ffb07f7c91c1f7b0478493db1 Mon Sep 17 00:00:00 2001 From: William Qiu Date: Tue, 22 Nov 2022 14:22:58 +0800 Subject: [PATCH] dt-bindings: sdio: Add bindings for Starfive sdio driver Add documentation to descibe StarFive JH7110 sdio driver bindings. Signed-off-by: William Qiu --- .../bindings/mmc/starfive-jh7110-sdio.yaml | 81 ++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/starfive-jh7110-sdio.yaml diff --git a/Documentation/devicetree/bindings/mmc/starfive-jh7110-sdio.yaml b/Documentation/devicetree/bindings/mmc/starfive-jh7110-sdio.yaml new file mode 100644 index 0000000..3b6daaa --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/starfive-jh7110-sdio.yaml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/starfive-jh7110-sdio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 SDIO Device Tree Bindings + +description: + Bindings for the JH7110 RISC-V SoC from StarFive Ltd. + +allOf: + - $ref: "synopsys-dw-mshc-common.yaml#" + +maintainers: + - William Qiu + +properties: + compatible: + const: starfive,jh7110-sdio + + reg: + maxItems: 1 + + clocks: + minItems: 1 + items: + - description: biu clock + - description: ciu clock + + clock-names: + minItems: 1 + items: + - const: biu + - const: ciu + + interrupts: + maxItems: 1 + + starfive,sys-syscon: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + The desired number of times that the host execute tuning when needed. + If not specified, the host will do tuning for 360 times, + namely tuning for each degree. + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + sdio0: mmc@16010000 { + compatible = "starfive,jh7110-sdio"; + reg = <0x0 0x16010000 0x0 0x10000>; + clocks = <&syscrg JH7110_SYSCLK_SDIO0_AHB>, + <&syscrg JH7110_SYSCLK_SDIO0_SDCARD>; + clock-names = "biu","ciu"; + resets = <&syscrg JH7110_SYSRST_SDIO0_AHB>; + reset-names = "reset"; + interrupts = <74>; + fifo-depth = <32>; + fifo-watermark-aligned; + data-addr = <0>; + }; + }; + +... + -- 2.7.4