Skip to contentSkip to conversation

Add watchdog DT nodes and use syscon regmap interface to configure pmu registers

PATCH In review Leela Krishna Amudala 8 participants 25 messages Dec 6, 2013 – Jan 21, 2014 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v12 cover Add watchdog DT nodes and use syscon regmap interface to configure pmu registers

This patchset does the following things
- Adds pmusysreg device node to exynos5.dtsi file
- Adds watchdog DT nodes to Exynos5250 and 5420
- Uses syscon regmap interface to configure pmu registers to mask/unmask enable/disable of watchdog.

This patch set is rebased on Kgene's for-next branch and tested on SMDK5420

changes since V11:
- Added EXYNOS5 prefix to REG_OFFSET defines (suggested by Tomasz)
- NEEDS_PMU_CONFIG => HAS_PMU_CONFIG (suggested by Olof, Guenter)
- Move QUIRK_HAS_PMU_CONFIG check to s3c2410wdt_mask_and_disable_reset (suggested by Guenter)

changes since V10:
- followed coding style rules
- removed duplicate error message suggested by Guenter Roeck <[email protected]>

changes since V9:
- added descriptions to s3c2410_wdt_variant structure fields
- moved calling s3c2410wdt_mask_and_disable_reset() function above s3c2410wdt_start() call in probe
- put dev_err message back to s3c2410wdt_mask_and_disable_reset() function (suggested by Doug Anderson <[email protected]>)

changes since V8:
- modified the patch description for the below patch
"watchdog: s3c2410_wdt: use syscon regmap interface to configure pmu register"
- removed MODULE_ALIAS in watchdog driver
- changed dev_warn to dev_err in one failure case handling (suggested by Guenter Roeck <[email protected]>)
- renamed variable name from pmu_config to drv_data
- changed the compatible field description in documentation file
(suggested by Tomasz Figa <[email protected]>)

changes since V7:
- re-ordered the patches in the series
- moved pmu_config_s3c2410 structure out of ifdef CONFIG_OF and limited only this structure to platform match table
- renamed structure name from s3c_wdt_driver_ids to s3c2410_wdt_ids
- removed exynos variants from platform match table (suggested by Tomasz Figa <[email protected]>)

changes since V6:
- added SoC-specific compatible value to syscon node and documented it
- given more patch description for below patch
ARM: dts: update watchdog device nodes for Exynos5250 and Exynos5420
- added platform_device_id array for watchdog devices
- selected MFD_SYSCON in Kconfig entry for watchdog

Changes since V5:
- removed status property in DT nodes
- changed the return type for the function s3c2410wdt_mask_and_disable_reset() and handled error cases
- Handled to get driver data in non-DT cases
- Addressed comments given by Tomasz Figa <[email protected]>

Changes since V4:
- changed the node name from pmusysreg to syscon and node label from pmu_sys_reg to pmu_syscon
- changed the property name from samsung,pmusysreg to samsung,syscon-phandle
- used regmap_update_bits instead of remap_read/regmap_write
- Addressed other comments given by Tomasz Figa <[email protected]>

Changes since V3:
- changed the compatible strings for watchdog node
- splitted up adding pmusysreg node and made it separate patch
- Addressed comments given by Sachin Kamat <[email protected]>

Changes since V2:
- used syscon regmap interface to configure pmu registers in WDT driver (suggested by Tomasz Figa <[email protected]>)

Changes since V1:
- Added new compatible string for Exynos5 SoCs
- Introduced quirk mechanism to program PMU registers
- Addressed comments given by Tomasz Figa <[email protected]>

Leela Krishna Amudala (3):
ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files
watchdog: s3c2410_wdt: use syscon regmap interface to configure pmu
register
ARM: dts: update watchdog device nodes for Exynos5250 and Exynos5420

 .../devicetree/bindings/arm/samsung/pmu.txt        |   15 ++
 .../devicetree/bindings/watchdog/samsung-wdt.txt   |   21 ++-
 arch/arm/boot/dts/exynos5.dtsi                     |    7 -
 arch/arm/boot/dts/exynos5250.dtsi                  |   11 +-
 arch/arm/boot/dts/exynos5420.dtsi                  |   14 ++
 drivers/watchdog/Kconfig                           |    1 +
 drivers/watchdog/s3c2410_wdt.c                     |  154 ++++++++++++++++++--
 7 files changed, 205 insertions(+), 18 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/samsung/pmu.txt
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v12 1/3 ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files to handle PMU register accesses in a centralized way using syscon driver

---
 Documentation/devicetree/bindings/arm/samsung/pmu.txt |   15 +++++++++++++++
 arch/arm/boot/dts/exynos5250.dtsi                     |    5 +++++
 arch/arm/boot/dts/exynos5420.dtsi                     |    5 +++++
 3 files changed, 25 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/samsung/pmu.txt
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +15 -0
new file mode 100644
index 0000000..f1f1552
@@ -0,0 +1,15 @@
+SAMSUNG Exynos SoC series PMU Registers
+
+Properties:
+ - 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".
+
+ - reg : offset and length of the register set.
+
+Example :
+pmu_system_controller: system-controller@10040000 {
+	compatible = "samsung,exynos5250-pmu", "syscon";
+	reg = <0x10040000 0x5000>;
+};
arch/arm/boot/dts/exynos5250.dtsi +5 -0
index b98ffc3..62f9e36 100644
@@ -163,6 +163,11 @@
 		interrupts = <0 47 0>;
 	};
 
+	pmu_system_controller: system-controller@10040000 {
+		compatible = "samsung,exynos5250-pmu", "syscon";
+		reg = <0x10040000 0x5000>;
+	};
+
 	watchdog {
 		clocks = <&clock 336>;
 		clock-names = "watchdog";
arch/arm/boot/dts/exynos5420.dtsi +5 -0
index b1fa334..cd47db0 100644
@@ -402,4 +402,9 @@
 		clock-names = "gscl";
 		samsung,power-domain = <&gsc_pd>;
 	};
+
+	pmu_system_controller: system-controller@10040000 {
+		compatible = "samsung,exynos5420-pmu", "syscon";
+		reg = <0x10040000 0x5000>;
+	};
 };
Signature · 1 line
1.7.10.4
#2 lore raw

Re: [PATCH V12 1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

Leela Krishna,

Quoted 25 lines · Leela Krishna Amudala

This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files to handle PMU register accesses in a centralized way using syscon driver

---
 Documentation/devicetree/bindings/arm/samsung/pmu.txt |   15 +++++++++++++++
 arch/arm/boot/dts/exynos5250.dtsi                     |    5 +++++
 arch/arm/boot/dts/exynos5420.dtsi                     |    5 +++++
 3 files changed, 25 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/samsung/pmu.txt
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +5 -0
new file mode 100644
index 0000000..f1f1552
@@ -0,0 +1,15 @@
+SAMSUNG Exynos SoC series PMU Registers
+
+Properties:
+ - compatible : should contain two values. First value must be one from following list:
+                  - "samsung,exynos5250-pmu" - for Exynos5250 SoC,

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 15

Quoted 10 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +10 -0
+                  - "samsung,exynos5420-pmu" - for Exynos5420 SoC.
+               second value must be always "syscon".
+
+ - reg : offset and length of the register set.
+
+Example :
+pmu_system_controller: system-controller@10040000 {
+       compatible = "samsung,exynos5250-pmu", "syscon";
+       reg = <0x10040000 0x5000>;
+};

This looks right to me based on previous discussion. Hopefully Olof and/or Tomasz can indicate that they're happy with it now.

-Doug

A message that is not in the archive (sent off-list or not yet received): 1386308868-30264-2-git-send-email-l.krishna-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org

#4 lore raw

Re: [PATCH V12 1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

Hi,

Just a few minor comments...

Quoted 1 line · Leela Krishna Amudala

This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files to

s/pmusysreg/PMU sysreg ? Similarly I would capitalize it in the subject line as well.

Documentation/devicetree/bindings/arm/samsung/pmu.txt

Quoted 18 lines

handle PMU register accesses in a centralized way using syscon driver

---
  Documentation/devicetree/bindings/arm/samsung/pmu.txt |   15 +++++++++++++++
  arch/arm/boot/dts/exynos5250.dtsi                     |    5 +++++
  arch/arm/boot/dts/exynos5420.dtsi                     |    5 +++++
  3 files changed, 25 insertions(+)

create mode 100644 Documentation/devicetree/bindings/arm/samsung/pmu.txt

Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +0 -0
new file mode 100644
index 0000000..f1f1552

I might be easy to confuse this with ARM Performance Monitoring Unit. So perhaps we should rename this file to, e.g. power-management-unit.txt ?

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 1

Quoted 2 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +1 -0
@@ -0,0 +1,15 @@
+SAMSUNG Exynos SoC series PMU Registers

s/PMU/Power Management Unit ?

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 6

Quoted 5 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +5 -0
+
+Properties:
+ - 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.

s/./; ?

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 7

Quoted 1 line
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +1 -0
+		second value must be always "syscon".

It might be more safe to specify it as the last value, so something along the lines of:

The last value should be "syscon".

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 12

Quoted 5 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +5 -0
+
+ - reg : offset and length of the register set.
+
+Example :
+pmu_system_controller: system-controller@10040000 {

Might be more sensible to use 'power_management_unit' for the label.

arch/arm/boot/dts/exynos5250.dtsi line 166

Quoted 12 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +3 -0
+	compatible = "samsung,exynos5250-pmu", "syscon";
+	reg =<0x10040000 0x5000>;
+};
arch/arm/boot/dts/exynos5250.dtsi +1 -0
index b98ffc3..62f9e36 100644
@@ -163,6 +163,11 @@
  		interrupts =<0 47 0>;
  	};
 
+	pmu_system_controller: system-controller@10040000 {

s/pmu_system_controller/power_management_unit ? So it describes the subsystem better in terms used in the SoCs User Manual ?

Quoted 12 lines
arch/arm/boot/dts/exynos5250.dtsi +4 -0
+		compatible = "samsung,exynos5250-pmu", "syscon";
+		reg =<0x10040000 0x5000>;
+	};
+
  	watchdog {
  		clocks =<&clock 336>;
  		clock-names = "watchdog";
arch/arm/boot/dts/exynos5420.dtsi +0 -0
index b1fa334..cd47db0 100644

arch/arm/boot/dts/exynos5420.dtsi line 406

Quoted 5 lines
arch/arm/boot/dts/exynos5420.dtsi +2 -0
@@ -402,4 +402,9 @@
  		clock-names = "gscl";
  		samsung,power-domain =<&gsc_pd>;
  	};
+
+	pmu_system_controller: system-controller@10040000 {

s/pmu_system_controller/power_management_unit ?

arch/arm/boot/dts/exynos5420.dtsi line 410

Quoted 4 lines
arch/arm/boot/dts/exynos5420.dtsi +3 -0
+		compatible = "samsung,exynos5420-pmu", "syscon";
+		reg =<0x10040000 0x5000>;
+	};
  };

Otherwise looks good.

Thanks,
Sylwester
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

Re: [PATCH V12 1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

Hi Sylwester,

Quoted 3 lines · On Friday 06 of December 2013 18:22:32 Sylwester Nawrocki wrote:

Hi,

Just a few minor comments...

I wouldn't really nitpick on such things, but if we end up needing another respin, here's what I think.

Quoted 6 lines · Leela Krishna Amudala
Quoted 1 line

This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files to

s/pmusysreg/PMU sysreg ? Similarly I would capitalize it in the subject line as well.

Well, since this is supposed to be a human readable description, I would go even further and write "...device tree node of Power Management Unit
to...".

Quoted 14 lines
Quoted 14 lines

handle PMU register accesses in a centralized way using syscon driver

---
  Documentation/devicetree/bindings/arm/samsung/pmu.txt |   15 +++++++++++++++
  arch/arm/boot/dts/exynos5250.dtsi                     |    5 +++++
  arch/arm/boot/dts/exynos5420.dtsi                     |    5 +++++
  3 files changed, 25 insertions(+)

create mode 100644 Documentation/devicetree/bindings/arm/samsung/pmu.txt

Quoted 8 lines

Documentation/devicetree/bindings/arm/samsung/pmu.txt

Quoted 5 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +0 -0
new file mode 100644
index 0000000..f1f1552

I might be easy to confuse this with ARM Performance Monitoring Unit. So perhaps we should rename this file to, e.g. power-management-unit.txt ?

Considering location of this file, which is arm/samsung, I think this name is pretty much clear. ARM PMU is a generic thing, so it couldn't be placed here.

Quoted 5 lines

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 1

Quoted 3 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +1 -0
@@ -0,0 +1,15 @@
+SAMSUNG Exynos SoC series PMU Registers

s/PMU/Power Management Unit ?

s/PMU Registers/Power Management Unit/

Quoted 16 lines

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 6

Quoted 6 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +5 -0
+
+Properties:
+ - 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.

s/./; ?

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 7

Quoted 1 line
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +1 -0
+		second value must be always "syscon".

It might be more safe to specify it as the last value, so something along the lines of:

The last value should be "syscon".

Quoted 7 lines

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 12

Quoted 5 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +5 -0
+
+ - reg : offset and length of the register set.
+
+Example :
+pmu_system_controller: system-controller@10040000 {

Might be more sensible to use 'power_management_unit' for the label.

That's quite a lot of text for a label. pmu_syscon as in previous version of this patch would look more sensible to me.

Quoted 12 lines
Quoted 12 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +3 -0
+	compatible = "samsung,exynos5250-pmu", "syscon";
+	reg =<0x10040000 0x5000>;
+};
arch/arm/boot/dts/exynos5250.dtsi +0 -0
index b98ffc3..62f9e36 100644
@@ -163,6 +163,11 @@
  		interrupts =<0 47 0>;
  	};
 
Quoted 5 lines

arch/arm/boot/dts/exynos5250.dtsi line 166

Quoted 1 line
arch/arm/boot/dts/exynos5250.dtsi +1 -0
+	pmu_system_controller: system-controller@10040000 {

s/pmu_system_controller/power_management_unit ? So it describes the subsystem
better in terms used in the SoCs User Manual ?

See above.

Quoted 12 lines
Quoted 12 lines
arch/arm/boot/dts/exynos5250.dtsi +4 -0
+		compatible = "samsung,exynos5250-pmu", "syscon";
+		reg =<0x10040000 0x5000>;
+	};
+
  	watchdog {
  		clocks =<&clock 336>;
  		clock-names = "watchdog";
arch/arm/boot/dts/exynos5420.dtsi +0 -0
index b1fa334..cd47db0 100644
Quoted 8 lines

arch/arm/boot/dts/exynos5420.dtsi line 406

Quoted 6 lines
arch/arm/boot/dts/exynos5420.dtsi +2 -0
@@ -402,4 +402,9 @@
  		clock-names = "gscl";
  		samsung,power-domain =<&gsc_pd>;
  	};
+
+	pmu_system_controller: system-controller@10040000 {

s/pmu_system_controller/power_management_unit ?

See above.

Best regards,
Tomasz

#6 lore raw

Re: [PATCH V12 1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

Hi Tomasz,

Quoted 1 line · Tomasz Figa

On Friday 06 of December 2013 18:22:32 Sylwester Nawrocki wrote:

[...]

Quoted 2 lines

I wouldn't really nitpick on such things, but if we end up needing another respin, here's what I think.

Yeah, I didn't really realize the iteration index for this series was already a 2 digit number and some people could have already gotten upset or seriously impatient. Started to regret I even bothered with posting any comments to that. :) Anyway, I didn't request any corrections, just pointed out what could be improved. People are free to accept it or ignore as they see fit. And having seen patch series that got merged after periods like 2.5 year V12 is not something unusual anyway. :)

Quoted 9 lines
Quoted 5 lines · Leela Krishna Amudala
Quoted 1 line

This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files to

s/pmusysreg/PMU sysreg ? Similarly I would capitalize it in the subject line as well.

Well, since this is supposed to be a human readable description, I would go even further and write "...device tree node of Power Management Unit
to...".

Agreed, it sounds better.

Quoted 22 lines
Quoted 13 lines
Quoted 13 lines

handle PMU register accesses in a centralized way using syscon driver

---
   Documentation/devicetree/bindings/arm/samsung/pmu.txt |   15 +++++++++++++++
   arch/arm/boot/dts/exynos5250.dtsi                     |    5 +++++
   arch/arm/boot/dts/exynos5420.dtsi                     |    5 +++++
   3 files changed, 25 insertions(+)

create mode 100644 Documentation/devicetree/bindings/arm/samsung/pmu.txt

Quoted 8 lines

Documentation/devicetree/bindings/arm/samsung/pmu.txt

Quoted 5 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +0 -0
new file mode 100644
index 0000000..f1f1552

I might be easy to confuse this with ARM Performance Monitoring Unit. So perhaps we should rename this file to, e.g. power-management-unit.txt ?

Quoted 3 lines

Considering location of this file, which is arm/samsung, I think this name is pretty much clear. ARM PMU is a generic thing, so it couldn't be placed here.

It's up to the patch author if they want to change it or not, I still think it's better to not use short acronyms like this, if we can easily make it unambiguous.

Quoted 6 lines
Quoted 4 lines

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 1

Quoted 2 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +1 -0
@@ -0,0 +1,15 @@
+SAMSUNG Exynos SoC series PMU Registers

s/PMU/Power Management Unit ?

s/PMU Registers/Power Management Unit/

Yeah, that's more accurate.

Quoted 22 lines
Quoted 14 lines

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 6

Quoted 4 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +4 -0
+Properties:
+ - 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.

s/./; ?

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 7

Quoted 1 line
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +1 -0
+		second value must be always "syscon".

It might be more safe to specify it as the last value, so something along the lines of:

The last value should be "syscon".

Quoted 7 lines

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 12

Quoted 5 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +5 -0
+
+ - reg : offset and length of the register set.
+
+Example :
+pmu_system_controller: system-controller@10040000 {

Might be more sensible to use 'power_management_unit' for the label.

Quoted 2 lines

That's quite a lot of text for a label. pmu_syscon as in previous version of this patch would look more sensible to me.

I don't think it hurts to have this long labels, what I proposed is exactly of same length as the original one. Anyway pmu_syscon sounds good to me too.

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +3 -0
+	compatible = "samsung,exynos5250-pmu", "syscon";
+	reg =<0x10040000 0x5000>;
+};
arch/arm/boot/dts/exynos5250.dtsi +0 -0
index b98ffc3..62f9e36 100644
@@ -163,6 +163,11 @@
   		interrupts =<0 47 0>;
   	};
 
Quoted 6 lines
Quoted 4 lines

arch/arm/boot/dts/exynos5250.dtsi line 166

Quoted 1 line
arch/arm/boot/dts/exynos5250.dtsi +1 -0
+	pmu_system_controller: system-controller@10040000 {

s/pmu_system_controller/power_management_unit ? So it describes the subsystem better in terms used in the SoCs User Manual ?

See above.

I can't see anything wrong in such long labels, but this discussion is really just a bike-shedding, so let's end it right now not to risk annoying even more people! :)

--
Regards,
Sylwester

#7 lore raw

Re: [PATCH V12 1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

Hi,

As I was in travel not accessed my mails.

I'll try to post next version of this series tomorrow addressing Sylwester's comments.

Best Wishes,
Leela Krishna.

Quoted 166 lines · Sylwester Nawrocki

Hi Tomasz,

Quoted 2 lines · Tomasz Figa

On Friday 06 of December 2013 18:22:32 Sylwester Nawrocki wrote:

[...]

Quoted 2 lines

I wouldn't really nitpick on such things, but if we end up needing another respin, here's what I think.

Yeah, I didn't really realize the iteration index for this series was already
a 2 digit number and some people could have already gotten upset or seriously
impatient. Started to regret I even bothered with posting any comments to that.
:) Anyway, I didn't request any corrections, just pointed out what could be improved. People are free to accept it or ignore as they see fit. And having seen patch series that got merged after periods like 2.5 year V12 is not something unusual anyway. :)

Quoted 6 lines
Quoted 6 lines · Leela Krishna Amudala
Quoted 3 lines

This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files to

Quoted 7 lines
Quoted 2 lines

s/pmusysreg/PMU sysreg ? Similarly I would capitalize it in the subject line as well.

Well, since this is supposed to be a human readable description, I would go even further and write "...device tree node of Power Management Unit
to...".

Agreed, it sounds better.

Quoted 28 lines
Quoted 15 lines
Quoted 15 lines

handle PMU register accesses in a centralized way using syscon driver

---
   Documentation/devicetree/bindings/arm/samsung/pmu.txt |   15
+++++++++++++++
   arch/arm/boot/dts/exynos5250.dtsi                     |    5 +++++
   arch/arm/boot/dts/exynos5420.dtsi                     |    5 +++++
   3 files changed, 25 insertions(+)

create mode 100644
Documentation/devicetree/bindings/arm/samsung/pmu.txt

Quoted 11 lines

Documentation/devicetree/bindings/arm/samsung/pmu.txt

Quoted 6 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +0 -0
new file mode 100644
index 0000000..f1f1552

I might be easy to confuse this with ARM Performance Monitoring Unit. So perhaps we should rename this file to, e.g. power-management-unit.txt ?

Quoted 3 lines

Considering location of this file, which is arm/samsung, I think this name is pretty much clear. ARM PMU is a generic thing, so it couldn't be placed here.

It's up to the patch author if they want to change it or not, I still think it's better to not use short acronyms like this, if we can easily make it unambiguous.

Quoted 8 lines
Quoted 5 lines

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 1

Quoted 2 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +1 -0
@@ -0,0 +1,15 @@
+SAMSUNG Exynos SoC series PMU Registers

s/PMU/Power Management Unit ?

s/PMU Registers/Power Management Unit/

Yeah, that's more accurate.

Quoted 27 lines
Quoted 17 lines

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 6

Quoted 5 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +2 -0
+Properties:
+ - compatible : should contain two values. First value must be one from

following list:

Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +2 -0
+                  - "samsung,exynos5250-pmu" - for Exynos5250 SoC,
+                  - "samsung,exynos5420-pmu" - for Exynos5420 SoC.

s/./; ?

Quoted 1 line

+ second value must be always "syscon".

It might be more safe to specify it as the last value, so something along the lines of:

The last value should be "syscon".

Quoted 8 lines

Documentation/devicetree/bindings/arm/samsung/pmu.txt line 12

Quoted 5 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +5 -0
+
+ - reg : offset and length of the register set.
+
+Example :
+pmu_system_controller: system-controller@10040000 {

Might be more sensible to use 'power_management_unit' for the label.

Quoted 2 lines

That's quite a lot of text for a label. pmu_syscon as in previous version of this patch would look more sensible to me.

I don't think it hurts to have this long labels, what I proposed is exactly of same length as the original one. Anyway pmu_syscon sounds good to me too.

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Documentation/devicetree/bindings/arm/samsung/pmu.txt new file +3 -0
+       compatible = "samsung,exynos5250-pmu", "syscon";
+       reg =<0x10040000 0x5000>;
+};
arch/arm/boot/dts/exynos5250.dtsi +0 -0
index b98ffc3..62f9e36 100644
@@ -163,6 +163,11 @@
                interrupts =<0 47 0>;
        };
 
Quoted 8 lines
Quoted 5 lines

arch/arm/boot/dts/exynos5250.dtsi line 166

Quoted 1 line
arch/arm/boot/dts/exynos5250.dtsi +1 -0
+       pmu_system_controller: system-controller@10040000 {

s/pmu_system_controller/power_management_unit ? So it describes the subsystem better in terms used in the SoCs User Manual ?

See above.

I can't see anything wrong in such long labels, but this discussion is really
just a bike-shedding, so let's end it right now not to risk annoying even more
people! :)

--
Regards,
Sylwester

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#8 lore raw

Re: [PATCH V12 1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

Leela Krishna,

Quoted 6 lines · Leela Krishna Amudala

Hi,

As I was in travel not accessed my mails.

I'll try to post next version of this series tomorrow addressing Sylwester's comments.

It's completely up to you (and Wim), of course. ...but if it were me I wouldn't spin the patch at this point. Your existing version has Guenter's Ack and his indication that he thinks that v12 is good enough to land without future spins. You could spin with Tomasz / Sylwester's suggestions but remember that it is not mandatory.

-Doug

#9 lore raw

Re: [PATCH V12 1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

2013/12/11 Doug Anderson <[email protected]>:

Quoted 8 lines

Leela Krishna,

Quoted 4 lines · Leela Krishna Amudala

Hi,

As I was in travel not accessed my mails.

Quoted 8 lines
Quoted 2 lines

I'll try to post next version of this series tomorrow addressing Sylwester's comments.

It's completely up to you (and Wim), of course. ...but if it were me I wouldn't spin the patch at this point. Your existing version has Guenter's Ack and his indication that he thinks that v12 is good enough to land without future spins. You could spin with Tomasz / Sylwester's suggestions but remember that it is not mandatory.

As I said, at this point the comments are just nitpicks that it would be nice to have them addressed, but this might be done as well in incremental patch(es).

So if it's not a problem for you and you can find time for it, a re-spin would be nice, but it's not a necessity (unless Wim decides otherwise).

Best regards,
Tomasz

#10 lore raw

Re: [PATCH V12 1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

Hi,

Quoted 18 lines · Tomasz Figa

2013/12/11 Doug Anderson <[email protected]>:

Quoted 8 lines

Leela Krishna,

Quoted 4 lines · Leela Krishna Amudala

Hi,

As I was in travel not accessed my mails.

Quoted 8 lines
Quoted 2 lines

I'll try to post next version of this series tomorrow addressing Sylwester's comments.

It's completely up to you (and Wim), of course. ...but if it were me I wouldn't spin the patch at this point. Your existing version has Guenter's Ack and his indication that he thinks that v12 is good enough to land without future spins. You could spin with Tomasz / Sylwester's suggestions but remember that it is not mandatory.

Quoted 7 lines

As I said, at this point the comments are just nitpicks that it would be nice to have them addressed, but this might be done as well in incremental patch(es).

So if it's not a problem for you and you can find time for it, a re-spin would be nice, but it's not a necessity (unless Wim decides otherwise).

Okay, Then I'll drop my plan to post next version of this series. Anyways I don't have code repository and hardware with me now to re-base and test.

Hello Wim,
Can you kindly look into this series and take necessary action..?

Best Wishes,
Leela Krishna.

Quoted 6 lines

Best regards,
Tomasz
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer Acked-by on v12 1/3
#11 lore raw

Re: [PATCH V12 1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

In reply to Leela Krishna Amudala
Quoted 7 lines · Leela Krishna Amudala

This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files to handle PMU register accesses in a centralized way using syscon driver

#12 lore raw

Re: [PATCH V12 1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

Guenter,

Quoted 10 lines · Guenter Roeck
Quoted 7 lines · Leela Krishna Amudala

This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files to handle PMU register accesses in a centralized way using syscon driver

I'm curious of your opinion of Sylwester's requests, since your Ack came in after his requests. Would you like to see a respin of this, or do you think it's gone through enough spinning and are thinking it would go in as-is?

-Doug

maintainer
#13 lore raw

Re: [PATCH V12 1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

Quoted 12 lines · Doug Anderson

Guenter,

Quoted 9 lines · Guenter Roeck
Quoted 7 lines · Leela Krishna Amudala

This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files to handle PMU register accesses in a centralized way using syscon driver

Quoted 7 lines
Quoted 1 line

I'm curious of your opinion of Sylwester's requests, since your Ack came in after his requests. Would you like to see a respin of this, or do you think it's gone through enough spinning and are thinking it would go in as-is?

My Ack means "I am ok with this patch without further changes". My reaction to the new comments was along the line of "sigh". Whoever comments now had more than 10 chances to comment earlier, which should have been way enough, and thus deserves to be ignored. Sorry if that statement happens to offend any listener, but I am not really known for my patience.

Guenter

#14 lore raw

Re: [PATCH V12 1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

In reply to Leela Krishna Amudala

Hi Leela,

Quoted 8 lines

This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files to handle PMU register accesses in a centralized way using syscon driver

---

...

arch/arm/boot/dts/exynos5420.dtsi line 404

Quoted 8 lines
arch/arm/boot/dts/exynos5420.dtsi +0 -0
index b1fa334..cd47db0 100644
@@ -402,4 +402,9 @@
 		clock-names = "gscl";
 		samsung,power-domain = <&gsc_pd>;
 	};

I can't add this patch since there is no "gscl" in the current linux-tree. Is this depending on another patch or are we going to fix this in another way?

Kind regards,
Wim.

#15 lore raw

Re: [PATCH V12 1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

Quoted 11 lines · Wim Van Sebroeck

Hi Leela,

Quoted 8 lines

This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files to handle PMU register accesses in a centralized way using syscon driver

---

...

Quoted 14 lines

arch/arm/boot/dts/exynos5420.dtsi line 404

Quoted 9 lines
arch/arm/boot/dts/exynos5420.dtsi +0 -0
index b1fa334..cd47db0 100644
@@ -402,4 +402,9 @@
 		clock-names = "gscl";
 		samsung,power-domain = <&gsc_pd>;
 	};

I can't add this patch since there is no "gscl" in the current linux-tree. Is this depending on another patch or are we going to fix this in another way?

Hi Kgene,

Driver changes has been merged to Wim's tree, so can you please pick this patch into your tree.

Best Wishes,
Leela krishna.

Quoted 9 lines

Kind regards,
Wim.

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#16 lore raw

RE: [PATCH V12 1/3] ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files

Quoted 25 lines · Leela Krishna Amudala
Quoted 3 lines · Wim Van Sebroeck

Hi Leela,

Quoted 1 line

This patch adds pmusysreg node to exynos5250 and exynos5420 dtsi files

to

Quoted 8 lines
Quoted 7 lines

handle PMU register accesses in a centralized way using syscon driver

---

...

Quoted 11 lines

arch/arm/boot/dts/exynos5420.dtsi line 404

Quoted 9 lines
arch/arm/boot/dts/exynos5420.dtsi +0 -0
index b1fa334..cd47db0 100644
@@ -402,4 +402,9 @@
 		clock-names = "gscl";
 		samsung,power-domain = <&gsc_pd>;
 	};

I can't add this patch since there is no "gscl" in the current linux-

Quoted 8 lines

tree.

Quoted 1 line

Is this depending on another patch or are we going to fix this in

another

Quoted 2 lines

way?

Hi Kgene,

Hi Leela,

Quoted 3 lines

Driver changes has been merged to Wim's tree, so can you please pick this patch into your tree.

OK, let me take this and 3rd patch into Samsung tree for next time.

Thanks,
Kukjin

#17 lore raw

PATCH v12 2/3 watchdog: s3c2410_wdt: use syscon regmap interface to configure pmu register

In reply to Leela Krishna Amudala

Add device tree support for exynos5250 and 5420 SoCs and use syscon regmap interface to configure AUTOMATIC_WDT_RESET_DISABLE and MASK_WDT_RESET_REQUEST registers of PMU to mask/unmask enable/disable of watchdog in probe and s2r scenarios.

---
 .../devicetree/bindings/watchdog/samsung-wdt.txt   |   21 ++-
 drivers/watchdog/Kconfig                           |    1 +
 drivers/watchdog/s3c2410_wdt.c                     |  154 ++++++++++++++++++--
 3 files changed, 166 insertions(+), 10 deletions(-)
Documentation/devicetree/bindings/watchdog/samsung-wdt.txt +20 -1
index 2aa486c..cfff375 100644
@@ -5,10 +5,29 @@ after a preset amount of time during which the WDT reset event has not
 occurred.
 
 Required properties:
-- compatible : should be "samsung,s3c2410-wdt"
+- compatible : should be one among the following
+	(a) "samsung,s3c2410-wdt" for Exynos4 and previous SoCs
+	(b) "samsung,exynos5250-wdt" for Exynos5250
+	(c) "samsung,exynos5420-wdt" for Exynos5420
+
 - reg : base physical address of the controller and length of memory mapped
 	region.
 - interrupts : interrupt number to the cpu.
+- samsung,syscon-phandle : reference to syscon node (This property required only
+	in case of compatible being "samsung,exynos5250-wdt" or "samsung,exynos5420-wdt".
+	In case of Exynos5250 and 5420 this property points to syscon node holding the PMU
+	base address)
 
 Optional properties:
 - timeout-sec : contains the watchdog timeout in seconds.
+
+Example:
+
+watchdog@101D0000 {
+	compatible = "samsung,exynos5250-wdt";
+	reg = <0x101D0000 0x100>;
+	interrupts = <0 42 0>;
+	clocks = <&clock 336>;
+	clock-names = "watchdog";
+	samsung,syscon-phandle = <&pmu_syscon>;
+};
drivers/watchdog/Kconfig +1 -0
index 5be6e91..24738c0 100644
@@ -188,6 +188,7 @@ config S3C2410_WATCHDOG
 	tristate "S3C2410 Watchdog"
 	depends on HAVE_S3C2410_WATCHDOG
 	select WATCHDOG_CORE
+	select MFD_SYSCON if ARCH_EXYNOS5
 	help
 	  Watchdog timer block in the Samsung SoCs. This will reboot
 	  the system when the timer expires with the watchdog enabled.
drivers/watchdog/s3c2410_wdt.c +145 -9

260 lines not on this page · raw message

Signature · 1 line
1.7.10.4
Reviewed-by Tested-by on v12 2/3
#18 lore raw

Re: [PATCH V12 2/3] watchdog: s3c2410_wdt: use syscon regmap interface to configure pmu register

Leela Krishna,

Quoted 11 lines · Leela Krishna Amudala

Add device tree support for exynos5250 and 5420 SoCs and use syscon regmap interface to configure AUTOMATIC_WDT_RESET_DISABLE and MASK_WDT_RESET_REQUEST registers of PMU to mask/unmask enable/disable of watchdog in probe and s2r scenarios.

---
 .../devicetree/bindings/watchdog/samsung-wdt.txt   |   21 ++-
 drivers/watchdog/Kconfig                           |    1 +
 drivers/watchdog/s3c2410_wdt.c                     |  154 ++++++++++++++++++--
 3 files changed, 166 insertions(+), 10 deletions(-)

Thank you for incorporating the fixups.

maintainer Reviewed-by on v12 2/3
#19 lore raw

Re: [PATCH V12 2/3] watchdog: s3c2410_wdt: use syscon regmap interface to configure pmu register

In reply to Leela Krishna Amudala
Quoted 6 lines · Leela Krishna Amudala

Add device tree support for exynos5250 and 5420 SoCs and use syscon regmap interface to configure AUTOMATIC_WDT_RESET_DISABLE and MASK_WDT_RESET_REQUEST registers of PMU to mask/unmask enable/disable of watchdog in probe and s2r scenarios.

#20 lore raw

Re: [PATCH V12 2/3] watchdog: s3c2410_wdt: use syscon regmap interface to configure pmu register

In reply to Leela Krishna Amudala

Hi Leela

Quoted 6 lines

Add device tree support for exynos5250 and 5420 SoCs and use syscon regmap interface to configure AUTOMATIC_WDT_RESET_DISABLE and MASK_WDT_RESET_REQUEST registers of PMU to mask/unmask enable/disable of watchdog in probe and s2r scenarios.

This patch has been added to linux-watchdog-next.

Kind regards,
Wim.

#21 lore raw

PATCH v12 3/3 ARM: dts: update watchdog device nodes for Exynos5250 and Exynos5420

In reply to Leela Krishna Amudala

In Exynos5 series SoCs, PMU has registers to enable/disable mask/unmask watchdog timer which is not the case with s3c series SoCs so, there is a need to have different compatible names for watchdog to handle these pmu registers access.

Hence this patch removes watchdog node from Exynos5.dtsi common file and make it separate by updating existing node in Exynos5250 and adding new node to Exynos5420. This patch also makes the watchdog node enabled by default

---
 arch/arm/boot/dts/exynos5.dtsi    |    7 -------
 arch/arm/boot/dts/exynos5250.dtsi |    6 +++++-
 arch/arm/boot/dts/exynos5420.dtsi |    9 +++++++++
 3 files changed, 14 insertions(+), 8 deletions(-)
arch/arm/boot/dts/exynos5.dtsi +0 -7
index e52b038..f1fea28 100644
@@ -81,13 +81,6 @@
 		status = "disabled";
 	};
 
-	watchdog {
-		compatible = "samsung,s3c2410-wdt";
-		reg = <0x101D0000 0x100>;
-		interrupts = <0 42 0>;
-		status = "disabled";
-	};
-
 	fimd@14400000 {
 		compatible = "samsung,exynos5250-fimd";
 		interrupt-parent = <&combiner>;
arch/arm/boot/dts/exynos5250.dtsi +5 -1
index 62f9e36..d440a9a 100644
@@ -168,9 +168,13 @@
 		reg = <0x10040000 0x5000>;
 	};
 
-	watchdog {
+	watchdog@101D0000 {
+		compatible = "samsung,exynos5250-wdt";
+		reg = <0x101D0000 0x100>;
+		interrupts = <0 42 0>;
 		clocks = <&clock 336>;
 		clock-names = "watchdog";
+		samsung,syscon-phandle = <&pmu_system_controller>;
 	};
 
 	g2d@10850000 {
arch/arm/boot/dts/exynos5420.dtsi +9 -0
index cd47db0..167480c 100644
@@ -407,4 +407,13 @@
 		compatible = "samsung,exynos5420-pmu", "syscon";
 		reg = <0x10040000 0x5000>;
 	};
+
+        watchdog@101D0000 {
+		compatible = "samsung,exynos5420-wdt";
+		reg = <0x101D0000 0x100>;
+		interrupts = <0 42 0>;
+		clocks = <&clock 316>;
+		clock-names = "watchdog";
+		samsung,syscon-phandle = <&pmu_system_controller>;
+        };
 };
Signature · 1 line
1.7.10.4
maintainer Acked-by on v12 3/3
#22 lore raw

Re: [PATCH V12 3/3] ARM: dts: update watchdog device nodes for Exynos5250 and Exynos5420

Quoted 5 lines · Leela Krishna Amudala

In Exynos5 series SoCs, PMU has registers to enable/disable mask/unmask watchdog timer which is not the case with s3c series SoCs so, there is a need to have different compatible names for watchdog to handle these pmu registers access.

Quoted 8 lines

Hence this patch removes watchdog node from Exynos5.dtsi common file and make it separate by updating existing node in Exynos5250 and adding new node to Exynos5420. This patch also makes the watchdog node enabled by default

#23 lore raw

Re: [PATCH V12 3/3] ARM: dts: update watchdog device nodes for Exynos5250 and Exynos5420

Quoted 11 lines · Guenter Roeck
Quoted 10 lines · Leela Krishna Amudala

In Exynos5 series SoCs, PMU has registers to enable/disable mask/unmask watchdog timer which is not the case with s3c series SoCs so, there is a need to have different compatible names for watchdog to handle these pmu registers access.

Hence this patch removes watchdog node from Exynos5.dtsi common file and make it separate by updating existing node in Exynos5250 and adding new node
to Exynos5420. This patch also makes the watchdog node enabled by default

Quoted 6 lines
Quoted 4 lines

Hi Kgene,

Driver changes has been merged to Wim's tree, so can you please pick this patch into your tree.

Best Wishes,
Leela krishna.

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#24 lore raw
In reply to Leela Krishna Amudala

Hello Wim Van Sebroeck,

Can you kindly look into this series and take necessary action..?

Best Wishes,
Leela Krishna.

Quoted 97 lines · Leela Krishna Amudala

This patchset does the following things
- Adds pmusysreg device node to exynos5.dtsi file
- Adds watchdog DT nodes to Exynos5250 and 5420
- Uses syscon regmap interface to configure pmu registers to mask/unmask enable/disable of watchdog.

This patch set is rebased on Kgene's for-next branch and tested on SMDK5420

changes since V11:
- Added EXYNOS5 prefix to REG_OFFSET defines (suggested by Tomasz)
- NEEDS_PMU_CONFIG => HAS_PMU_CONFIG (suggested by Olof, Guenter)
- Move QUIRK_HAS_PMU_CONFIG check to s3c2410wdt_mask_and_disable_reset (suggested by Guenter)

changes since V10:
- followed coding style rules
- removed duplicate error message suggested by Guenter Roeck <[email protected]>

changes since V9:
- added descriptions to s3c2410_wdt_variant structure fields
- moved calling s3c2410wdt_mask_and_disable_reset() function above s3c2410wdt_start() call in probe
- put dev_err message back to s3c2410wdt_mask_and_disable_reset() function (suggested by Doug Anderson <[email protected]>)

changes since V8:
- modified the patch description for the below patch
"watchdog: s3c2410_wdt: use syscon regmap interface to configure pmu register"
- removed MODULE_ALIAS in watchdog driver
- changed dev_warn to dev_err in one failure case handling (suggested by Guenter Roeck <[email protected]>)
- renamed variable name from pmu_config to drv_data
- changed the compatible field description in documentation file
(suggested by Tomasz Figa <[email protected]>)

changes since V7:
- re-ordered the patches in the series
- moved pmu_config_s3c2410 structure out of ifdef CONFIG_OF and limited only this structure to platform match table
- renamed structure name from s3c_wdt_driver_ids to s3c2410_wdt_ids
- removed exynos variants from platform match table (suggested by Tomasz Figa <[email protected]>)

changes since V6:
- added SoC-specific compatible value to syscon node and documented it
- given more patch description for below patch
ARM: dts: update watchdog device nodes for Exynos5250 and Exynos5420
- added platform_device_id array for watchdog devices
- selected MFD_SYSCON in Kconfig entry for watchdog

Changes since V5:
- removed status property in DT nodes
- changed the return type for the function s3c2410wdt_mask_and_disable_reset() and handled error cases
- Handled to get driver data in non-DT cases
- Addressed comments given by Tomasz Figa <[email protected]>

Changes since V4:
- changed the node name from pmusysreg to syscon and node label from pmu_sys_reg to pmu_syscon
- changed the property name from samsung,pmusysreg to samsung,syscon-phandle
- used regmap_update_bits instead of remap_read/regmap_write
- Addressed other comments given by Tomasz Figa <[email protected]>

Changes since V3:
- changed the compatible strings for watchdog node
- splitted up adding pmusysreg node and made it separate patch
- Addressed comments given by Sachin Kamat <[email protected]>

Changes since V2:
- used syscon regmap interface to configure pmu registers in WDT driver (suggested by Tomasz Figa <[email protected]>)

Changes since V1:
- Added new compatible string for Exynos5 SoCs
- Introduced quirk mechanism to program PMU registers
- Addressed comments given by Tomasz Figa <[email protected]>

Leela Krishna Amudala (3):
ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files
watchdog: s3c2410_wdt: use syscon regmap interface to configure pmu
register
ARM: dts: update watchdog device nodes for Exynos5250 and Exynos5420

 .../devicetree/bindings/arm/samsung/pmu.txt        |   15 ++
 .../devicetree/bindings/watchdog/samsung-wdt.txt   |   21 ++-
 arch/arm/boot/dts/exynos5.dtsi                     |    7 -
 arch/arm/boot/dts/exynos5250.dtsi                  |   11 +-
 arch/arm/boot/dts/exynos5420.dtsi                  |   14 ++
 drivers/watchdog/Kconfig                           |    1 +
 drivers/watchdog/s3c2410_wdt.c                     |  154 ++++++++++++++++++--
 7 files changed, 205 insertions(+), 18 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/samsung/pmu.txt

--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#25 lore raw

Hello Wim Van Sebroeck,

I believe that I addressed all the comments given by reviewers. So can you look into this series and take necessary action..?

Best Wishes,
Leela Krishna.

Quoted 107 lines · Leela Krishna Amudala

Hello Wim Van Sebroeck,

Can you kindly look into this series and take necessary action..?

Best Wishes,
Leela Krishna.

Quoted 97 lines · Leela Krishna Amudala

This patchset does the following things
- Adds pmusysreg device node to exynos5.dtsi file
- Adds watchdog DT nodes to Exynos5250 and 5420
- Uses syscon regmap interface to configure pmu registers to mask/unmask enable/disable of watchdog.

This patch set is rebased on Kgene's for-next branch and tested on SMDK5420

changes since V11:
- Added EXYNOS5 prefix to REG_OFFSET defines (suggested by Tomasz)
- NEEDS_PMU_CONFIG => HAS_PMU_CONFIG (suggested by Olof, Guenter)
- Move QUIRK_HAS_PMU_CONFIG check to s3c2410wdt_mask_and_disable_reset (suggested by Guenter)

changes since V10:
- followed coding style rules
- removed duplicate error message suggested by Guenter Roeck <[email protected]>

changes since V9:
- added descriptions to s3c2410_wdt_variant structure fields
- moved calling s3c2410wdt_mask_and_disable_reset() function above s3c2410wdt_start() call in probe
- put dev_err message back to s3c2410wdt_mask_and_disable_reset() function (suggested by Doug Anderson <[email protected]>)

changes since V8:
- modified the patch description for the below patch
"watchdog: s3c2410_wdt: use syscon regmap interface to configure pmu register"
- removed MODULE_ALIAS in watchdog driver
- changed dev_warn to dev_err in one failure case handling (suggested by Guenter Roeck <[email protected]>)
- renamed variable name from pmu_config to drv_data
- changed the compatible field description in documentation file
(suggested by Tomasz Figa <[email protected]>)

changes since V7:
- re-ordered the patches in the series
- moved pmu_config_s3c2410 structure out of ifdef CONFIG_OF and limited only this structure to platform match table
- renamed structure name from s3c_wdt_driver_ids to s3c2410_wdt_ids
- removed exynos variants from platform match table (suggested by Tomasz Figa <[email protected]>)

changes since V6:
- added SoC-specific compatible value to syscon node and documented it
- given more patch description for below patch
ARM: dts: update watchdog device nodes for Exynos5250 and Exynos5420
- added platform_device_id array for watchdog devices
- selected MFD_SYSCON in Kconfig entry for watchdog

Changes since V5:
- removed status property in DT nodes
- changed the return type for the function s3c2410wdt_mask_and_disable_reset() and handled error cases
- Handled to get driver data in non-DT cases
- Addressed comments given by Tomasz Figa <[email protected]>

Changes since V4:
- changed the node name from pmusysreg to syscon and node label from pmu_sys_reg to pmu_syscon
- changed the property name from samsung,pmusysreg to samsung,syscon-phandle
- used regmap_update_bits instead of remap_read/regmap_write
- Addressed other comments given by Tomasz Figa <[email protected]>

Changes since V3:
- changed the compatible strings for watchdog node
- splitted up adding pmusysreg node and made it separate patch
- Addressed comments given by Sachin Kamat <[email protected]>

Changes since V2:
- used syscon regmap interface to configure pmu registers in WDT driver (suggested by Tomasz Figa <[email protected]>)

Changes since V1:
- Added new compatible string for Exynos5 SoCs
- Introduced quirk mechanism to program PMU registers
- Addressed comments given by Tomasz Figa <[email protected]>

Leela Krishna Amudala (3):
ARM: dts: Add pmu sysreg node to exynos5250 and exynos5420 dtsi files
watchdog: s3c2410_wdt: use syscon regmap interface to configure pmu
register
ARM: dts: update watchdog device nodes for Exynos5250 and Exynos5420

 .../devicetree/bindings/arm/samsung/pmu.txt        |   15 ++
 .../devicetree/bindings/watchdog/samsung-wdt.txt   |   21 ++-
 arch/arm/boot/dts/exynos5.dtsi                     |    7 -
 arch/arm/boot/dts/exynos5250.dtsi                  |   11 +-
 arch/arm/boot/dts/exynos5420.dtsi                  |   14 ++
 drivers/watchdog/Kconfig                           |    1 +
 drivers/watchdog/s3c2410_wdt.c                     |  154 ++++++++++++++++++--
 7 files changed, 205 insertions(+), 18 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/samsung/pmu.txt

--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html