Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4009054ybg; Fri, 25 Oct 2019 12:02:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8FGLEY/evyaN6OyzZP5v9F573OL93mXeWDY+LKGFAoNdUcz92baCSDUBnMg60/TJ03nib X-Received: by 2002:a17:906:3582:: with SMTP id o2mr5013245ejb.54.1572030158434; Fri, 25 Oct 2019 12:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572030158; cv=none; d=google.com; s=arc-20160816; b=0Mop3A6ltN32FsKb+DYD9FmbrrpO8c73qnLbAJlzYqkLvg1NpVsKTPk+IOAzLJSGYU kItrz5pYImDtYcs6FfbTmxhUYyJmZGIUYdkuxv9t1eiv8WEDgrb1201/+rCy3TJcQAKP wtn9ADdvLTmJfIkxTu2kKG9RmfMwNzJxgfQa/3RAwhaM7t0i6M76Dd2mOCAHz4lKn6gv 41voGu03bSREoAt3co+qndITsy2L4eIdAJ8GlcKR4iLpim7Uo6y1KZXvF8zolQ8azHNv VR7iEOa95Y+6L5LwtwI2MO8oEcepfq5vxct/gvVmLRMJpCW9mdtDRgH/lmPWb++kEbSx avGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=G2Z87gHNU7FMLl8/4ueEmGmZSZPpyO2KKf/+ff5Jfic=; b=GC07o/tnTu5PS2i3jNmwMcUmGf7GsYkvcbkBsybe6Ilse0vjBMT0NKAUqwAwIPE2aO MrbmbuM5CtTA/TwXFewOR+PFUTYpUclEQLXRON6RXXwilFTvtt4Yv5nnFKNmq2GCIumR adl5jQQtJc15WDZNvAFjzQHltvSuDn8j5Q3/Gb6hxGETljDjloGX3lX/f7wW2Y+wLkTI Y/h3t0QTc84aSuOFZ9PsVFp0A/Vd48hlYBigjjk2RsmHuR1I+W0+NgYSgWsQeaYENs3i KHdltztBCjwQisNELlO+RxPOX7aZ0QL5GvG5T396Xp8ntouqsIDLUHWQkNP6roshWtnf EBfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si1887204eja.89.2019.10.25.12.02.03; Fri, 25 Oct 2019 12:02:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726708AbfJXUNc (ORCPT + 99 others); Thu, 24 Oct 2019 16:13:32 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:49927 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726505AbfJXUNb (ORCPT ); Thu, 24 Oct 2019 16:13:31 -0400 Received: from localhost (unknown [78.193.40.249]) (Authenticated sender: kamel.bouhara@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 49E32200005; Thu, 24 Oct 2019 20:13:29 +0000 (UTC) From: Kamel Bouhara To: Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , Rob Herring , devicetree@vger.kernel.org, Kamel Bouhara Subject: [PATCH v2 2/5] dt-bindings: i2c: at91: document optional bus recovery properties Date: Thu, 24 Oct 2019 22:12:59 +0200 Message-Id: <20191024201302.23376-3-kamel.bouhara@bootlin.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191024201302.23376-1-kamel.bouhara@bootlin.com> References: <20191024201302.23376-1-kamel.bouhara@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The at91 I2C controller can support bus recovery by re-assigning SCL and SDA to gpios. Add the optional pinctrl and gpio properties to do so. Signed-off-by: Kamel Bouhara --- Documentation/devicetree/bindings/i2c/i2c-at91.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-at91.txt b/Documentation/devicetree/bindings/i2c/i2c-at91.txt index b7cec17c3daf..8ea2ce5d8610 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-at91.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-at91.txt @@ -19,8 +19,13 @@ Optional properties: capable I2C controllers. - i2c-sda-hold-time-ns: TWD hold time, only available for "atmel,sama5d4-i2c" and "atmel,sama5d2-i2c". +- scl-gpios: specify the gpio related to SCL pin +- sda-gpios: specify the gpio related to SDA pin +- pinctrl: add extra pinctrl to configure i2c pins to gpio function for i2c + bus recovery, call it "gpio" state - Child nodes conforming to i2c bus binding + Examples : i2c0: i2c@fff84000 { @@ -55,6 +60,11 @@ i2c0: i2c@f8034600 { clocks = <&flx0>; atmel,fifo-size = <16>; i2c-sda-hold-time-ns = <336>; + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&pinctrl_i2c0>; + pinctrl-1 = <&pinctrl_i2c0_gpio>; + sda-gpios = <&pioA 30 GPIO_ACTIVE_HIGH>; + scl-gpios = <&pioA 31 GPIO_ACTIVE_HIGH>; wm8731: wm8731@1a { compatible = "wm8731"; -- 2.23.0