Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2743588imm; Sun, 29 Jul 2018 02:18:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfFApA9wNnauKWXR8Nlfb67kZX749nrjydx9/9sjCtblMlyv7PodZWEplK2bXd18HJjs2JC X-Received: by 2002:a63:a619:: with SMTP id t25-v6mr12011866pge.288.1532855919063; Sun, 29 Jul 2018 02:18:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532855919; cv=none; d=google.com; s=arc-20160816; b=jhMagRzfYHC3DPzEF3BYXQGTIJqBmT8VRQjmSQLjeRNGfDJCgRq7ZRLaly4COtSL+x /MA284kvh5F+bkrHkN/GI9oEijImQpQVd3k9ssVpm8n8KDQBIw9upU1FJ5eVvlb5ABC2 hXZnDlQD1H2IDzEHnOI2e4/pNDBr2rB8fIMJMnEpbXXCUDYEmvu/BcVtyll6aLJv/Sy5 u8MVOASqzIcqX/gL+Dd9ERbsh2XDeoLuDY/ATXl+iUQC90KNBB/XEoTgkjUhPIKu9BBB MxO5PqHx0URgglKWux30d/euNi0lsioSOPtF4/yXR4NwcppW77jxui68iutEBbR//g+q sJgQ== 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=Mip0ni28OBJ/nUI8KXTHt3UGB6uef3bRvtzOjrnd0BA=; b=uk1MnCQzmr31Z30z1nlXzA2XjlWQ8Sx0mHM9eMZALKPQvNVhOAHcJV5EoUptPolPEB 4o3f1TbxrubV35SN1O4wKQj+er9qLZoD+kd0ewzQya4kJBQKflB1vu7GyqYamZo0a2pJ A+biX2qTlhCMy/WfIsojYMglSIahdDzVIuh5iTGSdL6zZnGhAgR68wmHsLqTCT+bER1J d34li9Lu2jT0q7CpW514b5JldUOf3BFxMJeIX5yltTsG0WVAuScsWACQ2bbnYud03fiE CCpKn7BV3+0zm0A3YQlGJCZSJoxkouTd8EsBdiyrkjxqaYcsXwokdTN3X0VtfsaPkhvZ Lzdg== 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 31-v6si7883736pld.84.2018.07.29.02.18.24; Sun, 29 Jul 2018 02:18:39 -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 S1726319AbeG2Kqq (ORCPT + 99 others); Sun, 29 Jul 2018 06:46:46 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:51499 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726170AbeG2Kqp (ORCPT ); Sun, 29 Jul 2018 06:46:45 -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 w6T8jC9q010351; Sun, 29 Jul 2018 11:45:12 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 20088) id 629666312A; Sun, 29 Jul 2018 12:15:11 +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 v1 1/2] dt-binding: i2c: npcm7xx: add binding for i2c Date: Sun, 29 Jul 2018 12:14:48 +0300 Message-Id: <20180729091449.385951-2-tali.perry1@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180729091449.385951-1-tali.perry1@gmail.com> References: <20180729091449.385951-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. Signed-off-by: Tali Perry --- .../devicetree/bindings/i2c/i2c-npcm7xx.txt | 27 ++++++++++++++++++++++ MAINTAINERS | 9 ++++++++ 2 files changed, 36 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..a28edc9daabb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1735,6 +1735,15 @@ F: drivers/*/*npcm* F: Documentation/devicetree/bindings/*/*npcm* F: Documentation/devicetree/bindings/*/*/*npcm* +ARM/NUVOTON I2C DRIVER +M: Tali Perry +M: Avi Fishman +L: linux-i2c@vger.kernel.org +L: openbmc@lists.ozlabs.org (moderated for non-subscribers) +S: Supported +F: drivers/i2c/busses/i2c-npcm7xx.c +F: Documentation/devicetree/bindings/i2c/i2c-npcm7xx.txt + ARM/NUVOTON W90X900 ARM ARCHITECTURE M: Wan ZongShun L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) -- 2.14.1