From patchwork Sun Aug 16 18:10:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Eastwood X-Patchwork-Id: 7023681 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 7DB099F372 for ; Mon, 17 Aug 2015 07:15:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B894020614 for ; Mon, 17 Aug 2015 07:15:29 +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 E77D7205FD for ; Mon, 17 Aug 2015 07:15:28 +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 1ZREc6-0005VD-Uu; Mon, 17 Aug 2015 07:13:46 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZREbu-0003j1-8h for linux-arm-kernel@bombadil.infradead.org; Mon, 17 Aug 2015 07:13:34 +0000 Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZR2Og-00070T-5w for linux-arm-kernel@lists.infradead.org; Sun, 16 Aug 2015 18:11:07 +0000 Received: by lalv9 with SMTP id v9so67204928lal.0 for ; Sun, 16 Aug 2015 11:10:38 -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=m4yRIzJHkTpzejA+uhz64itc4QTtPh6RX3x5jw2OUr70yxf08sfQWSBoKrZV/WWRXW DiGuhhBIWbvzQWGSfct2rMsdaGMct1FFf/m6S2Q0g8zimIXlcQUAhej/Eib/1bY3yZSC tGVRkfgl6nqlZHmf4mRMdvXQNEgJxM8mm+P9X1xg51VLdiz5GfLsiTWOYNDgTC2zbxaU P61S90GM5AYIQYpzXLgbMqz7hyFWhPzE27uv8v2qdysW6STY+DhsAcJabxFTz2en79rc FwR1B0bmiRD21dpJVshMoU5tGoKoHR8sWu9XYSGcNswMUwvkbn6Mj3e0lNqj1Cb7nbZ1 hegQ== X-Received: by 10.152.205.43 with SMTP id ld11mr41235466lac.61.1439748638560; Sun, 16 Aug 2015 11:10:38 -0700 (PDT) Received: from localhost.localdomain (141.89-11-213.nextgentel.com. [89.11.213.141]) by smtp.gmail.com with ESMTPSA id lb5sm2170913lbc.45.2015.08.16.11.10.37 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 16 Aug 2015 11:10:37 -0700 (PDT) From: Joachim Eastwood To: wsa@the-dreams.de Subject: [PATCH v2 2/2] doc: dt: add documentation for nxp,lpc1788-i2c Date: Sun, 16 Aug 2015 20:10:17 +0200 Message-Id: <1439748617-7683-3-git-send-email-manabian@gmail.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1439748617-7683-1-git-send-email-manabian@gmail.com> References: <1439748617-7683-1-git-send-email-manabian@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150816_191106_294034_6787B085 X-CRM114-Status: GOOD ( 13.87 ) 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=-4.7 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=unavailable 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>; + }; +}; +