Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp5234996imd; Tue, 30 Oct 2018 14:11:27 -0700 (PDT) X-Google-Smtp-Source: AJdET5eduO8Ftj6+DbikyyXQq/vGTLpIFkBzd0OHrkqTz0odiD4p3p5VxdjVyKK3d7BgcSis2DT9 X-Received: by 2002:a63:1066:: with SMTP id 38-v6mr340837pgq.254.1540933887774; Tue, 30 Oct 2018 14:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540933887; cv=none; d=google.com; s=arc-20160816; b=tH67YYF3XPoy4l9LgVJdyjYmBjLksJbClrPcPb7o7VXVtSd7Xm84z8vBAe+pkYNrla mLKrwHzns2xnYuGiHyVrKPudL1dmzrUReEicsA5iECbM4vyrGMW3rXb4fx6rV5imIQ3x Ew7OLARjHZ9Ibjai3T8I0FjQuLXXgC1AFzxZ4FZPcwBfVcEQXeITg6ZSiLE7N2+IdM8t e+3mwyBa6mtKCvIcJ5XZChpsTf++APTkPxxUUs4GYZwFfmQgXxg7iTIG9K2kNMNYamd1 QvYp68x8wEo0aMxNm673Rp314MW9ZM9uX4ye93Y1pYbs6eTChLwJr3nUT2/vqG4JyRql frCQ== 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=Mg46Px+VGlVPOkH5qJfo8QBpqaM12PKOdWKaCZWdTf9Tmv3OQdJkUypZ9k62Yn54/P JtN4Mtj+woTDP9oEFe3BmGcSK9oxM5PkfA/qoQV14lj3jcL0iKQGcEN8JswS+DQaFeg0 f2136Gqtc8ihlC9v82A5J2Gd3dl/nTSANsT0znZs0/eNBWpwSYSG6QoGU6wZn1pb6tEP KyE+SzI5Msg6Fm1W5uzcsIVQ8ZPzZhg+cTiEqI3yhk9KGoOXDZxyghPcYwqWTwesu3L+ WNdw3UIp6LDqhYuz42Zv4WQYAx14AQqaTtVhFyFun8ulCVTWh6nWOWgnq0q0ks01yUXc JNfA== 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 k9-v6si24326621pgc.79.2018.10.30.14.11.12; Tue, 30 Oct 2018 14:11:27 -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 S1728005AbeJaGE2 (ORCPT + 99 others); Wed, 31 Oct 2018 02:04:28 -0400 Received: from mga09.intel.com ([134.134.136.24]:28959 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbeJaGE2 (ORCPT ); Wed, 31 Oct 2018 02:04:28 -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 orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Oct 2018 14:09:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,446,1534834800"; d="scan'208";a="100110049" Received: from maru.jf.intel.com ([10.54.51.77]) by fmsmga002.fm.intel.com with ESMTP; 30 Oct 2018 14:09:21 -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 v9 1/5] dt-bindings: i2c: Add 'bus-timeout-ms' and '#retries' properties as common optional Date: Tue, 30 Oct 2018 14:09:12 -0700 Message-Id: <20181030210917.32711-2-jae.hyun.yoo@linux.intel.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181030210917.32711-1-jae.hyun.yoo@linux.intel.com> References: <20181030210917.32711-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