Skip to contentSkip to conversation

watchdog: dw: Enable OF support for DW watchdog timer.

PATCH RESEND Superseded [email protected] 5 participants 8 messages Oct 2, 2013 – Oct 22, 2013 3 messages not in the archive

Subsystems (2)

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH RESEND v2 1/1 watchdog: dw: Enable OF support for DW watchdog timer.

From: Dinh Nguyen <[email protected]>

Add device tree support to the DW watchdog timer.

Cc Guenter Roeck <[email protected]>
Cc Jamie Iles <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Wim Van Sebroeck <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Rob Herring <rob.herring-bsGFqQB8/[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Ian Campbell <[email protected]>

---
v2:
- Use of_match_ptr() for of_match_table

---
 .../devicetree/bindings/watchdog/dw_wdt.txt        |   16 ++++++++++++++++
 drivers/watchdog/dw_wdt.c                          |    8 ++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/dw_wdt.txt
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +16 -0
new file mode 100644
index 0000000..29e150b
@@ -0,0 +1,16 @@
+Synopsys Designware Watchdog Timer
+
+Required Properties:
+
+- Compatiblity	: "snps,dw-wdt"
+- reg		: Base address of the watchdog timer register.
+
+Example:
+
+	watchdog0: wd@ffd02000 {
+		compatible = "snps,dw-wdt";
+		reg = <0xffd02000 0x1000>;
+		interrupts = <0 171 4>;
+		clocks = <&per_base_clk>;
+		status = "okay";
+	};
drivers/watchdog/dw_wdt.c +8 -0
index 2037669..a720f9b 100644
@@ -29,6 +29,7 @@
 #include <linux/miscdevice.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
+#include <linux/of.h>
 #include <linux/pm.h>
 #include <linux/platform_device.h>
 #include <linux/spinlock.h>
@@ -343,12 +344,19 @@ static int dw_wdt_drv_remove(struct platform_device *pdev)
 	return 0;
 }
 
+static const struct of_device_id dw_wdt_of_match[] = {
+	{ .compatible = "snps,dw-wdt", },
+	{ /* sentinel */ }
+};
+MODULE_DEVICE_TABLE(of, dw_wdt_of_match);
+
 static struct platform_driver dw_wdt_driver = {
 	.probe		= dw_wdt_drv_probe,
 	.remove		= dw_wdt_drv_remove,
 	.driver		= {
 		.name	= "dw_wdt",
 		.owner	= THIS_MODULE,
+		.of_match_table = of_match_ptr(dw_wdt_of_match),
 #ifdef CONFIG_PM
 		.pm	= &dw_wdt_pm_ops,
 #endif /* CONFIG_PM */
Signature · 7 lines
1.7.9.5


--
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
#2 lore raw
In reply to a message not in the archive
Quoted 69 lines · On Wed, Oct 02, 2013 at 01:44:32PM -0500…

From: Dinh Nguyen <[email protected]>

Add device tree support to the DW watchdog timer.

Cc Guenter Roeck <[email protected]>
Cc Jamie Iles <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Wim Van Sebroeck <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Rob Herring <rob.herring-bsGFqQB8/[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Ian Campbell <[email protected]>

---
v2:
- Use of_match_ptr() for of_match_table

---
 .../devicetree/bindings/watchdog/dw_wdt.txt        |   16 ++++++++++++++++
 drivers/watchdog/dw_wdt.c                          |    8 ++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/dw_wdt.txt
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +16 -0
new file mode 100644
index 0000000..29e150b
@@ -0,0 +1,16 @@
+Synopsys Designware Watchdog Timer
+
+Required Properties:
+
+- Compatiblity	: "snps,dw-wdt"
+- reg		: Base address of the watchdog timer register.
+
+Example:
+
+	watchdog0: wd@ffd02000 {
+		compatible = "snps,dw-wdt";
+		reg = <0xffd02000 0x1000>;
+		interrupts = <0 171 4>;
+		clocks = <&per_base_clk>;
+		status = "okay";
+	};
drivers/watchdog/dw_wdt.c +4 -0
index 2037669..a720f9b 100644
@@ -29,6 +29,7 @@
 #include <linux/miscdevice.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
+#include <linux/of.h>
 #include <linux/pm.h>
 #include <linux/platform_device.h>
 #include <linux/spinlock.h>
@@ -343,12 +344,19 @@ static int dw_wdt_drv_remove(struct platform_device *pdev)
 	return 0;
 }
 
+static const struct of_device_id dw_wdt_of_match[] = {
+	{ .compatible = "snps,dw-wdt", },
+	{ /* sentinel */ }

drivers/watchdog/dw_wdt.c static int dw_wdt_drv_remove(struct platform_device *pdev) · line 359

Quoted 10 lines
drivers/watchdog/dw_wdt.c +4 -0
+};
+MODULE_DEVICE_TABLE(of, dw_wdt_of_match);
+
 static struct platform_driver dw_wdt_driver = {
 	.probe		= dw_wdt_drv_probe,
 	.remove		= dw_wdt_drv_remove,
 	.driver		= {
 		.name	= "dw_wdt",
 		.owner	= THIS_MODULE,
+		.of_match_table = of_match_ptr(dw_wdt_of_match),

There is a separate set of patches from Sachin, removing unnecessary uses of of_match_ptr() from various watchdog drivers. Sachin's argument is that it does not make sense to use of_match_ptr if the function it points to (dw_wdt_of_match in this case) is always compiled unconditionally anyway.

Your comments suggest that you actually _added_ of_match_ptr() in v2 of this patch, even though dw_wdt_of_match always exists and of_match_ptr is thus technically unnecessary.

Not that I really care one way or another, but can we get an authoritative answer what subsystem maintainers are supposed to accept ?

Thanks,
Guenter

Quoted 8 lines
drivers/watchdog/dw_wdt.c +0 -0
 #ifdef CONFIG_PM
 		.pm	= &dw_wdt_pm_ops,
 #endif /* CONFIG_PM */
Signature · 1 line
1.7.9.5

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

#3 lore raw
In reply to a message not in the archive
Quoted 34 lines · On Wed, Oct 02, 2013 at 07:44:32PM +0100…

From: Dinh Nguyen <[email protected]>

Add device tree support to the DW watchdog timer.

Cc Guenter Roeck <[email protected]>
Cc Jamie Iles <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Wim Van Sebroeck <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Rob Herring <rob.herring-bsGFqQB8/[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Ian Campbell <[email protected]>

---
v2:
- Use of_match_ptr() for of_match_table

---
 .../devicetree/bindings/watchdog/dw_wdt.txt        |   16 ++++++++++++++++
 drivers/watchdog/dw_wdt.c                          |    8 ++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/dw_wdt.txt
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +0 -0
new file mode 100644
index 0000000..29e150b

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 5

Quoted 5 lines
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +5 -0
@@ -0,0 +1,16 @@
+Synopsys Designware Watchdog Timer
+
+Required Properties:
+
+- Compatiblity	: "snps,dw-wdt"

This should presumably be:

- compatbile: should contain "snps,dw-wdt"

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 6

Quoted 1 line
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +1 -0
+- reg		: Base address of the watchdog timer register.

And the size...

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 13

Quoted 7 lines
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +7 -0
+
+Example:
+
+	watchdog0: wd@ffd02000 {
+		compatible = "snps,dw-wdt";
+		reg = <0xffd02000 0x1000>;
+		interrupts = <0 171 4>;

This wasn't mentioned.

Is it necessary?

Is it the only interrupt?

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 14

Quoted 1 line
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +1 -0
+		clocks = <&per_base_clk>;

Similarly, is this the only clock?

Is it necessary?

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 15

Quoted 1 line
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +1 -0
+		status = "okay";

This is unnecessary.

Thanks,
Mark.
--
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

#4 lore raw
Quoted 43 lines · Mark Rutland
Quoted 34 lines · On Wed, Oct 02, 2013 at 07:44:32PM +0100…

From: Dinh Nguyen <[email protected]>

Add device tree support to the DW watchdog timer.

Cc Guenter Roeck <[email protected]>
Cc Jamie Iles <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Wim Van Sebroeck <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Rob Herring <rob.herring-bsGFqQB8/[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Ian Campbell <[email protected]>

---
v2:
- Use of_match_ptr() for of_match_table

---
  .../devicetree/bindings/watchdog/dw_wdt.txt        |   16 ++++++++++++++++
  drivers/watchdog/dw_wdt.c                          |    8 ++++++++
  2 files changed, 24 insertions(+)

create mode 100644 Documentation/devicetree/bindings/watchdog/dw_wdt.txt

Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +0 -0
new file mode 100644
index 0000000..29e150b

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 5

Quoted 5 lines
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +5 -0
@@ -0,0 +1,16 @@
+Synopsys Designware Watchdog Timer
+
+Required Properties:
+
+- Compatiblity	: "snps,dw-wdt"

This should presumably be:

Quoted 2 lines

- compatbile: should contain "snps,dw-wdt"

Hi Mark,

s/compatbile/compatible/ :-)

"must be" or "should contain" ? I see both in various bindings. Is there a preference ?

Quoted 14 lines

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 6

Quoted 1 line
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +1 -0
+- reg		: Base address of the watchdog timer register.

And the size...

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 13

Quoted 7 lines
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +7 -0
+
+Example:
+
+	watchdog0: wd@ffd02000 {
+		compatible = "snps,dw-wdt";
+		reg = <0xffd02000 0x1000>;
+		interrupts = <0 171 4>;

This wasn't mentioned.

Quoted 2 lines

Is it necessary?

From looking into the code ...

The driver doesn't use interrupts, so I guess the answer is no. Cut-and-paste error, maybe ?

Quoted 6 lines

Is it the only interrupt?

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 14

Quoted 1 line
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +1 -0
+		clocks = <&per_base_clk>;

Similarly, is this the only clock?

The driver uses one clock, and it is mandatory.

Guenter

Quoted 10 lines

Is it necessary?

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 15

Quoted 1 line
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +1 -0
+		status = "okay";

This is unnecessary.

Thanks,
Mark.

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

#6 lore raw
In reply to a message not in the archive
Quoted 44 lines · Guenter Roeck
Quoted 43 lines · Mark Rutland
Quoted 34 lines · On Wed, Oct 02, 2013 at 07:44:32PM +0100…

From: Dinh Nguyen <[email protected]>

Add device tree support to the DW watchdog timer.

Cc Guenter Roeck <[email protected]>
Cc Jamie Iles <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Wim Van Sebroeck <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Rob Herring <rob.herring-bsGFqQB8/[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Ian Campbell <[email protected]>

---
v2:
- Use of_match_ptr() for of_match_table

---
  .../devicetree/bindings/watchdog/dw_wdt.txt        |   16 ++++++++++++++++
  drivers/watchdog/dw_wdt.c                          |    8 ++++++++
  2 files changed, 24 insertions(+)

create mode 100644 Documentation/devicetree/bindings/watchdog/dw_wdt.txt

Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +0 -0
new file mode 100644
index 0000000..29e150b

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 5

Quoted 5 lines
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +5 -0
@@ -0,0 +1,16 @@
+Synopsys Designware Watchdog Timer
+
+Required Properties:
+
+- Compatiblity	: "snps,dw-wdt"

This should presumably be:

Quoted 6 lines
Quoted 2 lines

- compatbile: should contain "snps,dw-wdt"

Hi Mark,

s/compatbile/compatible/ :-)

Indeed :)

Quoted 3 lines

"must be" or "should contain" ? I see both in various bindings. Is there a preference ?

I would prefer "should contain" -- it doesn't preclude future compatible variants.

Quoted 15 lines
Quoted 15 lines

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 6

Quoted 2 lines
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +1 -0
+- reg		: Base address of the watchdog timer register.

And the size...

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 13

Quoted 7 lines
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +7 -0
+
+Example:
+
+	watchdog0: wd@ffd02000 {
+		compatible = "snps,dw-wdt";
+		reg = <0xffd02000 0x1000>;
+		interrupts = <0 171 4>;

This wasn't mentioned.

Quoted 6 lines
Quoted 2 lines

Is it necessary?

From looking into the code ...

The driver doesn't use interrupts, so I guess the answer is no. Cut-and-paste error, maybe ?

Does the device have any interrupts, even if they're unused?

Quoted 8 lines
Quoted 7 lines

Is it the only interrupt?

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 14

Quoted 1 line
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +1 -0
+		clocks = <&per_base_clk>;

Similarly, is this the only clock?

The driver uses one clock, and it is mandatory.

Is this the only clock into the unit?

Does it have a name?

Thanks,
Mark.
--
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

#7 lore raw

Hi Mark,

Quoted 44 lines · Mark Rutland
Quoted 43 lines · Guenter Roeck
Quoted 42 lines · Mark Rutland
Quoted 34 lines · On Wed, Oct 02, 2013 at 07:44:32PM +0100…

From: Dinh Nguyen <[email protected]>

Add device tree support to the DW watchdog timer.

Cc Guenter Roeck <[email protected]>
Cc Jamie Iles <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Wim Van Sebroeck <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Rob Herring <rob.herring-bsGFqQB8/[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Ian Campbell <[email protected]>

---
v2:
- Use of_match_ptr() for of_match_table

---
   .../devicetree/bindings/watchdog/dw_wdt.txt        |   16 ++++++++++++++++
   drivers/watchdog/dw_wdt.c                          |    8 ++++++++
   2 files changed, 24 insertions(+)

create mode 100644 Documentation/devicetree/bindings/watchdog/dw_wdt.txt

Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +0 -0
new file mode 100644
index 0000000..29e150b

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 5

Quoted 5 lines
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +5 -0
@@ -0,0 +1,16 @@
+Synopsys Designware Watchdog Timer
+
+Required Properties:
+
+- Compatiblity	: "snps,dw-wdt"

This should presumably be:

Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

- compatbile: should contain "snps,dw-wdt"

Hi Mark,

s/compatbile/compatible/ :-)

Indeed :)

Changed for v3.

Quoted 5 lines
Quoted 3 lines

"must be" or "should contain" ? I see both in various bindings. Is there a preference ?

I would prefer "should contain" -- it doesn't preclude future compatible variants.

Oops..v3 has "should be"...will change to "should contain" in v4.

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 6

Quoted 2 lines
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +1 -0
+- reg		: Base address of the watchdog timer register.

And the size...

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 13

Quoted 7 lines
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +7 -0
+
+Example:
+
+	watchdog0: wd@ffd02000 {
+		compatible = "snps,dw-wdt";
+		reg = <0xffd02000 0x1000>;
+		interrupts = <0 171 4>;

This wasn't mentioned.

Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

Is it necessary?

From looking into the code ...

The driver doesn't use interrupts, so I guess the answer is no. Cut-and-paste error, maybe ?

Does the device have any interrupts, even if they're unused?

Yes, the device does have an interrupt. Should I add it as an optional property?

Quoted 10 lines
Quoted 7 lines
Quoted 6 lines

Is it the only interrupt?

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 14

Quoted 1 line
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +1 -0
+		clocks = <&per_base_clk>;

Similarly, is this the only clock?

The driver uses one clock, and it is mandatory.

Is this the only clock into the unit?

Does it have a name?

Yes, this is is the only clock into the unit. No, it does not have name.

Thanks,
Dinh

Quoted 3 lines

Thanks,
Mark.

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

#9 lore raw
In reply to a message not in the archive
Quoted 52 lines · Dinh Nguyen

Hi Mark,

Quoted 49 lines · Mark Rutland
Quoted 48 lines · Guenter Roeck
Quoted 42 lines · Mark Rutland
Quoted 34 lines · On Wed, Oct 02, 2013 at 07:44:32PM +0100…

From: Dinh Nguyen <[email protected]>

Add device tree support to the DW watchdog timer.

Cc Guenter Roeck <[email protected]>
Cc Jamie Iles <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Wim Van Sebroeck <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Rob Herring <rob.herring-bsGFqQB8/[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Ian Campbell <[email protected]>

---
v2:
- Use of_match_ptr() for of_match_table

---
   .../devicetree/bindings/watchdog/dw_wdt.txt        |   16 ++++++++++++++++
   drivers/watchdog/dw_wdt.c                          |    8 ++++++++
   2 files changed, 24 insertions(+)

create mode 100644 Documentation/devicetree/bindings/watchdog/dw_wdt.txt

Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +0 -0
new file mode 100644
index 0000000..29e150b

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 5

Quoted 5 lines
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +5 -0
@@ -0,0 +1,16 @@
+Synopsys Designware Watchdog Timer
+
+Required Properties:
+
+- Compatiblity	: "snps,dw-wdt"

This should presumably be:

Quoted 2 lines

- compatbile: should contain "snps,dw-wdt"

Hi Mark,

s/compatbile/compatible/ :-)

Quoted 8 lines
Quoted 1 line

Indeed :)

Changed for v3.

Quoted 5 lines
Quoted 3 lines

"must be" or "should contain" ? I see both in various bindings. Is there a preference ?

I would prefer "should contain" -- it doesn't preclude future compatible variants.

Oops..v3 has "should be"...will change to "should contain" in v4.

Cheers.

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 6

Quoted 2 lines
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +1 -0
+- reg		: Base address of the watchdog timer register.

And the size...

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 13

Quoted 7 lines
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +7 -0
+
+Example:
+
+	watchdog0: wd@ffd02000 {
+		compatible = "snps,dw-wdt";
+		reg = <0xffd02000 0x1000>;
+		interrupts = <0 171 4>;

This wasn't mentioned.

Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

Is it necessary?

From looking into the code ...

The driver doesn't use interrupts, so I guess the answer is no. Cut-and-paste error, maybe ?

Does the device have any interrupts, even if they're unused?

Yes, the device does have an interrupt. Should I add it as an optional property?

Yes please, given it's easy to add. We might want to use it in future so it would be nice to have now.

Quoted 11 lines
Quoted 10 lines
Quoted 7 lines
Quoted 6 lines

Is it the only interrupt?

Documentation/devicetree/bindings/watchdog/dw_wdt.txt line 14

Quoted 1 line
Documentation/devicetree/bindings/watchdog/dw_wdt.txt new file +1 -0
+		clocks = <&per_base_clk>;

Similarly, is this the only clock?

The driver uses one clock, and it is mandatory.

Is this the only clock into the unit?

Does it have a name?

Yes, this is is the only clock into the unit. No, it does not have name.

Ok.

Thanks,
Mark.
--
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

#10 lore raw
In reply to a message not in the archive
Quoted 4 lines · Dinh Nguyen
Quoted 1 line · Mark Rutland

Does the device have any interrupts, even if they're unused?

Yes, the device does have an interrupt. Should I add it as an optional property?

iirc the interrupt feature is part of the IP configuration so not all instantiations will have the interrupt, so this should be an optional property.

Jamie
--
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