From patchwork Fri Oct 11 15:44:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 175980 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp927424ill; Fri, 11 Oct 2019 08:44:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzg41ICkB5h4P+9b9nceOcJRv9EfScKkKeYwHhjGMpuywoemNER/lF2/aPfjMWljdfGO70f X-Received: by 2002:a17:906:6449:: with SMTP id l9mr14625527ejn.187.1570808690021; Fri, 11 Oct 2019 08:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570808690; cv=none; d=google.com; s=arc-20160816; b=UhcGErGsfb3ItEQA0TqEptdAAqb7hxJWaXSk61WjqEcoCJc8kAbG9fYf1gfqGD9y8Q /qL8Fdxh2XiQa6Szc5GSq3qvanCep/uRGUkE+4BCzDafbS4H1a6PZXiNiO7VXuekzgQi +aoT6NMmJ5l2DKXBIfGSUlbfLwe8GkMb3sRHJHKI0Wz1OFlGPG4AKj5fkfM4mh31k3Vo Wgz4xnMOfCOo1xGahILRJ3wViXTWNTIDeeMsXa1jqySMWgYRRs7BUSNaTKvsRHy/AkeD VdPLcXFoaHw8Lkeo3K54wuHSGgzjgatsTXS7oqo1iIdAMTe11/0oaDvIQ7gQPVKxRHNE DrkA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=kvfCxVclTy6ShzV/vDD4x14oYnHfjCHog9kicmW4dcM=; b=UaNhLS0eQMhb9wyeVmZ30HJhCDdl2LuRwnupYJkAs5oDtgOVPFLlOkWtSCn9JGrVMF W4NorX/vgHLkwiKVnOV3hULjHOTcZnvoLIR4lOqZ1IoaTv3HgAijut7kWfU1l0PYCIUz vr2gOUZQ/pEAdTqTfWPXhEakgTQrBSMvSlvCZ4Vbq2LCuNRerKUcHUFfzy35nOwKWnad 9Qkt68alQUAwq3cUwM54qn48l8zM2KZnlv+ly5+3bDNJx9O/o9l6QfidLt2UM9VuqKvU hLtVM1cgZvB3m+nKQ68Eju9AEtXQaijpbbzIYykuVWCbGeeWZPZfvCN1IF08VjKMSzFi QoYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UxN1NFTc; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id u12si6257372edi.326.2019.10.11.08.44.49; Fri, 11 Oct 2019 08:44:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UxN1NFTc; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 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 S1726692AbfJKPos (ORCPT + 8 others); Fri, 11 Oct 2019 11:44:48 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45418 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726666AbfJKPos (ORCPT ); Fri, 11 Oct 2019 11:44:48 -0400 Received: by mail-wr1-f66.google.com with SMTP id r5so12423693wrm.12 for ; Fri, 11 Oct 2019 08:44:47 -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=kvfCxVclTy6ShzV/vDD4x14oYnHfjCHog9kicmW4dcM=; b=UxN1NFTc47siaqQofM9vtgi+trRicCmJOy0vprOyEv1qhi6BHxkXaXA/2b02UUh0Mt tYwxRkBK3tE71JJtISGt0m4royxB+4o9x4Ox7RcFiGh7LiLzT84IO7z7ffGNgReKWtMN 3dcMaxEYTuD7fkjQVVooBjt6JISkUED3abo8L3H9cmGjoJRYFNybplWC2k084IPjGXoX oQomlBvIjM750TSEz/ulYnH/4UfIOrIdO5J1jQ37XGH7iweoklsJmMppGms98b7AZmd2 Mnu/2UgrZN9E0vfDmsuUOltT7ZfEFo7tkwWKfQJ7XenrOSe8GnLqG1lC7KR8P1gQeDHH 5p6Q== 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=kvfCxVclTy6ShzV/vDD4x14oYnHfjCHog9kicmW4dcM=; b=YmucoZ4YtcZGitA72Etw4OkZ94NtE2HlDqaBsSRzM9U6d8NbryrH+Iyfo1akxH8SCw TERTHyQGTLNg2wTZ1PcrCIxZvHgKhN7wFJanUNzueRFuuI2hJw4yDylLwUr7Z6uKRkHn DmTbT/x9LYn1aw65smkjubE4eVyJmGJvzbYMgraftlDFk/9F0cB43Os3W6rLoFV/NCAg UR0TmIQwKUYIL9t7mHLL6NVrw9h/vPXBQHrrv18I/KIdRIzXTD00duHDOrEh4TJVRT+l uGnSnS/Ln7795RfIUDc/WtmOwsE4IIJuQrSNR5hOEDUGkdjKvUIkl71FLDePWrG6HlEh IFcQ== X-Gm-Message-State: APjAAAVd3fHU80CW9VkudYC9PCNBvy3nAyHUCjTvOZAGZIyZ7cd1rRW9 YVsZWo0c4YoZnYSUPx0SKbBPGQ== X-Received: by 2002:adf:e646:: with SMTP id b6mr13267380wrn.373.1570808686953; Fri, 11 Oct 2019 08:44:46 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id y3sm3453044wro.36.2019.10.11.08.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 08:44:46 -0700 (PDT) From: Srinivas Kandagatla To: robh@kernel.org, vkoul@kernel.org Cc: broonie@kernel.org, bgoswami@codeaurora.org, pierre-louis.bossart@linux.intel.com, devicetree@vger.kernel.org, lgirdwood@gmail.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, spapothi@codeaurora.org, Srinivas Kandagatla Subject: [PATCH v3 0/2] soundwire: Add support to Qualcomm SoundWire master Date: Fri, 11 Oct 2019 16:44:21 +0100 Message-Id: <20191011154423.2506-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Thanks for reviewing the v2 patchset. Here is new patchset addressing all the comments from v2 This patchset adds support for Qualcomm SoundWire Master Controller found in most of Qualcomm SoCs and WCD audio codecs. This driver along with WCD934x codec and WSA881x Class-D Smart Speaker Amplifier drivers is tested on on DragonBoard DB845c based of SDM845 SoC and Lenovo YOGA C630 Laptop based on SDM850. SoundWire controller on SDM845 is integrated in WCD934x audio codec via SlimBus interface. Currently this driver is very minimal and only supports PDM. Most of the code in this driver is rework of Qualcomm downstream drivers used in Andriod. Credits to Banajit Goswami and Patrick Lai's Team. TODO: Test and add PCM support. Thanks, srini Changes since v2: - Added support to set_sdw_stream Srinivas Kandagatla (2): dt-bindings: soundwire: add bindings for Qcom controller soundwire: qcom: add support for SoundWire controller .../bindings/soundwire/qcom,sdw.txt | 167 ++++ drivers/soundwire/Kconfig | 9 + drivers/soundwire/Makefile | 4 + drivers/soundwire/qcom.c | 935 ++++++++++++++++++ 4 files changed, 1115 insertions(+) create mode 100644 Documentation/devicetree/bindings/soundwire/qcom,sdw.txt create mode 100644 drivers/soundwire/qcom.c -- 2.21.0