forked from raspberrypi/linux
/
audiocard-overlay.dts
59 lines (51 loc) · 1.09 KB
/
audiocard-overlay.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
// Definitions for AudioCard
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2708";
fragment@0 {
target = <&sound>;
__overlay__ {
compatible = "audiocard,audiocard";
i2s-controller = <&i2s>;
status = "okay";
};
};
fragment@1 {
target = <&i2s>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&gpio>;
__overlay__ {
audiocard_pins: audiocard_pins {
brcm,pins = <26>; /* Pin 26 */
brcm,function = <1>; /* Output */
};
};
};
fragment@3 {
target = <&spi0>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
ad913x: ad193x@0{
compatible = "analog,ad1938";
reg = <0>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&audiocard_pins>;
/* spi-max-frequency = <32000000>; */
spi-max-frequency = <10000000>; /* ok with 500000 */
};
};
};
__overrides__ {
/*gpiopin = <&ad913x>,"reset-gpio:4",*/
/* <&audiocard_pins>,"brcm,pins:0";*/
};
};