Skip to content

Commit

Permalink
k230 reset ,sd binding
Browse files Browse the repository at this point in the history
Signed-off-by: wangjianxin <[email protected]>
  • Loading branch information
wangjianxin-canaan committed Jul 18, 2024
1 parent f0744f4 commit 60ecd92
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 0 deletions.
65 changes: 65 additions & 0 deletions Documentation/devicetree/bindings/mmc/canaan,k230-dw-mshc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/mmc/canaan,k230-dw-mshc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: kendryte Sparx5 Mobile Storage Host Controller

allOf:
- $ref: mmc-controller.yaml

maintainers:
- Lars Povlsen <[email protected]>

# Everything else is described in the common file
properties:
compatible:
const: canaan,k230-dw-mshc

reg:
maxItems: 1

interrupts:
maxItems: 1

clocks:
maxItems: 1
description:
Handle to "core" clock for the sdhci controller.

clock-names:
items:
- const: core

microchip,clock-delay:
description: Delay clock to card to meet setup time requirements.
Each step increase by 1.25ns.
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 1
maximum: 15

required:
- compatible
- reg
- interrupts
- clocks
- clock-names

unevaluatedProperties: false

examples:
- |
sdhci0@91580000 {
compatible = "canaan,k230-dw-mshc";
reg = <0x0 0x91580000 0x0 0x1000>;
interrupts = <142 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "sdhci0irq";
clocks = <&dummy_sd>,<&dummy_sd>;
clock-names = "core", "bus";
max-frequency = <200000000>;
bus-width = <8>;
sdhci,auto-cmd12;
dma-noncoherent;
status = "disabled";
};
40 changes: 40 additions & 0 deletions Documentation/devicetree/bindings/reset/canaan,k230-rst.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/reset/canaan,k230-sysctl-reset.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Canaan Kendryte k230 Reset Controller

maintainers:
- Damien Le Moal <[email protected]>

description: |
Canaan Kendryte k230 reset controller driver which supports the SoC
system controller supplied reset registers for the various peripherals
of the SoC. The k230 reset controller node must be defined as a child
node of the k230 system controller node.
See also:
- dt-bindings/reset/k230-rst.h
properties:
compatible:
const: canaan,k230-sysctl-reset

'#reset-cells':
const: 1

required:
- '#reset-cells'
- compatible

additionalProperties: false

examples:
- |
#include <dt-bindings/reset/k230-rst.h>
sysrst: reset-controller {
compatible = "canaan,k230-sysctl-reset";
#reset-cells = <4>;
};

0 comments on commit 60ecd92

Please sign in to comment.