Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Jernej Škrabec" <jernej.skrabec@gmail.com>
To: Maxime Ripard <mripard@kernel.org>, Chen-Yu Tsai <wens@csie.org>,
	linux-arm-kernel@lists.infradead.org,
	linux-sunxi@googlegroups.com, Philip Rinn <rinni@inventati.org>
Subject: Re: [PATCH v2] arm64: dts: allwinner: a64: olinuxino: Enable audio
Date: Sun, 28 Nov 2021 17:14:23 +0100	[thread overview]
Message-ID: <5768727.lOV4Wx5bFT@jernej-laptop> (raw)
In-Reply-To: <19597618-ad48-ca3e-0c4d-78274671d80d@inventati.org>

Hi Philip!

Dne nedelja, 28. november 2021 ob 16:19:34 CET je Philip Rinn napisal(a):
> Enable the audio hardware on the Olimex A64-OLinuXino board family.
> Tested on the A64-OLinuXino-2Ge8G-IND variant.
> 
> Signed-off-by: Philip Rinn <rinni@inventati.org>
> 
> ---

You should put changelog here when you send new version of the patch.

> 
>   .../dts/allwinner/sun50i-a64-olinuxino.dts    | 51 +++++++++++++++++++
> 
>   1 file changed, 51 insertions(+)
> 
> 
> 
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts 
> b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
> 
> index ec7e2c0e82c1..e2f518c5854a 100644
> 
> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
> 
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
> 
> @@ -32,6 +32,22 @@ hdmi_con_in: endpoint {
> 
>   		};
> 
>   	};
> 
> 
> 
> +  hdmi-sound {
> 
> +    compatible = "simple-audio-card";
> 
> +    simple-audio-card,format = "i2s";
> 
> +    simple-audio-card,name = "allwinner,hdmi";
> 
> +    simple-audio-card,mclk-fs = <256>;
> 
> +    status = "okay";
> 
> +
> 
> +    simple-audio-card,codec {
> 
> +      sound-dai = <&hdmi>;
> 
> +    };

Drop everything related to hdmi audio. There was quite a few e-mails regarding 
how to best approach hdmi audio implementation on A64 and other SoCs with DW 
HDMI core. Agreement is that we should introduce HDMI audio card driver 
instead of simple audio card. I have this almost implemented, but I didn't find 
time to polish it. Another thing is that there is nothing board specific about 
HDMI audio, so nodes should reside in SoC DTSI file anyway.

Best regards,
Jernej

> 
> +
> 
> +    simple-audio-card,cpu {
> 
> +      sound-dai = <&i2s2>;
> 
> +    };
> 
> +  };
> 
> +
> 
>   	leds {
> 
>   		compatible = "gpio-leds";
> 
> 
> 
> @@ -58,6 +74,15 @@ wifi_pwrseq: wifi_pwrseq {
> 
>   	};
> 
>   };
> 
> 
> 
> +&codec {
> 
> +	status = "okay";
> 
> +};
> 
> +
> 
> +&codec_analog {
> 
> +	cpvdd-supply = <&reg_eldo1>;
> 
> +	status = "okay";
> 
> +};
> 
> +
> 
>   &cpu0 {
> 
>   	cpu-supply = <&reg_dcdc2>;
> 
>   };
> 
> @@ -74,6 +99,10 @@ &cpu3 {
> 
>   	cpu-supply = <&reg_dcdc2>;
> 
>   };
> 
> 
> 
> +&dai {
> 
> +	status = "okay";
> 
> +};
> 
> +
> 
>   &de {
> 
>   	status = "okay";
> 
>   };
> 
> @@ -97,6 +126,7 @@ &emac {
> 
>   };
> 
> 
> 
>   &hdmi {
> 
> +	#sound-dai-cells = <0>;
> 
>   	hvcc-supply = <&reg_dldo1>;
> 
>   	status = "okay";
> 
>   };
> 
> @@ -107,6 +137,10 @@ hdmi_out_con: endpoint {
> 
>   	};
> 
>   };
> 
> 
> 
> +&i2s2 {
> 
> +	status = "okay";
> 
> +};
> 
> +
> 
>   &mdio {
> 
>   	ext_rgmii_phy: ethernet-phy@1 {
> 
>   		compatible = "ethernet-phy-ieee802.3-c22";
> 
> @@ -328,6 +362,23 @@ &simplefb_hdmi {
> 
>   	vcc-hdmi-supply = <&reg_dldo1>;
> 
>   };
> 
> 
> 
> +&sound {
> 
> +	simple-audio-card,aux-devs = <&codec_analog>;
> 
> +	simple-audio-card,widgets = "Microphone", "Microphone Jack Left",
> 
> +		    "Microphone", "Microphone Jack Right",
> 
> +		    "Headphone", "Headphone Jack";
> 
> +	simple-audio-card,routing = "Left DAC", "DACL",
> 
> +		    "Right DAC", "DACR",
> 
> +		    "Headphone Jack", "HP",
> 
> +		    "ADCL", "Left ADC",
> 
> +		    "ADCR", "Right ADC",
> 
> +		    "Microphone Jack Left", "MBIAS",
> 
> +		    "MIC1", "Microphone Jack Left",
> 
> +		    "Microphone Jack Left", "HBIAS",
> 
> +		    "MIC2", "Microphone Jack Right";
> 
> +	status = "okay";
> 
> +};
> 
> +
> 
>   &uart0 {
> 
>   	pinctrl-names = "default";
> 
>   	pinctrl-0 = <&uart0_pb_pins>;
> 
> -- 
> 
> 2.33.0
> 





_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2021-11-28 16:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-28 15:19 [PATCH v2] arm64: dts: allwinner: a64: olinuxino: Enable audio Philip Rinn
2021-11-28 16:14 ` Jernej Škrabec [this message]
2021-11-28 16:26   ` Philip Rinn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5768727.lOV4Wx5bFT@jernej-laptop \
    --to=jernej.skrabec@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-sunxi@googlegroups.com \
    --cc=mripard@kernel.org \
    --cc=rinni@inventati.org \
    --cc=wens@csie.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox