Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4643057imm; Tue, 7 Aug 2018 05:08:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfgtlIb9EHj+iNbI8ISVK3gSgteE+bSlD/lnDWsSo89I7C7YlaHGGjRVAEDqf0NJxnS+zHl X-Received: by 2002:a17:902:bd07:: with SMTP id p7-v6mr17955761pls.32.1533643707289; Tue, 07 Aug 2018 05:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533643707; cv=none; d=google.com; s=arc-20160816; b=bBldvAqse3t+w0cWY7fEcL5ppoJqbhju4FMVPkqdOdeFIsMVweZcKJJQYkGFXM38vg 4NOwV0cGMJdomzYS4n4MWmihLli2JmAJdfakcxkW74ynsO3WjvZ4reHU8srQ5zmKjfPm el0ZdxBpLX8+mXxvqstbWrN8vKN9utTuG/V+qg4PQw12xlcIMaxHppPcnKT31l8cmvPI 6IQV+5HZnzPd/srIX81t9BsuLVDkb6Jc4pDSZLtfAvQ4cTGKJoKLlRqFvZ6OwI8+j4x7 /NtSYqvodBQfq6eNyg3vS3vCUKzo6NhouTyqw44D4mOiiXEtpy/OCxYBo+Bx4lGgy0WQ f9oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Yj7150+IVWYxdVO0QrRazo1tAeypRhyKr321RCtQGGw=; b=dWNzmsdCioC66ClpkMDVNZSGOiV3XIVX4QJRh9xnN/5waso8jv6lCqU+nafRGe3yGc yeDpCZcPl3XsXlVzHOiCAsqJpztWRGftM4DLgmvl0BcBae5oK6ifRNQzWFJWxugWeGVq RJa4FW7p7Rcz6/CpJRr2uMV+KqI0RGiZ9/fF4jP6dpQ3+V22gl54Pbe9fDyDym1cHPFk y1wt1OVOja1bRks2+s9UbTp6b3e65SyFleZTfOFeABn3WbnvjvjCrFch6tUbPYAEs+ca akZSnggaL+7jZSjI+GErkHo6iYTPCu8ye+1RL2diH+5n6PKpTG7z8OFXJH8YkzYDYMAF zRYg== 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 v25-v6si1149161pgk.555.2018.08.07.05.08.09; Tue, 07 Aug 2018 05:08:27 -0700 (PDT) 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 S2388823AbeHGNWm (ORCPT + 99 others); Tue, 7 Aug 2018 09:22:42 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:52037 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727388AbeHGNWm (ORCPT ); Tue, 7 Aug 2018 09:22:42 -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 w77AbRe5002678; Tue, 7 Aug 2018 13:37:27 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 20088) id D0817630C7; Tue, 7 Aug 2018 14:07:26 +0300 (IDT) From: Tali Perry To: tali.perry1@gmail.com, avifishman70@gmail.com, tmaimon77@gmail.com, venture@google.com, yuenn@google.com, brendanhiggins@google.com, robh+dt@kernel.org, mark.rutland@arm.com, davem@davemloft.net, mchehab+samsung@kernel.org, gregkh@linuxfoundation.org, akpm@linux-foundation.org, arnd@arndb.de, wsa@the-dreams.de, andriy.shevchenko@linux.intel.com, pierre-yves.mordret@st.com, cedric.madianga@gmail.com, baolin.wang@spreadtrum.com, jarkko.nikula@linux.intel.com, hdegoede@redhat.com, rmk+kernel@armlinux.org.uk, ard.biesheuvel@linaro.org, thor.thayer@linux.intel.com, geert@linux-m68k.org, heikki.krogerus@linux.intel.com, tglx@linutronix.de Cc: linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-binding: i2c: npcm7xx: add binding for i2c controller Date: Tue, 7 Aug 2018 14:07:08 +0300 Message-Id: <20180807110709.31847-2-tali.perry1@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180807110709.31847-1-tali.perry1@gmail.com> References: <20180807110709.31847-1-tali.perry1@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nuvoton NPCM7XX I2C Controller NPCM7xx includes 16 I2C contollers. THis driver operates the controller. This module also includes a slave mode, which will be submitted later on. Any feedback would be appreciated. v2 -> v1: - run check patch in strict mode. - use linux crc. - define regs in constant offset without base. - remove debug prints. - no declerations for local functions. v1: initial version Signed-off-by: Tali Perry --- .../devicetree/bindings/i2c/i2c-npcm7xx.txt | 27 ++++++++++++++++++++++ MAINTAINERS | 8 +++++++ 2 files changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-npcm7xx.txt diff --git a/Documentation/devicetree/bindings/i2c/i2c-npcm7xx.txt b/Documentation/devicetree/bindings/i2c/i2c-npcm7xx.txt new file mode 100644 index 000000000000..e2ee45d7a41e --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-npcm7xx.txt @@ -0,0 +1,27 @@ +Nuvoton NPCM7XX I2C bus + +The NPCM750x includes sixteen I2C busses + +Required properties: +- compatible : must be "nuvoton,npcm750-i2c-bus" +- reg : Offset and length of the register set for the device. +- interrupts : Contain the I2C interrupt with flags for falling edge. +- clocks : phandle of I2C reference clock. + +Optional: +- bus-frequency : Contain the I2C bus frequency, + the default I2C bus frequency is 100000. +- pinctrl-0 : must be <&smbX_pins>, X is module number + (on NPCM7XX it's 0 to 15) +- pinctrl-names : should be set to "default" +Example: + + i2c0: i2c-bus@80000 { + compatible = "nuvoton,npcm750-i2c-bus"; + reg = <0x80000 0x1000>; + clocks = <&clk NPCM7XX_CLK_APB2>; + bus-frequency = <100000>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&smb0_pins>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 192d7f73fd01..13bac916d21d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1244,6 +1244,14 @@ F: drivers/i2c/busses/i2c-aspeed.c F: Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2400-i2c-ic.txt F: Documentation/devicetree/bindings/i2c/i2c-aspeed.txt +ARM/NUVOTON I2C DRIVER +M: Tali Perry +L: linux-i2c@vger.kernel.org +L: openbmc@lists.ozlabs.org (moderated for non-subscribers) +S: Maintained +F: drivers/i2c/busses/i2c-npcm7xx.c +F: Documentation/devicetree/bindings/i2c/i2c-npcm7xx.txt + ARM/ASPEED MACHINE SUPPORT M: Joel Stanley R: Andrew Jeffery -- 2.14.1