Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp784961yba; Thu, 16 May 2019 08:53:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQXlZs92COiDiXMwAY5Gc0WdmrMWzsADt2H331sMTHNMyZJQBUt7UFgyErkyrCF2fvNbMr X-Received: by 2002:a62:604:: with SMTP id 4mr54920482pfg.38.1558022009627; Thu, 16 May 2019 08:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558022009; cv=none; d=google.com; s=arc-20160816; b=m6YewjsQRVxI9jG/TtyWEV9x75hoxhGKA9orwCWddb7BkGgAL43JN6BoSTQt7rDKi9 y1oixBM4B1g5o25tSp3i6x+R79WASZ0YP7uK598qCjaCJHEzDjbBS8Ho81Pm2jE7G9Ak W7V3WwG8zG9dFWjqWGicz7P/mIyngm3QejuUI3T5mKJdHCVexL0+dGdrhKsq6juRHXfR s+i2sHQ8ceIV2PbXdnBJ860mHLmZJsVjy7JVtCSyDWfM079lCteM44njQWx+DZT7LqgY URZdw9tCKPh6anT3nguXSvxIlCxPLq15GQti9zkaIUOYE7v9yo5h/fEOUnbnTueDaZbw m9eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:references:subject:cc:to :from; bh=Tm0x6tNZLgGVszAtJYCkpn24Q/TyfhN+NXhWAk8fh6Q=; b=J5e2MNVNUker4enabnIaPJCPqRMSwBDNc4l791ewN6r00BEWcaR0KBki6lESGg17fv zZy7UdWBBna5kDkzwSNbt9b7Vbfc5vhJWaFU0VfFB88gITgx+/VyPMiF+ce5ATdF+Eop x+fF/60yGOoDY62M9XD+S0x4vEHEujStpNfIPohyDjmiKCKWg6hPpELUHvMwjCpvbaoQ CQ+JWHZT/zJTwMdQyfd8hXyGzdocB3gyEQNhtCetKvqhriLB7Cho82tuv5Jp4X2Tdn0M igc2Vnq6wuciy8P+Z3cLNwrOAzt/9s5tTd0Ltg2VYEWBxui13Ieg6eP7j4fjIaqcdNpE Un+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n26si5282836pgv.445.2019.05.16.08.53.14; Thu, 16 May 2019 08:53:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726997AbfEPPwB (ORCPT + 99 others); Thu, 16 May 2019 11:52:01 -0400 Received: from verein.lst.de ([213.95.11.211]:60417 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726462AbfEPPwB (ORCPT ); Thu, 16 May 2019 11:52:01 -0400 Received: by newverein.lst.de (Postfix, from userid 2005) id E6EE568C65; Thu, 16 May 2019 17:51:39 +0200 (CEST) From: Torsten Duwe To: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Thierry Reding , Maxime Ripard , Chen-Yu Tsai , Archit Taneja , Andrzej Hajda , Laurent Pinchart , Icenowy Zheng , Sean Paul , Vasily Khoruzhick , Harald Geyer Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] arm64: DTS: allwinner: a64: Enable audio on Teres-I References: <20190516154943.239E668B05@newverein.lst.de> Message-Id: <20190516155139.E6EE568C65@newverein.lst.de> Date: Thu, 16 May 2019 17:51:39 +0200 (CEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Harald Geyer The TERES-I has internal speakers (left, right), internal microphone and a headset combo jack (headphones + mic), "CTIA" (android) pinout. The headphone and mic detect lines of the A64 are connected properly, but AFAIK currently unsupported by the driver. Signed-off-by: Harald Geyer Signed-off-by: Torsten Duwe --- .../boot/dts/allwinner/sun50i-a64-teres-i.dts | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts index f9eede0a8bd3..d57049fbdaca 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts @@ -70,6 +70,25 @@ compatible = "mmc-pwrseq-simple"; reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ }; + + speaker_amp: audio-amplifier { + compatible = "simple-audio-amplifier"; + enable-gpios = <&r_pio 0 12 GPIO_ACTIVE_HIGH>; /* PL12 */ + sound-name-prefix = "Speaker Amp"; + }; +}; + +&codec { + status = "okay"; +}; + +&codec_analog { + cpvdd-supply = <®_eldo1>; + status = "okay"; +}; + +&dai { + status = "okay"; }; &ehci1 { @@ -258,6 +286,29 @@ vcc-hdmi-supply = <®_dldo1>; }; +&sound { + simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>; + simple-audio-card,widgets = "Headphone", "Headphone Jack", + "Microphone", "Headset Microphone", + "Microphone", "Internal Microphone", + "Speaker", "Internal Speaker"; + simple-audio-card,routing = + "Left DAC", "AIF1 Slot 0 Left", + "Right DAC", "AIF1 Slot 0 Right", + "AIF1 Slot 0 Left ADC", "Left ADC", + "AIF1 Slot 0 Right ADC", "Right ADC", + "Headphone Jack", "HP", + "Speaker Amp INL", "LINEOUT", + "Speaker Amp INR", "LINEOUT", + "Internal Speaker", "Speaker Amp OUTL", + "Internal Speaker", "Speaker Amp OUTR", + "Internal Microphone", "MBIAS", + "MIC1", "Internal Microphone", + "Headset Microphone", "HBIAS", + "MIC2", "Headset Microphone"; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;