Skip to content

Commit f874271

Browse files
knaerzchemmind
authored andcommitted
ARM: dts: rockchip: Add i2s nodes for RK3128
RK3128 SoCs have two i2s controllers. i2s_8ch has 8 tx and 2 rx channels and is internally hard-wired to the hdmi-controller respectivly the SoC's analog codec. i2s_2ch has 2 tx and 2 rx channels and can also be used externally as it's pins are exposed though pinctrl. Signed-off-by: Alex Bee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 171ea1f commit f874271

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

arch/arm/boot/dts/rockchip/rk3128.dtsi

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,18 @@
399399
status = "disabled";
400400
};
401401

402+
i2s_8ch: i2s@10200000 {
403+
compatible = "rockchip,rk3128-i2s", "rockchip,rk3066-i2s";
404+
reg = <0x10200000 0x1000>;
405+
interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
406+
clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S_8CH>;
407+
clock-names = "i2s_clk", "i2s_hclk";
408+
dmas = <&pdma 14>, <&pdma 15>;
409+
dma-names = "tx", "rx";
410+
#sound-dai-cells = <0>;
411+
status = "disabled";
412+
};
413+
402414
sdmmc: mmc@10214000 {
403415
compatible = "rockchip,rk3128-dw-mshc", "rockchip,rk3288-dw-mshc";
404416
reg = <0x10214000 0x4000>;
@@ -447,6 +459,21 @@
447459
status = "disabled";
448460
};
449461

462+
i2s_2ch: i2s@10220000 {
463+
compatible = "rockchip,rk3128-i2s", "rockchip,rk3066-i2s";
464+
reg = <0x10220000 0x1000>;
465+
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
466+
clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S_2CH>;
467+
clock-names = "i2s_clk", "i2s_hclk";
468+
dmas = <&pdma 0>, <&pdma 1>;
469+
dma-names = "tx", "rx";
470+
rockchip,playback-channels = <2>;
471+
pinctrl-names = "default";
472+
pinctrl-0 = <&i2s_bus>;
473+
#sound-dai-cells = <0>;
474+
status = "disabled";
475+
};
476+
450477
nfc: nand-controller@10500000 {
451478
compatible = "rockchip,rk3128-nfc", "rockchip,rk2928-nfc";
452479
reg = <0x10500000 0x4000>;

0 commit comments

Comments
 (0)