From patchwork Mon Sep 17 03:27:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 10602043 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B721414DA for ; Mon, 17 Sep 2018 03:32:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EBBF2975A for ; Mon, 17 Sep 2018 03:32:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92A9E29760; Mon, 17 Sep 2018 03:32:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2FFC22975A for ; Mon, 17 Sep 2018 03:32:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zRj0pcG4hOx5IUOMO2dcHSOOxLGsAR9Fz9L7DdjKHrU=; b=cp5g6F5BjBwdMv mUryLoOpQO9c+919ukWvN5bwP6BDW2Kyj+/xGYv2g80jdEQifHtMrzI2Pk6hB0dENXTAttzJ/a49j Lt9h4fpuiwL5+G4iySRN5N6J7lAG4sjIxWi2FNRybmkaLDhbjhz6eaejMUrWWWpGzBE5XfhMNMMOP P3NGDbS1+hGQFnY4u2RDqmLJv2Waskn0rQ5hcfb8nprrdH9xlUQzTgzMUVT0KGy3OHBsIWeKdvaed OGv7zLz+7HgmfhvAqILzqrFWj+ZJFeQsgla3nUUenJm6RB7j93vM7uEOREK6O7cXoLgFCsgu4Q8Hi VrN4XCFJnL0up0vXZKXw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g1kGi-0005ZS-Vc; Mon, 17 Sep 2018 03:32:13 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g1kGg-0005ZF-IP for linux-arm-kernel@bombadil.infradead.org; Mon, 17 Sep 2018 03:32:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4cmwYGxLe8gg4jOzWNSNzOrWo3eIpy4vFF+AovXAqzg=; b=jLQsB51KabtgAK2XRc1+Vje1iC 63KZ5aRrX/sMKr0Nk2wbvL2EYWwfKTRU0MWOL0VJ1SED3Nb/dE1bByCoN2Iee47596XNFFo/X9DKE izy/uM4se5lf0kgaVKwKQEUUfQIrQXyQaSIZ7MzDh5Mc8dO2PwafO/8QEntdKY7iZBXISyFrU70LA 1JTYd+OBPhNO8r5SS1L6Bk1UR7ZNlu7of5OYeYSTCC59jjfRPMtPzBRlT1Utkmc0RHadN35nlE9mm qOY3n7zZh8BqUSaqpDQg4OrxC2YqKOBqXrfDNizcBgBmajTGFQTA3lnDwe0jbqMBnqGxwznkAaj6G ApBzgiag==; Received: from mail-sn1nam02on0040.outbound.protection.outlook.com ([104.47.36.40] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g1kGd-0005nn-Pk for linux-arm-kernel@lists.infradead.org; Mon, 17 Sep 2018 03:32:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector1-synaptics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4cmwYGxLe8gg4jOzWNSNzOrWo3eIpy4vFF+AovXAqzg=; b=pRgfh248Y1WXP81Drsixp2Ry+32krFJuu0KCqUn2q27fDiOuInnaS3aV92TKTZx7JAT8LEiIgHPfJEcqFZsY77aGuvSZcfuBa/C+IDhq8fcnPzMEjvjMASa3AJEA13fv3PariRAqTvmZ/cjS2dEJvLYs1nxXlgqAyzM+MsS6cUU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by SN1PR0301MB1583.namprd03.prod.outlook.com (2a01:111:e400:5232::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.17; Mon, 17 Sep 2018 03:31:08 +0000 Date: Mon, 17 Sep 2018 11:27:41 +0800 From: Jisheng Zhang To: Jarkko Nikula , Andy Shevchenko , Mika Westerberg , Wolfram Sang Subject: [PATCH v3 1/3] dt-bindings: i2c: designware: add optional gpio recovery properties Message-ID: <20180917112741.7c3d6514@xhacker.debian> In-Reply-To: <20180917112633.252c591c@xhacker.debian> References: <20180917112633.252c591c@xhacker.debian> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: KAWPR01CA0081.jpnprd01.prod.outlook.com (2603:1096:402:c::17) To SN1PR0301MB1583.namprd03.prod.outlook.com (2a01:111:e400:5232::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e2c88991-7ec0-429b-08c2-08d61c4e032e X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:SN1PR0301MB1583; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1583; 3:mPDPau0y29rZUlJt+N8ZhA8EenMHAQsiUSspVCLLxrfNMgHLf/RG/r5xyDVDY+xm5qe/DJCnmiO+Wo4QjDcKtyphL0B/+9mj+ZKL+QOUP/PchIjnV7aN2M/hb/oeXerh/3xA12TnsMUOFiY7AW9IjuppFYAF+tIOhT2lxw6yRM+VDdhW047XhTUpAuEcZ4VaODs8iVJI9bcItUFE3NpFlJv47itQsyX0JulNAjQluAt1XhX8ZMCGO5s8MhPOZk/F; 25:0Hrzt3Bv2lvK1I8HnAwY0tuqTyzZlLnlmoDP8DNNxZZlrjQrJM59+IJTdQdocycgJyrIBSxKNHEmf2EHFQ7j6OhlJg3TFgjuGISe/uLEdGIUBmUXSRh0plgR4ECWmpWkf/mfvKzBXP4Bcs/oUCOHPvXWII4ufZbQuwaaRrKsfJ0JN17mxsVl5QU3ofOGDJqGNhDs7FFqw2joscqsvLRCvhpn/o4LeUBNujMjx2NedGYTBxajsOg4LZa9f7OX/F+V8IskXXTG/PpkvtiYQV1MdefiXunhxT5NNZCRaI7XVKK88IONWMgXoc2PdIUxrYhuEoK17qUAPyBpaxyzoKfC9g==; 31:1ZcZAfVZ304gLiIBw++i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KB3qog== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(149027)(150027)(6041310)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(201708071742011)(7699050); SRVR:SN1PR0301MB1583; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0301MB1583; X-Forefront-PRVS: 0798146F16 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39850400004)(376002)(346002)(136003)(199004)(189003)(3846002)(53936002)(6116002)(446003)(11346002)(478600001)(8676002)(68736007)(50226002)(81156014)(23726003)(8936002)(33896004)(2906002)(50466002)(97736004)(72206003)(81166006)(26005)(16526019)(4326008)(25786009)(52116002)(7696005)(76176011)(186003)(6666003)(86362001)(7736002)(47776003)(386003)(6506007)(5660300001)(956004)(66066001)(106356001)(9686003)(55016002)(230700001)(305945005)(476003)(575784001)(110136005)(54906003)(105586002)(1076002)(486006)(316002)(39210200001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0301MB1583; H:xhacker.debian; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0301MB1583; 23:/Vz2RVQAmiwXjY2T5SWk0AbgXlURS7UzxQkleg8?= CnWKPTHfL5+JEpTso8nmjKhitGvEMd4rteo85k5jgLkPChs/SFsBkCEre1wUBT0v3QJmOhaogeuK4N7FtUWLuKwMQHCbx0KBzK9mnMX5pH1j1vJsHS6KA5btrivA6Z9oSVKNloS/jKRD7NCx6+LV0fL+5nXpxG9wcYfTEMNy5w70ci7GAHbRh6CFCYLkfp0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LLcJLOZBGmfoh3uvKl1dHGHzTAWaXYQJ2hB2A3eQ5sVrBmnHlfGnCBmUCIEIcnGFJT6hzvpFjuLv6RR1R7q0FWBxPufxCEymubk2nV2go30SK3JHYKxxFaVArR6hY9igMat9wc+paR0mqvrqeN+byG7PRKVwrJn/NpCuHaACe5W3haWY3UJ3Kv7gdZkT1GBDlHRGSXoDU+OFwZmP0Il7X82xsGdhiB SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2018 03:31:08.7634 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e2c88991-7ec0-429b-08c2-08d61c4e032e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB1583 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180917_043207_839578_82D646EA X-CRM114-Status: UNSURE ( 8.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-i2c@vger.kernel.org, linux-arm-kernel , linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Document the scl-gpios and sda-gpios properties for bus recovery. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/i2c/i2c-designware.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-designware.txt b/Documentation/devicetree/bindings/i2c/i2c-designware.txt index fbb0a6d8b964..1d6a6a8061ba 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-designware.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-designware.txt @@ -20,6 +20,10 @@ Optional properties : - i2c-sda-falling-time-ns : should contain the SDA falling time in nanoseconds. This value which is by default 300ns is used to compute the tHIGH period. + - scl-gpios: specify the gpio of the SCL line for gpio recovery + + - sda-gpios: specify the gpio of the SDA line for gpio recovery + Examples : i2c@f0000 { @@ -42,6 +46,8 @@ Examples : i2c-sda-hold-time-ns = <300>; i2c-sda-falling-time-ns = <300>; i2c-scl-falling-time-ns = <300>; + scl-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>; }; i2c@1120000 {