-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: wangjianxin <[email protected]>
- Loading branch information
1 parent
f0744f4
commit 60ecd92
Showing
2 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
Documentation/devicetree/bindings/mmc/canaan,k230-dw-mshc.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,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
40
Documentation/devicetree/bindings/reset/canaan,k230-rst.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,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>; | ||
}; |