Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp944040imm; Fri, 5 Oct 2018 14:48:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV63h68zfRgqFWkYA24yRyiTiNZ3uw2utyNxyfo1q9V+EEuHmOe/vtfW8BXZ8OwSU3l5HSUNz X-Received: by 2002:a17:902:8f8f:: with SMTP id z15-v6mr11071625plo.305.1538776089964; Fri, 05 Oct 2018 14:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538776089; cv=none; d=google.com; s=arc-20160816; b=JFyLx4m7IUNmr3i8ZizMLIvpNY2jeV6PtGlPmGvuFgv+eGUhTs25fCMFTaK8NWMSlO mKNtXSmankfG4suTGZUg1AzKxcPWFwNGCY+AKPtQlUk1iHfBX64a5QXoAZPhK0o38vMP AGtZFRCH1nBR0L3AmvOspbiIfTqZ3ovldvtW2U/KOeraXTRM9fUbEVLClq+8cIyyr2eN eOzXNxjxgKKjMzeABwNoFPxx9Ib83T2mdEr+pqQTfC9+CYjMbjNrW8c3EZ/YMXxsmm78 7S/vxutUsxU/J8Zey9yFKHBJ0+Dgi0TZtuU6YPyF7124STT0Rwa9YGK4foUCy/J2nryM BpRg== 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=565iNpk020UbD1xjr9eTpB3omRvF80jEqoeD4fj6Sn4=; b=Y9jrAAVevjkTBkvD4jnbSq7Mmnnv7RagFZCNmDgIsnqIL77ZdZhE9VJPSZl45HYIG3 m2ufZeQIFxCUB6fTDgPTbMlP6IPRJDMkPsr4pF5eNPnxxFO3s30+9BDULdnjIlTURn8Z aJGm2ZeIXRw2pfHA4yUvG7Tnt1X7+36sjJM633pXgyJ/lNIaSHEmxJvLZwh4d3rH5Loh aVbUAF+NXLUFKtbpJKRL1Q9ePUKdiJvdNOnKj7vYHbbNbd8jl2VD4/3u8Os3LK8HCnw5 3WDRhAba7ynMjm7dmXsaWyGZVRv2MHwmvyAb8VkYf2wvdShsOClCykjW++59kT5h0V1g DZ5A== 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 u37-v6si7946646pgl.585.2018.10.05.14.47.54; Fri, 05 Oct 2018 14:48:09 -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 S1728805AbeJFEp4 (ORCPT + 99 others); Sat, 6 Oct 2018 00:45:56 -0400 Received: from mga03.intel.com ([134.134.136.65]:29594 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726830AbeJFEp4 (ORCPT ); Sat, 6 Oct 2018 00:45:56 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Oct 2018 14:45:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,346,1534834800"; d="scan'208";a="75773034" Received: from maru.jf.intel.com ([10.54.51.77]) by fmsmga007.fm.intel.com with ESMTP; 05 Oct 2018 14:45: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 v7 1/5] dt-bindings: i2c: Add 'bus-timeout-ms' and '#retries' properties as common optional Date: Fri, 5 Oct 2018 14:45:03 -0700 Message-Id: <20181005214507.26315-2-jae.hyun.yoo@linux.intel.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181005214507.26315-1-jae.hyun.yoo@linux.intel.com> References: <20181005214507.26315-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 --- 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.0