From patchwork Thu Dec 19 09:28:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 182054 Delivered-To: patch@linaro.org Received: by 2002:a92:d0a:0:0:0:0:0 with SMTP id 10csp235183iln; Thu, 19 Dec 2019 01:29:05 -0800 (PST) X-Google-Smtp-Source: APXvYqyPWi3tucwcDnLcUGdo7aB6xBymAGIpDbhw9XlqYng7oNGtiMRzmxkqYVexkeoVMJyZE5N5 X-Received: by 2002:a9d:7552:: with SMTP id b18mr7363372otl.20.1576747744929; Thu, 19 Dec 2019 01:29:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576747744; cv=none; d=google.com; s=arc-20160816; b=i3NA2+XnWXQXY0BKfFRL9eGKdglYkuwoYM0jpTscu8vY30nHDF0wuFt4JKvWyFvFOA 3ya9WEBQ2hhAthx4b0lOGd3gSiAPoTXTk3EQPEJ49R27L76DueNAuRNo6iNPrSHODl52 oFbiJEx5OSsiKdFdTfEoSRVOabsx2jRec/DR4q1aNGoNNU/GCPA5CMEAl44QvQGH3Pp0 THHur3EC4HKirVEHdA95svskH2NhMEWG7nDclRQu8jbGYZGDa5mM8YAXDkFqkxzjhVo5 7bsBFFKinr6aUaQIf9nKbnnSKC0M/iyakETOaU+p6iIkV5W6b1u49auGJTfEvXsoGpG7 P0Cg== 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=AwcynCAB8dmhDVrPZzNhCAtkvCBJgVaLCigdZVhu4dI=; b=jFEiiZdCHx3ttgPJ1lVGRy7SKhKmRC8UwEOE2aOBi/gLFywLheLZJkTea0jru6EFY7 m/w73OcmsbzQN0E79t5TAiXCAeX5dIe1c+G/T5d49QIvLJ1gQGqLCRvo2lCiJNrqE6FW qDa4lwHkleCKwu5QbxyVWJyKgCx/VIgNMwURDGtKtoWxondhxSQNxUDuMEBct5j40BVA p7sivoSgpDUoUC1IOHZbp7u26th9aaOSIFmDlYJwfmOh+KflwqfAb3GH7SNQ525x9etA ly4CCH4POXBPry7r+hYPlPhmf148Z9FPCl8w6+d6Nzf40GKdnJK9zKicFdQhci5kyfei 8hEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=srWIczF+; 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 i15si2937753otk.120.2019.12.19.01.29.04; Thu, 19 Dec 2019 01:29:04 -0800 (PST) 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=srWIczF+; 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 S1726744AbfLSJ3D (ORCPT + 27 others); Thu, 19 Dec 2019 04:29:03 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53192 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726599AbfLSJ3D (ORCPT ); Thu, 19 Dec 2019 04:29:03 -0500 Received: by mail-wm1-f67.google.com with SMTP id p9so4680924wmc.2 for ; Thu, 19 Dec 2019 01:29:01 -0800 (PST) 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=AwcynCAB8dmhDVrPZzNhCAtkvCBJgVaLCigdZVhu4dI=; b=srWIczF+g/KZIcwnNxAcr05vmE5y1j1isQTSU8xSC0bnypoPSXtRS5nYWyD/w1tGnH sgWwM5VXdGF+v0DetE0l0Awa46q562zigMi1bsFlEsbfpXjw6qx81NaVj7fqnCmM8JGS Ge1O2FAchSvZcTvMp4HTB3eX5zRex92sJQrgoZI+O2PfPDG6+8/W+7eKoXRbGD7JRwdl fepNQvdjsFMwX9vQEtKOCQD6ZyEthF4p/E1ZZnbyEngW80Hl9bDfz6XCmE8twr05Ixbw Gco9hufwR4t28tIrxVoL/gvqpLZcm3vHtjg3pJgAwWm5pNqZqCYwesgkudFUBuAljeG/ gRWg== 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=AwcynCAB8dmhDVrPZzNhCAtkvCBJgVaLCigdZVhu4dI=; b=LTDnx5BUQlageOI3n60h5TRsHFq9UUUUwlclWpfBctQaI4j0/LwarUB1u5/eWa7PSG 6oKzcrrZHpouTpCLp9WEgI2rKfcNb473cKtzAZ5SW9jhrD/TGuY0Tu5pWEcCBONUxEyi 0WeFOk6uFOcjKD1kZwVfhT8RzbuLnnbia2euMDDctSpHnFRGNDafJmI96iLgoYCGlesB JO3s7SRBJ7IBorcK89PCBLieMqNf0dHcifBN9vm7nH/49YlmzQKa390Du1zAnv+kNeuf ZEy9Dtp7BFQjKgidgi3JMhu+/A3fJb8MFzLrt4WS33CILEEeuALTqfFFg4+kxC9tZ9ax +RXg== X-Gm-Message-State: APjAAAXyt/Ic4Ht+rL25dy/UhHIIFNzcRL7WQA1vGwx4MrJmC3SI8V+R 8dGY2M/o5nrLKzt0vyFayfApNw== X-Received: by 2002:a1c:f416:: with SMTP id z22mr8492440wma.72.1576747741029; Thu, 19 Dec 2019 01:29:01 -0800 (PST) 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 s1sm5627356wmc.23.2019.12.19.01.28.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 01:29:00 -0800 (PST) From: Srinivas Kandagatla To: vkoul@kernel.org Cc: robh@kernel.org, bgoswami@codeaurora.org, broonie@kernel.org, pierre-louis.bossart@linux.intel.com, lgirdwood@gmail.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, spapothi@codeaurora.org, Srinivas Kandagatla Subject: [PATCH v5 0/2] soundwire: Add support to Qualcomm SoundWire master Date: Thu, 19 Dec 2019 09:28:40 +0000 Message-Id: <20191219092842.10885-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 Thanks for reviewing the v4 patchset. Here is new patchset addressing all the comments from v3 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 v4: - moved stream handling to codec as there is a strong hw requirements on port and PA enable sequence on codec side - removed dummy runtime pm - cleaned up code as suggested by Pierre 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 | 856 ++++++++++++++++++ 4 files changed, 1036 insertions(+) create mode 100644 Documentation/devicetree/bindings/soundwire/qcom,sdw.txt create mode 100644 drivers/soundwire/qcom.c -- 2.21.0