* Attach Meson64 CURRENT to 5.6.y and make DEV = CURRENT at this point. There is a lot of changes to 5.7.y and can be done after release or by someone that feels a need for this right now. * Delete meson64_fclk_div3.patch this fix has been upstream for some time, I had issues with it on 5.4, which is why it had been removed there. * [ meson64 current ] kconfig tweak disable Rockchip SoC drivers * [ meson64 current ] remove rockchip patches * [ meson64 current ] disable CMA patch GX * [ meson64 current] add libretech cc audio patch This brings the dts even with the khilman 5.8/integ branch which includes all of the audio changes. The kernel is registering audio devices, however nothing comes out. committed in case someone wants to spend time debugging/testing theories. * fix permissions was editing from another machine, accidental change of permissions in the patch * Set default mixer settings Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com> * [ meson64 current ] GXL audio commit This moves to the mainline patches and covers le potato and la frite. Adjusted asound config to handle a commonized sound card name. * [ meson64 current ] add gxbb audio WIP Playback is too fast, a clock setting is off somewhere. * Update kernel configs Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com> Co-authored-by: Tony <tonymckahan@gmail.com>
222 lines
5.3 KiB
Diff
Executable File
222 lines
5.3 KiB
Diff
Executable File
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi
|
|
index 44c0371f63ca..fc59c8534c0f 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi
|
|
@@ -54,6 +54,17 @@ dwc3: usb@c9000000 {
|
|
};
|
|
};
|
|
|
|
+ acodec: audio-controller@c8832000 {
|
|
+ compatible = "amlogic,t9015";
|
|
+ reg = <0x0 0xc8832000 0x0 0x14>;
|
|
+ #sound-dai-cells = <0>;
|
|
+ sound-name-prefix = "ACODEC";
|
|
+ clocks = <&clkc CLKID_ACODEC>;
|
|
+ clock-names = "pclk";
|
|
+ resets = <&reset RESET_ACODEC>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
crypto: crypto@c883e000 {
|
|
compatible = "amlogic,gxl-crypto";
|
|
reg = <0x0 0xc883e000 0x0 0x36>;
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
|
|
index d81382b36049..5ae7bb6209cb 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
|
|
@@ -22,6 +22,13 @@ aliases {
|
|
ethernet0 = ðmac;
|
|
};
|
|
|
|
+ dio2133: analog-amplifier {
|
|
+ compatible = "simple-audio-amplifier";
|
|
+ sound-name-prefix = "AU2";
|
|
+ VCC-supply = <&hdmi_5v>;
|
|
+ enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
|
|
+ };
|
|
+
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
@@ -129,6 +136,12 @@ vddio_boot: regulator-vddio_boot {
|
|
sound {
|
|
compatible = "amlogic,gx-sound-card";
|
|
model = "GX-SOUND-CARD";
|
|
+ audio-aux-devs = <&dio2133>;
|
|
+ audio-widgets = "Line", "Lineout";
|
|
+ audio-routing = "AU2 INL", "ACODEC LOLN",
|
|
+ "AU2 INR", "ACODEC LORN",
|
|
+ "Lineout", "AU2 OUTL",
|
|
+ "Lineout", "AU2 OUTR";
|
|
assigned-clocks = <&clkc CLKID_MPLL0>,
|
|
<&clkc CLKID_MPLL1>,
|
|
<&clkc CLKID_MPLL2>;
|
|
@@ -150,6 +163,10 @@ dai-link-1 {
|
|
codec-0 {
|
|
sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
|
|
};
|
|
+
|
|
+ codec-1 {
|
|
+ sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
|
|
+ };
|
|
};
|
|
|
|
dai-link-2 {
|
|
@@ -159,9 +176,22 @@ codec-0 {
|
|
sound-dai = <&hdmi_tx>;
|
|
};
|
|
};
|
|
+
|
|
+ dai-link-3 {
|
|
+ sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
|
|
+
|
|
+ codec-0 {
|
|
+ sound-dai = <&acodec>;
|
|
+ };
|
|
+ };
|
|
};
|
|
};
|
|
|
|
+&acodec {
|
|
+ AVDD-supply = <&vddio_ao18>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&aiu {
|
|
status = "okay";
|
|
};
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts
|
|
index 6e0984269662..6a226faab183 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts
|
|
@@ -98,6 +98,15 @@ vcc_3v3: regulator-vcc_3v3 {
|
|
regulator-always-on;
|
|
};
|
|
|
|
+ vddio_ao18: regulator-vddio_ao18 {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "VDDIO_AO18";
|
|
+ regulator-min-microvolt = <1800000>;
|
|
+ regulator-max-microvolt = <1800000>;
|
|
+ vin-supply = <&vcc_3v3>;
|
|
+ regulator-always-on;
|
|
+ };
|
|
+
|
|
vddio_boot: regulator-vddio_boot {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VDDIO_BOOT";
|
|
@@ -110,6 +119,10 @@ vddio_boot: regulator-vddio_boot {
|
|
sound {
|
|
compatible = "amlogic,gx-sound-card";
|
|
model = "GX-SOUND-CARD";
|
|
+ audio-widgets = "Speaker", "9J5-3 LEFT",
|
|
+ "Speaker", "9J5-2 RIGHT";
|
|
+ audio-routing = "9J5-3 LEFT", "ACODEC LOLN",
|
|
+ "9J5-2 RIGHT", "ACODEC LORN";
|
|
assigned-clocks = <&clkc CLKID_MPLL0>,
|
|
<&clkc CLKID_MPLL1>,
|
|
<&clkc CLKID_MPLL2>;
|
|
@@ -131,6 +144,10 @@ dai-link-1 {
|
|
codec-0 {
|
|
sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
|
|
};
|
|
+
|
|
+ codec-1 {
|
|
+ sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
|
|
+ };
|
|
};
|
|
|
|
dai-link-2 {
|
|
@@ -140,9 +157,22 @@ codec-0 {
|
|
sound-dai = <&hdmi_tx>;
|
|
};
|
|
};
|
|
+
|
|
+ dai-link-3 {
|
|
+ sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
|
|
+
|
|
+ codec-0 {
|
|
+ sound-dai = <&acodec>;
|
|
+ };
|
|
+ };
|
|
};
|
|
};
|
|
|
|
+&acodec {
|
|
+ AVDD-supply = <&vddio_ao18>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&aiu {
|
|
status = "okay";
|
|
};
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-gx-libretech-pc.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx-libretech-pc.dtsi
|
|
index 514fed57a5ce..c2480bab8d33 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-gx-libretech-pc.dtsi
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-gx-libretech-pc.dtsi
|
|
@@ -30,6 +30,13 @@ aliases {
|
|
spi0 = &spifc;
|
|
};
|
|
|
|
+ dio2133: analog-amplifier {
|
|
+ compatible = "simple-audio-amplifier";
|
|
+ sound-name-prefix = "AU2";
|
|
+ VCC-supply = <&vcc5v>;
|
|
+ enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
|
|
+ };
|
|
+
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
@@ -180,6 +187,13 @@ vddio_card: regulator-vddio-card {
|
|
sound {
|
|
compatible = "amlogic,gx-sound-card";
|
|
model = "GX-SOUND-CARD";
|
|
+ audio-aux-devs = <&dio2133>;
|
|
+ audio-widgets = "Speaker", "7J4-14 LEFT",
|
|
+ "Speaker", "7J4-11 RIGHT";
|
|
+ audio-routing = "AU2 INL", "ACODEC LOLN",
|
|
+ "AU2 INR", "ACODEC LORN",
|
|
+ "7J4-14 LEFT", "AU2 OUTL",
|
|
+ "7J4-11 RIGHT", "AU2 OUTR";
|
|
assigned-clocks = <&clkc CLKID_MPLL0>,
|
|
<&clkc CLKID_MPLL1>,
|
|
<&clkc CLKID_MPLL2>;
|
|
@@ -201,6 +215,10 @@ dai-link-1 {
|
|
codec-0 {
|
|
sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
|
|
};
|
|
+
|
|
+ codec-1 {
|
|
+ sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
|
|
+ };
|
|
};
|
|
|
|
dai-link-2 {
|
|
@@ -210,9 +228,22 @@ codec-0 {
|
|
sound-dai = <&hdmi_tx>;
|
|
};
|
|
};
|
|
+
|
|
+ dai-link-3 {
|
|
+ sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
|
|
+
|
|
+ codec-0 {
|
|
+ sound-dai = <&acodec>;
|
|
+ };
|
|
+ };
|
|
};
|
|
};
|
|
|
|
+&acodec {
|
|
+ AVDD-supply = <&vddio_ao18>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&aiu {
|
|
status = "okay";
|
|
};
|