From patchwork Sun Jul 12 22:47:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Eastwood X-Patchwork-Id: 6773381 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9F9D19F2F0 for ; Sun, 12 Jul 2015 22:51:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BAE83205F9 for ; Sun, 12 Jul 2015 22:51:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DABA6205F3 for ; Sun, 12 Jul 2015 22:51:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZEQ3S-0002iQ-G7; Sun, 12 Jul 2015 22:49:02 +0000 Received: from mail-la0-x231.google.com ([2a00:1450:4010:c03::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZEQ3L-0002fr-3d for linux-arm-kernel@lists.infradead.org; Sun, 12 Jul 2015 22:48:55 +0000 Received: by lagx9 with SMTP id x9so290891088lag.1 for ; Sun, 12 Jul 2015 15:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=M9Ugsd9JdS2ZN/f9uaBkXxWltNdtZCoo0IuK4Ez4eEs=; b=yhwiKGBJNQo31OHhqFfTlSX4ELghf7Aa6v1+bW8hCyMzeybYDDxxSdlCfeJLXIdN2G uHk7ugOTS09kURllrnrH6YAcqAtJ9cSnAhEU0CWQhF7y+ZVO4wT+7GT71FSkwDqP1Khq LfPm0YDSEW1UCaa6mqbFsogNZXqlyOZ+kKd9aS9JbzKkbVWZuU0/Kmyf1abY7OkodjUR ecWNMk8ulfX+aTPjf5aUV4j2UQFBhBtc5SVFDSwfQcZYZAi7JV8oEQfr/pgsIaEnZUOZ SOyem3RWVSTv9TS053/loWDFUgXYJZmxCEdUKQMCqSDCPVufSRwvdZjy3USjzxArjICu ddtQ== X-Received: by 10.112.138.199 with SMTP id qs7mr29530208lbb.21.1436741313163; Sun, 12 Jul 2015 15:48:33 -0700 (PDT) Received: from localhost.localdomain (141.89-11-213.nextgentel.com. [89.11.213.141]) by smtp.gmail.com with ESMTPSA id ba6sm4208321lab.26.2015.07.12.15.48.32 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 12 Jul 2015 15:48:32 -0700 (PDT) From: Joachim Eastwood To: wsa@the-dreams.de Subject: [PATCH 2/2] doc: dt: add documentation for i2c-lpc2k Date: Mon, 13 Jul 2015 00:47:22 +0200 Message-Id: <1436741242-13489-3-git-send-email-manabian@gmail.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1436741242-13489-1-git-send-email-manabian@gmail.com> References: <1436741242-13489-1-git-send-email-manabian@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150712_154855_328572_FC7F56F4 X-CRM114-Status: GOOD ( 12.57 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Joachim Eastwood , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add binding documentation for the nxp,lpc1788-i2c controller which also can be found on LPC2xxx, LPC178x/7x and LPC18xx/43xx devices. Signed-off-by: Joachim Eastwood --- .../devicetree/bindings/i2c/i2c-lpc2k.txt | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-lpc2k.txt diff --git a/Documentation/devicetree/bindings/i2c/i2c-lpc2k.txt b/Documentation/devicetree/bindings/i2c/i2c-lpc2k.txt new file mode 100644 index 000000000000..4101aa621ad4 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-lpc2k.txt @@ -0,0 +1,33 @@ +NXP I2C controller for LPC2xxx/178x/18xx/43xx + +Required properties: + - compatible: must be "nxp,lpc1788-i2c" + - reg: physical address and length of the device registers + - interrupts: a single interrupt specifier + - clocks: clock for the device + - #address-cells: should be <1> + - #size-cells: should be <0> + +Optional properties: +- clock-frequency: the desired I2C bus clock frequency in Hz; in + absence of this property the default value is used (100 kHz). + +Example: +i2c0: i2c@400a1000 { + compatible = "nxp,lpc1788-i2c"; + reg = <0x400a1000 0x1000>; + interrupts = <18>; + clocks = <&ccu1 CLK_APB1_I2C0>; + #address-cells = <1>; + #size-cells = <0>; +}; + +&i2c0 { + clock-frequency = <400000>; + + lm75@48 { + compatible = "nxp,lm75"; + reg = <0x48>; + }; +}; +