Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp910019ybn; Wed, 2 Oct 2019 08:05:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKdpYs9RwW33O9GPhs/aiNd4vhoMm0fA26HnmJZgWTxIAvXSiqm3Ul6SYK1KRGzyH506Zr X-Received: by 2002:a17:906:a44e:: with SMTP id cb14mr3431850ejb.277.1570028705399; Wed, 02 Oct 2019 08:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570028705; cv=none; d=google.com; s=arc-20160816; b=I8NNohR5saekoVhqSRcgNiJJWxGIPCuKLq5Bv7it1HCWqtSPlSaeOBbubrr80+yBIi hRYOEI5YNGIiakaFb4aa0uaUOSjsOGjVYQI+wn41q1Id8VqPSgD/v4X2322OBDFtywky iRceEyHeTQOrdQcHS0pGyuTzFavQaHShrbrgDhNdVQagbHeqmiNB4bRORqfHcF4fRRrG 5zO/6ngU/rtoXjTzSqfHrtEGKvZVKGqeix6Sk3XmL4t50XAS7ARuPah5b1hwxlQX+gT/ HX3QdIHD3UDGfpsq/YCtxGHt8o4kWjj6WM9qPW9ViBgyVbmWUX/Hk3oIbDC6RZmy9OMX zrPg== 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=G4tGtDewHBLaqBHD12Z6sqB7mtzKbBE8fToEdBbz8oIIov6nnVrLNMt3Dnb/ydEmw2 CRrayH3xMo3MSYlPX+BxuLoicualwrYbs673ql07ApKydVtUd0UX07p4aX4BMP70VBiR cP6H4Vb2+bke+Dax7JtgAGIoGov0VRCPKBgDYew/HvgvLrKUV+OifSpgnFR+eI1h9C94 7ByoifLPqkGtAthcReRrkMPpI/q/Ek0EdNch0VPBp2sE2Woarg4BzPu1cc00/MrfTEhC C45HDXpvqkoCqbJFLPQqAzJkgiJxrQAOJWmmKmaftoniWW4+l9C6bpyFVeIHY+QOyDnj FZ5w== 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 f41si11141167edf.113.2019.10.02.08.04.38; Wed, 02 Oct 2019 08:05:05 -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 S1727687AbfJBOrH (ORCPT + 99 others); Wed, 2 Oct 2019 10:47:07 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:47261 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725975AbfJBOrG (ORCPT ); Wed, 2 Oct 2019 10:47:06 -0400 X-Originating-IP: 86.207.98.53 Received: from localhost (aclermont-ferrand-651-1-259-53.w86-207.abo.wanadoo.fr [86.207.98.53]) (Authenticated sender: kamel.bouhara@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id A38B624000E; Wed, 2 Oct 2019 14:47:03 +0000 (UTC) From: Kamel Bouhara To: Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org, Thomas Petazzoni , Kamel Bouhara Subject: [PATCH 1/4] dt-bindings: i2c: at91: document optional bus recovery properties Date: Wed, 2 Oct 2019 16:46:55 +0200 Message-Id: <20191002144658.7718-2-kamel.bouhara@bootlin.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191002144658.7718-1-kamel.bouhara@bootlin.com> References: <20191002144658.7718-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