From patchwork Mon Aug 20 06:39:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10569957 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D45F1112E for ; Mon, 20 Aug 2018 06:40:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA6752916B for ; Mon, 20 Aug 2018 06:40:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ABB932917B; Mon, 20 Aug 2018 06:40:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44DA22916B for ; Mon, 20 Aug 2018 06:40:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726009AbeHTJzL (ORCPT ); Mon, 20 Aug 2018 05:55:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:40766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbeHTJzL (ORCPT ); Mon, 20 Aug 2018 05:55:11 -0400 Received: from localhost.localdomain (unknown [171.76.73.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8B810208DC; Mon, 20 Aug 2018 06:40:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534747248; bh=98QgknTED3QQOrlSO96v15zcyBBdYvBhSrtXJV6hf3s=; h=From:To:Cc:Subject:Date:From; b=1A6cY2hpnQ9rAsEuJmaZkymmfbMeoKH++ZbhNgv/OkB6InsBfySDwX+BwJVZjNgjG 9ZGAIXTHXt2WeDN7oQ7Yp157BG2B678Q/PK7+OsomjUceZXF7xZHT3LJc41MCcgGBO 01eCZ4Wa39/bvf7IluuV3RxKEQEDqGkauyjdsQuE= From: Vinod Koul To: Wolfram Sang , linux-i2c@vger.kernel.org Cc: Bjorn Andersson , linux-arm-msm@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, Todor Tomov , Vinod Koul Subject: [PATCH v4 0/2] i2c: Add support for Qcom CCI I2C controller Date: Mon, 20 Aug 2018 12:09:51 +0530 Message-Id: <20180820063953.6866-1-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, This series adds support for Qualcomm Camera Control Interface (CCI) I2C controller. This block contains one/two I2C masters and registers these adapters based on the controller probed on. Changes in v4: - Add pm support - Fix based on Bjorn feedback Changes in v3: - Update DT binding per RobH comments - Add the subnode for bus instances - Move all compataible data to driver data - add num_master data and use that to register and use masters Changes in v2: - Add support for two adapters Todor Tomov (2): dt-bindings: i2c: Add binding for Qualcomm CCI I2C controller i2c: Add Qualcomm CCI I2C driver .../devicetree/bindings/i2c/i2c-qcom-cci.txt | 83 ++ drivers/i2c/busses/Kconfig | 10 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-qcom-cci.c | 879 +++++++++++++++++++++ 4 files changed, 973 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-qcom-cci.txt create mode 100644 drivers/i2c/busses/i2c-qcom-cci.c