From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mikko Perttunen Subject: [PATCH v2 3/5] ARM: tegra124: Add I2C controller ids to device tree Date: Wed, 13 Aug 2014 15:41:23 +0300 Message-ID: <1407933685-12404-4-git-send-email-mperttunen@nvidia.com> References: <1407933685-12404-1-git-send-email-mperttunen@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1407933685-12404-1-git-send-email-mperttunen@nvidia.com> Sender: linux-kernel-owner@vger.kernel.org To: swarren@wwwdotorg.org, thierry.reding@gmail.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, wni@nvidia.com, Mikko Perttunen List-Id: linux-tegra@vger.kernel.org I2C controller ids are required when programming hardware blocks that send messages to devices connected to an I2C bus, such as when the PMC sends a poweroff message to the PMIC. Add ids to all I2C controllers in Tegra124. Signed-off-by: Mikko Perttunen --- arch/arm/boot/dts/tegra124.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/tegra124.dtsi b/arch/arm/boot/dts/tegra124.dtsi index 03916ef..a101960 100644 --- a/arch/arm/boot/dts/tegra124.dtsi +++ b/arch/arm/boot/dts/tegra124.dtsi @@ -289,6 +289,7 @@ reset-names = "i2c"; dmas = <&apbdma 21>, <&apbdma 21>; dma-names = "rx", "tx"; + nvidia,controller-id = <0>; status = "disabled"; }; @@ -304,6 +305,7 @@ reset-names = "i2c"; dmas = <&apbdma 22>, <&apbdma 22>; dma-names = "rx", "tx"; + nvidia,controller-id = <1>; status = "disabled"; }; @@ -319,6 +321,7 @@ reset-names = "i2c"; dmas = <&apbdma 23>, <&apbdma 23>; dma-names = "rx", "tx"; + nvidia,controller-id = <2>; status = "disabled"; }; @@ -334,6 +337,7 @@ reset-names = "i2c"; dmas = <&apbdma 26>, <&apbdma 26>; dma-names = "rx", "tx"; + nvidia,controller-id = <3>; status = "disabled"; }; @@ -349,6 +353,7 @@ reset-names = "i2c"; dmas = <&apbdma 24>, <&apbdma 24>; dma-names = "rx", "tx"; + nvidia,controller-id = <4>; status = "disabled"; }; @@ -364,6 +369,7 @@ reset-names = "i2c"; dmas = <&apbdma 30>, <&apbdma 30>; dma-names = "rx", "tx"; + nvidia,controller-id = <5>; status = "disabled"; }; -- 1.8.1.5 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753004AbaHMMnA (ORCPT ); Wed, 13 Aug 2014 08:43:00 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:15684 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752831AbaHMMmV (ORCPT ); Wed, 13 Aug 2014 08:42:21 -0400 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Wed, 13 Aug 2014 05:29:04 -0700 From: Mikko Perttunen To: , CC: , , , , Mikko Perttunen Subject: [PATCH v2 3/5] ARM: tegra124: Add I2C controller ids to device tree Date: Wed, 13 Aug 2014 15:41:23 +0300 Message-ID: <1407933685-12404-4-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 I2C controller ids are required when programming hardware blocks that send messages to devices connected to an I2C bus, such as when the PMC sends a poweroff message to the PMIC. Add ids to all I2C controllers in Tegra124. Signed-off-by: Mikko Perttunen --- arch/arm/boot/dts/tegra124.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/tegra124.dtsi b/arch/arm/boot/dts/tegra124.dtsi index 03916ef..a101960 100644 --- a/arch/arm/boot/dts/tegra124.dtsi +++ b/arch/arm/boot/dts/tegra124.dtsi @@ -289,6 +289,7 @@ reset-names = "i2c"; dmas = <&apbdma 21>, <&apbdma 21>; dma-names = "rx", "tx"; + nvidia,controller-id = <0>; status = "disabled"; }; @@ -304,6 +305,7 @@ reset-names = "i2c"; dmas = <&apbdma 22>, <&apbdma 22>; dma-names = "rx", "tx"; + nvidia,controller-id = <1>; status = "disabled"; }; @@ -319,6 +321,7 @@ reset-names = "i2c"; dmas = <&apbdma 23>, <&apbdma 23>; dma-names = "rx", "tx"; + nvidia,controller-id = <2>; status = "disabled"; }; @@ -334,6 +337,7 @@ reset-names = "i2c"; dmas = <&apbdma 26>, <&apbdma 26>; dma-names = "rx", "tx"; + nvidia,controller-id = <3>; status = "disabled"; }; @@ -349,6 +353,7 @@ reset-names = "i2c"; dmas = <&apbdma 24>, <&apbdma 24>; dma-names = "rx", "tx"; + nvidia,controller-id = <4>; status = "disabled"; }; @@ -364,6 +369,7 @@ reset-names = "i2c"; dmas = <&apbdma 30>, <&apbdma 30>; dma-names = "rx", "tx"; + nvidia,controller-id = <5>; status = "disabled"; }; -- 1.8.1.5 From mboxrd@z Thu Jan 1 00:00:00 1970 From: mperttunen@nvidia.com (Mikko Perttunen) Date: Wed, 13 Aug 2014 15:41:23 +0300 Subject: [PATCH v2 3/5] ARM: tegra124: Add I2C controller ids to device tree In-Reply-To: <1407933685-12404-1-git-send-email-mperttunen@nvidia.com> References: <1407933685-12404-1-git-send-email-mperttunen@nvidia.com> Message-ID: <1407933685-12404-4-git-send-email-mperttunen@nvidia.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org I2C controller ids are required when programming hardware blocks that send messages to devices connected to an I2C bus, such as when the PMC sends a poweroff message to the PMIC. Add ids to all I2C controllers in Tegra124. Signed-off-by: Mikko Perttunen --- arch/arm/boot/dts/tegra124.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/tegra124.dtsi b/arch/arm/boot/dts/tegra124.dtsi index 03916ef..a101960 100644 --- a/arch/arm/boot/dts/tegra124.dtsi +++ b/arch/arm/boot/dts/tegra124.dtsi @@ -289,6 +289,7 @@ reset-names = "i2c"; dmas = <&apbdma 21>, <&apbdma 21>; dma-names = "rx", "tx"; + nvidia,controller-id = <0>; status = "disabled"; }; @@ -304,6 +305,7 @@ reset-names = "i2c"; dmas = <&apbdma 22>, <&apbdma 22>; dma-names = "rx", "tx"; + nvidia,controller-id = <1>; status = "disabled"; }; @@ -319,6 +321,7 @@ reset-names = "i2c"; dmas = <&apbdma 23>, <&apbdma 23>; dma-names = "rx", "tx"; + nvidia,controller-id = <2>; status = "disabled"; }; @@ -334,6 +337,7 @@ reset-names = "i2c"; dmas = <&apbdma 26>, <&apbdma 26>; dma-names = "rx", "tx"; + nvidia,controller-id = <3>; status = "disabled"; }; @@ -349,6 +353,7 @@ reset-names = "i2c"; dmas = <&apbdma 24>, <&apbdma 24>; dma-names = "rx", "tx"; + nvidia,controller-id = <4>; status = "disabled"; }; @@ -364,6 +369,7 @@ reset-names = "i2c"; dmas = <&apbdma 30>, <&apbdma 30>; dma-names = "rx", "tx"; + nvidia,controller-id = <5>; status = "disabled"; }; -- 1.8.1.5