Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3472889imm; Mon, 13 Aug 2018 12:18:33 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzT4QzbGlM+Vt16ShRm7wW7gbviDwILTEziqrgLi1IZZDD5vCRj4AkfcDLWIRgNoW0zA2wY X-Received: by 2002:a63:1b17:: with SMTP id b23-v6mr18323164pgb.275.1534187913036; Mon, 13 Aug 2018 12:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534187913; cv=none; d=google.com; s=arc-20160816; b=s7fub9wTNMLAcwfPR9MzzULcf0ZhfpuZc6iPE6sh1gCDLWejJjx8qYdQcDn/SZyOwJ Rt+CWdzl6mkVUVbhBNeK0GWTWbJVqlCo7qKTOohbfiXHRid1eSV4AbBLjVguoWVcpdeQ xCCuFYFBnGL/0Khmq1M/eWT9oyu3Rgi0X7Pwvf0Z6YAxW6Xbh8jdFSdVjdS5ITU2e/Bq LbXDDjgZxVd0uEA0cPuJ+tnr/+s9BJXNOyjEgdKaFZGeq+GI44uRcX7tC67Yfm4ohr8W F1bxRC19UrxVv6wH9brLQBoKP4nm4K1TeheDZ1KLcmCLOFaMJ8/S8WGhBlBmJn12gyrx fESg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=kXFZPFsQxi2b90JOi4z4hcsFfMnZ/H6g/J1Zgk0O934=; b=x6yP8cMUGk6bxIQGHKNMbZM9ObI3EPIZVXYggj61t0/t6QvMK1UUEGed+kRyDl0W3o 7dfOhW2i+GtM1ARC8U1J/QbLQU7fsWhZdcueN30UhufokV7qdkwp1GIwzs/ROrpp8Rpq Q7w1RILfxrUpdBK6atwAIUB9CglxlKTqnRkF6jiSF3+dFgqh0vw9hp7zdvmqC0FWFnmc n8/nOLj08pqn8DyDmfCOxKz2kcL1M+Z7xPADeJNSt84u06xNX/9nxXa/h2sw/geovtZb W8jTta91gTRc0qjjtl2/DA9qvjVGlGrqb7nhGS10qZHi+2Rsf4MuJnPAMbtMfs80MW/Z 1qAQ== 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u26-v6si15276779pge.590.2018.08.13.12.18.18; Mon, 13 Aug 2018 12:18:32 -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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730366AbeHMVmB (ORCPT + 99 others); Mon, 13 Aug 2018 17:42:01 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:35144 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729241AbeHMVmB (ORCPT ); Mon, 13 Aug 2018 17:42:01 -0400 Received: by mail-it0-f65.google.com with SMTP id 139-v6so15716014itf.0; Mon, 13 Aug 2018 11:58:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kXFZPFsQxi2b90JOi4z4hcsFfMnZ/H6g/J1Zgk0O934=; b=GmQzIMvJ1txqT/Y7j1E2d+16EDrj21BqT7JxoVN2/pS6nXmhodbJJav1yxYWQJ6A2i 8Jzs2hg+06yIYr3CjgJN5P/Hw2oQWpJnly3affBZu9CDWox4soq7z0d5q+y5bk/xcPJv lLX6A3XUkgwl6ijv54mgN95R1iaAnNMyNYBmabEKMyuR1TtNxm25EqOTAM2mkSQD4EYd IRTWPd+3KqLsBLl5IXPDiydoB5I85nyGYGyrzlEP7k8U/yJtdE15XkNbPvX7Ge5GyiAv fW6OJFisXqivgRH4BOsZdmAL/lYQ/rqfc352YI3hdGlF6zUKPv7P3INZuWmn0ntdDcLr rIuw== X-Gm-Message-State: AOUpUlHO0SZ6w3iaLABfUm4RsrCbgGEzaIlLZ2B4Z8hijrOcKTcg0UTF YqvSZnlIG3SDIvXa7CjmGA== X-Received: by 2002:a02:b4a4:: with SMTP id k33-v6mr15644308jaj.53.1534186712110; Mon, 13 Aug 2018 11:58:32 -0700 (PDT) Received: from localhost ([24.51.61.72]) by smtp.gmail.com with ESMTPSA id w64-v6sm2164032ita.7.2018.08.13.11.58.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Aug 2018 11:58:31 -0700 (PDT) Date: Mon, 13 Aug 2018 12:58:30 -0600 From: Rob Herring To: Tali Perry Cc: avifishman70@gmail.com, tmaimon77@gmail.com, venture@google.com, yuenn@google.com, brendanhiggins@google.com, 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, linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] dt-binding: i2c: npcm7xx: add binding for i2c controller Message-ID: <20180813185830.GA18453@rob-hp-laptop> References: <20180807110709.31847-1-tali.perry1@gmail.com> <20180807110709.31847-2-tali.perry1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180807110709.31847-2-tali.perry1@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 07, 2018 at 02:07:08PM +0300, Tali Perry wrote: > 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" Is 'bus' how the datasheet calls it? If not, I'd drop the '-bus' part as it is really a controller. > +- 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 { Should be 'i2c@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 >