-
Notifications
You must be signed in to change notification settings - Fork 1
/
sun50i-h616-i2s3_v2.dts
86 lines (79 loc) · 2.1 KB
/
sun50i-h616-i2s3_v2.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/dts-v1/;
/plugin/;
&{/aliases} {
pio = "/soc/pinctrl@300b000";
ahub_daudio3_pins_a = "/soc/pinctrl@300b000/ahub_daudio30";
ahub_daudio3_pins_b = "/soc/pinctrl@300b000/ahub_daudio31";
ahub_daudio3_pins_c = "/soc/pinctrl@300b000/ahub_daudio32";
ahub_daudio3_pins_d = "/soc/pinctrl@300b000/ahub_daudio3_sleep";
};
&pio {
ahub_daudio30: ahub_daudio30 {
pins = "PH5", "PH6", "PH7";
function = "i2s3";
drive-strength = <0x14>;
bias-disable;
// phandle = <0xb0>;
};
ahub_daudio31: ahub_daudio31 {
pins = "PH8";
function = "i2s3_dout0";
drive-strength = <0x14>;
bias-disable;
// phandle = <0xb1>;
};
ahub_daudio32: ahub_daudio32 {
pins = "PH9";
function = "i2s3_din0";
drive-strength = <0x14>;
bias-disable;
// phandle = <0xb2>;
};
ahub_daudio3_sleep: ahub_daudio3_sleep {
pins = "PH5", "PH6", "PH7", "PH8", "PH9";
function = "gpio_in";
drive-strength = <0x14>;
bias-disable;
// phandle = <0xb3>;
};
};
&{/soc} {
ahub3_plat: ahub3_plat {
#sound-dai-cells = <0>;
compatible = "allwinner,sunxi-snd-plat-ahub";
apb_num = <2>; /* for dma port 5 */
dmas = <&dma 5>, <&dma 5>;
dma-names = "tx", "rx";
playback_cma = <128>;
capture_cma = <128>;
tx_fifo_size = <128>;
rx_fifo_size = <128>;
tdm_num = <3>;
tx_pin = <0>;
rx_pin = <0>;
status = "okay";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&ahub_daudio30>, <&ahub_daudio31>;
pinctrl-1 = <&ahub_daudio3_sleep>;
};
ahub3_mach: ahub3_mach {
compatible = "allwinner,sunxi-snd-mach";
soundcard-mach,name = "ahubi2s3";
soundcard-mach,format = "i2s";
soundcard-mach,frame-master = <&ahub3_cpu>;
soundcard-mach,bitclock-master = <&ahub3_cpu>;
/* soundcard-mach,frame-inversion; */
/* soundcard-mach,bitclock-inversion; */
soundcard-mach,slot-num = <2>;
soundcard-mach,slot-width = <32>;
status = "okay";
ahub3_cpu: soundcard-mach,cpu {
sound-dai = <&ahub3_plat>;
soundcard-mach,cpu-pll-fs = <0x01>;
soundcard-mach,pll-fs = <0x01>;
soundcard-mach,mclk-fs = <0x00>;
};
ahub3_codec: soundcard-mach,codec {
};
};
};