Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1440971imm; Thu, 4 Oct 2018 13:45:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV61IPGeaIqDsLCnbXmUlhd9zcJEEc2ZlL2H2w6ex0XoYxBLthPJzdqIeNQdN+zjjy14LJbv3 X-Received: by 2002:a17:902:bb08:: with SMTP id l8-v6mr8061089pls.252.1538685920884; Thu, 04 Oct 2018 13:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538685920; cv=none; d=google.com; s=arc-20160816; b=NOF+jnQcGIQQ8NxWhe73Q/CGOCtEFeRN3DoHYZWGtnqPD+wFBLn9J4GvwPqF7ffrYo QzYkYDZb0zqSK6dtSTi1j8iQkVX8GugJo75aomlytf0mG4Sthk7ZSBAledFryVteLg+y vpZ+jMDHpIVfAGHQXJ5cWfHiLv8brD3dP5bSvkt6El5T4mhA+d3rUq0uo+Oh+ZQVO+Y8 kpjC69lZm9N4Dv7AotZ0fWSjJSESYXc7cFsKhIjesog9WhDP+nbdxlCQeaPkJ6nkY6PE fuwTK7TccBhKyn0QOW3pPJmwENaRb0OobZ6xX+wd1Hhk1M/GcFdzVCB3O42Hluh9ORSZ WmAA== 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=NXZiHOvZd47sKdtV7n9yaN+83tEeWiumyzNnYfjf/Lc=; b=Nv4ZoruxF2cvrQKSoaCsVf6kRPnZtJJ02uBFIMmDq0JOK03VqGxbuEllMlMQKkZRmU bBwcUcLJdYi2BipR+v+W5K2TWR0PQeUMf2Mvaxj7MA9YUr0r2aJ5QqulOGeaA/VLpZRo N6UFXbctaDmG5AKn25zErTXkQHn9Tq2JBMb61zNfux//cfMWjE0ZqWHKec0zBDcopjYr Ioysk2fvam1Sk4T0ZTUfIP+CS9vKsOFwfcdBgzuL/nfQ1KbzglgGXOrYqvHum0bFeg6n YJ35kr9ndNayktApKyt34t7c+Kns+jLb8NswJtIJkDuQEcfNEk420V+ES+nQn08VXqzQ FY7Q== 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 j24-v6si5433156pff.42.2018.10.04.13.45.05; Thu, 04 Oct 2018 13:45:20 -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 S1728156AbeJEDim (ORCPT + 99 others); Thu, 4 Oct 2018 23:38:42 -0400 Received: from mga02.intel.com ([134.134.136.20]:49781 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727642AbeJEDil (ORCPT ); Thu, 4 Oct 2018 23:38:41 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Oct 2018 13:43:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,341,1534834800"; d="scan'208";a="92295005" Received: from maru.jf.intel.com ([10.54.51.77]) by fmsmga002.fm.intel.com with ESMTP; 04 Oct 2018 13:43:26 -0700 From: Jae Hyun Yoo To: Brendan Higgins , Wolfram Sang , Benjamin Herrenschmidt , Joel Stanley , Rob Herring , 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 v6 1/5] dt-bindings: i2c: Add 'timeout-ms' and '#retries' properties as common optional Date: Thu, 4 Oct 2018 13:43:18 -0700 Message-Id: <20181004204322.20665-2-jae.hyun.yoo@linux.intel.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181004204322.20665-1-jae.hyun.yoo@linux.intel.com> References: <20181004204322.20665-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 '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 --- 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..6d7a6e919cf8 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. +- 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.0