-
Notifications
You must be signed in to change notification settings - Fork 15
/
atapi-direct-irq.dts
70 lines (58 loc) · 1.08 KB
/
atapi-direct-irq.dts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709", "brcm,bcm2911";
fragment@0 {
target = <&gpio>;
__overlay__ {
pata_irq_pin: pata-irq-pin {
brcm,pins = <27>;
brcm,function = <0>; /* GPIO, input */
brcm,pull = <1>;
};
};
};
fragment@1 {
target-path = "/";
__overlay__ {
pata-gpio {
compatible = "pata-gpio";
address-gpios = <
&gpio 5 0
&gpio 4 0
&gpio 3 0
>;
cs-gpios = <
&gpio 2 1
&gpio 1 1
>;
databus-gpios = <
&gpio 8 0
&gpio 9 0
&gpio 10 0
&gpio 11 0
&gpio 12 0
&gpio 13 0
&gpio 14 0
&gpio 15 0
&gpio 16 0
&gpio 17 0
&gpio 18 0
&gpio 19 0
&gpio 20 0
&gpio 21 0
&gpio 22 0
&gpio 23 0
>;
interrupts = <27 0x01>; /* GPIO27, rising edge */
interrupt-parent = <&gpio>;
pinctrl-default = <&pata_irq_pin>;
pinctrl-names = "default";
reset-gpio = <&gpio 26 1>;
strobe-read-gpio = <&gpio 6 1>;
strobe-write-gpio = <&gpio 7 1>;
status = "okay";
};
};
};
};