Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp205283ybj; Wed, 6 May 2020 15:19:39 -0700 (PDT) X-Google-Smtp-Source: APiQypIYV2/jCQ9AEdYGbHPv4lLsQH8iYB6CEL03Czq4mCPjyFk2TCj3j7mJHliJuMG2pK9yVCZA X-Received: by 2002:a17:906:7d7:: with SMTP id m23mr9085588ejc.154.1588803579123; Wed, 06 May 2020 15:19:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588803579; cv=none; d=google.com; s=arc-20160816; b=Bj9S7uKZ51odb9DlOzimJKMmyjeCRRWQReh95UrVKUc0JNCd5G2AbDGlCnpdVnHkLu 3j/TBhF5kS5KA0UaVTOR3dwu98VjLGi2sGyqEohAA3mHbs3odYaV15D7xL7GwPtqGPeR a/nnYQBv6Q3S3up6Y5rDzqeW5fcVp/NIftGKhM1O9jTuEktVMCuMFKY16P2JIHPbJk1M 1WftLhioU6nSsR85Hw0RhX31c+FC+aKdl+eNxmAb4Y6T4R6xTrD2hNBYXvYXASzISt6c 3eQ2oP9DO0vRcH5E8TI5/FewMBBpaO7ev6+uFy0QgdpUd+jHTVhulRH3yd00hBz3wNb4 YGAw== 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=MMsqSs/SSZ3pe/sBbExNqHgguhkBo7qZyyilemVOFmk=; b=dm7oxuYnXZD1GI5HOIOAImVeOlkFDAOEt5OFPsbYDZIaRnKRVw71xUSOJnRpiq3PPk Unm7ItZX3QcMiFx0k/5cYFYC5tGV76999zR1RkuQTwAgGQbVq3jYaZ8AEHnze26mtZtq zqAUYy8xdaKL0XUoTgHxuQEjCoAxo44pv8ixzaNkiEsgJLSn6RXm7lDKHBFtD8slPpAa 7S/tIat07+tVnWLDkhJnsl5mWkQH2AkdLymuVTd6EIeK9fm8yFsbYeHIyXObup8YwvRG 0g0XErcpTeX6YhIAoXAlVF9L5aFD0bHQmDDTxSq4UYYrmpv4TtzKe+LvCFds7ZssqX+X 6Wug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="R/XprMhF"; 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 p21si1948869edm.75.2020.05.06.15.18.32; Wed, 06 May 2020 15:19:39 -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="R/XprMhF"; 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 S1730112AbgEFWRH (ORCPT + 99 others); Wed, 6 May 2020 18:17:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728621AbgEFWRF (ORCPT ); Wed, 6 May 2020 18:17:05 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09802C061A10 for ; Wed, 6 May 2020 15:17:05 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id z8so4020893wrw.3 for ; Wed, 06 May 2020 15:17:04 -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=MMsqSs/SSZ3pe/sBbExNqHgguhkBo7qZyyilemVOFmk=; b=R/XprMhFIHT73MOJsNm/08fO4X1XbkAG8F09dAKe5z7OhBsUZKFIr+hbWrI4dU4PpN ClomDlzaWGVcCoNAjnpvhsQvdzvalf9g2X3azJZ/6zlFKmQ9sMLyiMnn8lpCLDW+JzqR 2BNXZj6cNzAgkxQOgWTitjGL0M0/PjSTEVW3TYgUddQnB9x/v+3bb7XjmtEqT8XKPwG8 Ep1vNi8AA9JYHabMT9wxwLYjDOd4QNfip9AsvZRIvWWEgRg3zYqD1R48xhPrJLPZ1Uqx R5w7BF2kSIf6qoD/2n9xTKPMrBacFnzO1AKCU35bO1D233Fdtt9Y6fR3zhKWo1DzITWe MTWg== 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=MMsqSs/SSZ3pe/sBbExNqHgguhkBo7qZyyilemVOFmk=; b=S2Rpgrcl+dxWYLzlRnKNfB5JXJWvuW6/12thlq4jvqOkH4ZmCHL3eZtMhxoGWzd1jS 5cUghh7vWdzXJPYX2hPBXNrq1ARWKchn5bD6RzmylfP8S2BPE+P8+ygCfHHgqdohKScc ELsqSm4DfO99eTnOe0a19vqDKjHIS1yL1wf5NBVSmhfXQ5KfkxUk4DmXSqXLJr2SxZJK NsvmcnGq9/9m59b8mUJwXsaflOJyYKewZtKMVGsXIHTTqckSvPuiEhV7YcNyASdC70i0 hlWr+oB3XvcXf3oMO3I50uFKfIcSPWeWVX8TyZ9tTBYbeHB0EVdSNQfd+7WSTUrjq4TK 2uHQ== X-Gm-Message-State: AGi0PubiHBGDx9fR7bLuiNy4N6FuL/ckCyQ7z9ayxAhdvNU3bOs6G9jq f50fP2ARhhgb58eWoqisC2ROzg== X-Received: by 2002:a5d:4905:: with SMTP id x5mr13089933wrq.158.1588803423764; Wed, 06 May 2020 15:17:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 15:17:03 -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 2/7] arm64: dts: meson: p230-q200: add internal DAC support Date: Thu, 7 May 2020 00:16:51 +0200 Message-Id: <20200506221656.477379-3-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 necessary bits to support the internal audio DAC the p230/q200 reference design derivated boards. The output of this DAC is provided on the 3.5mm jack connector Signed-off-by: Jerome Brunet --- .../boot/dts/amlogic/meson-gx-p23x-q20x.dtsi | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi index acb05a756aca..6b57e15aade3 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi @@ -16,6 +16,13 @@ aliases { ethernet0 = ðmac; }; + dio2133: analog-amplifier { + compatible = "simple-audio-amplifier"; + sound-name-prefix = "AU2"; + VCC-supply = <&hdmi_5v>; + enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>; + }; + spdif_dit: audio-codec-0 { #sound-dai-cells = <0>; compatible = "linux,spdif-dit"; @@ -115,6 +122,14 @@ hdmi_connector_in: endpoint { sound { compatible = "amlogic,gx-sound-card"; model = "GX-P230-Q200"; + audio-aux-devs = <&dio2133>; + audio-widgets = "Line", "Lineout"; + audio-routing = "AU2 INL", "ACODEC LOLP", + "AU2 INR", "ACODEC LORP", + "AU2 INL", "ACODEC LOLN", + "AU2 INR", "ACODEC LORN", + "Lineout", "AU2 OUTL", + "Lineout", "AU2 OUTR"; assigned-clocks = <&clkc CLKID_MPLL0>, <&clkc CLKID_MPLL1>, <&clkc CLKID_MPLL2>; @@ -140,6 +155,10 @@ dai-link-2 { codec-0 { sound-dai = <&aiu AIU_HDMI CTRL_I2S>; }; + + codec-1 { + sound-dai = <&aiu AIU_ACODEC CTRL_I2S>; + }; }; dai-link-3 { @@ -157,9 +176,22 @@ codec-0 { sound-dai = <&hdmi_tx>; }; }; + + dai-link-5 { + sound-dai = <&aiu AIU_ACODEC CTRL_OUT>; + + codec-0 { + sound-dai = <&acodec>; + }; + }; }; }; +&acodec { + AVDD-supply = <&vddio_ao18>; + status = "okay"; +}; + &aiu { status = "okay"; pinctrl-0 = <&spdif_out_h_pins>; -- 2.25.4