devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] ARM: dts: Fix sysreg node name in exynos4.dtsi
@ 2013-10-31  4:46 Sachin Kamat
  2013-10-31  4:46 ` [PATCH v2 2/2] ARM: dts: Update Samsung sysreg binding document Sachin Kamat
  2013-10-31 12:39 ` [PATCH v2 1/2] ARM: dts: Fix sysreg node name in exynos4.dtsi Tomasz Figa
  0 siblings, 2 replies; 4+ messages in thread
From: Sachin Kamat @ 2013-10-31  4:46 UTC (permalink / raw)
  To: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	kgene.kim-Sze3O3UU22JBDgjK7y7TUQ, t.figa-Sze3O3UU22JBDgjK7y7TUQ,
	sachin.kamat-QSEj5FYQhm4dnm+yROfE0A

Fix the name as per DT node naming convention.
- rename the node to syscon which is a more generic name.
- append the register value to the node name.

Signed-off-by: Sachin Kamat <sachin.kamat-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
Changes since v1:
 * Renamed the node to syscon as suggested by Tomasz Figa.
---
 arch/arm/boot/dts/exynos4.dtsi |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi
index e2629464376f..ce24edba7f6d 100644
--- a/arch/arm/boot/dts/exynos4.dtsi
+++ b/arch/arm/boot/dts/exynos4.dtsi
@@ -99,7 +99,7 @@
 		reg = <0x10440000 0x1000>;
 	};
 
-	sys_reg: sysreg {
+	sys_reg: syscon@10010000 {
 		compatible = "samsung,exynos4-sysreg", "syscon";
 		reg = <0x10010000 0x400>;
 	};
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH v2 2/2] ARM: dts: Update Samsung sysreg binding document
  2013-10-31  4:46 [PATCH v2 1/2] ARM: dts: Fix sysreg node name in exynos4.dtsi Sachin Kamat
@ 2013-10-31  4:46 ` Sachin Kamat
  2013-10-31 14:11   ` Tomasz Figa
  2013-10-31 12:39 ` [PATCH v2 1/2] ARM: dts: Fix sysreg node name in exynos4.dtsi Tomasz Figa
  1 sibling, 1 reply; 4+ messages in thread
From: Sachin Kamat @ 2013-10-31  4:46 UTC (permalink / raw)
  To: linux-samsung-soc; +Cc: devicetree, kgene.kim, t.figa, sachin.kamat

Added a binding example for reference and updated the
node name.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 .../devicetree/bindings/arm/samsung/sysreg.txt     |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/arm/samsung/sysreg.txt b/Documentation/devicetree/bindings/arm/samsung/sysreg.txt
index 5039c0a12f55..f165567a9df0 100644
--- a/Documentation/devicetree/bindings/arm/samsung/sysreg.txt
+++ b/Documentation/devicetree/bindings/arm/samsung/sysreg.txt
@@ -1,7 +1,13 @@
 SAMSUNG S5P/Exynos SoC series System Registers (SYSREG)
 
 Properties:
- - name : should be 'sysreg';
+ - name : should be 'syscon';
  - compatible : should contain "samsung,<chip name>-sysreg", "syscon";
    For Exynos4 SoC series it should be "samsung,exynos4-sysreg", "syscon";
  - reg : offset and length of the register set.
+
+Example:
+	syscon@10010000 {
+		compatible = "samsung,exynos4-sysreg", "syscon";
+		reg = <0x10010000 0x400>;
+	};
-- 
1.7.9.5

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

* Re: [PATCH v2 1/2] ARM: dts: Fix sysreg node name in exynos4.dtsi
  2013-10-31  4:46 [PATCH v2 1/2] ARM: dts: Fix sysreg node name in exynos4.dtsi Sachin Kamat
  2013-10-31  4:46 ` [PATCH v2 2/2] ARM: dts: Update Samsung sysreg binding document Sachin Kamat
@ 2013-10-31 12:39 ` Tomasz Figa
  1 sibling, 0 replies; 4+ messages in thread
From: Tomasz Figa @ 2013-10-31 12:39 UTC (permalink / raw)
  To: Sachin Kamat; +Cc: linux-samsung-soc, devicetree, kgene.kim

On Thursday 31 of October 2013 10:16:53 Sachin Kamat wrote:
> Fix the name as per DT node naming convention.
> - rename the node to syscon which is a more generic name.
> - append the register value to the node name.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
> Changes since v1:
>  * Renamed the node to syscon as suggested by Tomasz Figa.
> ---
>  arch/arm/boot/dts/exynos4.dtsi |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Tomasz Figa <t.figa@samsung.com>

Best regards,
Tomasz

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

* Re: [PATCH v2 2/2] ARM: dts: Update Samsung sysreg binding document
  2013-10-31  4:46 ` [PATCH v2 2/2] ARM: dts: Update Samsung sysreg binding document Sachin Kamat
@ 2013-10-31 14:11   ` Tomasz Figa
  0 siblings, 0 replies; 4+ messages in thread
From: Tomasz Figa @ 2013-10-31 14:11 UTC (permalink / raw)
  To: Sachin Kamat; +Cc: linux-samsung-soc, devicetree, kgene.kim

Hi Sachin,

On Thursday 31 of October 2013 10:16:54 Sachin Kamat wrote:
> Added a binding example for reference and updated the
> node name.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  .../devicetree/bindings/arm/samsung/sysreg.txt     |    8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/arm/samsung/sysreg.txt b/Documentation/devicetree/bindings/arm/samsung/sysreg.txt
> index 5039c0a12f55..f165567a9df0 100644
> --- a/Documentation/devicetree/bindings/arm/samsung/sysreg.txt
> +++ b/Documentation/devicetree/bindings/arm/samsung/sysreg.txt
> @@ -1,7 +1,13 @@
>  SAMSUNG S5P/Exynos SoC series System Registers (SYSREG)
>  
>  Properties:
> - - name : should be 'sysreg';
> + - name : should be 'syscon';

I didn't notice this before, but a device binding should not rather
require any specific name of its top level node, so I'd simply remove this
line.

Otherwise the patch looks fine.

Best regards,
Tomasz

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

end of thread, other threads:[~2013-10-31 14:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-31  4:46 [PATCH v2 1/2] ARM: dts: Fix sysreg node name in exynos4.dtsi Sachin Kamat
2013-10-31  4:46 ` [PATCH v2 2/2] ARM: dts: Update Samsung sysreg binding document Sachin Kamat
2013-10-31 14:11   ` Tomasz Figa
2013-10-31 12:39 ` [PATCH v2 1/2] ARM: dts: Fix sysreg node name in exynos4.dtsi Tomasz Figa

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).