Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp205372ybj; Wed, 6 May 2020 15:19:48 -0700 (PDT) X-Google-Smtp-Source: APiQypIfopTuBRX0k6Z2w07BztKau9eby4jgjpY+k+srKaDP/xJx91EAC/xN35A+CuX+QLd8NqCF X-Received: by 2002:aa7:d655:: with SMTP id v21mr9514879edr.355.1588803588409; Wed, 06 May 2020 15:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588803588; cv=none; d=google.com; s=arc-20160816; b=GypaKmGirneGnffP3UuPe20+w1jOepoQ8gGVYXWPr5qGRL8KKP3l1SlI96we/DNb0r lVGEc/RPAgP0SgN+PyZmy97mTMCNehrs79b7bBLT9lR7JigYxuMEpDv9aLdGpJUaZ3jM beMSDuKkai/XGUNfiZ3JffkEYFX3WvG7Qe/NohrwPQjCMd7WDN8dBGkkrfzyOCe7HJ+V za/QaM/fHdgRjL4PWrF6r+bEdmIEpUeS8ehfrajN2+fr6XvLPKXEPYWMH+LgNLEtAg3a 1ES87OEZP9FCdlRCz5FDm7QU/AIlpLn/3td9JTpAa3mU7PFSkU57gi7o7+ygCrxRH3Aw 2KIQ== 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=XTiLbnU+bbYcNina6WdSi4nhXwiJzisYjraHaG7nzCI=; b=PU7G5pNENiQj2OByu4WWW0Co6vzBSnES9HStUPHQqdX0YQygtvSmZ61i3+RAGYcCUD htMn7dVlLxy3JZ3EbXLkBHZwBAPNDppO2pmVUB7GRVqpToY35BvMxp9itNl0uJ1znrjJ xFXW8PT/GgKGYlhBg3lrKTELWMTr8IblBgnOkKWVTMj94Q701uKbhTfx6XRvLpbsk8lb qVCGbqCx/HPL2QS1kXvx09Jqr0nG4MVnnSwj4QMBRSui52LPd4fLcGIgHfDgk05jH/ke t6rO5VjM6mHxS42+mUjfFCeeDKeXO5yiPE4zQT88+89DgSWXpRYGjzNbNhngqPSBdfgG NI9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=G0NdJSCy; 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 n5si2024936ejd.88.2020.05.06.15.18.41; Wed, 06 May 2020 15:19:48 -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=G0NdJSCy; 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 S1730174AbgEFWRN (ORCPT + 99 others); Wed, 6 May 2020 18:17:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730133AbgEFWRK (ORCPT ); Wed, 6 May 2020 18:17:10 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DED7C061A10 for ; Wed, 6 May 2020 15:17:10 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id e16so4004099wra.7 for ; Wed, 06 May 2020 15:17:10 -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=XTiLbnU+bbYcNina6WdSi4nhXwiJzisYjraHaG7nzCI=; b=G0NdJSCyn+58VpBj4IgiHTWg9VW/e1APCHxcqDdBgExXPBA5t00NZsCa5PwhQlsSR6 32SaRv7bI9+tDwOKdFpJMKnk2342nKJASZWaiendmZxg/FmZ1e9plF4lYtddv89InDSe L4ZG9d53G15j2gNCSHFjxNDsKk190EmA7Cmy30mgJjVKuMktYBWUrZNHJ3bT6lHSF0DC p5LpbPVPUMHTuHuQRgG8HfoKi8ZBeX1c1KM4UR4T1WJA+8F1Az0FX3V39VY4Z+h+qXSU FjoZfdxOZQJNOQ9fvlVzMz4Q8DLGBz9xUvCO2mqAq5oV6pYUsKqvEOhSjOK9JELqCLj8 RbmQ== 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=XTiLbnU+bbYcNina6WdSi4nhXwiJzisYjraHaG7nzCI=; b=LKUPRoXYB5SdLmXKvjB42O98mZes79EMtW6i3i4d3/YEChThIwXMOrus9hjseAQaum uiR3ipuj7mrRtsVeUau4KfQeC+f4/4w3d7LZQGkYhhf/2SsjR/8DQHBfdHowOXmA1DJW LnTU0ov/eBqD8TyMxb7NM8bHKhP08jxtCtl+OX2wc70et1Yjb+RLeDtwlVKv6mAKFXF6 S8os/09kjvgm7LtGbW5fUH1qy/tI4iLKPmvqW6pkvYDSAwnAczjylGQ1F72RN81ajFzN I9b9ossoSCLyNL9HDwGByl94bFmunNds/heC0eo2lCIoaz8JTPoAiSfBXpwbPttFnHu3 U7mg== X-Gm-Message-State: AGi0PuaTQTQleHHHgNhUv5ZIlicaupfnaCAekVl5Nm2YXMbmEwgGGMNK mRwfk2esbCBNEjZeZFBJ6ZlMaoKvwlI= X-Received: by 2002:a5d:6ac1:: with SMTP id u1mr11618638wrw.319.1588803429114; Wed, 06 May 2020 15:17:09 -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.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 15:17:08 -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 5/7] arm64: dts: meson: libretech-pc: add internal DAC support Date: Thu, 7 May 2020 00:16:54 +0200 Message-Id: <20200506221656.477379-6-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 9J4 connector. Signed-off-by: Jerome Brunet --- .../dts/amlogic/meson-gx-libretech-pc.dtsi | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gx-libretech-pc.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx-libretech-pc.dtsi index 514fed57a5ce..c2480bab8d33 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx-libretech-pc.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx-libretech-pc.dtsi @@ -30,6 +30,13 @@ aliases { spi0 = &spifc; }; + dio2133: analog-amplifier { + compatible = "simple-audio-amplifier"; + sound-name-prefix = "AU2"; + VCC-supply = <&vcc5v>; + enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>; + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -180,6 +187,13 @@ vddio_card: regulator-vddio-card { sound { compatible = "amlogic,gx-sound-card"; model = "GXL-LIBRETECH-S9XX-PC"; + audio-aux-devs = <&dio2133>; + audio-widgets = "Speaker", "7J4-14 LEFT", + "Speaker", "7J4-11 RIGHT"; + audio-routing = "AU2 INL", "ACODEC LOLN", + "AU2 INR", "ACODEC LORN", + "7J4-14 LEFT", "AU2 OUTL", + "7J4-11 RIGHT", "AU2 OUTR"; assigned-clocks = <&clkc CLKID_MPLL0>, <&clkc CLKID_MPLL1>, <&clkc CLKID_MPLL2>; @@ -201,6 +215,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 { @@ -210,9 +228,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