Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1323557ybk; Thu, 21 May 2020 04:13:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwf8nIjF70O+XQgqIITpMXYClu69N1PKD6s6qhyK1497KEmZmS7ZBcB+lNqcMCTEX0FgKss X-Received: by 2002:a17:907:4031:: with SMTP id nk1mr2899296ejb.51.1590059582024; Thu, 21 May 2020 04:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590059582; cv=none; d=google.com; s=arc-20160816; b=nFuwhB0fKja2pWyCEUgZISET7rswvN64BZMsFFT29l01g7d+NYCR870WSmZPPP1FvA O8OFcYcjT0+SQ6Gz8fh2hOKbCUMhOihaam8B3eB4HCisFOZijbf7YzZJLmzjFErXV8CP 0IJbooEqGsi9heZxycCb+qJhbET//7bnQBL90nFw+iSv6OQiGj5VHKRY42nRzYJNXQvO hDpxGb8c73EcVsVG09/BNes7YWfzTKm+J0QwCVr/0ks99vtfHczcccKTGtEHaixL9N29 PyVIK7k/XWQKgNnP6EEqtgsi3K/Hbxew6pZsB7fcrr40JGdIdoPn88heOBU572L2h53r RVCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=pdSgwKtj92d00PyuG3n6vptHHs5t3vqa7wdz2m6BHjY=; b=b4Da+RAQqm2JFCzB74TBF4kTcmghBHyls8zrz9PZgKFCYCeR7FuByUdIv88++JSEgB 8VmMD9FH+TrW5giAzj2WlB9yvGTU0y12czbTATAW1QaPisbtnKMVIejOQRLQ7DoH+zGu JKprvjA+60eZVVLHwrL22i6ArDj88wGbhKRG/T8GZIxh7qJp32r/IceikFFjtbQxMKI3 JAkEN8hzFVtxqnb6uWeBC1EdlSkmh9kDRU+BgQV5T2kYIsFFP+IE6gNyVvVZDXYT7QS9 QHZ8uyow7V8aqCx/mKG0BlTrLL1x5cW5Iuyyhm+U28zG+6Wx0hyFhk9pJOvzSkrimVyd 0hxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gl8si3195336ejb.149.2020.05.21.04.12.38; Thu, 21 May 2020 04:13:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729190AbgEULKb (ORCPT + 99 others); Thu, 21 May 2020 07:10:31 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:49307 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729173AbgEULK2 (ORCPT ); Thu, 21 May 2020 07:10:28 -0400 Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id 04LB9XhP018632; Thu, 21 May 2020 14:09:34 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 20088) id CCCD7639C0; Thu, 21 May 2020 14:09:33 +0300 (IDT) From: Tali Perry To: ofery@google.com, brendanhiggins@google.com, avifishman70@gmail.com, tmaimon77@gmail.com, kfting@nuvoton.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, robh+dt@kernel.org, wsa@the-dreams.de, andriy.shevchenko@linux.intel.com Cc: linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tali Perry , kbuild test robot Subject: [PATCH v12 0/3] i2c: npcm7xx: add NPCM i2c controller driver Date: Thu, 21 May 2020 14:09:07 +0300 Message-Id: <20200521110910.45518-1-tali.perry1@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set adds i2c controller support for the Nuvoton NPCM Baseboard Management Controller (BMC). NPCM7xx includes 16 I2C controllers. This driver operates the controller. This module also includes a slave mode. --- v12 -> v11: - Fix according to maintainer comments. - debugfs simplified (usedebugfs_create_u64). - slave read fifo split from master read fifo. v11 -> v10: - Fix according to maintainer comments. - Init clk simplified. - Comments in c99 - Split master irq function. - debugfs not mandatory. - yaml file fix. v10 -> v9: - Fix according to maintainer comments. - binding file changed to yaml format. - Shorten recovery flow. - Add support for health monitoring counters. v9 -> v8: - Fix according to maintainer comments. - Split lines of iowrite..(ioread..) to separate lines. - Use readx_poll_timeout_atomic - resolve various style issues. v8 -> v7: - Split to two commits, one for master, one for slave. - Rename smb to i2c. - Remove global vars. v7 -> v6: - Rebased on Linux 5.4-rc8 (was Linux 5.4-rc7). - Fix issue found by kbuild test robot (redundant include). - Note: left a warning related to fall through. This fall through is intentional. v6 -> v5: - Update documentation v5 -> v4: - support recovery - master-slave switch support needed for IPMB v4 -> v3: - typo on cover letter. v3 -> v2: - fix dt binding: compatible name: omit "bus" v2 -> v1: - run check patch in strict mode. - use linux crc. - define regs in constant offset without base. - remove debug prints. - no declarations for local functions. v1: initial version Signed-off-by: Tali Perry Reported-by: kbuild test robot --- Tali Perry (3): dt-bindings: i2c: npcm7xx: add NPCM I2C controller documentation i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver i2c: npcm7xx: Add support for slave mode for Nuvoton NPCM BMC I2C controller driver. .../bindings/i2c/nuvoton,npcm7xx-i2c.yaml | 62 + drivers/i2c/busses/Kconfig | 9 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-npcm7xx.c | 2426 +++++++++++++++++ 4 files changed, 2498 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/nuvoton,npcm7xx-i2c.yaml create mode 100644 drivers/i2c/busses/i2c-npcm7xx.c base-commit: b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce -- 2.22.0