Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4559121imm; Tue, 7 Aug 2018 03:43:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdEuaezKbshGFwy7XD4faG1dRhRcPfSrRZepwcF5xlO6Y4h0nIRMEUgo4JxP2gXXKGfVVIU X-Received: by 2002:a63:e516:: with SMTP id r22-v6mr17855622pgh.170.1533638629538; Tue, 07 Aug 2018 03:43:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533638629; cv=none; d=google.com; s=arc-20160816; b=pW+QpU3dQpytkAlbrxIohHHjtwvfaf754Hpb4LFYJEpEx9nyEoFzsF/rkgGEK9bj+K +C5oEJxwwl/GBTzS9bbGIQZ1VJ6sHD0TYC/tO8igQwwas1lH+FIlGUD6psugIXZDWWaG d87V2dVXCoxPHKA4ZB9Yfw+o5Ztv4aVsAysqI0xDA0bKfobfTc40alZANSE0Wizf7y1N YBpbZr7bQF5RhrylRp/xOM7twQ4HMQko5Yj9q9lR9r0Goxv4unfTa+RmKU9dsN4XFUQ3 80FnSmpV1Y7iHj4l3akTm+mp3TnIpRgEj6VhAsxRAYbt+dW0B/C6uFIPfIi5NlE6W1rr Xv+A== 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=sa78wPKu8vj2KPcHn5vSI1XhyYWuV+GQPlL041rWq2G5DW3n0MpIXgijYootBWh3oe qACNY7Ruo/X/t8szdCNiQ8Q2Jf/0Z8RwQdIwV77fsT3x3z3Khs1OdcfuTTUkLaK4GBaa Fh6vAJMGNpKNrUs1Z7Mrbk1mvrkDrwbv8BsGBwb/sWAAnPzmai6M++qrzKCM8tjxnQep crZriofO3Ge480MFOr2iTyAH5Jz3WwrCWRSEGwjlTRGABrymP8SaaHzbrGS5Cf9sG9B1 bQmp3Rz594qGDSvi+THmK7T+k+tUQqrSho0qMpkS++1slawzg8I04ITisHCoAtZGrIgV Tohg== 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 x185-v6si1150335pfb.306.2018.08.07.03.43.34; Tue, 07 Aug 2018 03:43:49 -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 S1727693AbeHGMxu (ORCPT + 99 others); Tue, 7 Aug 2018 08:53:50 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:51970 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727103AbeHGMxu (ORCPT ); Tue, 7 Aug 2018 08:53:50 -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 w77A8npW002105; Tue, 7 Aug 2018 13:08:49 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 20088) id 8A35A62EDE; Tue, 7 Aug 2018 13:38:48 +0300 (IDT) From: Tali Perry To: sboyd@kernel.org, brendanhiggins@google.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, weiyongjunl@huawei.com, avifishman70@gmail.com, tmaimon77@gmail.com, raltherr@google.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org, Tali Perry Subject: [PATCH v2 1/2] dt-binding: i2c: npcm7xx: add binding for i2c controller Date: Tue, 7 Aug 2018 13:38:13 +0300 Message-Id: <20180807103814.29586-2-tali.perry1@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180807103814.29586-1-tali.perry1@gmail.com> References: <20180807103814.29586-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