diff mbox

[V8,1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

Message ID 1384238088-9862-2-git-send-email-l.krishna@samsung.com
State Superseded, archived
Headers show

Commit Message

Leela Krishna Amudala Nov. 12, 2013, 6:34 a.m. UTC
This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files to
handle PMU register accesses in a centralized way using syscon driver

Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
---
 Documentation/devicetree/bindings/arm/samsung/pmu.txt |   13 +++++++++++++
 arch/arm/boot/dts/exynos5250.dtsi                     |    5 +++++
 arch/arm/boot/dts/exynos5420.dtsi                     |    5 +++++
 3 files changed, 23 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/samsung/pmu.txt

Comments

Tomasz Figa Nov. 15, 2013, 11:43 p.m. UTC | #1
On Tuesday 12 of November 2013 12:04:46 Leela Krishna Amudala wrote:
> This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files to
> handle PMU register accesses in a centralized way using syscon driver
> 
> Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
> Reviewed-by: Tomasz Figa <t.figa@samsung.com>
> ---
>  Documentation/devicetree/bindings/arm/samsung/pmu.txt |   13 +++++++++++++
>  arch/arm/boot/dts/exynos5250.dtsi                     |    5 +++++
>  arch/arm/boot/dts/exynos5420.dtsi                     |    5 +++++
>  3 files changed, 23 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/arm/samsung/pmu.txt
> 
> diff --git a/Documentation/devicetree/bindings/arm/samsung/pmu.txt b/Documentation/devicetree/bindings/arm/samsung/pmu.txt
> new file mode 100644
> index 0000000..90f975d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/samsung/pmu.txt
> @@ -0,0 +1,13 @@
> +SAMSUNG Exynos SoC series PMU Registers
> +
> +Properties:
> + - name : should be 'syscon';
> + - compatible : should contain "samsung,<chip name>-pmu", "syscon";

AFAIR there was a discussion about using <chip name> wildcards some
time ago and if I remember correctly, the conclusion was that the list
of all supported compatible values should be provided anyway, so there
is no point in using such wildcards.

This is how I would write this:

 - compatible : should contain two values. First value must be one from
   following list:
     - "samsung,exynos5250-pmu" - for Exynos5250 SoC,
     - "samsung,exynos5420-pmu" - for Exynos5420 SoC.
   Second value must be always "syscon".

Best regards,
Tomasz

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Leela Krishna Amudala Nov. 18, 2013, 9:17 a.m. UTC | #2
Hi Tomasz,

On Sat, Nov 16, 2013 at 5:13 AM, Tomasz Figa <tomasz.figa@gmail.com> wrote:
> On Tuesday 12 of November 2013 12:04:46 Leela Krishna Amudala wrote:
>> This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files to
>> handle PMU register accesses in a centralized way using syscon driver
>>
>> Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
>> Reviewed-by: Tomasz Figa <t.figa@samsung.com>
>> ---
>>  Documentation/devicetree/bindings/arm/samsung/pmu.txt |   13 +++++++++++++
>>  arch/arm/boot/dts/exynos5250.dtsi                     |    5 +++++
>>  arch/arm/boot/dts/exynos5420.dtsi                     |    5 +++++
>>  3 files changed, 23 insertions(+)
>>  create mode 100644 Documentation/devicetree/bindings/arm/samsung/pmu.txt
>>
>> diff --git a/Documentation/devicetree/bindings/arm/samsung/pmu.txt b/Documentation/devicetree/bindings/arm/samsung/pmu.txt
>> new file mode 100644
>> index 0000000..90f975d
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/arm/samsung/pmu.txt
>> @@ -0,0 +1,13 @@
>> +SAMSUNG Exynos SoC series PMU Registers
>> +
>> +Properties:
>> + - name : should be 'syscon';
>> + - compatible : should contain "samsung,<chip name>-pmu", "syscon";
>
> AFAIR there was a discussion about using <chip name> wildcards some
> time ago and if I remember correctly, the conclusion was that the list
> of all supported compatible values should be provided anyway, so there
> is no point in using such wildcards.
>
> This is how I would write this:
>
>  - compatible : should contain two values. First value must be one from
>    following list:
>      - "samsung,exynos5250-pmu" - for Exynos5250 SoC,
>      - "samsung,exynos5420-pmu" - for Exynos5420 SoC.
>    Second value must be always "syscon".
>

Okay, will change it

Best Wishes,
Leela Krishna

> Best regards,
> Tomasz
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/arm/samsung/pmu.txt b/Documentation/devicetree/bindings/arm/samsung/pmu.txt
new file mode 100644
index 0000000..90f975d
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/samsung/pmu.txt
@@ -0,0 +1,13 @@ 
+SAMSUNG Exynos SoC series PMU Registers
+
+Properties:
+ - name : should be 'syscon';
+ - compatible : should contain "samsung,<chip name>-pmu", "syscon";
+   For Exynos5250 SoC it should be "samsung,exynos5250-pmu", "syscon";
+ - reg : offset and length of the register set.
+
+Example :
+pmu_syscon: syscon@10040000 {
+	compatible = "samsung,exynos5250-pmu", "syscon";
+	reg = <0x10040000 0x5000>;
+};
diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index c4a8662..6056a83 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -158,6 +158,11 @@ 
 		interrupts = <0 47 0>;
 	};
 
+	pmu_syscon: syscon@10040000 {
+		compatible = "samsung,exynos5250-pmu", "syscon";
+		reg = <0x10040000 0x5000>;
+	};
+
 	watchdog {
 		clocks = <&clock 336>;
 		clock-names = "watchdog";
diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
index 6ffefd1..39ce15a 100644
--- a/arch/arm/boot/dts/exynos5420.dtsi
+++ b/arch/arm/boot/dts/exynos5420.dtsi
@@ -369,4 +369,9 @@ 
 		clock-names = "gscl";
 		samsung,power-domain = <&gsc_pd>;
 	};
+
+	pmu_syscon: syscon@10040000 {
+		compatible = "samsung,exynos5420-pmu", "syscon";
+		reg = <0x10040000 0x5000>;
+	};
 };