devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 1/2] i2c: s3c2410: add Sysreg phandle to i2c device nodes
       [not found] <1416818867-29156-1-git-send-email-pankaj.dubey@samsung.com>
@ 2014-11-24  8:47 ` Pankaj Dubey
  2014-11-26 18:43   ` Kukjin Kim
  0 siblings, 1 reply; 3+ messages in thread
From: Pankaj Dubey @ 2014-11-24  8:47 UTC (permalink / raw)
  To: linux-arm-kernel, linux-samsung-soc
  Cc: kgene.kim, tomasz.figa, thomas.ab, Pankaj Dubey, Rob Herring,
	Randy Dunlap, Russell King, devicetree, linux-doc

This patch adds syscon based phandle to i2c device nodes of exynos5250
and exynos5420. These phandles will be used to save restore i2c sysreg
configuration register during s2r from i2c driver.

CC: Rob Herring <robh+dt@kernel.org>
CC: Randy Dunlap <rdunlap@infradead.org>
CC: Russell King <linux@arm.linux.org.uk>
CC: devicetree@vger.kernel.org
CC: linux-doc@vger.kernel.org
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
 .../devicetree/bindings/i2c/i2c-s3c2410.txt        |    1 +
 arch/arm/boot/dts/exynos5250.dtsi                  |    4 ++++
 arch/arm/boot/dts/exynos5420.dtsi                  |    4 ++++
 3 files changed, 9 insertions(+)

diff --git a/Documentation/devicetree/bindings/i2c/i2c-s3c2410.txt b/Documentation/devicetree/bindings/i2c/i2c-s3c2410.txt
index 278de8e..89b3250 100644
--- a/Documentation/devicetree/bindings/i2c/i2c-s3c2410.txt
+++ b/Documentation/devicetree/bindings/i2c/i2c-s3c2410.txt
@@ -32,6 +32,7 @@ Optional properties:
     specified, default value is 0.
   - samsung,i2c-max-bus-freq: Desired frequency in Hz of the bus. If not
     specified, the default value in Hz is 100000.
+  - samsung,sysreg-phandle - handle to syscon used to control the system registers
 
 Example:
 
diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index 0a588b4..d45a07e 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -293,6 +293,7 @@
 		clock-names = "i2c";
 		pinctrl-names = "default";
 		pinctrl-0 = <&i2c0_bus>;
+		samsung,sysreg-phandle = <&sysreg_system_controller>;
 		status = "disabled";
 	};
 
@@ -306,6 +307,7 @@
 		clock-names = "i2c";
 		pinctrl-names = "default";
 		pinctrl-0 = <&i2c1_bus>;
+		samsung,sysreg-phandle = <&sysreg_system_controller>;
 		status = "disabled";
 	};
 
@@ -319,6 +321,7 @@
 		clock-names = "i2c";
 		pinctrl-names = "default";
 		pinctrl-0 = <&i2c2_bus>;
+		samsung,sysreg-phandle = <&sysreg_system_controller>;
 		status = "disabled";
 	};
 
@@ -332,6 +335,7 @@
 		clock-names = "i2c";
 		pinctrl-names = "default";
 		pinctrl-0 = <&i2c3_bus>;
+		samsung,sysreg-phandle = <&sysreg_system_controller>;
 		status = "disabled";
 	};
 
diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
index 8617a03..90bf401 100644
--- a/arch/arm/boot/dts/exynos5420.dtsi
+++ b/arch/arm/boot/dts/exynos5420.dtsi
@@ -560,6 +560,7 @@
 		clock-names = "i2c";
 		pinctrl-names = "default";
 		pinctrl-0 = <&i2c0_bus>;
+		samsung,sysreg-phandle = <&sysreg_system_controller>;
 		status = "disabled";
 	};
 
@@ -573,6 +574,7 @@
 		clock-names = "i2c";
 		pinctrl-names = "default";
 		pinctrl-0 = <&i2c1_bus>;
+		samsung,sysreg-phandle = <&sysreg_system_controller>;
 		status = "disabled";
 	};
 
@@ -586,6 +588,7 @@
 		clock-names = "i2c";
 		pinctrl-names = "default";
 		pinctrl-0 = <&i2c2_bus>;
+		samsung,sysreg-phandle = <&sysreg_system_controller>;
 		status = "disabled";
 	};
 
@@ -599,6 +602,7 @@
 		clock-names = "i2c";
 		pinctrl-names = "default";
 		pinctrl-0 = <&i2c3_bus>;
+		samsung,sysreg-phandle = <&sysreg_system_controller>;
 		status = "disabled";
 	};
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v6 1/2] i2c: s3c2410: add Sysreg phandle to i2c device nodes
  2014-11-24  8:47 ` [PATCH v6 1/2] i2c: s3c2410: add Sysreg phandle to i2c device nodes Pankaj Dubey
@ 2014-11-26 18:43   ` Kukjin Kim
  2014-11-27  2:49     ` Pankaj Dubey
  0 siblings, 1 reply; 3+ messages in thread
From: Kukjin Kim @ 2014-11-26 18:43 UTC (permalink / raw)
  To: Pankaj Dubey
  Cc: linux-arm-kernel, linux-samsung-soc, kgene.kim, tomasz.figa,
	thomas.ab, Rob Herring, Randy Dunlap, Russell King, devicetree,
	linux-doc

On 11/24/14 17:47, Pankaj Dubey wrote:
> This patch adds syscon based phandle to i2c device nodes of exynos5250
> and exynos5420. These phandles will be used to save restore i2c sysreg
> configuration register during s2r from i2c driver.
> 
> CC: Rob Herring <robh+dt@kernel.org>
> CC: Randy Dunlap <rdunlap@infradead.org>
> CC: Russell King <linux@arm.linux.org.uk>
> CC: devicetree@vger.kernel.org
> CC: linux-doc@vger.kernel.org
> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>

Applied with change the subject 'ARM: dts: add sysreg phandle to...'

BTW I'm holding on 2nd because conflicts between pm update and cleanup
branches in my tree...

- Kukjin

> ---
>  .../devicetree/bindings/i2c/i2c-s3c2410.txt        |    1 +
>  arch/arm/boot/dts/exynos5250.dtsi                  |    4 ++++
>  arch/arm/boot/dts/exynos5420.dtsi                  |    4 ++++
>  3 files changed, 9 insertions(+)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v6 1/2] i2c: s3c2410: add Sysreg phandle to i2c device nodes
  2014-11-26 18:43   ` Kukjin Kim
@ 2014-11-27  2:49     ` Pankaj Dubey
  0 siblings, 0 replies; 3+ messages in thread
From: Pankaj Dubey @ 2014-11-27  2:49 UTC (permalink / raw)
  To: Kukjin Kim
  Cc: linux-arm-kernel, linux-samsung-soc, kgene.kim, tomasz.figa,
	thomas.ab, Rob Herring, Randy Dunlap, Russell King, devicetree,
	linux-doc

On Thursday 27 November 2014 12:13 AM, Kukjin Kim wrote:
> On 11/24/14 17:47, Pankaj Dubey wrote:
>> This patch adds syscon based phandle to i2c device nodes of exynos5250
>> and exynos5420. These phandles will be used to save restore i2c sysreg
>> configuration register during s2r from i2c driver.
>>
>> CC: Rob Herring <robh+dt@kernel.org>
>> CC: Randy Dunlap <rdunlap@infradead.org>
>> CC: Russell King <linux@arm.linux.org.uk>
>> CC: devicetree@vger.kernel.org
>> CC: linux-doc@vger.kernel.org
>> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
>
> Applied with change the subject 'ARM: dts: add sysreg phandle to...'
>

Thanks for correcting subject message.

> BTW I'm holding on 2nd because conflicts between pm update and cleanup
> branches in my tree...

Please let me know if anything to be done from my end.

Thanks,
Pankaj Dubey
>
> - Kukjin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-27  2:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1416818867-29156-1-git-send-email-pankaj.dubey@samsung.com>
2014-11-24  8:47 ` [PATCH v6 1/2] i2c: s3c2410: add Sysreg phandle to i2c device nodes Pankaj Dubey
2014-11-26 18:43   ` Kukjin Kim
2014-11-27  2:49     ` Pankaj Dubey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).