From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84862C433DF for ; Fri, 19 Jun 2020 14:20:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5637920776 for ; Fri, 19 Jun 2020 14:20:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="WlYjRz/F" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732813AbgFSOUC (ORCPT ); Fri, 19 Jun 2020 10:20:02 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:7008 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732461AbgFSOT7 (ORCPT ); Fri, 19 Jun 2020 10:19:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1592576399; x=1624112399; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ssnJZWGFbTL4JylYeloFnuSybGj7Ww3CdtIea8ySppc=; b=WlYjRz/FJWiyzDsmRGnJwzAllq5wOwg2D62b6WZFVIlbVY21hfgGMqpp bJvNmhbXJAfu7a1DdfukMxnlDBaHsTHNU5cE/KJ1V8sBOKr6FPhG/ppyI HQ3grFbse8NVocklZT5PmndU6PFyz2xB2R4BsbM353gKoQ0+G0x8t+Viz kKEUU7uG4plAqjeDFvcqCwqMsu6u2Vt1RPlsTGPFavToo+Y4fgk38NB6W /9K4Io2eUYfLlJgLjq2MuiMdFR6Yq3drIU0RpF5YagdKltM3SePYbudwF V/ikkiZjUhqm42Q6k2itdMIZOqCWBhuFyblNDnkZcQi0nbPDNBC7bfPj7 Q==; IronPort-SDR: /evddRzvNCOLCsEUsCX30VVE8V6o+e2f1tpmPXD5j6RC4BN3K0DHNJCWyOqH83ETytg9LunOaq 5fD01jEGA44KcGYq6NA839YymrbQOcZtOlLeQAomt2ZJ/5mxGKRTWtOsQsup/pewIP86yZAA6z MUsdenslfR4O6yFeFs27xJoINsUpUF7wiZmHy6A+Sac+dvWY5Bk/Hoo5dEYTvw3bpeBKALlYL/ Z032xpyCvpNgrx5UMYcr1iGDPuVPR1FTYU8/WfxS6W/TZgZM7i5iifuXiYAvE+5WlM6IoEmVcS O/U= X-IronPort-AV: E=Sophos;i="5.75,255,1589266800"; d="scan'208";a="77180733" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Jun 2020 07:19:57 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Fri, 19 Jun 2020 07:19:56 -0700 Received: from rob-ult-m19940.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Fri, 19 Jun 2020 07:19:32 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , Codrin Ciubotariu Subject: [RFC PATCH 1/4] dt-binding: i2c: add generic properties for GPIO bus recovery Date: Fri, 19 Jun 2020 17:19:01 +0300 Message-ID: <20200619141904.910889-2-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200619141904.910889-1-codrin.ciubotariu@microchip.com> References: <20200619141904.910889-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The I2C GPIO bus recovery properties consist of two GPIOS and one extra pinctrl state ("gpio" or "recovery"). Not all are mandatory for recovery. Signed-off-by: Codrin Ciubotariu --- Documentation/devicetree/bindings/i2c/i2c.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c.txt b/Documentation/devicetree/bindings/i2c/i2c.txt index 438ae123107e..6a644a24fc1c 100644 --- a/Documentation/devicetree/bindings/i2c/i2c.txt +++ b/Documentation/devicetree/bindings/i2c/i2c.txt @@ -77,6 +77,16 @@ wants to support one of the below features, it should adapt these bindings. this information to detect a stalled bus more reliably, for example. Can not be combined with 'multi-master'. +- scl-gpios + specify the gpio related to SCL pin. Used for GPIO bus recovery. + +- sda-gpios + specify the gpio related to SDA pin. Optional for GPIO bus recovery. + +- pinctrl + add extra pinctrl to configure SCL/SDA pins to GPIO function for bus + recovery, call it "gpio" or "recovery" state + Required properties (per child device) -------------------------------------- -- 2.25.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F49DC433DF for ; Fri, 19 Jun 2020 14:20:16 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2283C208C7 for ; Fri, 19 Jun 2020 14:20:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="QXOSRaji"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="WlYjRz/F" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2283C208C7 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=S3ieN4Fo7jIwAQIfSxlWY8biU2Of8EM7RXz0ID8W1/I=; b=QXOSRajiGims1J LJmWM2FXx+bGAfUA0xadRo7/sSWfawh8GawRfIa8J5T4G5MkBs9y/BZZKdH4RuoApOieB65cYHjXJ CvCxPDllgYFNl5xBLJWq9TyU88H15JGpo9AoZHvHc4yDOHyD9RvQeG9H12EcvniUoqfIf6JQtIMf/ dTYBs7yZM9FqdJXn4Ho8VCsD7Ini37U2jlYpaNLhCocpzKHP7EN4oEncZ6tHo3b8UEZ4oIBbRM/G5 NwKxchfgVdUL7wyyUS7YE0yXI/lQ6AWDbnHF8CazA50yuuEAvFYbA+TncKyR7Z2i5qLlwBVVoCoap 06/hR2A9RF+YGsUNE89g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jmHsD-0006Am-6w; Fri, 19 Jun 2020 14:20:05 +0000 Received: from esa4.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jmHs7-00068u-Kw for linux-arm-kernel@lists.infradead.org; Fri, 19 Jun 2020 14:20:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1592576399; x=1624112399; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ssnJZWGFbTL4JylYeloFnuSybGj7Ww3CdtIea8ySppc=; b=WlYjRz/FJWiyzDsmRGnJwzAllq5wOwg2D62b6WZFVIlbVY21hfgGMqpp bJvNmhbXJAfu7a1DdfukMxnlDBaHsTHNU5cE/KJ1V8sBOKr6FPhG/ppyI HQ3grFbse8NVocklZT5PmndU6PFyz2xB2R4BsbM353gKoQ0+G0x8t+Viz kKEUU7uG4plAqjeDFvcqCwqMsu6u2Vt1RPlsTGPFavToo+Y4fgk38NB6W /9K4Io2eUYfLlJgLjq2MuiMdFR6Yq3drIU0RpF5YagdKltM3SePYbudwF V/ikkiZjUhqm42Q6k2itdMIZOqCWBhuFyblNDnkZcQi0nbPDNBC7bfPj7 Q==; IronPort-SDR: /evddRzvNCOLCsEUsCX30VVE8V6o+e2f1tpmPXD5j6RC4BN3K0DHNJCWyOqH83ETytg9LunOaq 5fD01jEGA44KcGYq6NA839YymrbQOcZtOlLeQAomt2ZJ/5mxGKRTWtOsQsup/pewIP86yZAA6z MUsdenslfR4O6yFeFs27xJoINsUpUF7wiZmHy6A+Sac+dvWY5Bk/Hoo5dEYTvw3bpeBKALlYL/ Z032xpyCvpNgrx5UMYcr1iGDPuVPR1FTYU8/WfxS6W/TZgZM7i5iifuXiYAvE+5WlM6IoEmVcS O/U= X-IronPort-AV: E=Sophos;i="5.75,255,1589266800"; d="scan'208";a="77180733" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Jun 2020 07:19:57 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Fri, 19 Jun 2020 07:19:56 -0700 Received: from rob-ult-m19940.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Fri, 19 Jun 2020 07:19:32 -0700 From: Codrin Ciubotariu To: , , , Subject: [RFC PATCH 1/4] dt-binding: i2c: add generic properties for GPIO bus recovery Date: Fri, 19 Jun 2020 17:19:01 +0300 Message-ID: <20200619141904.910889-2-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200619141904.910889-1-codrin.ciubotariu@microchip.com> References: <20200619141904.910889-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200619_071959_751703_4AE54199 X-CRM114-Status: UNSURE ( 7.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kamel.bouhara@bootlin.com, alexandre.belloni@bootlin.com, linux@armlinux.org.uk, wsa@kernel.org, ludovic.desroches@microchip.com, robh+dt@kernel.org, Codrin Ciubotariu Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org The I2C GPIO bus recovery properties consist of two GPIOS and one extra pinctrl state ("gpio" or "recovery"). Not all are mandatory for recovery. Signed-off-by: Codrin Ciubotariu --- Documentation/devicetree/bindings/i2c/i2c.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c.txt b/Documentation/devicetree/bindings/i2c/i2c.txt index 438ae123107e..6a644a24fc1c 100644 --- a/Documentation/devicetree/bindings/i2c/i2c.txt +++ b/Documentation/devicetree/bindings/i2c/i2c.txt @@ -77,6 +77,16 @@ wants to support one of the below features, it should adapt these bindings. this information to detect a stalled bus more reliably, for example. Can not be combined with 'multi-master'. +- scl-gpios + specify the gpio related to SCL pin. Used for GPIO bus recovery. + +- sda-gpios + specify the gpio related to SDA pin. Optional for GPIO bus recovery. + +- pinctrl + add extra pinctrl to configure SCL/SDA pins to GPIO function for bus + recovery, call it "gpio" or "recovery" state + Required properties (per child device) -------------------------------------- -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel