Date:2013-05-05 19:14:40 (7 years 23 days ago)
Author:Lars C.
Commit:0fa50732d3e1e192a4cc09f9756d53d05125efc0
Message:ASoC: jz4740-i2s: Add device tree support

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Files: Documentation/devicetree/bindings/sound/jz4740-aic.txt (1 diff)
sound/soc/jz4740/jz4740-i2s.c (1 diff)

Change Details

Documentation/devicetree/bindings/sound/jz4740-aic.txt
1JZ4740 audio controller
2
3Required properties:
4    compatible: Must be "ingenic,jz4740-dma"
5    reg: The audio controller's regsiters location and length
6    clocks: Phandles to the aic and i2s clock
7    clock-names: "aic", "i2s"
8    dmas: Phandles to the transmit and receive DMA streams
9    dma-names: Names for the DMA streams. These strings correspond 1:1 with the
10     ordered pairs in dmas. Valid values are "tx" and "rx"
11
12Example:
13    aic: aic@20000 {
14        compatible = "ingenic,jz4740-aic";
15        reg = <0x20000 0x80>;
16        interrupts = <18>;
17
18        clocks = <&aic_clk &i2s_clk>;
19        clock-names = "aic", "i2s";
20
21        dmas = <&dmac 0 0 0 &dmac 0 0 0>;
22        dma-names = "tx", "rx";
23    };
sound/soc/jz4740/jz4740-i2s.c
451451        SND_DMAENGINE_PCM_FLAG_COMPAT);
452452}
453453
454static const struct of_device_id jz4740_i2s_of_match[] = {
455    { .compatible = "ingenic,jz4740-aic" },
456    {},
457};
458MODULE_DEVICE_TABLE(of, jz4740_i2s_of_match);
459
454460static struct platform_driver jz4740_i2s_driver = {
455461    .probe = jz4740_i2s_dev_probe,
456462    .driver = {
457463        .name = "jz4740-i2s",
458464        .owner = THIS_MODULE,
465        .of_match_table = jz4740_i2s_of_match,
459466    },
460467};
461468

Archive Download the corresponding diff file



interactive