Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp205321ybj; Wed, 6 May 2020 15:19:43 -0700 (PDT) X-Google-Smtp-Source: APiQypJVJRdtZB/pbrIv3cywG4hjkB6+LDKTu6031dEsbo1DQdD2p+bSXxTmi7s8akVcauvGSul5 X-Received: by 2002:a17:907:4063:: with SMTP id nl3mr3594278ejb.237.1588803583593; Wed, 06 May 2020 15:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588803583; cv=none; d=google.com; s=arc-20160816; b=BbVARpD2+0XX/2e5FQoMPagVXFLFRlT61uDtfE5Tlo31AzGYVzhCV8PeQ/azYQQVJ6 hivlKjT+NA/Lb2L4a9QPmBlRqt6U0yUqr+b9XreUJVQ8Ufiy8orW2Fl1VkD77rdpJsXy 6grYeyEdGtvrvvznkVOKQm3kFdRgIK914ozibNg3n34h4vLCcsgW2TnJAnI0rbStWGTz c3eoX1ZQ7DPOoE/RW62tsyWryQ8kOT/h4Vl3LZqIh8TjZnZw57hcYFOSm/3OWqV7LtT0 hLLce0B+HAAISFQBoTQHnwmssfzIEFQwJ20wmNQsrpSud6d6duPrI2vEpTS6i8NmGEGl Qg4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=izmMGovSSBuc6fozUgZUKC9IOfopD7QjXO+LOgTqnQw=; b=CRKPGS7Uj7NwE4zpJyhnh8SCbDIBU6xs9tKNMSobCSnpWj8Rb9vJz7tIVhYNN0wtim ruA82QfjaJCV605BLvN13GsLt0TJWDwNpgIT0fNxNDEObYj+dJKjLOH2FV9e6LSDu+e5 I/JIIekHm4Q5liDOr/Ar77rHUnHP31F+rtdXuw+VRkAwrWe9blvNROO1WZ3QlelJxoUq vi1ufu5sPDVjaTmS230QzN2bdsjTnXcwe30DmlDvZzcqjiGaGL27oeCcARn8l5ISPYd8 eM66jM49i2LVSb3tOLxNtcTF0yHxNHGGPKof0YcLnenV5cQT+wZAzg/zM47di4e1se4X 3y3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=w03sGqIz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch6si1794169edb.412.2020.05.06.15.18.38; Wed, 06 May 2020 15:19:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=w03sGqIz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730144AbgEFWRL (ORCPT + 99 others); Wed, 6 May 2020 18:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730126AbgEFWRJ (ORCPT ); Wed, 6 May 2020 18:17:09 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6544C061A0F for ; Wed, 6 May 2020 15:17:08 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id v8so6005898wma.0 for ; Wed, 06 May 2020 15:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=izmMGovSSBuc6fozUgZUKC9IOfopD7QjXO+LOgTqnQw=; b=w03sGqIzokibbMuTFXMCesOUMu9VLIM+THhfVeY5bOqZIfEsQoCfnc56BM0p+Ie7c0 NO5KdGF8bUW85+o9cUBNdBvvLbFEcLVCDAzbTPatJpYtTPptCSnKewAbdhMLApuzeaj2 b86elYRtPRt+WLd0sBEt07NSSOLJLAnqo08sudwPjgcx4swU3wfw8kV04b/JLYLvw1f6 3FTm7rcKsRR/vAwEHvY3jU1Y4ElccL/knF3HNskCgbURNV82YioJpKiTohJ2gw9fQiHb 396wd22UFwbU2J9T6/sE+ZSQ78aTQE2csYPnMNB41vUz6lhKlRh6Rs9Gagy9+MerqA9W FX/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=izmMGovSSBuc6fozUgZUKC9IOfopD7QjXO+LOgTqnQw=; b=NLKr5DIKJsfzfT4+vMxqBO3Au5w3Pi4ZO61AkbW1tPzNbBpvHACQsVlCNLYkhqP5cp VsqIaPZ3zRtnNbr7C9PwRk68RT9OrbsVx5Ae2Mrpq52g65uNX4ZPlcbVZxxhoDoM1ews 0391faFkbghrOBJOiZj1G9zsqPnnTdhhYFa6fm5Y03Qw4xBcgYXb9chDmWmIDtSPw1ch UgzHQFvX/LvAso7h5Bs0hhO5uiG5MOezjWLCPkpc1ulFauwotzAO48VAR44PgwD53bI9 rFMwSa4II15oNv7AEPzZfkBgqtxCbQL5xIQPbkYPH09zUps24sfYvz8g4LE+zwQ/st/J 9SBw== X-Gm-Message-State: AGi0PuYyE2cLg5hMo7Yl8Wk9zSwhL2LDZ14jE2JW36o/EXM4m9wCFTp6 XYeTOYv+vdrNtnKTuQCkfkYXOOlOKfI= X-Received: by 2002:a1c:2042:: with SMTP id g63mr6812262wmg.70.1588803427613; Wed, 06 May 2020 15:17:07 -0700 (PDT) Received: from starbuck.lan (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.googlemail.com with ESMTPSA id f5sm4760671wrp.70.2020.05.06.15.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 15:17:06 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman Cc: Jerome Brunet , linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/7] arm64: dts: meson: libretech-ac: add internal DAC support Date: Thu, 7 May 2020 00:16:53 +0200 Message-Id: <20200506221656.477379-5-jbrunet@baylibre.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200506221656.477379-1-jbrunet@baylibre.com> References: <20200506221656.477379-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the internal DAC support on the libretech CC. The output of this DAC is provided on the 9J5 connector. Signed-off-by: Jerome Brunet --- .../amlogic/meson-gxl-s805x-libretech-ac.dts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) 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 = "GXL-LIBRETECH-S805X-AC"; + 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"; }; -- 2.25.4