• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1* Hisilicon 6210 i2s controller
2
3Required properties:
4
5- compatible: should be one of the following:
6   - "hisilicon,hi3660-i2s-1.0"
7- reg: physical base address of the i2s controller unit and length of
8   memory mapped region.
9- interrupts: should contain the i2s interrupt.
10- clocks: a list of phandle + clock-specifier pairs, one for each entry
11  in clock-names.
12- clock-names: should contain following:
13   - "dacodec"
14   - "i2s-base"
15- dmas: DMA specifiers for tx dma. See the DMA client binding,
16  Documentation/devicetree/bindings/dma/dma.txt
17- dma-names: should be "tx" and "rx"
18- hisilicon,sysctrl-syscon: phandle to sysctrl syscon
19- #sound-dai-cells: Should be set to 1 (for multi-dai)
20
21Example for the hi3660 i2s controller:
22
23	i2s2: hisi_i2s {
24		compatible = "hisilicon,hi3660-i2s-1.0";
25		reg = <0x0 0xe804f800 0x0 0x400>,
26			  <0x0 0xe804e000 0x0 0x400>;
27		pinctrl-names = "default";
28		pinctrl-0 = <&i2s2_pmx_func &i2s2_cfg_func>;
29		dmas = <&asp_dmac 18 &asp_dmac 19>;
30		dma-names = "rx", "tx";
31		#sound-dai-cells = <0>;
32	};
33
34	sound {
35		compatible = "simple-audio-card";
36		simple-audio-card,name = "hikey-hdmi";
37		simple-audio-card,format = "i2s";
38
39		simple-audio-card,bitclock-master = <&sound_master>;
40		simple-audio-card,frame-master = <&sound_master>;
41
42		sound_master: simple-audio-card,cpu {
43			sound-dai = <&i2s2>;
44		};
45
46		simple-audio-card,codec {
47			sound-dai = <&adv7533>;
48		};
49	};
50