{"id":813842,"url":"http://patchwork.ozlabs.org/api/patches/813842/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-i2c/patch/1505399319-14782-2-git-send-email-pierre-yves.mordret@st.com/","project":{"id":35,"url":"http://patchwork.ozlabs.org/api/projects/35/?format=json","name":"Linux I2C development","link_name":"linux-i2c","list_id":"linux-i2c.vger.kernel.org","list_email":"linux-i2c@vger.kernel.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1505399319-14782-2-git-send-email-pierre-yves.mordret@st.com>","list_archive_url":null,"date":"2017-09-14T14:28:35","name":"[v4,1/5] dt-bindings: i2c-stm32: Document the STM32F7 I2C bindings","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"87cb46eec4a59af078189b32735be034b947861b","submitter":{"id":71499,"url":"http://patchwork.ozlabs.org/api/people/71499/?format=json","name":"Pierre Yves MORDRET","email":"pierre-yves.mordret@st.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-i2c/patch/1505399319-14782-2-git-send-email-pierre-yves.mordret@st.com/mbox/","series":[{"id":3110,"url":"http://patchwork.ozlabs.org/api/series/3110/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-i2c/list/?series=3110","date":"2017-09-14T14:28:34","name":"Add support for the STM32F7 I2C","version":4,"mbox":"http://patchwork.ozlabs.org/series/3110/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/813842/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/813842/checks/","tags":{},"related":[],"headers":{"Return-Path":"<linux-i2c-owner@vger.kernel.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-i2c-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xtLZn2bbfz9sPt\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 15 Sep 2017 00:32:01 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751434AbdINObR (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tThu, 14 Sep 2017 10:31:17 -0400","from mx08-00178001.pphosted.com ([91.207.212.93]:47550 \"EHLO\n\tmx07-00178001.pphosted.com\" rhost-flags-OK-OK-OK-FAIL)\n\tby vger.kernel.org with ESMTP id S1751497AbdINO3h (ORCPT\n\t<rfc822; linux-i2c@vger.kernel.org>); Thu, 14 Sep 2017 10:29:37 -0400","from pps.filterd (m0046661.ppops.net [127.0.0.1])\n\tby mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv8EEStZm010727; Thu, 14 Sep 2017 16:28:55 +0200","from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35])\n\tby mx08-00178001.pphosted.com with ESMTP id 2cytk18fd9-1\n\t(version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT);\n\tThu, 14 Sep 2017 16:28:55 +0200","from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9])\n\tby beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8DE5851;\n\tThu, 14 Sep 2017 14:28:52 +0000 (GMT)","from Webmail-eu.st.com (sfhdag5node2.st.com [10.75.127.14])\n\tby zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4D1D826A8;\n\tThu, 14 Sep 2017 14:28:52 +0000 (GMT)","from localhost (10.75.127.47) by SFHDAG5NODE2.st.com (10.75.127.14)\n\twith Microsoft SMTP Server (TLS) id 15.0.1178.4;\n\tThu, 14 Sep 2017 16:28:51 +0200"],"From":"Pierre-Yves MORDRET <pierre-yves.mordret@st.com>","To":"Wolfram Sang <wsa@the-dreams.de>, Rob Herring <robh+dt@kernel.org>,\n\tMark Rutland <mark.rutland@arm.com>,\n\tMaxime Coquelin <mcoquelin.stm32@gmail.com>,\n\tAlexandre Torgue <alexandre.torgue@st.com>,\n\tRussell King <linux@armlinux.org.uk>,\n\t<linux-i2c@vger.kernel.org>, <devicetree@vger.kernel.org>,\n\t<linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>","CC":"Pierre-Yves MORDRET <pierre-yves.mordret@st.com>","Subject":"[PATCH v4 1/5] dt-bindings: i2c-stm32: Document the STM32F7 I2C\n\tbindings","Date":"Thu, 14 Sep 2017 16:28:35 +0200","Message-ID":"<1505399319-14782-2-git-send-email-pierre-yves.mordret@st.com>","X-Mailer":"git-send-email 2.7.4","In-Reply-To":"<1505399319-14782-1-git-send-email-pierre-yves.mordret@st.com>","References":"<1505399319-14782-1-git-send-email-pierre-yves.mordret@st.com>","MIME-Version":"1.0","Content-Type":"text/plain","X-Originating-IP":"[10.75.127.47]","X-ClientProxiedBy":"SFHDAG7NODE3.st.com (10.75.127.21) To SFHDAG5NODE2.st.com\n\t(10.75.127.14)","X-Proofpoint-Virus-Version":"vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-09-14_04:, , signatures=0","Sender":"linux-i2c-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<linux-i2c.vger.kernel.org>","X-Mailing-List":"linux-i2c@vger.kernel.org"},"content":"This patch adds the documentation of device tree bindings for STM32F7 I2C\n\nSigned-off-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com>\nSigned-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>\nAcked-by: Rob Herring <robh@kernel.org>\n---\n Version history:\n    v4:\n    v3:\n        * None\n    v2:\n        * Remove i2c-timing binding in order to use generic bindings SCL\n          Rising and Falling time instead\n---\n---\n .../devicetree/bindings/i2c/i2c-stm32.txt          | 29 +++++++++++++++++++---\n 1 file changed, 26 insertions(+), 3 deletions(-)","diff":"diff --git a/Documentation/devicetree/bindings/i2c/i2c-stm32.txt b/Documentation/devicetree/bindings/i2c/i2c-stm32.txt\nindex 78eaf7b..3b54899 100644\n--- a/Documentation/devicetree/bindings/i2c/i2c-stm32.txt\n+++ b/Documentation/devicetree/bindings/i2c/i2c-stm32.txt\n@@ -1,7 +1,9 @@\n * I2C controller embedded in STMicroelectronics STM32 I2C platform\n \n Required properties :\n-- compatible : Must be \"st,stm32f4-i2c\"\n+- compatible : Must be one of the following\n+  - \"st,stm32f4-i2c\"\n+  - \"st,stm32f7-i2c\"\n - reg : Offset and length of the register set for the device\n - interrupts : Must contain the interrupt id for I2C event and then the\n   interrupt id for I2C error.\n@@ -14,8 +16,16 @@ Required properties :\n \n Optional properties :\n - clock-frequency : Desired I2C bus clock frequency in Hz. If not specified,\n-  the default 100 kHz frequency will be used. As only Normal and Fast modes\n-  are supported, possible values are 100000 and 400000.\n+  the default 100 kHz frequency will be used.\n+  For STM32F4 SoC Standard-mode and Fast-mode are supported, possible values are\n+  100000 and 400000.\n+  For STM32F7 SoC, Standard-mode, Fast-mode and Fast-mode Plus are supported,\n+  possible values are 100000, 400000 and 1000000.\n+- i2c-scl-rising-time-ns : Only for STM32F7, I2C SCL Rising time for the board\n+  (default: 25)\n+- i2c-scl-falling-time-ns : Only for STM32F7, I2C SCL Falling time for the board\n+  (default: 10)\n+  I2C Timings are derived from these 2 values\n \n Example :\n \n@@ -31,3 +41,16 @@ Example :\n \t\tpinctrl-0 = <&i2c1_sda_pin>, <&i2c1_scl_pin>;\n \t\tpinctrl-names = \"default\";\n \t};\n+\n+\ti2c@40005400 {\n+\t\tcompatible = \"st,stm32f7-i2c\";\n+\t\t#address-cells = <1>;\n+\t\t#size-cells = <0>;\n+\t\treg = <0x40005400 0x400>;\n+\t\tinterrupts = <31>,\n+\t\t\t     <32>;\n+\t\tresets = <&rcc STM32F7_APB1_RESET(I2C1)>;\n+\t\tclocks = <&rcc 1 CLK_I2C1>;\n+\t\tpinctrl-0 = <&i2c1_sda_pin>, <&i2c1_scl_pin>;\n+\t\tpinctrl-names = \"default\";\n+\t};\n","prefixes":["v4","1/5"]}