devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: sun7i: dt: Enable audio codec on pcDuino V3 Nano
@ 2015-10-23 22:36 Adam Sampson
       [not found] ` <1445639787-23715-1-git-send-email-ats-G+91BasbrijYtjvyW6yDsg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Sampson @ 2015-10-23 22:36 UTC (permalink / raw)
  To: Maxime Ripard
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Adam Sampson

The pcDuino V3 Nano has a 3.5mm TRRS jack socket for audio, using the
CTIA standard pinout, connected to HPOUTL, HPOUTR, HPCOM/HPCOMFB and
MICIN1/VMIC (via appropriate RC networks) on the A20. The PH00 GPIO is
wired for headphone plug detection: it reads 0 when nothing's plugged
in, and 1 when a plug is inserted.

LINEINL/R and FMINL/R are not connected.

Signed-off-by: Adam Sampson <ats-G+91BasbrijYtjvyW6yDsg@public.gmane.org>
---
 arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts b/arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts
index 1757a6a..ddac732 100644
--- a/arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts
+++ b/arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts
@@ -82,6 +82,10 @@
 	status = "okay";
 };
 
+&codec {
+	status = "okay";
+};
+
 &cpu0 {
 	cpu-supply = <&reg_dcdc2>;
 };
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: sun7i: dt: Enable audio codec on pcDuino V3 Nano
       [not found] ` <1445639787-23715-1-git-send-email-ats-G+91BasbrijYtjvyW6yDsg@public.gmane.org>
@ 2015-10-27 17:56   ` Maxime Ripard
  0 siblings, 0 replies; 2+ messages in thread
From: Maxime Ripard @ 2015-10-27 17:56 UTC (permalink / raw)
  To: Adam Sampson
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 707 bytes --]

Hi,

On Fri, Oct 23, 2015 at 11:36:27PM +0100, Adam Sampson wrote:
> The pcDuino V3 Nano has a 3.5mm TRRS jack socket for audio, using the
> CTIA standard pinout, connected to HPOUTL, HPOUTR, HPCOM/HPCOMFB and
> MICIN1/VMIC (via appropriate RC networks) on the A20. The PH00 GPIO is
> wired for headphone plug detection: it reads 0 when nothing's plugged
> in, and 1 when a plug is inserted.
> 
> LINEINL/R and FMINL/R are not connected.

Ah, so there's a design out there with headphone detect. Cool :)

Do you feel like writing the headphone detection code?

Anyway, queued for 4.5, thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-27 17:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-23 22:36 [PATCH] ARM: sun7i: dt: Enable audio codec on pcDuino V3 Nano Adam Sampson
     [not found] ` <1445639787-23715-1-git-send-email-ats-G+91BasbrijYtjvyW6yDsg@public.gmane.org>
2015-10-27 17:56   ` Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).