[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1415625137-4791-3-git-send-email-mikko.perttunen@kapsi.fi>
Date: Mon, 10 Nov 2014 15:12:14 +0200
From: Mikko Perttunen <mikko.perttunen@...si.fi>
To: swarren@...dotorg.org, thierry.reding@...il.com, gnurou@...il.com
Cc: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-tegra@...r.kernel.org, wni@...dia.com,
Mikko Perttunen <mperttunen@...dia.com>
Subject: [PATCH v4 REPOST 2/5] of: Add nvidia,controller-id property to Tegra I2C bindings
From: Mikko Perttunen <mperttunen@...dia.com>
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 <mperttunen@...dia.com>
Reviewed-by: Wei Ni <wni@...dia.com>
Tested-by: Wei Ni <wni@...dia.com>
---
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@...0c000 {
@@ -71,5 +75,6 @@ Example:
reset-names = "i2c";
dmas = <&apbdma 16>, <&apbdma 16>;
dma-names = "rx", "tx";
+ nvidia,controller-id = <0>;
status = "disabled";
};
--
2.1.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists