From patchwork Fri Jun 7 08:56:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 166070 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp368412ili; Fri, 7 Jun 2019 01:57:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxi7xcegbVyqGstwmIIof8pIhPPHCHc7rqRRTEwdzocqMUVhSp8mR89kMzKZq8FBoQd4mBC X-Received: by 2002:a17:902:860c:: with SMTP id f12mr54818128plo.127.1559897830969; Fri, 07 Jun 2019 01:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559897830; cv=none; d=google.com; s=arc-20160816; b=atFFfXkY7jwHAzrQytXsTopjD0AXCNXIEzZyNwTVec2n98GkOtziXyU/EoS4V8VnNf bM9UeXaPAV6dRlAtHdfhYkgPdhKzgVWTx1bGlu9jw0ql55Var1CCd++MjipMaqDKd+lk 7i34ANFN0nF0znFAs14w3UCPrNtw/BOXCqaqeBp74zWkKyN1fZbV3KSbwO57NEoR6+3P mqkFj9PM1Y1c8dOU8A3hT9f3WP6VLfN2ZCQ5FQbW2J2QLIH7qfUkQzQGKM+F/i0eRuG3 ZcOMRvP/H8JqTMuHN08Xxeu0rE3pxRFGPQKRD9GptkUKb3CIGi7Otc/JnsTH66q+HusM ElpA== 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=6oaxDiNI3V3Y1FcG5gCLYWig+jTKPdpgP/iJOfNbmxQ=; b=E/Ez86neU9eUWVOrtR6Quy/9yARZ2o5ZTu2X1fLnxA64/MbsY3wORO9dVde+4TuA/W Ut9ogRqnbmkhZjls5Tx+9OSxABlIz5woolHZ34m+pRFMFI4pLMUBHTdKx99Gt1Tr9B1o Yn9HmiZRfNNVwFMopSNKHyb2IijwLKFP0IBI8FFcqqn326qmST7FodfV1N/YGxN1sse0 S6EEhds3Toyxq69w0mBujEBvPhDOhr//kWqInWDtcwxejMXts0eJB4aQfCzx8y9Pi4EV 7t/h84adXiGwoSfo3SFCSkWRwm2KsMsx7y7QIyaL9236ie3AWXTfaLYyiapiAQKiHAkW fDVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UtFYE8HX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id x22si1263135pgj.271.2019.06.07.01.57.10; Fri, 07 Jun 2019 01:57:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=UtFYE8HX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727616AbfFGI5J (ORCPT + 30 others); Fri, 7 Jun 2019 04:57:09 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37427 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726819AbfFGI5J (ORCPT ); Fri, 7 Jun 2019 04:57:09 -0400 Received: by mail-wm1-f66.google.com with SMTP id 22so1102985wmg.2 for ; Fri, 07 Jun 2019 01:57:07 -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=6oaxDiNI3V3Y1FcG5gCLYWig+jTKPdpgP/iJOfNbmxQ=; b=UtFYE8HXQeDyMoOUEyIiC8jHexlyvpIeLNTRUprfHZT1sLKojwFJIAAQcXaz3MtAVW Fk8CHPEf0eKC3aTQBxmsvbwWqHwHK+K5ppaxYz53eJb5SGUiiXgcUUj/Z/ePSsvuifhO pDw96ayeUi3yqpur5/U+VIDZGlmLK70TFOTXU+JEbQ3uBvyHbItfjIQagS3TCeh5/Q7J cMYanxgK42yIq9X7rbZvUOGbebPci6MBgt+3PM74c1XLBwAubEQU+iVsaLk2kU3iC51d BXviQ4+Pkn/vC4vRDZ3LO6aQCjXEtEp4Vd/Db7f696mklhwzUVIB2E7VMSnsSiktCgHd /M6g== 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=6oaxDiNI3V3Y1FcG5gCLYWig+jTKPdpgP/iJOfNbmxQ=; b=RaSH2A0oxfmaQ7vHGNXczBGKatPrh2z/3lrZPpPo7wHhUeePyHcXXqw82G1t30pheG XeRSgHvv8kNJoHmf9MsidrbVmju2r5TizSz5+k3HElJqGWa9HPTLci1u1n9kx7KdVJId +6Uql+TOumXI7mehTHhKnRmQJYwRK/hJKpAA8xFcoDUsS4qGIeO6LbjmPCECCjHMEvTd 9oIIuU1RPgFrUcV9KLJ8XYYWZZL1hn8ui2bpAJovHnb6twAOMaYP5AKxG6D4vxyn3Svq bKtwGZ2W2Tgc9OoBnaVXD/iFO7C3uDbw4QsQyjyh3mTrM1iafWZYznFFPYHKhl0C+WaZ oIVQ== X-Gm-Message-State: APjAAAV5pTug59O6lHx9FVET9qSZXm6Ao33K4UYOIF7wrKZVW6y9vaTH /mwM5X3DdRodyXzmpelF0J6EVg== X-Received: by 2002:a7b:c74a:: with SMTP id w10mr2642243wmk.99.1559897827098; Fri, 07 Jun 2019 01:57:07 -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 d10sm2035308wrh.91.2019.06.07.01.57.06 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 07 Jun 2019 01:57:06 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, vkoul@kernel.org Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, mark.rutland@arm.com, pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [RFC PATCH 0/6] soundwire: Add support to Qualcomm SoundWire master Date: Fri, 7 Jun 2019 09:56:37 +0100 Message-Id: <20190607085643.932-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, This patchset is very first version of 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 on DragonBoard DB845c based of SDM845 SoC. WCD934x and WSA881x patches will be posted soon. 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 Srinivas Kandagatla (5): ASoC: core: add support to snd_soc_dai_get_sdw_stream() soundwire: core: define SDW_MAX_PORT soundwire: stream: make stream name a const pointer dt-bindings: soundwire: add bindings for Qcom controller soundwire: qcom: add support for SoundWire controller Vinod Koul (1): soundwire: Add compute_params callback .../bindings/soundwire/qcom,swr.txt | 62 ++ drivers/soundwire/Kconfig | 9 + drivers/soundwire/Makefile | 4 + drivers/soundwire/qcom.c | 983 ++++++++++++++++++ drivers/soundwire/stream.c | 11 +- include/linux/soundwire/sdw.h | 7 +- include/sound/soc-dai.h | 10 + 7 files changed, 1083 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/soundwire/qcom,swr.txt create mode 100644 drivers/soundwire/qcom.c -- 2.21.0