Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3154720imm; Sun, 19 Aug 2018 13:35:06 -0700 (PDT) X-Google-Smtp-Source: AA+uWPylqr15Y0wy35qsHFBB8lpFxG0Fe+I4lgkPLW0mcAT9OGPVgKiFCN+zUS3pXv9/DArucupw X-Received: by 2002:a17:902:8a4:: with SMTP id 33-v6mr43037662pll.82.1534710906054; Sun, 19 Aug 2018 13:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534710906; cv=none; d=google.com; s=arc-20160816; b=YDLmLvgnzxu7koG2BVlQhbeS3hCVRgiXDKnnEDvmygqvPiVWvE5D87Uvnnj9iOF46q A1+PwtYEDRx1/Yr19IgddpH0aTS+k/QSmIz84CV6r9/RSiQ2BGgWAZjPtZpfhlO+JIDP vtb5OJEIOYek2cGVGizjyNUxuev5KQJLq5YY0UL6y3J4hY+jn05IS80UoXyVdXEpOrGj HiI4Lcu9TGdy4wjKt/9nR7pOMoH4+BgTXclLU4X/CMuAEYJEQfYCmsxjYozalW0zgqdX aVqdNFgZSzR7PJvPxaqZJuknp4Xy2hthuAKJj37rBkSZIak/4wY/YAKIfyM5U9DjDgrd 8xjA== 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=1Te92YlYG7epV+b6U8alRu6JwHve+Hc/rfowcNwgyfU=; b=sB59g2mONK4R1ucww7D55HGtm/76cXbBAWcoGKA8XJRz2JZtLiuAqQcmtqnSZXUwwP j/hrYIHb+wLX/4oWxfZGBiBFT3H3ttYaH4aYo83eUvaoU/LMG2iRKaBjJgH8bhEmxjuu VnNqBLLOa/pBPfGV3dtgXRtY/antN2bvAR+vlQeh6Z3zfpAFjh7XmpZAB5xQ+5FG5oa7 fPYt8mlvKaDC6GD8Tl94D30iBUmUa5xVv7E51tWYOSdw/D5yAe0W/ML1+CAVr8gKu5Xi 2FqVnUoGdr7jhKmlFmhD42RLlGeqtdk7xHD2AJxk1SrWNkbQC9KFZzfB4Wvsu/8YKovN Eukg== 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 s12-v6si8077729plp.464.2018.08.19.13.34.51; Sun, 19 Aug 2018 13:35:06 -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 S1726513AbeHSXp5 (ORCPT + 99 others); Sun, 19 Aug 2018 19:45:57 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:52645 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726349AbeHSXp5 (ORCPT ); Sun, 19 Aug 2018 19:45:57 -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 w7JK1Hdh000571; Sun, 19 Aug 2018 23:01:17 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 20088) id 374526317D; Sun, 19 Aug 2018 23:31:17 +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 v4 1/2] dt-bindings: i2c: npcm7xx: add binding for i2c controller Date: Sun, 19 Aug 2018 23:30:43 +0300 Message-Id: <20180819203044.73286-2-tali.perry1@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180819203044.73286-1-tali.perry1@gmail.com> References: <20180819203044.73286-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 controllers. This driver operates the controller. This module also includes a slave mode, which will be submitted later on. --- 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 --- .../devicetree/bindings/i2c/i2c-npcm7xx.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 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..0ecae950748b --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-npcm7xx.txt @@ -0,0 +1,29 @@ +Nuvoton NPCM7XX I2C bus + +The NPCM750x includes sixteen I2C bus controllers. All Controllers support +both master and slave mode. Each controller has two 16 byte HW FIFO for TX and +RX. + +Required properties: +- compatible : must be "nuvoton,npcm750-i2c" +- 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@80000 { + compatible = "nuvoton,npcm750-i2c"; + reg = <0x80000 0x1000>; + clocks = <&clk NPCM7XX_CLK_APB2>; + bus-frequency = <100000>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&smb0_pins>; + }; -- 2.14.1