1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/rockchip,i2s-tdm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Rockchip I2S/TDM Controller
10 The Rockchip I2S/TDM Controller is a Time Division Multiplexed
11 audio interface found in various Rockchip SoCs, allowing up
12 to 8 channels of audio over a serial interface.
15 - Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
20 - rockchip,px30-i2s-tdm
21 - rockchip,rk1808-i2s-tdm
22 - rockchip,rk3308-i2s-tdm
23 - rockchip,rk3568-i2s-tdm
24 - rockchip,rv1126-i2s-tdm
47 - description: clock for TX
48 - description: clock for RX
49 - description: AHB clock driving the interface
51 Parent clock for mclk_tx (only required when using mclk-calibrate)
53 Parent clock for mclk_rx (only required when using mclk-calibrate)
55 Clock for sample rates that are an integer multiple of 8000
56 (only required when using mclk-calibrate)
58 Clock for sample rates that are an integer multiple of 11025
59 (only required when using mclk-calibrate)
75 description: resets for the tx and rx directions
86 $ref: /schemas/types.yaml#/definitions/phandle
88 The phandle of the syscon node for the GRF register.
90 rockchip,trcm-sync-tx-only:
92 description: Use TX BCLK/LRCK for both TX and RX.
94 rockchip,trcm-sync-rx-only:
96 description: Use RX BCLK/LRCK for both TX and RX.
101 rockchip,i2s-rx-route:
102 $ref: /schemas/types.yaml#/definitions/uint32-array
104 Defines the mapping of I2S RX sdis to I2S data bus lines.
105 By default, they are mapped one-to-one.
106 rockchip,i2s-rx-route = <3> would mean sdi3 is receiving from data0.
111 rockchip,i2s-tx-route:
112 $ref: /schemas/types.yaml#/definitions/uint32-array
114 Defines the mapping of I2S TX sdos to I2S data bus lines.
115 By default, they are mapped one-to-one.
116 rockchip,i2s-tx-route = <3> would mean sdo3 is sending to data0.
121 rockchip,io-multiplex:
123 Specify that the GPIO lines on the I2S bus are multiplexed such that
124 the direction (input/output) needs to be dynamically adjusted.
141 additionalProperties: false
145 #include <dt-bindings/clock/rk3568-cru.h>
146 #include <dt-bindings/interrupt-controller/arm-gic.h>
147 #include <dt-bindings/interrupt-controller/irq.h>
148 #include <dt-bindings/pinctrl/rockchip.h>
151 #address-cells = <2>;
154 compatible = "rockchip,rk3568-i2s-tdm";
155 reg = <0x0 0xfe410000 0x0 0x1000>;
156 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
157 clocks = <&cru MCLK_I2S1_8CH_TX>, <&cru MCLK_I2S1_8CH_RX>,
158 <&cru HCLK_I2S1_8CH>;
159 clock-names = "mclk_tx", "mclk_rx", "hclk";
160 dmas = <&dmac1 3>, <&dmac1 2>;
161 dma-names = "rx", "tx";
162 resets = <&cru SRST_M_I2S1_8CH_TX>, <&cru SRST_M_I2S1_8CH_RX>;
163 reset-names = "tx-m", "rx-m";
164 rockchip,trcm-sync-tx-only;
165 rockchip,grf = <&grf>;
166 #sound-dai-cells = <0>;
167 pinctrl-names = "default";