From patchwork Mon Sep 17 03:28:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 10602045 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 B947F17E0 for ; Mon, 17 Sep 2018 03:33:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7C0F295DD for ; Mon, 17 Sep 2018 03:33:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99466295E4; Mon, 17 Sep 2018 03:33:02 +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 04F43295DD for ; Mon, 17 Sep 2018 03:33:02 +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=GE32+/xTZNFHziT6x7KYW84Kqq4Z8YPp5mAnEDHcIPc=; b=DoG+L25i+qSSsg 5oLO9d9sYXGY2+OFYytVVdi60NQyIl9w9oQwhSyiX529W9nR5eLZInXX5SwwUpWrHlO2qeyLlgomo 9ehmvrf+t4DuDotOQbu/f2N/gj2Uu5RCq06gAUtdpVTag9p6/8OebmLeXpXtjvXaVihqBNz2kW4kv 2JVpnjNdlolv0+P+MGE3Q8qdv9O8qKp4vLZqDy6xM+4oBfL89nf1DJzehMqF5F9nGkbaoQMhUV5jD gLqsSOxWCDywmJylyl1LAAoYL0PzsxOZr1Qm6ysz8b1Jb8A+FePX+E1UN0AA7dTxDBKRtZbbSfWo+ JS0HP58oR2Fm4GdaRK0w==; 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 1g1kHH-0005pb-Ol; Mon, 17 Sep 2018 03:32:47 +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 1g1kGi-0005ZO-65 for linux-arm-kernel@bombadil.infradead.org; Mon, 17 Sep 2018 03:32:12 +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=416xl4x5h4ef72JPztdsXRUle72nv/LFTTKyQldAx6g=; b=eQEPQbROhSrhNPNd6nd4sIGo9V 3UQyKNCVVUd45TqBDwCBDd1mHhmtrAPm/w5VZoWvQblPpReXVTuWNuGmKEtXe2Z6qziAJVSg48n9G 1YI4S0K+fxf++QSubEAQAou8EQ1fzKUNYAhOit1yCxO8C4vTr5dHo7GhuCmrd9D6pRgZNtEGI0z/h oFvpgTzYCSLYkJt80lU45D8y/mN3lt0rRu0/PWvjp4ZAr/mnqdtn0/XH9u7oCrVWfds+P//pHMFSL HK7bi+Nmglis8zdNjObRp/iq69fcGOEECsQi3gAEePhiQakLrbp6HCvafqOqm4EdL7KieQH/NYRP7 QbdJYV7g==; 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 1g1kGf-0005nn-ID for linux-arm-kernel@lists.infradead.org; Mon, 17 Sep 2018 03:32:10 +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=416xl4x5h4ef72JPztdsXRUle72nv/LFTTKyQldAx6g=; b=SjYImgcQBdMInjzvtJrFyDJc+cLkerskDVXHZKIqidHVwI9MXbNQYUXX+UYw3TWPiIDfJ+/TKeTyltjyY8trkgLpEYOVKithrJf5aTRU5MDF2PHbs/AbyC/o3jFAkHyqagWOaWfsgvIigAqGpvidXfOzD53orjPRumQWSeHbQVQ= 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:55 +0000 Date: Mon, 17 Sep 2018 11:28:30 +0800 From: Jisheng Zhang To: Jarkko Nikula , Andy Shevchenko , Mika Westerberg , Wolfram Sang Subject: [PATCH v3 2/3] dt-bindings: i2c: designware: add optional pinctrl for bus recovery Message-ID: <20180917112830.2a3c9be9@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: KAXPR01CA0012.jpnprd01.prod.outlook.com (2603:1096:402:19::22) To SN1PR0301MB1583.namprd03.prod.outlook.com (2a01:111:e400:5232::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e4c51553-ca0b-4c1c-4dfc-08d61c4e1f54 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:8c7+qFSvpo5XoYeuy3yHihQllmQpl//uIMrig/qC33Yi1UFzwHF2f5/VURa3VxJ23Tejb1HrocvmBwKk4ihWyJlvD1QxkuMHITUlMLSM35UU36h7VqDUewpuaaESl7wvla42k2osUSYuKwFBsYTjnyX8Z0i2SeYw2NeacLqPff5NApNKoCjm1r7xM70ihcEqAtogeAwPYYSCEoANJOR8fdNkOE4qq8lAQLqbW1Xx7CETKhrLMYEMQEMf0Akxo76g; 25:l5HTkhdWbLXKk+liGJ2uG7PPrJ778WSmw8eEm7LPOnwHbiwneBBXT3iyX0OYuKImdopQ0DVNh2tn4Yq2O28PKAJL7+LLSZ7AW319h68lizVj/sveNdEawa/6FN7dO+Ppo/c1jqc8AdsufMpWy+4v1Zhsgrq/I7vLapHBjWOdPhhb5Yf0ujjVWaXnbrdAld3gFCNxs+h9qUNLKWCsjHMWuJLmSZz/lDY4b9PDIBmspZ/21h52K4rVgvoQlLXHBjodYpyl7RLJg1GVvyREISaNGWAsTh1QKBpx2ipVz5EjBWwBbECMOBmVpljEeHfkMAJ8snh04smShZBycZ6RPxiIig==; 31:eD9Xse/xhgFUDpDaJ47mYf+o5Btz2aTtAUxNsu3tttaRLROgRBM13MVKwWoe1m+PuSpPZKfMEqu7kVl2pPbrvY18vXxZeTTdnw3rlgIORFrSJHqp0DE+gUfhk4daljSnQ/cuyIY/dkV6imEIXabDdZVlxKpjqgHuElsOwTh1WbWoSW74t0ZrugjRZanrvBLaJggl9N62IIAbVOYX1uMqO0ro7YPOqmNLQ2BhmTpmnxs= X-MS-TrafficTypeDiagnostic: SN1PR0301MB1583: X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1583; 20:uY60D6AYaWNH3MJPNYNRaDTZK7hJCgOP++FjIuoSLjBYb6gizzknZXQvpB6BvR96T8iviOearKyARUxf8CmjwKy0RJRgdgCmd8fWJ6gEgIuANrLHyEL4jMTrFL8vhCdLqazzDOWtYPtCYgMgsOyiW4aT4sPoLGedGYyu+slSu8aiaZJKL/KmhfymqYNI0JerB+GvkTea/LauPtjViyA6coWpIVfbwYsmXq3vXX6dOeJFiPCzZ8B3Jfrs//w4dc6VHVTDASZtRVs8SM7Zf3JMbznPnKjGZ6SXS2o4DKU1P1YqS368v2eh7+CNcwshqzj3ljoA+c2UsUzu3EWox9JXBLGq8S88LJ2+EN6ProoKLoX6YFkl84q8DB1Xg7U4TCuDiy2Fyekg+iJ2XqWpVeni2KDSwg4H97aHeB0odFNv8a0Tj400IUzXb2vWwmZT5TcEm7YBG/p/FOHoFx1J8flNx6Uz5y+7rcR0m7T0YZIMiG2OLKv6rozuosPZo8AV2irK; 4:gzx+F56dfU4JXs40yUzpJdSWJPVKbesLEUkUowHaYQelPPuxpNtsibrW8YSriKljs9XamosTyWqRMkh+BPgkEB6oSC/iZoFev3E9ZEnqFKinx8PjEa0JZaz80JT9rjCPfMhgAdzAb3ZGEJ3ig+qpzW1YJxVHv58gtgU21CEIRfdJ+IudDW9UF8JlK1t8+3h2Ntcrd2wjWlnzJWDiB/2gX8gV+1V+k37mhTH73xCu9EeirPnW+wCgRbPiZSPT+mHR0H0WO0/1X1dff9llK2OLiw== 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)(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:F2sPmgc4fCAh0izA3cKrXg4ZmupcdPkdSo2zbaA?= eMHpmVAhqey+wVjDK6L5ncfmVIztJ2C5aHnoYnM2hZvgMBd5Qy9dFfOX5Fv/gHpwy+powZbvKNQpDUlI2FZZnahWBtV7xnLW5xwOvjsOCqiLjTyo55EybQbqyistCoD5DTOgWKqVJwd7B2cMlLvT/ZtsfOYQQhhKoIBZjzy8HTG7FmKyG5AU8pkVIPe0WyzBEJ+D3yRgzIVy8Tv/Zoj9+IIlQi9X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aEGKdggaGm4rmqSHE6Hg4WDdSLBWDoN4HtpPX3/L2UiN6I9sZtvA6fTmhp2i0wuMsvcmK0DVCI1Om29LCIaJOG2WoDfARjUwq8jl4dzLUsb9y4p37llyxcUxXPvNS2DTIW1fIHmC0v7z4EHoKnLlvQf1BW SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2018 03:31:55.9984 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e4c51553-ca0b-4c1c-4dfc-08d61c4e1f54 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_043209_601517_4480ECE2 X-CRM114-Status: UNSURE ( 8.02 ) 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 pinctrl property 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 1d6a6a8061ba..c1544d1f7b55 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-designware.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-designware.txt @@ -24,6 +24,9 @@ Optional properties : - sda-gpios: specify the gpio of the SDA line for gpio recovery + - pinctrl: add extra pinctrl to configure i2c pins to gpio function for i2c + bus recovery, call it "gpio" state + Examples : i2c@f0000 { @@ -46,6 +49,9 @@ Examples : i2c-sda-hold-time-ns = <300>; i2c-sda-falling-time-ns = <300>; i2c-scl-falling-time-ns = <300>; + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&pinctrl_i2c1>; + pinctrl-1 = <&pinctrl_i2c1_gpio>; scl-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; sda-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>; };