Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3900299imd; Mon, 29 Oct 2018 14:15:49 -0700 (PDT) X-Google-Smtp-Source: AJdET5cLEIj8iA/+cOr9Nj00AHZyCW4dBKsbyaHytu1v43ZFZsx+RpwRoDEzwl2Zfqzb+efl+kr5 X-Received: by 2002:a62:4c3:: with SMTP id 186-v6mr55650pfe.156.1540847749364; Mon, 29 Oct 2018 14:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540847749; cv=none; d=google.com; s=arc-20160816; b=sEgIRQfEoLQmX2/Dl517QzcZNU467eOUtXYszh5Vyw2k/DjkQkOPki8EY05SBZNUsi MMcjPlnW6609jcXQenGTUtcJP765/UgYtuUnFaUwMIaZtYH4dzi3hw5686+nS+50fame 7xCkTf1v8mfkGSjXqqpzKENkzGuo+eYEut1VXkDP5pJgKiPAbEKPxlGuT4Zdf5oaHC6C Zuq4SnF+jjQt+C2aIYtDZFNMpeEtpl/HJyohTYHhOZhcUlMPs3DJYbW3bDFUhDRupZIs aaD9uJ2dq1Ey1pMHf/7d6PgQKS6vVYuIjQdv7Mau1dwrBsCscnJuqCdULTuJBZhByKpu 9eyQ== 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=zZnENPUo7wqfwsdjFDHdLY7943DH0/vjC1XMvaFvGyc=; b=sYAD0YQbZ2b1ugD51nj/0A/+1B8WP8xfuyGOD59o+7caYqhkKTeCu1/wydrdDgIJaM 9IShYSwGcqwEe9aqYyG0oS1CrTv4nvSq6TG/tFOGgT0nYDHSCpk1JRH0qwH6Pf/AEh0x nXoubAM/EF75gw5GeYr5OoeKwDHGCRh/2BzmsKXg6irlJC6qA4zrJd0//HChgN4ZIucA m/fFqmW5OjRDR5aU6F0KvsNhHVs6fR3GI5yYC0o+yR4r7HayMori3xvPWHZ8zKyVIY8e rL+KppvEEwat1PjldlbPLaCWPWzHtEfEX8CWkqnhv+gqXtFSlTOYL6RxOdPG9mCypkdg qPDQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t76-v6si21387684pgc.485.2018.10.29.14.15.34; Mon, 29 Oct 2018 14:15:49 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727650AbeJ3GFJ (ORCPT + 99 others); Tue, 30 Oct 2018 02:05:09 -0400 Received: from mga06.intel.com ([134.134.136.31]:36149 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727545AbeJ3GFG (ORCPT ); Tue, 30 Oct 2018 02:05:06 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Oct 2018 14:14:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,441,1534834800"; d="scan'208";a="275456002" Received: from maru.jf.intel.com ([10.54.51.77]) by fmsmga005.fm.intel.com with ESMTP; 29 Oct 2018 14:14:40 -0700 From: Jae Hyun Yoo To: Wolfram Sang , Brendan Higgins , Rob Herring , Joel Stanley , Benjamin Herrenschmidt , Mark Rutland , Andrew Jeffery , linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: Jarkko Nikula , James Feist , Vernon Mauery , Jae Hyun Yoo Subject: [PATCH i2c-next v8 1/5] dt-bindings: i2c: Add 'bus-timeout-ms' and '#retries' properties as common optional Date: Mon, 29 Oct 2018 14:14:10 -0700 Message-Id: <20181029211414.20771-2-jae.hyun.yoo@linux.intel.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181029211414.20771-1-jae.hyun.yoo@linux.intel.com> References: <20181029211414.20771-1-jae.hyun.yoo@linux.intel.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 This commit adds 'bus-timeout-ms' and '#retries' properties as common optional properties that can be used for setting 'timeout' and 'retries' values of 'struct i2c_adapter'. With this patch, the bus timeout value and the master transfer retries count can be set through these properties at the registration time of an adapter. Still the values can be set by I2C_TIMEOUT and I2C_RETRIES ioctls on cdev at runtime too. These properties may not be supported by all drivers. However, if a driver wants to support one of them, it should adapt the bindings in this document. Signed-off-by: Jae Hyun Yoo Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/i2c/i2c.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c.txt b/Documentation/devicetree/bindings/i2c/i2c.txt index 11263982470e..bdead91f82a4 100644 --- a/Documentation/devicetree/bindings/i2c/i2c.txt +++ b/Documentation/devicetree/bindings/i2c/i2c.txt @@ -80,6 +80,12 @@ wants to support one of the below features, it should adapt the bindings below. Names of map programmable addresses. It can contain any map needing another address than default one. +- bus-timeout-ms + Bus timeout in milliseconds. + +- #retries + Number of retries for master transfer. + Binding may contain optional "interrupts" property, describing interrupts used by the device. I2C core will assign "irq" interrupt (or the very first interrupt if not using interrupt names) as primary interrupt for the slave. -- 2.19.1