xref: /linux/Documentation/devicetree/bindings/sound/nvidia,tegra30-ahub.txt (revision c4ee0af3fa0dc65f690fc908f02b8355f9576ea0)
1NVIDIA Tegra30 AHUB (Audio Hub)
2
3Required properties:
4- compatible : "nvidia,tegra30-ahub", "nvidia,tegra114-ahub", etc.
5- reg : Should contain the register physical address and length for each of
6  the AHUB's register blocks.
7  - Tegra30 requires 2 entries, for the APBIF and AHUB/AUDIO register blocks.
8  - Tegra114 requires an additional entry, for the APBIF2 register block.
9- interrupts : Should contain AHUB interrupt
10- nvidia,dma-request-selector : A list of the DMA channel specifiers. Each
11  entry contains the Tegra DMA controller's phandle and request selector.
12  If a single entry is present, the request selectors for the channels are
13  assumed to be contiguous, and increment from this value.
14  If multiple values are given, one value must be given per channel.
15- clocks : Must contain an entry for each required entry in clock-names.
16- clock-names : Must include the following entries:
17  - Tegra30: Requires d_audio, apbif, i2s0, i2s1, i2s2, i2s3, i2s4, dam0,
18    dam1, dam2, spdif_in.
19  - Tegra114: Additionally requires amx, adx.
20- ranges : The bus address mapping for the configlink register bus.
21  Can be empty since the mapping is 1:1.
22- #address-cells : For the configlink bus. Should be <1>;
23- #size-cells : For the configlink bus. Should be <1>.
24
25AHUB client modules need to specify the IDs of their CIFs (Client InterFaces).
26For RX CIFs, the numbers indicate the register number within AHUB routing
27register space (APBIF 0..3 RX, I2S 0..5 RX, DAM 0..2 RX 0..1, SPDIF RX 0..1).
28For TX CIFs, the numbers indicate the bit position within the AHUB routing
29registers (APBIF 0..3 TX, I2S 0..5 TX, DAM 0..2 TX, SPDIF TX 0..1).
30
31Example:
32
33ahub@70080000 {
34	compatible = "nvidia,tegra30-ahub";
35	reg = <0x70080000 0x200 0x70080200 0x100>;
36	interrupts = < 0 103 0x04 >;
37	nvidia,dma-request-selector = <&apbdma 1>;
38	clocks = <&tegra_car 106>, <&tegra_car 107>, <&tegra_car 30>,
39		<&tegra_car 11>, <&tegra_car 18>, <&tegra_car 101>,
40		<&tegra_car 102>, <&tegra_car 108>, <&tegra_car 109>,
41		<&tegra_car 110>, <&tegra_car 162>;
42	clock-names = "d_audio", "apbif", "i2s0", "i2s1", "i2s2",
43		"i2s3", "i2s4", "dam0", "dam1", "dam2",
44		"spdif_in";
45	ranges;
46	#address-cells = <1>;
47	#size-cells = <1>;
48};
49