From patchwork Mon Sep 17 03:26:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 10602041 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 8278614DA for ; Mon, 17 Sep 2018 03:30:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6591629759 for ; Mon, 17 Sep 2018 03:30:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 59C1E2975B; Mon, 17 Sep 2018 03:30:33 +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 E5DA929759 for ; Mon, 17 Sep 2018 03:30:32 +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: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:In-Reply-To:References: List-Owner; bh=7DHdUTX3vQzuohjJaZwMu3xQE75zTHTTtAl9T5axJq8=; b=KqPsa98htV0BdG qbfR/YCfPfJIklMUjkh8/AeEicE93Cqaib93/lX/8bd1k1HRQW1m6xMoCMdK0aM9BmcS2F1aOTt5C APA9QsYf7Hlsoe1VK7k7mHrmFaemrkLvkSF/lJeRN/BLSr1fstc5SfxaDFK+DZi6e24GlAgRmtm07 uU+iDL0ASXJwg6vCz8TPxnKZ6h9XDZu2ZwO00vLud8vT+VCblEfQeWypX2woCST/vq63KCSzprM8g q0Xo2FX8s1nDHkU7be04DK8VTLou40iQjJHX9+O+0amxFdPCBkUyDV0NY2vZOJ8pN8/8fMTSLEX3N IUFcH4luHotLFIisxsrQ==; 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 1g1kEw-0004am-7H; Mon, 17 Sep 2018 03:30:22 +0000 Received: from mail-eopbgr700076.outbound.protection.outlook.com ([40.107.70.76] helo=NAM04-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g1kEs-0003cK-9u for linux-arm-kernel@lists.infradead.org; Mon, 17 Sep 2018 03:30:19 +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=c+GSGMtu9fZcxoWU2BmnilHQzG6hur0nG0XIMFrlIhw=; b=BayqwbNpfgt5z0pz6EFuR7/jGFbihs72t1w4MdeXfQd7QfpNfgNAFpTWUWv17k7kNWTDYhnfnj+M0QtKCZGfNytRH89yrJAJ14GNAKrWoyFqaE2EvFK/glef1APwJ3PiTs5kRutNlO6ovVuOL168c06/HFHs3fxRH4BuYTT0e+M= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by CY1PR0301MB1577.namprd03.prod.outlook.com (2a01:111:e400:529c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.14; Mon, 17 Sep 2018 03:30:02 +0000 Date: Mon, 17 Sep 2018 11:26:33 +0800 From: Jisheng Zhang To: Jarkko Nikula , Andy Shevchenko , Mika Westerberg , Wolfram Sang Subject: [PATCH v3 0/3] i2c: designware: select gpio/default pin when prepare/unprepare recovery Message-ID: <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: KAWPR01CA0085.jpnprd01.prod.outlook.com (2603:1096:402:c::21) To CY1PR0301MB1577.namprd03.prod.outlook.com (2a01:111:e400:529c::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1e548207-d603-466a-1847-08d61c4ddc09 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:CY1PR0301MB1577; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1577; 3:6oGGKQH4Vp5WPDpLb6i5qMH27g/Cj1i4K86NDWE3qSOvH/8qUwLb3Vbvn6Ssez8ITxj4zxBv9XdM/QggvSsje0sKp4UZXgB1VjIm4cnTTnW1kIEpn3sn3KDXfBAFpT0LHac11ylzyq8UH6/pinctgl0xGqMAU+E7j3HTMwntB/5fUNJJoqoiUubgXmj3b3az+wQQAdHCmUhfAFscbxfbbrbOUy3DLp90YeYSwzvtTm2mLYsg5XMOqLpTdxTDStxM; 25:yzA0ovFrO20aItkbKqyJ3Mwemfds0yVM85r54W/fwZZqTwVz8G6OlV9EqwBTM5IlKGkrnZD0v8de+7JoEnpulLe5wkWWoJionY3VEPHyeuhdcyJISTj1VBWwTYlQagOpu6GVvWw/pANnUMEXeheZfJwWgelQIj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Cg4co3kpIzXBbkYhV+TaXa29X+QbwvM/2MZvuVdZTV378nk65DfH+fsfQwtvbk9lH/V4FHnuRwavy4/RUyT6eES+dLOYEuHLwmlECD0wr8y5p5efdgsSR8jqZNC8UYQNygEYHu6CVzIn7ZacxTHgw7MrgENz3NUk18BC+Y0nB0DHjuPtzHFUerKI+p9bJgA9T/Wf5dP3SuXqiW1RZuOfz+Q== 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)(3002001)(10201501046)(149027)(150027)(6041310)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(201708071742011)(7699050); SRVR:CY1PR0301MB1577; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1577; X-Forefront-PRVS: 0798146F16 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(136003)(396003)(366004)(39850400004)(346002)(376002)(189003)(199004)(72206003)(55016002)(53936002)(7696005)(9686003)(23726003)(8936002)(50226002)(33896004)(5660300001)(3846002)(97736004)(6116002)(230700001)(52116002)(305945005)(81156014)(7736002)(8676002)(81166006)(478600001)(105586002)(1076002)(106356001)(110136005)(25786009)(316002)(956004)(476003)(2906002)(486006)(50466002)(386003)(6506007)(66066001)(26005)(4326008)(186003)(16526019)(68736007)(6666003)(54906003)(86362001)(47776003)(39210200001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB1577; H:xhacker.debian; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1577; 23:k1HzsvLE94XXDi/vDmXIpY+Vti19+oJlBUWUjTq?= Lc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HL81y18mU6+RWNdF1ZFc+N258K+QaqosNnnonhD8GHWk6Bd9GhTMqnuDpubyCys= X-Microsoft-Antispam-Message-Info: cgp+IhvFK4LO/CIR1gIcbEBTnbyLstvxG2w4Fwzp/2oBSKr8tXnQMFqj8muHsGeUG0WNOjuIXK7fjxBtvNcBcVXSQUFppg0vnPUQo3iBKYrHpHi/OibGJ6cN9lgWVyT4mSZFlydNhBg1ZkOlpANSXg6DZ7X/0Aho8it2RB0wfW4NPKH3QHMqi6eO991MCo7MrF295JfdOozAXso41E4/n3RzHoPJgCFoMJ0oijG3VUQtLf1D5MPuV3uT11YREKIjdAfyTKROom41Htci5/+AQAnNIkSI3oJiozx9qGaIxntdjGhb3X4brHmJmsxCzY/TxtAYvO56H61GJNmlCgU6rnt5l5J9SivdfpPR2DyBuMM= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1577; 6:wAxxYj7OOVi/d02tm/UxMbcdIk/FAH4fb5sFwLcPhVEiPE30eVGbAXzCL9/y9dg+1FvXsEqHfL2TRQgR2civ5KgZOu1waXNMUMTLAy9jtRofz53ioH2SZKqrPUmtjM2PqCXIfBGN5rVnvA+d0cjUOEKb4EcLU12nba3DU2bVgQ85AMschOof64amYjWIPUtlYAJUIDoiOBq09sjskqvg0UGKFPpjkcIoGowA5kvZVOkYQoFycAOsIu7LRXYdFTEz0vHLioovR+UkXXdcM9Y4IcDBpLvG1psqLWzoENgUkVJhNqaR2rgbT34OiNrkQMafcLWbbCbnhLjNX5l33uvYFhJrzVAi+aHKsKCybnqyaVsY4bLriRRuyx5iq4Uet1GIG+08cy8GvU/zPerZVHrejLuZyilrXoQus7WBy88OVX58O0js/fLDt4F58Vey93QRYl7rptxHCyWjLE7vIPBGxw==; 5:I61fEFXxBpgLp435WfzFif2RXruMbt37j8sCr2wjjqIrbnUdxN1yMBfrYKHR6oEb1K+xeD9ghSltjLSmK96hFo1AMvoHJrtAh774Ts3DoNx1KYcLvuf5PxuZwnlieau1JXna6nryD/qFS6Lh+joWvVEoRuakz5qOwoZcOkuS8A4=; 7:UT6HHuMWZ/ADJ5hUjMQIaP0ouRWlJ0dAf7ocOyr1t2dSkA4MCRK8VCBoyWdSASOF9/LgodVgYivQ+wCT7SpLkqCNM5xy9L8ETT7kbdaFF+l4G/ulfQoQ3ZWh60EX2FhaxDx4efey5YpSZ7W40O17ppGER9A1wpT8xALs8lEvkaCrDjUUFoJThI6/hWAWLlNloJSPh+BoK1l2tnyE0Iqseg4OVfkgv0MFT0TEdgjulIEd09lHTzZjyybgXbBDFVc/ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2018 03:30:02.7198 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1e548207-d603-466a-1847-08d61c4ddc09 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1577 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180916_203018_536198_33804AF4 X-CRM114-Status: UNSURE ( 5.68 ) 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 On some platforms, the sda/scl pins are muxed with gpio functions, so they could be used for recovery. Select the gpio/default pin function when prepare/unprepare recovery. patch1 adds the missing scl-gpios, sda-gpios properties binding doc. patch2 adds the pintrl property for i2c bus recovery. patch3 selects gpio/default pin when prepare/unprepare recovery. Since v2: - add missing property dt-binding Since v1: - use IS_ERR_OR_NULL Jisheng Zhang (3): dt-bindings: i2c: designware: add optional gpio recovery properties dt-bindings: i2c: designware: add optional pinctrl for bus recovery i2c: designware: select gpio/default pin when prepare/unprepare recovery .../bindings/i2c/i2c-designware.txt | 12 ++++++++++ drivers/i2c/busses/i2c-designware-core.h | 3 +++ drivers/i2c/busses/i2c-designware-master.c | 22 +++++++++++++++++++ 3 files changed, 37 insertions(+) Acked-by: Jarkko Nikula