1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/marvell,mmp-sspa.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Marvel SSPA Digital Audio Interface 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Lubomir Rintel <lkundrak@v3.sk> 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 const: marvell,mmp-sspa 21c66ec88fSEmmanuel Vadot 22c66ec88fSEmmanuel Vadot reg: 23c66ec88fSEmmanuel Vadot items: 24c66ec88fSEmmanuel Vadot - description: RX block 25c66ec88fSEmmanuel Vadot - description: TX block 26c66ec88fSEmmanuel Vadot 27c66ec88fSEmmanuel Vadot interrupts: 28c66ec88fSEmmanuel Vadot maxItems: 1 29c66ec88fSEmmanuel Vadot 30c66ec88fSEmmanuel Vadot clocks: 31c66ec88fSEmmanuel Vadot items: 32c66ec88fSEmmanuel Vadot - description: Clock for the Audio block 33c66ec88fSEmmanuel Vadot - description: I2S bit clock 34c66ec88fSEmmanuel Vadot 35c66ec88fSEmmanuel Vadot clock-names: 36c66ec88fSEmmanuel Vadot items: 37c66ec88fSEmmanuel Vadot - const: audio 38c66ec88fSEmmanuel Vadot - const: bitclk 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadot power-domains: 41c66ec88fSEmmanuel Vadot maxItems: 1 42c66ec88fSEmmanuel Vadot 43c66ec88fSEmmanuel Vadot '#sound-dai-cells': 44c66ec88fSEmmanuel Vadot const: 0 45c66ec88fSEmmanuel Vadot 46c66ec88fSEmmanuel Vadot dmas: 47c66ec88fSEmmanuel Vadot items: 48c66ec88fSEmmanuel Vadot - description: TX DMA Channel 49c66ec88fSEmmanuel Vadot - description: RX DMA Channel 50c66ec88fSEmmanuel Vadot 51c66ec88fSEmmanuel Vadot dma-names: 52c66ec88fSEmmanuel Vadot items: 53c66ec88fSEmmanuel Vadot - const: tx 54c66ec88fSEmmanuel Vadot - const: rx 55c66ec88fSEmmanuel Vadot 56c66ec88fSEmmanuel Vadot port: 572eb4d8dcSEmmanuel Vadot $ref: audio-graph-port.yaml# 582eb4d8dcSEmmanuel Vadot unevaluatedProperties: false 59c66ec88fSEmmanuel Vadot 60c66ec88fSEmmanuel Vadot properties: 61c66ec88fSEmmanuel Vadot endpoint: 62c66ec88fSEmmanuel Vadot type: object 63*fac71e4eSEmmanuel Vadot additionalProperties: true 64c66ec88fSEmmanuel Vadot 65c66ec88fSEmmanuel Vadot properties: 66c66ec88fSEmmanuel Vadot dai-format: 67c66ec88fSEmmanuel Vadot const: i2s 68c66ec88fSEmmanuel Vadot 69c66ec88fSEmmanuel Vadotrequired: 70c66ec88fSEmmanuel Vadot - "#sound-dai-cells" 71c66ec88fSEmmanuel Vadot - compatible 72c66ec88fSEmmanuel Vadot - reg 73c66ec88fSEmmanuel Vadot - interrupts 74c66ec88fSEmmanuel Vadot - clocks 75c66ec88fSEmmanuel Vadot - clock-names 76c66ec88fSEmmanuel Vadot - dmas 77c66ec88fSEmmanuel Vadot - dma-names 78c66ec88fSEmmanuel Vadot - port 79c66ec88fSEmmanuel Vadot 808bab661aSEmmanuel VadotunevaluatedProperties: false 81c66ec88fSEmmanuel Vadot 82c66ec88fSEmmanuel Vadotexamples: 83c66ec88fSEmmanuel Vadot - | 84c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/marvell,mmp2.h> 85c66ec88fSEmmanuel Vadot 86c66ec88fSEmmanuel Vadot audio-controller@d42a0c00 { 87c66ec88fSEmmanuel Vadot compatible = "marvell,mmp-sspa"; 88c66ec88fSEmmanuel Vadot reg = <0xd42a0c00 0x30>, 89c66ec88fSEmmanuel Vadot <0xd42a0c80 0x30>; 90c66ec88fSEmmanuel Vadot interrupts = <2>; 91c66ec88fSEmmanuel Vadot clock-names = "audio", "bitclk"; 92c66ec88fSEmmanuel Vadot clocks = <&soc_clocks 127>, 93c66ec88fSEmmanuel Vadot <&audio_clk 1>; 94c66ec88fSEmmanuel Vadot #sound-dai-cells = <0>; 95c66ec88fSEmmanuel Vadot dmas = <&adma0 0>, <&adma0 1>; 96c66ec88fSEmmanuel Vadot dma-names = "tx", "rx"; 97c66ec88fSEmmanuel Vadot port { 98c66ec88fSEmmanuel Vadot endpoint { 99c66ec88fSEmmanuel Vadot remote-endpoint = <&rt5631_0>; 100c66ec88fSEmmanuel Vadot dai-format = "i2s"; 101c66ec88fSEmmanuel Vadot }; 102c66ec88fSEmmanuel Vadot }; 103c66ec88fSEmmanuel Vadot }; 104c66ec88fSEmmanuel Vadot 105c66ec88fSEmmanuel Vadot... 106