From patchwork Tue Mar 9 14:15:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 395988 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp2621073jai; Tue, 9 Mar 2021 06:16:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9c8A22GiMiTOLTTqvvkkh8FXpuNynNidlF4G395qTcK1yRSiH8R3Rl2gWmlhLMB4FizEw X-Received: by 2002:a17:906:7f12:: with SMTP id d18mr19854448ejr.368.1615299393513; Tue, 09 Mar 2021 06:16:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615299393; cv=none; d=google.com; s=arc-20160816; b=y24pKvojwejPZmhuMXzLLw7exLCCo7RB/bj5E/7SuvHUCEYbSXVpUCdJBqj1hZ1sMS TtTWnVWL74Y0P3hSp69uliKHCBnHMFHRMuRecX1zhS9WOeSMJ/HTK1YG5dm+hrIkJ1ze vL6ZbIkX3jLQ8f1Rnhu1RIu49qoaAQgxtY5hS8RqKCQuj+zIS+fEaHEnPl1BBBPY+wUS vITxzpRlDXXeWWUz7xLj0+4F1p73TjQGbeP8cx3LfYWJN2uhRouupfV7BAr4QGLfjS6N lVKHkAzpl+pa7r+shDyBAmSW3ws9ZuXO8NeXjZgOqGhTlfAtbSyRzMydC83lr020vvlW Z8zw== 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=ITjSKt2+hgLxV+pJeV70ZxWkeY46z8D/gW74nzxpexQ=; b=i/Bqm3R0/tyrnL/G/yWE/38eT+fLn9Tn3ln2KVWbZqc/yCNcbi9BVC4g+Rfo8EzysZ m/y4WVl5HWISfmn6lhBP1+l8QaqIC6bbNmhHSkDIoCvhQu/OfGP/o3IaEI27kBoDRZWJ O4a8LFR22SU1dHRW5K2CPnFpMXBWkohONkJmPhaiOhatFJOyi5YjnXVqaTIerHC3kMB8 CiOJglyHbt3aXYlhCglb5K86pUumZGc0aDM7VuAfrQCRHxvA5iCmA0CDS9LaEPafKJ9T /Z3/tkcaXPwU3bfw6oEjNYO79qNIYpP/ULE3ecB2bTle9f1U9ZAMVal0uZXPGluc4mbz M9Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cIR0awXA; 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 h26si9227740edq.453.2021.03.09.06.16.33; Tue, 09 Mar 2021 06:16:33 -0800 (PST) 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=cIR0awXA; 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 S229851AbhCIOQA (ORCPT + 6 others); Tue, 9 Mar 2021 09:16:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbhCIOPe (ORCPT ); Tue, 9 Mar 2021 09:15:34 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A061AC06175F for ; Tue, 9 Mar 2021 06:15:33 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id h98so15853862wrh.11 for ; Tue, 09 Mar 2021 06:15:33 -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=ITjSKt2+hgLxV+pJeV70ZxWkeY46z8D/gW74nzxpexQ=; b=cIR0awXA4ZwNU6o+0+jVnRL7Babi+PksJnzMSiQ7MadA4GGA9063k/iup2S9q6G5uv wZ3uw7uVZjQv+dNVhtkz/shlR01AgsyXABjs+uNtJck975Uhehz0tpV5Vms01BN37L9r HbkZyKKoirlUdO4d/UUs542iUJ/oR5Ivxq4ca56n94Dn0WpLgZhsI9SjMOjDzl3Ef1AK oJxebeVWNWX3+PbhBXWNSZg0WTbsnxjccXA1I5yKTYs5rkVARjemLZiXiYhcXT4cn2/6 7g5rrMgRlAd3mSsZVT6r5sKDwMPHVWOUQnPpgt7AdZu5e/09T22PNZNOtOz/5D3j4z7m uVEQ== 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=ITjSKt2+hgLxV+pJeV70ZxWkeY46z8D/gW74nzxpexQ=; b=Dwp8xzOkO9BOEo8E+usZpHrdcrq8RmHrLfI/anYLqJZTJKs5F7sVvQvmETnEX/3o5b rXP9WnI4DVrTnbi4iZ4G4N3Pzi0Cqd4rplEKVezyM2J/h9tb+3RzI4WykWak3xDkktlL jYUkNIb5mlx6GHXerpJCZAcdLLHRZm93QanWF5AtLBihh+yJM62ny7egvbg3AGo4PR2V 1PsxrYib9JOJEtjXnpj6+ZOrcR5Q1Om6KyPNjKmCsiDfVmAkowoX2PyQquzPibZwoRou FKhOyDHf0jKfD+T0YlunVJzZcxw6DZRiFdIKh5aKgE0AMDWovARW57OopGUwEE49nuWi Wyxg== X-Gm-Message-State: AOAM532tJOqzgmyMQ/7vGJBiUVA1oLhPrzbUlq0+AegihrKF6Ml4VGmb cpQdq+iDTCf7k5rL2TH1UzWctw== X-Received: by 2002:a5d:4fcb:: with SMTP id h11mr29800438wrw.66.1615299332299; Tue, 09 Mar 2021 06:15:32 -0800 (PST) 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 u20sm28007579wru.6.2021.03.09.06.15.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 06:15:31 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org, vkoul@kernel.org Cc: robh@kernel.org, devicetree@vger.kernel.org, yung-chuan.liao@linux.intel.com, pierre-louis.bossart@linux.intel.com, sanyog.r.kale@intel.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Srinivas Kandagatla Subject: [PATCH v2 0/5] soundwire: add static port map support Date: Tue, 9 Mar 2021 14:15:09 +0000 Message-Id: <20210309141514.24744-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 In some cases, SoundWire device ports are statically mapped to Controller ports during design, however there is no way to expose this information to the controller. Controllers like Qualcomm ones use this info to setup static bandwith parameters for those ports. A generic port allocation is not possible in this cases! This patch adds a new member m_port_map to SoundWire device so that it can populate the static master port map and share it with controller to be able to setup correct bandwidth parameters. As a user of this feature this patchset also adds new bindings for wsa881x smart speaker which has 4 ports which are statically mapped to the 3 output and 1 input port of the controller. Tested it on DB845c and SM8250 MTP. thanks, srini Srinivas Kandagatla (5): soundwire: add static port mapping support soundwire: qcom: update port map allocation bit mask soundwire: qcom: add static port map support ASoC: dt-bindings: wsa881x: add bindings for port mapping ASoC: codecs: wsa881x: add static port map support .../bindings/sound/qcom,wsa881x.yaml | 9 ++++++ drivers/soundwire/qcom.c | 30 +++++++++++++++---- include/linux/soundwire/sdw.h | 2 ++ sound/soc/codecs/wsa881x.c | 5 ++++ 4 files changed, 40 insertions(+), 6 deletions(-) -- 2.21.0