From patchwork Thu Dec 7 10:27:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 120948 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8178449qgn; Thu, 7 Dec 2017 02:30:42 -0800 (PST) X-Google-Smtp-Source: AGs4zMa9WqI8nCDinAp4xr83ZZ1e6Yk9pMxaMMlp7QhoG2XyYKa93ZK8uU/D2cCfzpWcntxyDcdR X-Received: by 10.28.17.77 with SMTP id 74mr692018wmr.66.1512642641422; Thu, 07 Dec 2017 02:30:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512642641; cv=none; d=google.com; s=arc-20160816; b=TLqWuYuNJfyUC58Htpg5a6bJpFJ/P1qJX4H5GrbwyntLhySKuN/oorikDPiKiWGZgc Wt4n/WIk5dBxKt4AKflfN4yQ8ZA+U3U+45eoQm87gI4qBb6J3Q59XeL4o4ye5qFWe+Sp noPZuuQfivMHD6l4pv/dETWAeLXReGDxiR2rQEFFX0HI+dpsJAnfDJGExi59XmLqtttC G0rQW/NgQ67k7C5p0tnt6QXI/lbnfTG0VUz7JviHXJDxYHk8XK3rRcwRtmEOcFiUFbgg jOT+0BvNJLA+okvmOWPda+qbetNv02IVU1uTGPwg/3roaZFDeK4oj8Vnyq/HHC0w8ZIa UgRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=12TU4bgik3DeCQgT7OUNnAoqy1VrFmZArHFzuT/eAG0=; b=aiDMeclVVxwEYWhetLp3+C006fxvop8E1K74IpWfs2fX09SsKeRTshb4j68zNfQAlc 00zYhRiwz+hRh9Ac2pIA0mmWRGpj0YF3oWxJA7Jd9tcg/P/OZNVuqirmHTvfh3Uw+DV6 9g/XLiRX1k9vaQRSvVDy8Bny6mgw3NjzXdLVFMkwd25y2qZwzpUMbJkR+8XApv8Gf8nD TeW+UncMo2szXomJh/XC4LzkjV1/xMeeApcQOXuOHl+p1HTKEUufq3D7bwxwKylwzTuK DPz49ieLhXP68k8zlfxGgpWr+SIKkN4pIDcBxagNLqVauQMYJ1y8F84ttE8lsJqpyhZy MsJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YaJvCp9M; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id b9si3397478wrf.514.2017.12.07.02.30.41; Thu, 07 Dec 2017 02:30:41 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YaJvCp9M; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 058BE267A87; Thu, 7 Dec 2017 11:30:40 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3F451267A8A; Thu, 7 Dec 2017 11:30:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by alsa0.perex.cz (Postfix) with ESMTP id F32FE266E6C for ; Thu, 7 Dec 2017 11:30:35 +0100 (CET) Received: by mail-wm0-f43.google.com with SMTP id f206so11897098wmf.5 for ; Thu, 07 Dec 2017 02:30:35 -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; bh=FQMmstAkC3La+l2pMg0cImYdmoLuW3KwbNQqu4fRJ48=; b=YaJvCp9MeWDBkYj84bIXhPtpFzJtSt+8BnoY6jN9Xip7Kz1759cjM6bfcvtdv9y4bp sKSf9LHACSLftYzwj8DQWeNzzXBZ1F2wdaby0fZ4ySOO91f4HrI/TOVSYtxu1RbHYhHc zyILsA3T9uXsYmCIhqUMsDZ+dESfApyW3bkT0= 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=FQMmstAkC3La+l2pMg0cImYdmoLuW3KwbNQqu4fRJ48=; b=K8QRELElWGjh2m142XQfXaT/ADR0qmfLypjyv8PXL58oksuDl0j6vrJvEQT2ONbEOI sFnJ745rWxljJmp++C5K6cI+6/jxT9hnCIxDHI164NODCxHcPj+k+hOZ9F1XBjo/210D fPZUnz+yjV+I7u+0BvQ5NU1GjDaklc6M6a4cZxLHxvOz3LdpjA7SIKkB/C/Ic/QZbq0n bWIaB6bOfExe/qmJssXQ5lwkzYQf7BrKKVizou4cIMV6iClnky3tivGwPgINCQjx/RLh gW+N9lMToCdY3FgGspB2TfD+YgqZExXVs0PjfE8FDCePtnXkET4sAIani/9yqhV1Mgjc oESA== X-Gm-Message-State: AKGB3mJmUPn4+gJv+SFjDS+k8VzU6jzqiYFiRzXIShLn45sxYuXFMmik 1e1kObcDEjaZ0HzAcimJ+FUiIg== X-Received: by 10.28.19.1 with SMTP id 1mr698814wmt.20.1512642635040; Thu, 07 Dec 2017 02:30:35 -0800 (PST) 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 k2sm4837734wrg.4.2017.12.07.02.30.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Dec 2017 02:30:34 -0800 (PST) From: srinivas.kandagatla@linaro.org To: Mark Brown , Greg Kroah-Hartman , alsa-devel@alsa-project.org Date: Thu, 7 Dec 2017 10:27:07 +0000 Message-Id: <20171207102720.21071-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.0 Cc: Mark Rutland , devicetree@vger.kernel.org, Jonathan Corbet , linux-arm-msm@vger.kernel.org, linux-doc@vger.kernel.org, j.neuschaefer@gmx.net, linux-kernel@vger.kernel.org, Rob Herring , Srinivas Kandagatla , pombredanne@nexb.com, sdharia@codeaurora.org Subject: [alsa-devel] [PATCH v9 00/13] Introduce framework for SLIMbus device driver X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org From: Srinivas Kandagatla Thanks for everyone who reviewed v8 patchset, here is v9 with review comments addressed. SLIMbus (Serial Low Power Interchip Media Bus) is a specification developed by MIPI (Mobile Industry Processor Interface) alliance. SLIMbus is a 2-wire implementation, which is used to communicate with peripheral components like audio-codec. SLIMbus uses Time-Division-Multiplexing to accommodate multiple data channels, and control channel. Control channel has messages to do device-enumeration, messages to send/receive control-data to/from SLIMbus devices, messages for port/channel management, and messages to do bandwidth allocation. Framework is introduced to support multiple instances of the bus (1 controller per bus), and multiple slave devices per controller. SPI and I2C frameworks, and comments from last time when I submitted the patches were referred-to while working on this framework. These patchsets introduce device-management, OF helpers, and messaging APIs, controller driver for Qualcomm's SLIMbus controller, and clock-pause feature for entering/exiting low-power mode for SLIMbus. Framework patches to do channel, port and bandwidth management are work-in-progress and will be sent out once these initial patches are accepted. These patchsets were tested on IFC6410 board with Qualcomm APQ8064 processor using the controller driver, and a WCD9310 codec. v8: https://lkml.org/lkml/2017/11/30/713 Changes from v8 to v9: * Fixed Licence tags as suggested by Philippe Ombredanne and Greg KH * Fixed typos spotted by Jonathan Neuschafer in documentation * Added missing addtion in index.rst file spotted by Jonathan Neuschafer Sagar Dharia (9): Documentation: Add SLIMbus summary dt-bindings: Add SLIMbus bindings slimbus: Add SLIMbus bus type slimbus: core: Add slim controllers support slimbus: Add messaging APIs to slimbus framework slimbus: Add support for 'clock-pause' feature dt-bindings: Add qcom slimbus controller bindings slimbus: qcom: Add Qualcomm Slimbus controller driver slimbus: qcom: Add runtime-pm support using clock-pause Srinivas Kandagatla (4): slimbus: core: add support to device tree helper regmap: add SLIMbus support slimbus: core: add common defines required for controllers MAINTAINERS: Add SLIMbus maintainer Documentation/devicetree/bindings/slimbus/bus.txt | 50 ++ .../devicetree/bindings/slimbus/slim-qcom-ctrl.txt | 39 ++ Documentation/driver-api/index.rst | 1 + Documentation/driver-api/slimbus/index.rst | 15 + Documentation/driver-api/slimbus/summary.rst | 106 +++ MAINTAINERS | 8 + drivers/Kconfig | 2 + drivers/Makefile | 1 + drivers/base/regmap/Kconfig | 4 + drivers/base/regmap/Makefile | 1 + drivers/base/regmap/regmap-slimbus.c | 80 +++ drivers/slimbus/Kconfig | 23 + drivers/slimbus/Makefile | 10 + drivers/slimbus/core.c | 478 +++++++++++++ drivers/slimbus/messaging.c | 328 +++++++++ drivers/slimbus/qcom-ctrl.c | 748 +++++++++++++++++++++ drivers/slimbus/sched.c | 119 ++++ drivers/slimbus/slimbus.h | 259 +++++++ include/linux/mod_devicetable.h | 13 + include/linux/regmap.h | 18 + include/linux/slimbus.h | 162 +++++ 21 files changed, 2465 insertions(+) create mode 100644 Documentation/devicetree/bindings/slimbus/bus.txt create mode 100644 Documentation/devicetree/bindings/slimbus/slim-qcom-ctrl.txt create mode 100644 Documentation/driver-api/slimbus/index.rst create mode 100644 Documentation/driver-api/slimbus/summary.rst create mode 100644 drivers/base/regmap/regmap-slimbus.c create mode 100644 drivers/slimbus/Kconfig create mode 100644 drivers/slimbus/Makefile create mode 100644 drivers/slimbus/core.c create mode 100644 drivers/slimbus/messaging.c create mode 100644 drivers/slimbus/qcom-ctrl.c create mode 100644 drivers/slimbus/sched.c create mode 100644 drivers/slimbus/slimbus.h create mode 100644 include/linux/slimbus.h -- 2.15.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel