From patchwork Wed Apr 3 01:18:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ray Jui X-Patchwork-Id: 10882507 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 6DEE517E1 for ; Wed, 3 Apr 2019 01:18:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F477289DC for ; Wed, 3 Apr 2019 01:18:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 335C9289E2; Wed, 3 Apr 2019 01:18:51 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D025B289DC for ; Wed, 3 Apr 2019 01:18:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=a1uUOcsbWU0b1w0tPJSbPkpwmHL77SQMA5yQvDNNZEg=; b=j2b uajue2cFjr3zvN6RVIIFC3WLBmFYzfGXtFagCl4K0N6IQFoyblWiRPMHtzWHRcJMCAKEJIHLS7iJS QBc3mWUYj00TxirLa9o6Omep7rvmJgaJPrv9HCC021PlFzCnYUp0XXNi9ecCwyFUx21/1xmchx7Jz eqACBhOMIgue3G/eBUOoESg9KlxzgKJ5tg42UlguKjX2XH2z1GtDOdbwJxDVuo+LtCkB47vB+hx01 FokWagFODSXkgKL9TyTH0qlOFuAc0flBfxR9S4CpQjH6DlxJHPnNxwM4X5HJoUgTNiYHU89jqmvdk XP7798t6V3AHLqwTUIVK9Pm9YSIEW8Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBUYC-0008A5-7a; Wed, 03 Apr 2019 01:18:48 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBUY9-00087q-49 for linux-arm-kernel@lists.infradead.org; Wed, 03 Apr 2019 01:18:46 +0000 Received: by mail-pl1-x641.google.com with SMTP id bf11so7133632plb.12 for ; Tue, 02 Apr 2019 18:18:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=BAYMi99pGN6qjAoy0BnGZIuk8GTCDM2r1F3Rvia8PnE=; b=UwIJZmXEM0fXzU1sJ6fM/6cgBIAF7MOt4KwsqW62WBhtnrN5N0ruwr5PoqH1mdAQOI Mq9dd55x32KJu/Oixm8ZSiS56STuuvMiL6VTwQl7snB/mg6Xn8746I+w8H1HYFDx116Z wjIq2CIa6hFQDQMl8tOfiGXztOZasAgWFANGM= 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=BAYMi99pGN6qjAoy0BnGZIuk8GTCDM2r1F3Rvia8PnE=; b=bv4ULIiWHbg6Z9oZLYSzyw8dDICc6Urg4ZicEJSDw05tcw90t8Rg+6mEKYxazcLg6S mz8hhJsd+I3dMCyyuEqswXnjJl7NrPvsjYjwW5OKFA0qtIqZWUoy1lrFvBHICWyb3Stw ZQCD7E8OltePVbuNZOgjVk/fTTi3FtdXZis4otEqYF40XRpNoKzH6sOqG94ipVD8Ubls pWvBAMaTt2fkCT6C0hsSI+YR8bA+mUdcvlHLhGFPOclPxLobEwcrSNJRxAuEATs3C5Yf SYQTtMkonxa29itnwIB7n4vm56jHSLaDJyuzcXM6vTtHaaGzfXykyTjSDT0ps2m8VInS TX9Q== X-Gm-Message-State: APjAAAVSOr34ywyiU6ACWdK2SvRnKYI0P9PFJHDwTfqs/7DHPcjXQgDs ReG1W4jQvIJtPQMiHgyE4s4g3A== X-Google-Smtp-Source: APXvYqzUfXN1kLFisivs17cJIyhvdBnchR4NRWDI0GWsa1sKB4ysdXkJJjR/9e4J2/JVhwIaYsGagg== X-Received: by 2002:a17:902:9043:: with SMTP id w3mr73857346plz.101.1554254324262; Tue, 02 Apr 2019 18:18:44 -0700 (PDT) Received: from rj-aorus.ric.broadcom.com ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id 4sm19589046pfn.159.2019.04.02.18.18.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Apr 2019 18:18:43 -0700 (PDT) From: Ray Jui To: Wolfram Sang , Rob Herring , Mark Rutland Subject: [PATCH v6 0/9] iProc I2C slave mode and NIC mode Date: Tue, 2 Apr 2019 18:18:21 -0700 Message-Id: <20190403011830.3254-1-ray.jui@broadcom.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190402_181845_171508_D1105F91 X-CRM114-Status: GOOD ( 12.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Rayagonda Kokatanur , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-i2c@vger.kernel.org, Ray Jui , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch series adds the following support to the iProc I2C driver: - Increase maximum read transfer size to 255 bytes - I2C slave mode - Polling mode - NIC I2C mode This patch series is based on kernel v5.1-rc3 and available at: https://github.com/Broadcom/arm64-linux.git branch: i2c-slave-v6 Changes from v5: - Address various comments from Wolfram - Rebase to v5.1-rc3 Changes from v4: - Add more detailed explanations in the device tree binding document changes, to address Rob's review comments Changes from v3: - Various minor fixes on commit messages and commits - Rebased to v5.0-rc3 Changes from v2: - Address Ray's review comments. Changes from v1: - Rebased to Linux v5.0.0-rc2 Michael Cheng (1): i2c: iproc: Add support for more master error status Ray Jui (1): dt-bindings: i2c: iproc: make 'interrupts' optional Rayagonda Kokatanur (5): i2c: iproc: add polling support i2c: iproc: use wrapper for read/write access dt-bindings: i2c: iproc: add "brcm,iproc-nic-i2c" compatible string i2c: iproc: add NIC I2C support arm64: dts: Stingray: Add NIC i2c device node Shreesha Rajashekar (2): i2c: iproc: Extend I2C read up to 255 bytes i2c: iproc: Add slave mode support .../bindings/i2c/brcm,iproc-i2c.txt | 17 +- .../boot/dts/broadcom/stingray/stingray.dtsi | 18 + drivers/i2c/busses/Kconfig | 1 + drivers/i2c/busses/i2c-bcm-iproc.c | 758 +++++++++++++++--- 4 files changed, 662 insertions(+), 132 deletions(-)