Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp490902pxv; Wed, 14 Jul 2021 08:33:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbSWXQ30yqxH0c8cv2T8sQCjW0w9u50hEfkvgrp1oTgUYKVjAWuciqfoSIMTlGaYHX1PI9 X-Received: by 2002:a6b:cf15:: with SMTP id o21mr7786337ioa.9.1626276786302; Wed, 14 Jul 2021 08:33:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626276786; cv=none; d=google.com; s=arc-20160816; b=CFs4ELPd5aw2WvN11S34Kir6XW2HlUAMkmalVLdTxE/n+RrQDI59UziX6S2NV6p8Ue 4WSAGLu0zgthKapx9sn9eteUZpfEPVcHDaVBHTYj1JFH8guF+C86qkjoivJqKIej6rYi NGJtpWQS5v5vsTeM+SrJIpzvgDD5qwJS+O3YyPtY6pf2JzEQnJYWX6blbcT1FgXzCKkI j2SYy1Ka3BDlIFjAkK0QpTASPbYaDAceNKwdWEiMmUUUXoMi/D7jgA6OlUhDetvlGOMZ y+L9qLNn5+5Y05PzlcR2GXwuCKajQR2GwHzwNINHLWMc/yJUcpG/I/in0+gqTA3mhZRl Zm0w== 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=4M0Qy9u7qpzLdCXZMtfpQrDY8UIAvDYX27th6ZO86XE=; b=YA5na13kVdbfMKcbYHAgcJ0xPxGekfNvMNZUi9OIwv/F3leZw7SAPPnzgKe3/7VpKt IBAUEiLRaoIXtWPGofnC70Xvg8DANI6n9q/UO5jLgFBMIMsJxmSjW5VUxFv7ouu/Ei8f e7CMcx6abmlNe/6fiV4AbxTLY8CyBQv9BK3u+h2g0Xkp1Up2b+pHMpVjtqXdxbBM0NTy MYuYrDf8uQcphH7wLdi0NA76GoWCfma2qBZO1WCJ8tS2dy9bIuqghgMiLL/5d3JEmUAg SC6rJjWtEstuqoEo6vJoAlc3HMCQFeZDQ+5iLi99HPR89by34pdUGkj9bUBpelxeGvsa W/Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MLzir5u+; 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; 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 v5si3029325jan.37.2021.07.14.08.32.53; Wed, 14 Jul 2021 08:33:06 -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=@linaro.org header.s=google header.b=MLzir5u+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239903AbhGNPe2 (ORCPT + 99 others); Wed, 14 Jul 2021 11:34:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232360AbhGNPeJ (ORCPT ); Wed, 14 Jul 2021 11:34:09 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DDACC061760 for ; Wed, 14 Jul 2021 08:31:16 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id l8-20020a05600c1d08b02902333d79327aso1085683wms.3 for ; Wed, 14 Jul 2021 08:31: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=4M0Qy9u7qpzLdCXZMtfpQrDY8UIAvDYX27th6ZO86XE=; b=MLzir5u+L1TZw0QCQvWIj9BP6JSBDcbHCeK5bRrSwvdLa2ZhQVK4+yyzIaISzzKzSX 169ZnI3j7fQaCN+EencL2dLJsdRxk8Ku1PtgQKiCtFpE+Crp52msf9n99sJ5zmiUvZzu WQepkEyiONQcRCNtSStAwa2C++VUJWivAXu7hYkbhtw/TA+oA723d7vFUbRbtLuP1sZI ZUncQyZ/tfYV26h3iMGyP42gHwRe1bzlCs8zoDmgIC/2dYNarsV5f0HsvzmRQiVpbnaw uxn/to7S+vpKSyjK/UJ/IpP/jo0xzvPWBv4T8XREcrTMpf3P9PE2sXG8L9h1zOuUWFCq VSVQ== 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=4M0Qy9u7qpzLdCXZMtfpQrDY8UIAvDYX27th6ZO86XE=; b=EgyND6zFWJ2GQ3jysG8QMU9TR4Q+NA3LD0eYo38xEAJumoq4HYyGa8ioqS3Vn+3Poe 3PsHa7Re0jWKwjHVc05vLYntmCe0WsYS/llbotCUVVICCw3q0ANaFRB4JREDnZieNSp9 urMeV3mdtwUzVulsWgd9KUhYEZ6L5nOdd/IdvsOjE9BtjuZoW7rEzBTSPP92YktjolkB v3f+nu95KWWrEXBcdI6ChqPxqsIVY37pQRpjczaR+rLRYF9kVNX5qKfRvEt9mwsKnoJs fd5r1kc3sgTgNq7md9rZkH/gmEOEOIQdqgv2N6VaZslOwDoc8ypZQIXfzQ4mDimSoHRK 20tw== X-Gm-Message-State: AOAM533UR3u3pgAYo+C78vrd2zPPrEDRsKP2CDvmtcyYExnv6wYE2kNW WN6sULayAAiUCcLcaV+ikLqGyg== X-Received: by 2002:a05:600c:2ca4:: with SMTP id h4mr11774924wmc.37.1626276675086; Wed, 14 Jul 2021 08:31: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 y6sm2465174wma.48.2021.07.14.08.31.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 08:31:14 -0700 (PDT) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org, broonie@kernel.org, robh@kernel.org Cc: plai@codeaurora.org, tiwai@suse.de, 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: [PATCH v2 13/16] ASoC: qcom: dt-bindings: add audioreach soundcard compatibles Date: Wed, 14 Jul 2021 16:30:36 +0100 Message-Id: <20210714153039.28373-14-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210714153039.28373-1-srinivas.kandagatla@linaro.org> References: <20210714153039.28373-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml index 72ad9ab91832..2f61bc4a2d7e 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 @@ -152,6 +154,47 @@ examples: sound-dai = <&q6routing>; }; + codec { + sound-dai = <&vamacro 0>; + }; + }; + }; +#--------------------------- +# 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>; }; -- 2.21.0