Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp251994imm; Wed, 3 Oct 2018 15:32:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV6216nZ3TfapFtEK3Npgk09aSzNgGChc+ekyWSb/j1BYd0oduajk0GW+nFoEzlWs3/FVrkov X-Received: by 2002:a65:580d:: with SMTP id g13-v6mr2986672pgr.370.1538605974032; Wed, 03 Oct 2018 15:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538605974; cv=none; d=google.com; s=arc-20160816; b=is3smmCpgjBcuSN2Ifw/yLUlPfpEtu+wrIKoyh4lsYXGXlfH9waxbtKbIP8DOKutbc PiK7lX4VxqW+G/+y+Hq8mEEKU050uTr+z/XrSzeesZIr+6fcYh3+1TXgwtyUYQXy7cU5 CjT1dZC6wWgcdqBzUPARIJ6soYDM/z6BL5RPGLt6b5zTMQTmZJYfXc75dZ4Iq2pbORFF z5xsgdrELEO97D3q9tIJfcKBYB3wym3H57jguI0ObJ8QViL4SzZvZ2yhzs/Da21OLegs 14B6ir3z+Eo2TyMEC+IjIgIUhWOwrzw7HyE9WefGDtwKDYKBPufi5ObTVMmZ+3PVU8O3 SuHw== 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=KXtBCdYGbgjtpd9SyOcheylKIqHG4xxwRv0xz2DEr9M=; b=JKZCiVrphaftSjQVGn3JvLTQyJpMTa0yVGTFc6Sqv360vDjq23+GwjPYHbR/ctAEKL 2uPHiNhJYuQ0pJROZp4hvxJijbaA5zm7U1kXXFcGuIPzcByT37MW0zW92FGsOUftrUFJ S/IaG6xuBOirXbRM0nsXh/cbQ5+w9DTZz5dt5iLZ8n716EAb8ZFVTnuZrO4dn0ErsDwt 65AcSpCSviULsqQc3hlGfaYLDqBFg2Go9IPwA5uT/fFIWGwh0z0DWXDCeAxqHxYYfYnx KblJzjgxZfpINOcKKyM8T7htwt7ICQe6BUpy2usPavdFWLhMy0lW2fW0a4dqLtEDzYWm jWyQ== 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 q12-v6si2768096pgl.531.2018.10.03.15.32.38; Wed, 03 Oct 2018 15:32:54 -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 S1727401AbeJDFVb (ORCPT + 99 others); Thu, 4 Oct 2018 01:21:31 -0400 Received: from mga02.intel.com ([134.134.136.20]:1942 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbeJDFVa (ORCPT ); Thu, 4 Oct 2018 01:21:30 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Oct 2018 15:31:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,337,1534834800"; d="scan'208";a="97208510" Received: from maru.jf.intel.com ([10.54.51.77]) by orsmga002.jf.intel.com with ESMTP; 03 Oct 2018 15:31:10 -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 v5 1/5] dt-bindings: i2c: Add 'timeout-ms' and '#retries' properties as common optional Date: Wed, 3 Oct 2018 15:31:03 -0700 Message-Id: <20181003223107.16133-2-jae.hyun.yoo@linux.intel.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181003223107.16133-1-jae.hyun.yoo@linux.intel.com> References: <20181003223107.16133-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 DT 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