Skip to content

Commit 3b0bca9

Browse files
robherringdamien-lemoal
authored andcommitted
dt-bindings: ata: Convert arasan,cf-spear1340 to DT schema
Convert the Arasan/SPEAr Compact Flash Controller to DT schema format. The "clock-frequency" property isn't actually used. Add a single "clocks" entry as the Linux driver supports a single clock though the platform still doesn't have clocks in DT. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
1 parent 6130ed3 commit 3b0bca9

File tree

2 files changed

+70
-37
lines changed

2 files changed

+70
-37
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/ata/arasan,cf-spear1340.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Arasan PATA Compact Flash Controller
8+
9+
maintainers:
10+
- Viresh Kumar <viresh.kumar@linaro.org>
11+
12+
properties:
13+
compatible:
14+
const: arasan,cf-spear1340
15+
16+
reg:
17+
maxItems: 1
18+
19+
interrupts:
20+
maxItems: 1
21+
22+
clocks:
23+
maxItems: 1
24+
25+
arasan,broken-udma:
26+
description: UDMA mode is unusable
27+
type: boolean
28+
29+
arasan,broken-mwdma:
30+
description: MWDMA mode is unusable
31+
type: boolean
32+
33+
arasan,broken-pio:
34+
description: PIO mode is unusable
35+
type: boolean
36+
37+
dmas:
38+
maxItems: 1
39+
40+
dma-names:
41+
items:
42+
- const: data
43+
44+
required:
45+
- compatible
46+
- reg
47+
- interrupts
48+
49+
additionalProperties: false
50+
51+
allOf:
52+
- if:
53+
not:
54+
required:
55+
- arasan,broken-udma
56+
- arasan,broken-mwdma
57+
then:
58+
required:
59+
- dmas
60+
- dma-names
61+
62+
examples:
63+
- |
64+
cf@fc000000 {
65+
compatible = "arasan,cf-spear1340";
66+
reg = <0xfc000000 0x1000>;
67+
interrupts = <12>;
68+
dmas = <&dma 23>;
69+
dma-names = "data";
70+
};

Documentation/devicetree/bindings/ata/pata-arasan.txt

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)