Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6532250yba; Tue, 14 May 2019 09:05:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPH+lYzAwYwT8V3dV4JVTSizssqZTUADanUf6jdnwMAOMEyTbamrq+TcjZuhP9MQ2hZGCF X-Received: by 2002:a63:ce43:: with SMTP id r3mr20576342pgi.368.1557849927461; Tue, 14 May 2019 09:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557849927; cv=none; d=google.com; s=arc-20160816; b=lpoDH1a0F7HzPyXfGALCGapB6hIsL4p67bBXfi+Xv7mKO2sfVJshaMUF1J+gYtdEfK Jvlbc6L9a/GRN5d20HJONrDtDNil7AAjhLrQ0Fw2GGy2v7SdaS18SSTXQ1+4W1c06EuB tAHrSQA1UBJWOipYmdWOxTh/NLcfcZQxcE+I+CpsANjUT5H2MgkStaS7TCOgJDe85f/p UlmNgboh1zT8mVLaFumrC8fzBchMFDpjRQkvz1SFWO4wANmJQ643pFoKH0kdss+7Vf7v iEPD1OHoDuXfWKN+aIT9awgkFAzvxEpC3ET3p5Q7jZXJ0IJhaLDIb47ZGSATzhJFHV9P 6I2w== 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=kTJFa8LTc41F7ruEJbefStMzosM8z4WKoZvcPN6OVws=; b=ZDC2l3T7VD26rIgxiQWO87fdTVM7w3YghxBbeJsNiKJaFWVbjGLmfDJL9XvOgEVopm VjLNkx1H/95Hv8OVh2OPdXVNnKGeKtJUQvbwk3BbahIGgbFYk6mgVUPXIo+8r2CNLSjG R3UQP1rnSGaFBgTvzWZV+mydRutujwZ7djJtT4iPcaEe2DEBFcqPlREmzaBnpvyjcvW+ JGXsrrnuPtME1Iili9GMjPzFaZ3U9WV9tPoaC4ByY0KhTzpR7UjWRoopMmpz+w3Q2QbJ DM52d6P893rbiggkcFmb+/XRdpUQTyigfPHRzGbNE5jyNcPJ6skYuMooEXT7u1iqWQda FYQQ== 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 g11si19409114plt.35.2019.05.14.09.05.04; Tue, 14 May 2019 09:05:27 -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 S1726486AbfENQC6 (ORCPT + 99 others); Tue, 14 May 2019 12:02:58 -0400 Received: from verein.lst.de ([213.95.11.211]:46645 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbfENQC5 (ORCPT ); Tue, 14 May 2019 12:02:57 -0400 Received: by newverein.lst.de (Postfix, from userid 2005) id 7787D68C65; Tue, 14 May 2019 18:02:36 +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 3/4] arm64: DTS: allwinner: a64: Enable audio on Teres-I References: <20190514155911.6C0AC68B05@newverein.lst.de> Message-Id: <20190514160236.7787D68C65@newverein.lst.de> Date: Tue, 14 May 2019 18:02:36 +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). The headphone lines are multiplexed with the debug console. 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 --- originally: patchwork.kernel.org/patch/10792589 Removed the questionable issues, leaving the unchallenged parts. --- .../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>;