1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/ingenic,aic.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Ingenic SoCs AC97 / I2S Controller (AIC) 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Paul Cercueil <paul@crapouillou.net> 11c66ec88fSEmmanuel Vadot 128bab661aSEmmanuel VadotallOf: 138bab661aSEmmanuel Vadot - $ref: dai-common.yaml# 148bab661aSEmmanuel Vadot 15c66ec88fSEmmanuel Vadotproperties: 16c66ec88fSEmmanuel Vadot $nodename: 17c66ec88fSEmmanuel Vadot pattern: '^audio-controller@' 18c66ec88fSEmmanuel Vadot 19c66ec88fSEmmanuel Vadot compatible: 20c66ec88fSEmmanuel Vadot oneOf: 21c66ec88fSEmmanuel Vadot - enum: 22c66ec88fSEmmanuel Vadot - ingenic,jz4740-i2s 23c66ec88fSEmmanuel Vadot - ingenic,jz4760-i2s 24c66ec88fSEmmanuel Vadot - ingenic,jz4770-i2s 25c66ec88fSEmmanuel Vadot - ingenic,jz4780-i2s 26*f126890aSEmmanuel Vadot - ingenic,x1000-i2s 27c66ec88fSEmmanuel Vadot - items: 28c66ec88fSEmmanuel Vadot - const: ingenic,jz4725b-i2s 29c66ec88fSEmmanuel Vadot - const: ingenic,jz4740-i2s 30c66ec88fSEmmanuel Vadot 31c66ec88fSEmmanuel Vadot '#sound-dai-cells': 32c66ec88fSEmmanuel Vadot const: 0 33c66ec88fSEmmanuel Vadot 34c66ec88fSEmmanuel Vadot reg: 35c66ec88fSEmmanuel Vadot maxItems: 1 36c66ec88fSEmmanuel Vadot 37c66ec88fSEmmanuel Vadot interrupts: 38c66ec88fSEmmanuel Vadot maxItems: 1 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadot clocks: 41c66ec88fSEmmanuel Vadot items: 42c66ec88fSEmmanuel Vadot - description: AIC clock 43c66ec88fSEmmanuel Vadot - description: I2S clock 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel Vadot clock-names: 46c66ec88fSEmmanuel Vadot items: 47c66ec88fSEmmanuel Vadot - const: aic 48c66ec88fSEmmanuel Vadot - const: i2s 49c66ec88fSEmmanuel Vadot 50c66ec88fSEmmanuel Vadot dmas: 51c66ec88fSEmmanuel Vadot items: 52c66ec88fSEmmanuel Vadot - description: DMA controller phandle and request line for I2S RX 53c66ec88fSEmmanuel Vadot - description: DMA controller phandle and request line for I2S TX 54c66ec88fSEmmanuel Vadot 55c66ec88fSEmmanuel Vadot dma-names: 56c66ec88fSEmmanuel Vadot items: 57c66ec88fSEmmanuel Vadot - const: rx 58c66ec88fSEmmanuel Vadot - const: tx 59c66ec88fSEmmanuel Vadot 608bab661aSEmmanuel VadotunevaluatedProperties: false 61c66ec88fSEmmanuel Vadot 62c66ec88fSEmmanuel Vadotrequired: 63c66ec88fSEmmanuel Vadot - compatible 64c66ec88fSEmmanuel Vadot - reg 65c66ec88fSEmmanuel Vadot - interrupts 66c66ec88fSEmmanuel Vadot - clocks 67c66ec88fSEmmanuel Vadot - clock-names 68c66ec88fSEmmanuel Vadot - dmas 69c66ec88fSEmmanuel Vadot - dma-names 70c66ec88fSEmmanuel Vadot - '#sound-dai-cells' 71c66ec88fSEmmanuel Vadot 72c66ec88fSEmmanuel Vadotexamples: 73c66ec88fSEmmanuel Vadot - | 748cc087a1SEmmanuel Vadot #include <dt-bindings/clock/ingenic,jz4740-cgu.h> 75c66ec88fSEmmanuel Vadot aic: audio-controller@10020000 { 76c66ec88fSEmmanuel Vadot compatible = "ingenic,jz4740-i2s"; 77c66ec88fSEmmanuel Vadot reg = <0x10020000 0x38>; 78c66ec88fSEmmanuel Vadot 79c66ec88fSEmmanuel Vadot #sound-dai-cells = <0>; 80c66ec88fSEmmanuel Vadot 81c66ec88fSEmmanuel Vadot interrupt-parent = <&intc>; 82c66ec88fSEmmanuel Vadot interrupts = <18>; 83c66ec88fSEmmanuel Vadot 84c66ec88fSEmmanuel Vadot clocks = <&cgu JZ4740_CLK_AIC>, 858bab661aSEmmanuel Vadot <&cgu JZ4740_CLK_I2S>; 868bab661aSEmmanuel Vadot clock-names = "aic", "i2s"; 87c66ec88fSEmmanuel Vadot 88c66ec88fSEmmanuel Vadot dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>; 89c66ec88fSEmmanuel Vadot dma-names = "rx", "tx"; 90c66ec88fSEmmanuel Vadot }; 91