Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp681018ybc; Tue, 19 Nov 2019 07:35:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzwrD/I/mJCbsL09Dpvjz54CxEtRcT0Wllt136iGIEK7QN7XbW4rUicIJBsF8zIUcUCjnHg X-Received: by 2002:a17:906:2786:: with SMTP id j6mr35323253ejc.206.1574177753297; Tue, 19 Nov 2019 07:35:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574177753; cv=none; d=google.com; s=arc-20160816; b=UDS7sQjnbi7J7RqLQFf6LPeCR2E3Gx5T7FqORfl0CiPedvwmiySCF4ZBxZ/OAG34GB RxtKBIXy8NpyJFJEHKkeD274pdLAhymEZUoeUppuYxIhVF1uQyJl0/AN0Fwat3r+00ch GyHoqIpFM5Rse7S3PXWul7puLOAER5OKJ1SA+yKzv29WNRzhPvSeaDLpCMjphAuOWwMk 99ddM487zh11iTm44sYF/oWroq1JTPeUHZYLcI/K2QR/E9lrFPNRrLn3iX5Q7E95kA/s h3LSdQWq0OeXLvXEfUuNMkPAKC+6Mc6c8gd/YDZx6EwRI3nWtES/3Ewz6rKB9xFxSWci w30g== 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=s6Dec48EqqG6wTXDy7j8ryphBLK2LmnwCX5U+wWZz1E=; b=artM6Sq1JnXR7/nNDFd+TH+bpwTzMg60NcF2pEnfLUGcB+n5tXyL9oOOh28kteyxh2 XgmpI4g3AvEzphU03vTKrn0q2MWpQTUsMcKorPj3Yfbw3CW2BnBqt/f98Df/StWIoRQl 5JV5cMeVcVgfacdld2EaPc+YuzVQVb0WLY6vCAnkdraG2BzVcIqTHkDZvg4NpMiTojs7 AaxW3C/uPa8N5if7vLEtX1ZsyMl5fDUVpA/OzSPla23GkmJU7UmgDOCNBRNxKuNM1a5r DXB1nUn2eft7707jnMlVVCTlhnaW8SjQuDorwSh/DUjYB2jc+AIsDstLjERogacJqpMD Rtww== 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 l20si14566395ejx.389.2019.11.19.07.35.29; Tue, 19 Nov 2019 07:35:53 -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 S1728212AbfKSPbr (ORCPT + 99 others); Tue, 19 Nov 2019 10:31:47 -0500 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:45091 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727505AbfKSPbr (ORCPT ); Tue, 19 Nov 2019 10:31:47 -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 xAJEoDNF005891; Tue, 19 Nov 2019 16:50:13 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 20088) id BEC3160329; Tue, 19 Nov 2019 16:50:13 +0200 (IST) From: Tali Perry To: avifishman70@gmail.com, tmaimon77@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, robh+dt@kernel.org, mark.rutland@arm.com, tali.perry1@gmail.com, robh@kernel.org, wsa@the-dreams.de, jdelvare@suse.de, jarkko.nikula@linux.intel.com, geert@linux-m68k.org, arnd@arndb.de, max@enpas.org, krzysztof.adamski@nokia.com, syniurge@gmail.com, puwen@hygon.cn, jfi@ssv-embedded.de, sr@denx.de, mchehab+samsung@kernel.org, kdasu.kdev@gmail.com, enric.balletbo@collabora.com, baolin.wang@linaro.org, ludovic.desroches@microchip.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 Subject: [PATCH v5 1/2] dt-bindings: i2c: npcm7xx: * add binding for i2c controller Date: Tue, 19 Nov 2019 16:49:29 +0200 Message-Id: <20191119144930.227241-2-tali.perry1@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20191119144930.227241-1-tali.perry1@gmail.com> References: <20191119144930.227241-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 dt-bindings: i2c: npcm7xx: * add binding for 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 : 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.22.0