From patchwork Tue Jun 19 16:12:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139195 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5397146lji; Tue, 19 Jun 2018 09:13:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL7BDpS074lbaFzxKxW04z5rhbAG5kXuF3H5yPhrgqH8tgylvRLnvTF0xfKssDeGdVzRc/a X-Received: by 2002:a62:d09:: with SMTP id v9-v6mr18531804pfi.163.1529424797578; Tue, 19 Jun 2018 09:13:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529424797; cv=none; d=google.com; s=arc-20160816; b=0Qyuh5jt3f6Jyntwx4uvKu2ZDdXZUcAJWvEOBtvafi3BS12v7W2txbI/RYR8h6wqD2 sJFRQRCu767raXgnnMBPAHUe1KiTO/u7Zo0E7HiiZUGakKFJSMxDx2gfAkVNJPkRLlKI OUmuWW/DhgmmIJkQwWvArnrOZy7V6CQvgMU5Zwp4f0xctlsbz8q4nhiFxX4oK4r/IBK3 KDYtp4kBu7CXihl2muG9+KBZn9VooyqZWJVYpjPyk9XWfmUJdE64H4UH+bQwALF2cn9z +v5HEBpABk0Ib1gmuPjb+nikVVaoxxUcrUhK82lg/mQede4kxINiwPTmH9ymNA7Secin lGVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=NI9pUEdzdqLxZ4OT/Rck3Rw0VtUJokueNnd9m0UfHEY=; b=shv79/Mxn+dF/iDaW/Fks1r/RFZz/lf39UPchEgv1yeN1lW0C21YUmJcq06FaD8Ipt 0rvGNywShqnbgR/CxVlxvF4IgAcdTnCBzlcWz+NhMKynJEYfIVDlitqSH7etb8h/etiv FAgzlw+Fy5DDoFI9rgs5yYJeXJkrjtLut2F+REonqaQv/AbvQx9L7r9Gf47d8jaQRKP9 m9FwdF1x1twcLX294+nvArXlMPaiH4Sgw/fwRbtcO8WIqoxoe4lq73abE8AAR+ZSs4Al 5E0lm23Apn6CF+vrhRXr4pEwU96wgdccE3U3OqoPzTySItJ+oAQwA7f6proyJ/vETUcA lnLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="f/dFVLEs"; 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 a11-v6si64039pfo.68.2018.06.19.09.13.17; Tue, 19 Jun 2018 09:13:17 -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="f/dFVLEs"; 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 S967187AbeFSQNP (ORCPT + 30 others); Tue, 19 Jun 2018 12:13:15 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:37661 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966739AbeFSQNH (ORCPT ); Tue, 19 Jun 2018 12:13:07 -0400 Received: by mail-wm0-f68.google.com with SMTP id r125-v6so1503369wmg.2 for ; Tue, 19 Jun 2018 09:13: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; bh=NI9pUEdzdqLxZ4OT/Rck3Rw0VtUJokueNnd9m0UfHEY=; b=f/dFVLEsbhdm8knanGbavPe9NXrHPuPfn84Gxvvly/JdjWIggqqhR7iyipcwUZ+DHJ SPMzjJTGop8j5BhEmwB3p5vbKQvNOI9k5h3du9FkR8k2oG0Oz791CASLTP9xRHrM2aW1 c8NX31kZDUzjfgDmUokSJmCOQeeHgEZ93Qh8A= 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; bh=NI9pUEdzdqLxZ4OT/Rck3Rw0VtUJokueNnd9m0UfHEY=; b=GxMIUW9edVO+3WfQg6s5E2loHYrNUu+IaUR4ef7wBao2c9KJgsn+Z7eQCTvfGNCc0o 3ZbFLVZn1278dCSZXRcAnRXuFGe2X1aezDtVE60AadcL2BpCEXH5JouUeOIO3Hl5Xbj6 +/B3984iF3g5uQH0r9bWQTsbzgTcP3U8pt1DpVtIPokOhHLnGMUoiUhh1zxGoGUrSzbY xHQqjJ2/j0vMGa1IphYMVHCAy5zGgwlgYnrqm1AFegBFHg7pKd4utbN/MlY7f3mdBM8R 47Jl2YjbHVfbz0dxIzqYERsqpw8BTr64xqXdhXk1GHev1jf5AWjL2S1LdWvHpjyxJ/J/ qf5Q== X-Gm-Message-State: APt69E3g+m5eeOL3nOLvQDDJtEqCOx5pRdLHM1gmZ3AClj23O9M1NRgp 7CRaigY5HnK3zttCYzBsUvUyuA== X-Received: by 2002:a1c:ea4a:: with SMTP id i71-v6mr11396567wmh.158.1529424786403; Tue, 19 Jun 2018 09:13:06 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id r5-v6sm47248wrp.59.2018.06.19.09.13.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jun 2018 09:13:05 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: robh+dt@kernel.org, kramasub@codeaurora.org, sdharia@quicinc.com, linux-kernel@vger.kernel.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, Srinivas Kandagatla Subject: [PATCH v4 0/5] slimbus: Add QCOM SLIMBus NGD driver Date: Tue, 19 Jun 2018 17:12:56 +0100 Message-Id: <20180619161301.4556-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds support to basic version of Qualcomm NGD SLIMBus controller driver found SoCs from B family. This controller is light-weight SLIMBus controller driver responsible for communicating with slave HW directly over the bus using messaging interface, and communicating with master component residing on ADSP for bandwidth and data-channel management. Some parts fot the work is derived from Qualcomm downstream kernels and intial work from Karthikeyan Ramasubramanian and Sagar Dharia Tested this patchset with v4.18-rc1 on DB820c with WCD9335 codec for playback and Craig tested on msm8974 with wcd9320 codec for register read/writes. I have pushed my working branch to [1] incase someone want to try. [1]:https://git.linaro.org/people/srinivas.kandagatla/linux.git/log/?h=slimbus-ngd Changes since v4: - Moved all dependency patches to this patchset. - replaced slim_prepare_txn with slim_alloc/free_txn_tid() - fixed runtime pm issue for ngd device. Srinivas Kandagatla (5): slimbus: core: add of_slim_device_get() helper slimbus: core: rearrange slim_eaddr structure slimbus: messaging: add slim_alloc/free_txn_tid() slimbus: ngd: dt-bindings: Add slim ngd dt bindings slimbus: ngd: Add qcom SLIMBus NGD driver .../bindings/slimbus/slim-ngd-qcom-ctrl.txt | 84 ++ drivers/slimbus/Kconfig | 11 + drivers/slimbus/Makefile | 3 + drivers/slimbus/core.c | 39 + drivers/slimbus/messaging.c | 74 +- drivers/slimbus/qcom-ngd-ctrl.c | 1381 ++++++++++++++++++++ drivers/slimbus/slimbus.h | 10 + include/linux/slimbus.h | 14 +- 8 files changed, 1588 insertions(+), 28 deletions(-) create mode 100644 Documentation/devicetree/bindings/slimbus/slim-ngd-qcom-ctrl.txt create mode 100644 drivers/slimbus/qcom-ngd-ctrl.c -- 2.16.2