141 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/sound/rockchip-i2s.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Rockchip I2S controller8 9description:10 The I2S bus (Inter-IC sound bus) is a serial link for digital11 audio data transfer between devices in the system.12 13maintainers:14 - Heiko Stuebner <heiko@sntech.de>15 16allOf:17 - $ref: dai-common.yaml#18 19properties:20 compatible:21 oneOf:22 - const: rockchip,rk3066-i2s23 - items:24 - enum:25 - rockchip,px30-i2s26 - rockchip,rk1808-i2s27 - rockchip,rk3036-i2s28 - rockchip,rk3128-i2s29 - rockchip,rk3188-i2s30 - rockchip,rk3228-i2s31 - rockchip,rk3288-i2s32 - rockchip,rk3308-i2s33 - rockchip,rk3328-i2s34 - rockchip,rk3366-i2s35 - rockchip,rk3368-i2s36 - rockchip,rk3399-i2s37 - rockchip,rk3588-i2s38 - rockchip,rv1126-i2s39 - const: rockchip,rk3066-i2s40 41 reg:42 maxItems: 143 44 interrupts:45 maxItems: 146 47 clocks:48 items:49 - description: clock for I2S controller50 - description: clock for I2S BUS51 52 clock-names:53 items:54 - const: i2s_clk55 - const: i2s_hclk56 57 dmas:58 minItems: 159 maxItems: 260 61 dma-names:62 oneOf:63 - const: rx64 - items:65 - const: tx66 - const: rx67 68 pinctrl-names:69 oneOf:70 - const: default71 - items:72 - const: bclk_on73 - const: bclk_off74 75 power-domains:76 maxItems: 177 78 reset-names:79 items:80 - const: reset-m81 - const: reset-h82 83 resets:84 maxItems: 285 86 port:87 $ref: audio-graph-port.yaml#88 unevaluatedProperties: false89 90 rockchip,capture-channels:91 $ref: /schemas/types.yaml#/definitions/uint3292 default: 293 description:94 Max capture channels, if not set, 2 channels default.95 96 rockchip,playback-channels:97 $ref: /schemas/types.yaml#/definitions/uint3298 default: 899 description:100 Max playback channels, if not set, 8 channels default.101 102 rockchip,grf:103 $ref: /schemas/types.yaml#/definitions/phandle104 description:105 The phandle of the syscon node for the GRF register.106 Required property for controllers which support multi channel107 playback/capture.108 109 "#sound-dai-cells":110 const: 0111 112required:113 - compatible114 - reg115 - interrupts116 - clocks117 - clock-names118 - dmas119 - dma-names120 - "#sound-dai-cells"121 122unevaluatedProperties: false123 124examples:125 - |126 #include <dt-bindings/clock/rk3288-cru.h>127 #include <dt-bindings/interrupt-controller/arm-gic.h>128 #include <dt-bindings/interrupt-controller/irq.h>129 i2s@ff890000 {130 compatible = "rockchip,rk3288-i2s", "rockchip,rk3066-i2s";131 reg = <0xff890000 0x10000>;132 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;133 clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0>;134 clock-names = "i2s_clk", "i2s_hclk";135 dmas = <&pdma1 0>, <&pdma1 1>;136 dma-names = "tx", "rx";137 rockchip,capture-channels = <2>;138 rockchip,playback-channels = <8>;139 #sound-dai-cells = <0>;140 };141