From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752870AbaHMMmW (ORCPT ); Wed, 13 Aug 2014 08:42:22 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:5522 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752782AbaHMMmT (ORCPT ); Wed, 13 Aug 2014 08:42:19 -0400 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Wed, 13 Aug 2014 05:33:07 -0700 From: Mikko Perttunen To: , CC: , , , , Mikko Perttunen Subject: [PATCH v2 2/5] of: Add nvidia,controller-id property to Tegra I2C bindings Date: Wed, 13 Aug 2014 15:41:22 +0300 Message-ID: <1407933685-12404-3-git-send-email-mperttunen@nvidia.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1407933685-12404-1-git-send-email-mperttunen@nvidia.com> References: <1407933685-12404-1-git-send-email-mperttunen@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sometimes, hardware blocks want to issue requests to devices connected to I2C buses by itself. In such case, the bus the target device resides on must be configured into a register. For this purpose, each I2C controller has a defined ID known by the hardware. Add a property for these IDs to the device tree bindings, so that drivers can know what ID to write to a hardware register when configuring a block that sends I2C messages autonomously. Signed-off-by: Mikko Perttunen --- Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt b/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt index 87507e9..e9e5994 100644 --- a/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt +++ b/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt @@ -57,6 +57,10 @@ Required properties: - rx - tx +Optional properties: +- nvidia,controller-id: ID of controller when referred to in + hardware registers. + Example: i2c@7000c000 { @@ -71,5 +75,6 @@ Example: reset-names = "i2c"; dmas = <&apbdma 16>, <&apbdma 16>; dma-names = "rx", "tx"; + nvidia,controller-id = <0>; status = "disabled"; }; -- 1.8.1.5