Skip to content

Commit 4cc1b26

Browse files
jbrun3tkhilman
authored andcommitted
arm64: dts: meson-gx: add aiu support
Add the AIU audio device to the Amlogic GX SoC family DT. ATM, this device provides the i2s and spdif output stages and also the hdmi and internal codec glues. Signed-off-by: Jerome Brunet <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Tested-by: Christian Hewitt <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 25c14af commit 4cc1b26

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

arch/arm64/boot/dts/amlogic/meson-gx.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,17 @@
278278
#reset-cells = <1>;
279279
};
280280

281+
aiu: audio-controller@5400 {
282+
compatible = "amlogic,aiu";
283+
#sound-dai-cells = <2>;
284+
sound-name-prefix = "AIU";
285+
reg = <0x0 0x5400 0x0 0x2ac>;
286+
interrupts = <GIC_SPI 48 IRQ_TYPE_EDGE_RISING>,
287+
<GIC_SPI 50 IRQ_TYPE_EDGE_RISING>;
288+
interrupt-names = "i2s", "spdif";
289+
status = "disabled";
290+
};
291+
281292
uart_A: serial@84c0 {
282293
compatible = "amlogic,meson-gx-uart";
283294
reg = <0x0 0x84c0 0x0 0x18>;
@@ -626,6 +637,8 @@
626637
interrupts = <GIC_SPI 57 IRQ_TYPE_EDGE_RISING>;
627638
#address-cells = <1>;
628639
#size-cells = <0>;
640+
#sound-dai-cells = <0>;
641+
sound-name-prefix = "HDMITX";
629642
status = "disabled";
630643

631644
/* VPU VENC Input */

arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,29 @@
6060
};
6161
};
6262

63+
&aiu {
64+
compatible = "amlogic,aiu-gxbb", "amlogic,aiu";
65+
clocks = <&clkc CLKID_AIU_GLUE>,
66+
<&clkc CLKID_I2S_OUT>,
67+
<&clkc CLKID_AOCLK_GATE>,
68+
<&clkc CLKID_CTS_AMCLK>,
69+
<&clkc CLKID_MIXER_IFACE>,
70+
<&clkc CLKID_IEC958>,
71+
<&clkc CLKID_IEC958_GATE>,
72+
<&clkc CLKID_CTS_MCLK_I958>,
73+
<&clkc CLKID_CTS_I958>;
74+
clock-names = "pclk",
75+
"i2s_pclk",
76+
"i2s_aoclk",
77+
"i2s_mclk",
78+
"i2s_mixer",
79+
"spdif_pclk",
80+
"spdif_aoclk",
81+
"spdif_mclk",
82+
"spdif_mclk_sel";
83+
resets = <&reset RESET_AIU>;
84+
};
85+
6386
&aobus {
6487
pinctrl_aobus: pinctrl@14 {
6588
compatible = "amlogic,meson-gxbb-aobus-pinctrl";

arch/arm64/boot/dts/amlogic/meson-gxl.dtsi

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,29 @@
6666
};
6767
};
6868

69+
&aiu {
70+
compatible = "amlogic,aiu-gxl", "amlogic,aiu";
71+
clocks = <&clkc CLKID_AIU_GLUE>,
72+
<&clkc CLKID_I2S_OUT>,
73+
<&clkc CLKID_AOCLK_GATE>,
74+
<&clkc CLKID_CTS_AMCLK>,
75+
<&clkc CLKID_MIXER_IFACE>,
76+
<&clkc CLKID_IEC958>,
77+
<&clkc CLKID_IEC958_GATE>,
78+
<&clkc CLKID_CTS_MCLK_I958>,
79+
<&clkc CLKID_CTS_I958>;
80+
clock-names = "pclk",
81+
"i2s_pclk",
82+
"i2s_aoclk",
83+
"i2s_mclk",
84+
"i2s_mixer",
85+
"spdif_pclk",
86+
"spdif_aoclk",
87+
"spdif_mclk",
88+
"spdif_mclk_sel";
89+
resets = <&reset RESET_AIU>;
90+
};
91+
6992
&apb {
7093
usb2_phy0: phy@78000 {
7194
compatible = "amlogic,meson-gxl-usb2-phy";

0 commit comments

Comments
 (0)