From patchwork Mon Jun 7 15:28:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 455312 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp2845897jae; Mon, 7 Jun 2021 08:30:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyB1Liq/vSFiNiA1+UzZBV3YK/7nkNRcFRNLyIibObvM4kKTVa+5R5JChxBA0xbSYie7bIu X-Received: by 2002:a17:907:20da:: with SMTP id qq26mr17805607ejb.42.1623079853897; Mon, 07 Jun 2021 08:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623079853; cv=none; d=google.com; s=arc-20160816; b=FvA9OlJQnKNQ3iEt8IMHQdmS2/TG0dg1F8dXty3PCjmFe67P7bYuOav5R22r5/1Wti m0FwOj1iyo406iMRqQ+igrfnKFeqvykH5VhRjQ2cEl5P95gpa3w04988DLU+y08TLXvu P6fP5Icob2UE/qSJnjtqcPNJybrSMmMEv6hx1QKh97fx1XXupNKBjkOpaXRcxxeRlaFK HvI4qCQ7vyFUbEFAUxTCWNmX0tW7aafvmZqJNaC2vVFXiSqbM19FUedYU1Hm9rPeydiU 7y5dInXHb1kRq5e6/M82ZeAmHazykBqz20yoT3JlH2ECGACpfJr6SVKoOAg/nL6RTt1b hfMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lzk4lCLmAXbNCfDcTx4wmKLjACEaxBk+nh7dbPXaa38=; b=n/baUjMvfenzziSN8bqPSgCy+oN/rWoR6tqOx1+/FcQ8uGO13ItlUK09416+CZeATr cPgPqM3rt4Aj7rW4WzNhALgxKmgxKPDtf4FI5d63nSaFsBXKEs2OkHfhTiD9DWFn+ttj 3j7HoOsDUZUYOgXMVSpl/GUW0rZ0ZJMsJkWIm+4HFFGcoHoJTTnqaD+tUKcBaMWIKmxc ScW8mEUsbXjEyH4jOE62kqh1n9MLleXLL63U1Uq0u0Sm1nkJmp2IBfZ190ZcYUzPaVIr EHwlZD/RXkkcJDYIod6ZPVuJDinqpKZTu77AuCOaPtqtQh5KYAKqAG8WYTyP+Yd4DO2A B+hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UDhiFSqx; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si12889379edu.346.2021.06.07.08.30.53; Mon, 07 Jun 2021 08:30:53 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=@linaro.org header.s=google header.b=UDhiFSqx; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231325AbhFGPcW (ORCPT + 7 others); Mon, 7 Jun 2021 11:32:22 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:45684 "EHLO mail-wr1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231358AbhFGPcT (ORCPT ); Mon, 7 Jun 2021 11:32:19 -0400 Received: by mail-wr1-f41.google.com with SMTP id z8so18069862wrp.12 for ; Mon, 07 Jun 2021 08:30:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lzk4lCLmAXbNCfDcTx4wmKLjACEaxBk+nh7dbPXaa38=; b=UDhiFSqxE1s5YjiU15JeFLbAqZTe5nrAp1XpGXbX3+6iigSEPtlXwzTkvntFfFKvUR CpBxINqcZhWT0UC1sfuoxFLEQRwISz4l/4Eiv4J3HFKjSN8JJTn4d+7SZ+3azQAoxnVh AxmwdoO+fl8Jq+VPXz37aaoKN8tzydm2SBo7HzVGMsl3tfb/UdJ2T/cO8q4jTYYecott QCPxHQ2SW6oWTs0oL1nM8oi6jOmXMtoR1gvlZD4nbeLwiSh5fXpXltWklGS9irK9lX/V WZlzDpgHayq+NoLyEkq675dzef9ZyF/MhtS5y3zUcKPzpZTzxk2P59ioGDKB2+5D2dfy cTIA== 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=lzk4lCLmAXbNCfDcTx4wmKLjACEaxBk+nh7dbPXaa38=; b=UXjsNkkfswFA5N0uc4gZzNNmzE83A/nk7yBoARtkQPCXi6LYHvJJhSkfIzV3MXCJ2H 5BmZQ0GB6YRuUsFwPxLfx2o6psbm2vzxQDdxvvWax6vaO4tVmBKp/bBhFnAziWZu4flY 9Lp5uZmQGmLUNS7nfdb9tBNtFDKNmjyEBgcYdbBu47qu1E50CeWPee4yYsihTGPo5OXG tlBtY34KcH0Bp1RqARNiTRpWedDk2gTjk/rexSdC6wKPU0MckvXlCKD6g48BUOkh9oui umQUaEUEwU1BzUFoIJsZMC79LVZz4V/1UraI7vDsSxKZikwqehhOnjHGambgweIYnYT4 bG7A== X-Gm-Message-State: AOAM531JY/dFMiU/EiPS3Q1nyGpPhGMR9phvI/AbpWvEwrJS1x+4JpPl KMYBQCe6PflbIBE/KYuTbkbXxQ== X-Received: by 2002:a05:6000:18a8:: with SMTP id b8mr17320018wri.208.1623079755937; Mon, 07 Jun 2021 08:29:15 -0700 (PDT) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id q3sm16370170wrr.43.2021.06.07.08.29.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 08:29:15 -0700 (PDT) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org, broonie@kernel.org Cc: plai@codeaurora.org, tiwai@suse.de, robh@kernel.org, devicetree@vger.kernel.org, perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, bgoswami@codeaurora.org, Srinivas Kandagatla Subject: [RFC PATCH 12/13] ASoC: qcom: dt-bindings: add audioreach soundcard compatibles Date: Mon, 7 Jun 2021 16:28:35 +0100 Message-Id: <20210607152836.17154-13-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210607152836.17154-1-srinivas.kandagatla@linaro.org> References: <20210607152836.17154-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add compatible strings for AudioReach DSP firmware based soundcards. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,sm8250.yaml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) -- 2.21.0 diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml index 72ad9ab91832..551f4fe04749 100644 --- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml @@ -18,6 +18,8 @@ properties: oneOf: - const: qcom,sm8250-sndcard - const: qcom,qrb5165-rb5-sndcard + - const: qcom,sm8250-audioreach-sndcard + - const: qcom,qrb5165-rb5-audioreach-sndcard audio-routing: $ref: /schemas/types.yaml#/definitions/non-unique-string-array @@ -157,3 +159,44 @@ examples: }; }; }; +#--------------------------- +# AudioReach based dai links +#--------------------------- + - | + #include + sound { + compatible = "qcom,qrb5165-rb5-audioreach-sndcard"; + model = "Qualcomm-qrb5165-RB5-WSA8815-Speakers-DMIC0"; + audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT", + "SpkrRight IN", "WSA_SPK2 OUT"; + + wsa-dai-link { + link-name = "WSA Playback"; + cpu { + sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + + codec { + sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro>; + }; + }; + + va-dai-link { + link-name = "VA Capture"; + cpu { + sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + + codec { + sound-dai = <&vamacro 0>; + }; + }; + }