1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/renesas,fsi.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Renesas FIFO-buffered Serial Interface (FSI) 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 11c66ec88fSEmmanuel Vadot 12*8bab661aSEmmanuel VadotallOf: 13*8bab661aSEmmanuel Vadot - $ref: dai-common.yaml# 14*8bab661aSEmmanuel Vadot 15c66ec88fSEmmanuel Vadotproperties: 16c66ec88fSEmmanuel Vadot $nodename: 17c66ec88fSEmmanuel Vadot pattern: "^sound@.*" 18c66ec88fSEmmanuel Vadot 19c66ec88fSEmmanuel Vadot compatible: 20c66ec88fSEmmanuel Vadot oneOf: 21c66ec88fSEmmanuel Vadot # for FSI2 SoC 22c66ec88fSEmmanuel Vadot - items: 23c66ec88fSEmmanuel Vadot - enum: 24c66ec88fSEmmanuel Vadot - renesas,fsi2-sh73a0 # SH-Mobile AG5 25c66ec88fSEmmanuel Vadot - renesas,fsi2-r8a7740 # R-Mobile A1 26c66ec88fSEmmanuel Vadot - enum: 27c66ec88fSEmmanuel Vadot - renesas,sh_fsi2 28c66ec88fSEmmanuel Vadot # for Generic 29c66ec88fSEmmanuel Vadot - items: 30c66ec88fSEmmanuel Vadot - enum: 31c66ec88fSEmmanuel Vadot - renesas,sh_fsi 32c66ec88fSEmmanuel Vadot - renesas,sh_fsi2 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 maxItems: 1 42c66ec88fSEmmanuel Vadot 43c66ec88fSEmmanuel Vadot power-domains: 44c66ec88fSEmmanuel Vadot maxItems: 1 45c66ec88fSEmmanuel Vadot 46c66ec88fSEmmanuel Vadot '#sound-dai-cells': 47c66ec88fSEmmanuel Vadot const: 1 48c66ec88fSEmmanuel Vadot 49c66ec88fSEmmanuel VadotpatternProperties: 50c66ec88fSEmmanuel Vadot "^fsi(a|b),spdif-connection$": 51c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/flag 52c66ec88fSEmmanuel Vadot description: FSI is connected by S/PDIF 53c66ec88fSEmmanuel Vadot 54c66ec88fSEmmanuel Vadot "^fsi(a|b),stream-mode-support$": 55c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/flag 56c66ec88fSEmmanuel Vadot description: FSI supports 16bit stream mode 57c66ec88fSEmmanuel Vadot 58c66ec88fSEmmanuel Vadot "^fsi(a|b),use-internal-clock$": 59c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/flag 60c66ec88fSEmmanuel Vadot description: FSI uses internal clock when master mode 61c66ec88fSEmmanuel Vadot 62c66ec88fSEmmanuel Vadotrequired: 63c66ec88fSEmmanuel Vadot - compatible 64c66ec88fSEmmanuel Vadot - reg 65c66ec88fSEmmanuel Vadot - interrupts 66c66ec88fSEmmanuel Vadot - clocks 67c66ec88fSEmmanuel Vadot - power-domains 68c66ec88fSEmmanuel Vadot - '#sound-dai-cells' 69c66ec88fSEmmanuel Vadot 70*8bab661aSEmmanuel VadotunevaluatedProperties: false 71c66ec88fSEmmanuel Vadot 72c66ec88fSEmmanuel Vadotexamples: 73c66ec88fSEmmanuel Vadot - | 74c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/r8a7740-clock.h> 75c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 76c66ec88fSEmmanuel Vadot sh_fsi2: sound@fe1f0000 { 77c66ec88fSEmmanuel Vadot compatible = "renesas,fsi2-r8a7740", "renesas,sh_fsi2"; 78c66ec88fSEmmanuel Vadot reg = <0xfe1f0000 0x400>; 79c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 9 0x4>; 80c66ec88fSEmmanuel Vadot clocks = <&mstp3_clks R8A7740_CLK_FSI>; 81c66ec88fSEmmanuel Vadot power-domains = <&pd_a4mp>; 82c66ec88fSEmmanuel Vadot 83c66ec88fSEmmanuel Vadot #sound-dai-cells = <1>; 84c66ec88fSEmmanuel Vadot fsia,spdif-connection; 85c66ec88fSEmmanuel Vadot fsia,stream-mode-support; 86c66ec88fSEmmanuel Vadot fsia,use-internal-clock; 87c66ec88fSEmmanuel Vadot }; 88