From patchwork Fri Mar 19 09:29:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 404771 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1205025jai; Fri, 19 Mar 2021 02:30:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEB4yUR/Gl8YyUZImt0uOoYCtY4+vWS+jsiFbhFiliIJR1LHg/M3anLwnoZIlPy5eHapzR X-Received: by 2002:a17:907:76b6:: with SMTP id jw22mr3220373ejc.11.1616146256403; Fri, 19 Mar 2021 02:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616146256; cv=none; d=google.com; s=arc-20160816; b=MkPPBerEfCZaP7UluXyKsxDNJu+yimlh7uNnaW/HZpooTcYkM1Wqe5Ln+VWubyPgoM zZKP2OQO+tQBjBJYwzzeRlXI4o3H55YUkLj727avec2J2A7AmtQUAYU7e5wvbbGXZFgp U1rFNMX42A7Js+MRrCnknLHBr+Be/6MkzaD12uovFfuQxWZyOSbXMwfEc3HAftJ67zz3 i/OSow/xNxX2uXdcvMpAO8AQf0kOtq1Vyw1eMDODgcpL5eRG+EBMqdDtBfgRCwNsZfvh AhQUqYDGCQZjlgJwQ6VKw7u1sGYXcMte/FC041eNpy+SsGrsQ8kdgEHAU5Kx8fWNOdBf /pJw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=h7Hm+ghwkLRDBAXMVNnrJw9KnhlIxQw5KKOJ32yVNwQ=; b=wQ5ujqGhDskb+cOg34CJskISM/LcarkkffhFUsmn5HguDklfI6tq4+LynFaAZrW0+k WuXHPnGjiEtfT6zFy6y0Mr59pirHFpU8IAwFDvXMiLEsd/Arxqob4PrxQRe1SjaH9Zec U2OV0k5XRBER5X1Kww9flLquD4tk0HDWjMX3NKxDll0ki927aG5OzGHMsSku5wciZ5YY L5CHXoffYwmFy3w8t40o2oRBo2rs/XZlMBCHqL7hmIOxE5P/5K40uFwi7+Q14XsrNzEO P/X3omGikmrYPXnN81nSq3Lt7Ntd045K8EnFnTj5i9AgJthWs5Lc8Eq7XNjsQLbopImn yNGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B91xc1g1; 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 l19si3682007eje.274.2021.03.19.02.30.55; Fri, 19 Mar 2021 02:30:56 -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=B91xc1g1; 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 S229841AbhCSJaY (ORCPT + 6 others); Fri, 19 Mar 2021 05:30:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbhCSJaF (ORCPT ); Fri, 19 Mar 2021 05:30:05 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15D94C06174A for ; Fri, 19 Mar 2021 02:30:05 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id j4-20020a05600c4104b029010c62bc1e20so4849053wmi.3 for ; Fri, 19 Mar 2021 02:30:05 -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:mime-version :content-transfer-encoding; bh=h7Hm+ghwkLRDBAXMVNnrJw9KnhlIxQw5KKOJ32yVNwQ=; b=B91xc1g1F0dratEusEbJbkRCwWFgBHj6CI00wIY1FiNueZeWwbhdDux76Y05VbhH34 6HANw5RONyLoVtsA7hFSiOpX8ncK/aJW0rfvVSsaZK0fBb1x21Nnk5ykZIbWGQiztLIF jZBcMME2jGhhv1LfeOept+9NYEKRGx471crt8i8/lozGOLQvX9UDom3UXlFCpKYNQZHo 6Vv7PaMDOtX78JxdmUj2LIPmWydkwIJ3OXO1XrGaE2Ul4tHILN9J+JEQ1vZ6PVvep9o4 mI+w/RyooZB523RBlknIrcOCWK+K/qvrx75BDZh27bKEEJkRnKEk3BvhRKOV9aQVs7St TU1w== 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:mime-version :content-transfer-encoding; bh=h7Hm+ghwkLRDBAXMVNnrJw9KnhlIxQw5KKOJ32yVNwQ=; b=ONz5gy5TD5+F/XVgHyBVh1vvsoh1eB3Asuns3OF2Ks9/XEDdNdEIXPXgKF0k4Z/uMP nxu8T02g0cjo5GD1RaeC4C1NGTaEUU5simGdp7/FZ6y1rC52Bkp52pYTmV+cMVCTFKdV bZw9v7+W0eaOd1tTzxJUWwhhwA/24Fit2AUwAMiUQShaeMhEp1e5bhcSvrxWEJvedTa3 98K34HBOcfESHSnZWSXOu5lFp12D6ysIWSbVMzEE5u2dBiNRfvPg7aJpuqL5JeQr6suJ OA5x8YuXpJz42ccBeRfEu4yZF8JfnrRdchCs7fKkSgvocOHQ0CHx7DuH3rqzr/w2wJ7O 2ZAQ== X-Gm-Message-State: AOAM532j1Qy9aHcTs/w2+O2bPGSCzeUXNO87hSapH7bmUoB866+pV2LZ NIMz2/v71xNssdBq4Mm+T+zrrpR8zh2deA== X-Received: by 2002:a05:600c:198d:: with SMTP id t13mr2888475wmq.73.1616146203868; Fri, 19 Mar 2021 02:30:03 -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 p6sm6779058wru.2.2021.03.19.02.30.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 02:30:03 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org Cc: robh@kernel.org, devicetree@vger.kernel.org, lgirdwood@gmail.com, perex@perex.cz, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Srinivas Kandagatla Subject: [PATCH v3 0/7] ASoC: codecs: add wcd938x support Date: Fri, 19 Mar 2021 09:29:12 +0000 Message-Id: <20210319092919.21218-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patchset adds support for Qualcomm WCD938X codec. Qualcomm WCD9380/WCD9385 Codec is a standalone Hi-Fi audio codec IC connected over SoundWire. This device has two SoundWire devices, RX and TX respectively supporting 4 x ADCs, ClassH, Ear, Aux PA, 2xHPH, 7 x TX diff inputs, 8 DMICs and MBHC. Even though this device has two SoundWire devices, only tx device has access to main codec Control/Status Registers! This patchset along with other SoundWire patches on the list have been tested on SM8250 MTP device. Am planning to send support for MBHC once this driver gets accepted! Thanks, srini Many thanks for reviewing v2. Changes since v2: - fixed dt_binding_check error Srinivas Kandagatla (7): ASoC: dt-bindings: wcd938x: add bindings for wcd938x ASoC: codecs: wcd-clsh: add new version support ASoC: codecs: wcd938x: add basic driver ASoC: codecs: wcd938x: add basic controls ASoC: codecs: wcd938x: add playback dapm widgets ASoC: codecs: wcd938x: add capture dapm widgets ASoC: codecs: wcd938x: add audio routing .../bindings/sound/qcom,wcd938x.yaml | 165 + sound/soc/codecs/Kconfig | 9 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/wcd-clsh-v2.c | 350 +- sound/soc/codecs/wcd-clsh-v2.h | 16 + sound/soc/codecs/wcd938x-sdw.c | 291 ++ sound/soc/codecs/wcd938x.c | 3623 +++++++++++++++++ sound/soc/codecs/wcd938x.h | 676 +++ 8 files changed, 5122 insertions(+), 10 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml create mode 100644 sound/soc/codecs/wcd938x-sdw.c create mode 100644 sound/soc/codecs/wcd938x.c create mode 100644 sound/soc/codecs/wcd938x.h -- 2.21.0