Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1661675ybf; Sun, 1 Mar 2020 15:09:03 -0800 (PST) X-Google-Smtp-Source: APXvYqxXKVOxpN9oGWzUKObkFnNokGxz5N1QOiDZVpQ2OssiT8p5Hgk07uGoIbkCV8F0jIdQkGLy X-Received: by 2002:aca:724a:: with SMTP id p71mr10145317oic.23.1583104143056; Sun, 01 Mar 2020 15:09:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583104143; cv=none; d=google.com; s=arc-20160816; b=lv54HkIobY4EVc3AqxgBdMA4JMkXRJXFRqXrKp3g6+kaamTE1ZGUW38q7IKWlbSk9s rzik99GNDpjBdzAXy+eyZ4tw7xsKn9tWixs2wUeYlztSMFkBFFbnCXcUTviQXOphOUL+ wO6XKrtvONNOJ+G6GTHkxuRdQq5GEUQ9CpzLl8bBoOcdaSBVT+GiV1ooOgbLSa8fLtja T//ZboJgdjDI8Xk+TNM3QTHV+UPBEEWbca1vqz0k9vsaHZa8Yj3yx3wN5+95qZKBvpY8 O3GymrosRO3sS6P4o+hrorkVVUkMpXfBUR4iGt2/VxIq0hqI+N3NJDtDG1hTZrCU1Fws crWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0UUXYv1hB3R0q9/yKERJGEUq4BgxKkSeobizlJXjBK8=; b=NeBBkBnRDCI5L1IDhz59qDR9sVQzsjUrJLcnuB9yav00jQdG0uVyFu2J/i3vsim0ZU P9Dzlfpl5sWxgAieAUrLak1h3yobrCUVLGTSZpwqPpSqfLJmczghQjf+ATMs8r9EMRDx QFK6bCOPHJiDhnxzgO1VMzCAwVxu76Fmwq+f+oPfAJIXwzihD6IZALqO02wxEhmlBb+R Jp4cW5V922QvdQWeuaiXrCxyfY0Z5HJSVW5PbmAGvbIAM6ONMWq3tzuvjjBaXtXZ7HYg J0mswtPzOagqHmDq69qyG9uYFEtKy/Qy8OQS2AwuR5TYxpiutmPUzPst5FzMANyOfP3j aTGg== 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 10si5214771ois.76.2020.03.01.15.08.51; Sun, 01 Mar 2020 15:09:03 -0800 (PST) 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 S1726752AbgCAXIf (ORCPT + 99 others); Sun, 1 Mar 2020 18:08:35 -0500 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:38546 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726050AbgCAXIf (ORCPT ); Sun, 1 Mar 2020 18:08:35 -0500 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 021MWbiH010912; Mon, 2 Mar 2020 00:32:37 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 20088) id AF8096032E; Mon, 2 Mar 2020 00:32:37 +0200 (IST) From: Tali Perry To: brendanhiggins@google.com, avifishman70@gmail.com, tmaimon77@gmail.com, kfting@nuvoton.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, robh+dt@kernel.org, wsa@the-dreams.de, andriy.shevchenko@linux.intel.com Cc: linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tali Perry , Rob Herring Subject: [PATCH v8 1/3] dt-bindings: i2c: npcm7xx: add NPCM I2C controller Date: Mon, 2 Mar 2020 00:31:59 +0200 Message-Id: <20200301223201.185450-2-tali.perry1@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200301223201.185450-1-tali.perry1@gmail.com> References: <20200301223201.185450-1-tali.perry1@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Added device tree binding documentation for Nuvoton BMC NPCM I2C controller. 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 : for example <&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.22.0