Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1543789ybc; Tue, 19 Nov 2019 23:39:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxbJNta6E7NIfpPtODoV04BlVbbQiYRknG1tOWMEXw9wFbkWyfq7hdBCinfLcpzOZOsC9tW X-Received: by 2002:a17:906:edd2:: with SMTP id sb18mr3502383ejb.112.1574235549147; Tue, 19 Nov 2019 23:39:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574235549; cv=none; d=google.com; s=arc-20160816; b=jJCA2PXV0CRTNyLnXPN6SmK8tLxq7KXvdmeBdXhhoen0o0la3QkqBj5//yvoQTWBs9 PUMJgbrjExldN7S2fR253ixUI25JWNCRUpuxcxXCIos+FoBmgYm7rJH14qc2m+yMyPsF Np2ylhQUynHCtAIeWhr6jYYXG+tLtby2MhH+nIEBoIN2OKlOsxNwuz5HM39V0elde+kr h5lwJrxS36cu32thNagimJ1l6i1fF4F5VnJiZoBXT5wbfiuFa6aw68mOKGaEHlWM9vL4 AMqXmYkeVp5C5hrln45tpMcMTHj/3OtdtNMD2lbHK+IzFTmrMymIS53C1ClrqUX4nS0c 1g1Q== 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=K1SGKllcyejsvcZ3JIaasjYx835z1j7BoebOqobtipA=; b=QHzzaNKDDASwSuXhdToT7wlaFvTwnbH2QGvlN/iVQXoFDeRCZvepJ5afGPg70LnFRz hqIdF4xNQKPo5SWbfGSwD0iqarx4/ewIyWjQ+i/JlyvHhI2HejSs7RlLUjuKiciwdMdf G2ZcBH/9iOcNr8W8mTW1qMhB6va0VRlkZQ2robMc8oxMT9f+GT7/B2XweKYuxf4KhW90 sQp5za3JbWFrLkzy9ouZsxsCi1dHYQqJxG5jqthh4nWTdfJbF7ErTnk8l1x/NJpR0TDM ZIB14qWAD3zyMH/X7gq1gdgxKPPJnotKXghJuVc+IEGA2SoIGCGUKNA7TigohbTbXCl0 QFug== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q40si18917340eda.218.2019.11.19.23.38.41; Tue, 19 Nov 2019 23:39:09 -0800 (PST) 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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727837AbfKTHhj (ORCPT + 99 others); Wed, 20 Nov 2019 02:37:39 -0500 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:45152 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726647AbfKTHhj (ORCPT ); Wed, 20 Nov 2019 02:37:39 -0500 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 xAK7apQb024885; Wed, 20 Nov 2019 09:36:51 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 20088) id 58EE060329; Wed, 20 Nov 2019 09:36:51 +0200 (IST) From: Tali Perry To: robh+dt@kernel.org, mark.rutland@arm.com, yuenn@google.com, venture@google.com, benjaminfair@google.com, avifishman70@gmail.com, joel@jms.id.au, tmaimon77@gmail.com, wsa@the-dreams.de, syniurge@gmail.com Cc: linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tali Perry , Rob Herring Subject: [PATCH v6 0/2] i2c: npcm: add NPCM i2c controller driver Date: Wed, 20 Nov 2019 09:36:20 +0200 Message-Id: <20191120073622.37938-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. --- 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 Reviewed-by: Rob Herring --- Tali Perry (2): Added device tree binding documentation for Nuvoton BMC NPCM I2C controller. Add Nuvoton NPCM BMC I2C controller driver. .../devicetree/bindings/i2c/i2c-npcm7xx.txt | 29 + drivers/i2c/busses/Kconfig | 11 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-npcm7xx.c | 2486 +++++++++++++++++ 4 files changed, 2527 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-npcm7xx.txt create mode 100644 drivers/i2c/busses/i2c-npcm7xx.c -- 2.22.0