From patchwork Thu Aug 22 22:36:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 172064 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1514192ily; Thu, 22 Aug 2019 15:36:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyi9ScE8W4G9XfzZc6zxOKgzSPsF7TcUXRFJKfmiknq3QMrIa/QScKjRGvVd8xMEID1ddX2 X-Received: by 2002:aa7:809a:: with SMTP id v26mr1718728pff.82.1566513385716; Thu, 22 Aug 2019 15:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566513385; cv=none; d=google.com; s=arc-20160816; b=QD7Y4VpjtSC5cJW1aCOOL1HPSHOuGyOH7AoDJv0CVSbcrNcA8/WmWsDycYfd+Oe9HG O+NnVU1uysrYGsXFaIU/KBiK+ABugbCEba0q7ybRINB+uE/rx8OnoBWwaTp1v1dRyiJW PYnMdL/VcNTfSAOc0QuooTm5z4O5cIG/v71wPC3SmUEed5TXyiELVI6f//cd3nX++ryz EfyLIPlA150tdVdXz+MbN6vQsLJIaqnsg/eRGcyy0TFZTS+kTGcXXncQNvCxL1wxEqFe yvv3CdpewE8Dy6HKIcJG2OGmxf0dWlBkhRYQGpLvbH3E84EtoxtolxVeaR7HDvXy+7qF oDgA== 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=Ps5fSEr1qMGUj4gJBzVj6xZCpnRrFx1jjYFeOMLoqEo=; b=qXhawL0dE/1hHDOZISlbH/4BOJo49VY+7xl7JekGBYtCPMDGGpIv0fJAFwAbyKQW7u HOpVTNmsqdh9NxJn5VjOjRuuBOJlSFFpAmgwqv/+R8QmjNfRy9KjL/g2z8pNUe25Eq5O ddV8dO/TN3ybkfX2+WOOPU+LtOUfF+MIqrAI2y0wopv36/e9kSnM4UXbTxhkrq44VWzn max9tXgBaAkGh+s71dDAj2ptg+W6FKM/NJR9LwezG9IlxjEzCOW1MqMaT6qP5155jAZu c6ZxRll47bjVcobnqYV6yoEGw6Gw9aU3fd40aHjq0GvpwDhpFH9ya6vTW7CqomkHLZS6 6Z5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ew8+IDWC; 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 89si720594plb.213.2019.08.22.15.36.25; Thu, 22 Aug 2019 15:36:25 -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=ew8+IDWC; 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 S2404871AbfHVWgY (ORCPT + 28 others); Thu, 22 Aug 2019 18:36:24 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37657 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394044AbfHVWgX (ORCPT ); Thu, 22 Aug 2019 18:36:23 -0400 Received: by mail-wr1-f66.google.com with SMTP id z11so6854737wrt.4 for ; Thu, 22 Aug 2019 15:36:22 -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=Ps5fSEr1qMGUj4gJBzVj6xZCpnRrFx1jjYFeOMLoqEo=; b=ew8+IDWCuDX0P3zBzbl9bTTlRaF0BjyzxzUXr2A4u5xK1/1vjRmnlQsuoznfX/TRJz h98W/LezmoT47tSdIUXsrmmR+t0yKAEoenYnGoC2W/iQbwTBsqrE83QFkkQOeovJUs8B BF4mlJ3rRB4eusmQ3nFwosElKoFRF8Dtrz6BsFm7D2JOnayubL8m4n6yldfxF4O4u9Rc NQI0TUTQNl3MgJg7SBSkWeeckHhdkMeqqaqkZAX3WUUnM35p1ij+guS9I4PFQFB3YNH7 e0bpPWTJyNfm1HV+9YTAU7KErnLd2q7vPz9CUpUoXuTtldjoqbgZVyK1GL2AKEdQcCc5 sK/Q== 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=Ps5fSEr1qMGUj4gJBzVj6xZCpnRrFx1jjYFeOMLoqEo=; b=t4GSHdHtezVGAZ0SISCZsGMAwPAtl9U6JeWufMFHqCrPMw8y15cs8RcwTRyh2Ewhsl c52jPUsJaRMO/+9HNPmbauXWdV0UE5KA21x5fGokYlQ/2RrJOha2fYczFmHdYtwXLAhf KQN1NCIkV0hi9J+i2ZKKCWCvlVTrMLw2p2adbjFrurXnllqgL2xHgvDJ0sVf7aj3a2U6 brhsT86m8/xSaFUD23PdwZBzoRRa74mlNWBd1QYeu7f1sQ/D/X1/wOOTxJ/pWBbDJgUJ aCCmb6UTkwT9oPqahQtLMtt2db1pXU5FTN1wzayyIzRs6EXPe7yU+XA+xHiIlGkjqDVW De9g== X-Gm-Message-State: APjAAAXURCgr29M91BvL2PfaA95rZG2ujOUkZARWPLQfR1O3DDLyW3fb c3C0WgBqG3WwWwObDXPbSjwjEg== X-Received: by 2002:a5d:678a:: with SMTP id v10mr1136982wru.116.1566513381364; Thu, 22 Aug 2019 15:36:21 -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 m188sm1886380wmm.32.2019.08.22.15.36.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 15:36:20 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, robh+dt@kernel.org, vkoul@kernel.org Cc: spapothi@codeaurora.org, bgoswami@codeaurora.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, devicetree@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v4 0/4] ASoC: codecs: Add WSA881x Smart Speaker amplifier support Date: Thu, 22 Aug 2019 23:36:02 +0100 Message-Id: <20190822223606.6775-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 v3 patchset, here is v4 with addressing the comments in v3 This patchset adds support to WSA8810/WSA8815 Class-D Smart Speaker Amplifier which is SoundWire interfaced. This also adds support to some missing bits in SoundWire bus layer like Device Tree support. This patchset along with DB845c machine driver and WCD934x codec driver has been tested on SDM845 SoC based DragonBoard DB845c with two WSA8810 speakers. 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: Add thermal sensor support in WSA881x. Thanks, srini Changes since v3: - updated slave bindings according to Rob's Suggestion. - moved bindings to yaml Srinivas Kandagatla (4): dt-bindings: soundwire: add slave bindings soundwire: core: add device tree support for slave devices dt-bindings: ASoC: Add WSA881x bindings ASoC: codecs: add wsa881x amplifier support .../bindings/sound/qcom,wsa881x.yaml | 44 + .../soundwire/soudwire-controller.yaml | 75 ++ drivers/soundwire/bus.c | 2 + drivers/soundwire/bus.h | 1 + drivers/soundwire/slave.c | 52 + sound/soc/codecs/Kconfig | 10 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/wsa881x.c | 1134 +++++++++++++++++ 8 files changed, 1320 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wsa881x.yaml create mode 100644 Documentation/devicetree/bindings/soundwire/soudwire-controller.yaml create mode 100644 sound/soc/codecs/wsa881x.c -- 2.21.0