* [PATCH v2 1/2] ARM: dts: OMAP4+: Add DMM bindings
2013-03-20 20:50 [PATCH v2 0/2] ARM: dts: OMAP4+: Add dmm device bindings Andy Gross
@ 2013-03-20 20:50 ` Andy Gross
0 siblings, 0 replies; 7+ messages in thread
From: Andy Gross @ 2013-03-20 20:50 UTC (permalink / raw)
To: linux-omap
Cc: Benoit Cousson, Santosh Shilimkar, Nishanth Menon,
devicetree-discuss, Andy Gross
Add Dynamic Memory Manager (DMM) bindings for OMAP4 and OMAP5 devices.
Add documentation for the DMM bindings.
Signed-off-by: Andy Gross <andy.gross@ti.com>
---
Documentation/devicetree/bindings/arm/omap/dmm.txt | 16 ++++++++++++++++
arch/arm/boot/dts/omap4.dtsi | 7 +++++++
arch/arm/boot/dts/omap5.dtsi | 7 +++++++
3 files changed, 30 insertions(+), 0 deletions(-)
create mode 100644 Documentation/devicetree/bindings/arm/omap/dmm.txt
diff --git a/Documentation/devicetree/bindings/arm/omap/dmm.txt b/Documentation/devicetree/bindings/arm/omap/dmm.txt
new file mode 100644
index 0000000..5fd1134
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/omap/dmm.txt
@@ -0,0 +1,16 @@
+OMAP Dynamic Memory Manager (DMM) bindings
+
+Required properties:
+- compatible: Must be "ti,dmm" for OMAP processors containing DMM block
+- reg: Contains timer register address range (base address and length)
+- interrupts: Contains interrupt information (source, etc) for the DMM IRQ
+- ti,hwmods: Name of the hwmod associated to the counter, which is typically
+ "dmm"
+
+Example:
+
+dmm: dmm@4e000000 {
+ compatible = "ti,dmm";
+ reg = <0x4e000000 0x800>;
+ ti,hwmods = "dmm";
+};
diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
index ddfc54a..749fe83 100644
--- a/arch/arm/boot/dts/omap4.dtsi
+++ b/arch/arm/boot/dts/omap4.dtsi
@@ -624,5 +624,12 @@
ram-bits = <12>;
ti,has-mailbox;
};
+
+ dmm: dmm@4e000000 {
+ compatible = "ti,dmm";
+ reg = <0x4e000000 0x800>;
+ interrupts = <0 113 0x4>;
+ ti,hwmods = "dmm";
+ };
};
};
diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
index b760c11..c2d2ecc 100644
--- a/arch/arm/boot/dts/omap5.dtsi
+++ b/arch/arm/boot/dts/omap5.dtsi
@@ -650,5 +650,12 @@
ctrl-module = <&omap_control_usb>;
};
};
+
+ dmm: dmm@4e000000 {
+ compatible = "ti,dmm";
+ reg = <0x4e000000 0x800>;
+ interrupts = <0 113 0x4>;
+ ti,hwmods = "dmm";
+ };
};
};
--
1.7.5.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 0/2] ARM: dts: OMAP4+: Add dmm device bindings
@ 2013-04-10 20:50 Andy Gross
2013-04-10 20:50 ` [PATCH v2 1/2] ARM: dts: OMAP4+: Add DMM bindings Andy Gross
2013-04-10 20:50 ` [PATCH v2 2/2] ARM: OMAP2+: Enable DT usage during dmm create Andy Gross
0 siblings, 2 replies; 7+ messages in thread
From: Andy Gross @ 2013-04-10 20:50 UTC (permalink / raw)
To: devicetree-discuss
Cc: Benoit Cousson, linux-omap, Santosh Shilimkar, Nishanth Menon,
Andy Gross
This patch set adds devicetree bindings for the Dynamic Memory Manager (DMM)
inside the OMAP4 and OMAP5 devices, creates the platform_device using the DT
entry if present or falls back to using the hwmod entry if not, and adds
documentation for the minimal binding.
v2: Handle both DT and non DT device creation
Andy Gross (2):
ARM: dts: OMAP4+: Add DMM bindings
ARM: OMAP2+: Enable DT usage during dmm create
Documentation/devicetree/bindings/arm/omap/dmm.txt | 16 ++++++++++++++++
arch/arm/boot/dts/omap4.dtsi | 7 +++++++
arch/arm/boot/dts/omap5.dtsi | 7 +++++++
arch/arm/mach-omap2/drm.c | 17 +++++++++++------
4 files changed, 41 insertions(+), 6 deletions(-)
create mode 100644 Documentation/devicetree/bindings/arm/omap/dmm.txt
--
1.7.5.4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 1/2] ARM: dts: OMAP4+: Add DMM bindings
2013-04-10 20:50 [PATCH v2 0/2] ARM: dts: OMAP4+: Add dmm device bindings Andy Gross
@ 2013-04-10 20:50 ` Andy Gross
2013-04-10 20:50 ` [PATCH v2 2/2] ARM: OMAP2+: Enable DT usage during dmm create Andy Gross
1 sibling, 0 replies; 7+ messages in thread
From: Andy Gross @ 2013-04-10 20:50 UTC (permalink / raw)
To: devicetree-discuss
Cc: Benoit Cousson, linux-omap, Santosh Shilimkar, Nishanth Menon,
Andy Gross
Add Dynamic Memory Manager (DMM) bindings for OMAP4 and OMAP5 devices.
Add documentation for the DMM bindings.
Signed-off-by: Andy Gross <andy.gross@ti.com>
---
Documentation/devicetree/bindings/arm/omap/dmm.txt | 16 ++++++++++++++++
arch/arm/boot/dts/omap4.dtsi | 7 +++++++
arch/arm/boot/dts/omap5.dtsi | 7 +++++++
3 files changed, 30 insertions(+), 0 deletions(-)
create mode 100644 Documentation/devicetree/bindings/arm/omap/dmm.txt
diff --git a/Documentation/devicetree/bindings/arm/omap/dmm.txt b/Documentation/devicetree/bindings/arm/omap/dmm.txt
new file mode 100644
index 0000000..5fd1134
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/omap/dmm.txt
@@ -0,0 +1,16 @@
+OMAP Dynamic Memory Manager (DMM) bindings
+
+Required properties:
+- compatible: Must be "ti,dmm" for OMAP processors containing DMM block
+- reg: Contains timer register address range (base address and length)
+- interrupts: Contains interrupt information (source, etc) for the DMM IRQ
+- ti,hwmods: Name of the hwmod associated to the counter, which is typically
+ "dmm"
+
+Example:
+
+dmm: dmm@4e000000 {
+ compatible = "ti,dmm";
+ reg = <0x4e000000 0x800>;
+ ti,hwmods = "dmm";
+};
diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
index 2a56428..53951e9 100644
--- a/arch/arm/boot/dts/omap4.dtsi
+++ b/arch/arm/boot/dts/omap4.dtsi
@@ -660,5 +660,12 @@
ram-bits = <12>;
ti,has-mailbox;
};
+
+ dmm: dmm@4e000000 {
+ compatible = "ti,dmm";
+ reg = <0x4e000000 0x800>;
+ interrupts = <0 113 0x4>;
+ ti,hwmods = "dmm";
+ };
};
};
diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
index 3dd7ff8..e77af8d 100644
--- a/arch/arm/boot/dts/omap5.dtsi
+++ b/arch/arm/boot/dts/omap5.dtsi
@@ -667,5 +667,12 @@
ctrl-module = <&omap_control_usb>;
};
};
+
+ dmm: dmm@4e000000 {
+ compatible = "ti,dmm";
+ reg = <0x4e000000 0x800>;
+ interrupts = <0 113 0x4>;
+ ti,hwmods = "dmm";
+ };
};
};
--
1.7.5.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 2/2] ARM: OMAP2+: Enable DT usage during dmm create
2013-04-10 20:50 [PATCH v2 0/2] ARM: dts: OMAP4+: Add dmm device bindings Andy Gross
2013-04-10 20:50 ` [PATCH v2 1/2] ARM: dts: OMAP4+: Add DMM bindings Andy Gross
@ 2013-04-10 20:50 ` Andy Gross
1 sibling, 0 replies; 7+ messages in thread
From: Andy Gross @ 2013-04-10 20:50 UTC (permalink / raw)
To: devicetree-discuss
Cc: Benoit Cousson, linux-omap, Santosh Shilimkar, Nishanth Menon,
Andy Gross
If DMM device tree information is present, use it for creating the
device. Otherwise fall back to using the hwmod entry.
Signed-off-by: Andy Gross <andy.gross@ti.com>
---
arch/arm/mach-omap2/drm.c | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/arch/arm/mach-omap2/drm.c b/arch/arm/mach-omap2/drm.c
index 59a4af7..e1e20ec 100644
--- a/arch/arm/mach-omap2/drm.c
+++ b/arch/arm/mach-omap2/drm.c
@@ -24,6 +24,7 @@
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/platform_data/omap_drm.h>
+#include <linux/of.h>
#include "soc.h"
#include "omap_device.h"
@@ -47,13 +48,17 @@ static int __init omap_init_drm(void)
struct omap_hwmod *oh = NULL;
struct platform_device *pdev;
- /* lookup and populate the DMM information, if present - OMAP4+ */
- oh = omap_hwmod_lookup("dmm");
+ if (!of_find_compatible_node(NULL, NULL, "ti,dmm")) {
- if (oh) {
- pdev = omap_device_build(oh->name, -1, oh, NULL, 0);
- WARN(IS_ERR(pdev), "Could not build omap_device for %s\n",
- oh->name);
+ /* resort to hwmod lookup - LEGACY */
+ /* lookup and populate the DMM information, OMAP4+ only */
+ oh = omap_hwmod_lookup("dmm");
+
+ if (oh) {
+ pdev = omap_device_build(oh->name, -1, oh, NULL, 0);
+ WARN(IS_ERR(pdev), "Could not build device for %s\n",
+ oh->name);
+ }
}
platform_data.omaprev = GET_OMAP_TYPE;
--
1.7.5.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 1/2] arm: dts: omap4+: Add DMM bindings
2013-09-16 9:30 ` [PATCH v2 0/2] " Archit Taneja
@ 2013-09-16 9:30 ` Archit Taneja
2013-09-16 11:19 ` Tomi Valkeinen
0 siblings, 1 reply; 7+ messages in thread
From: Archit Taneja @ 2013-09-16 9:30 UTC (permalink / raw)
To: tony, linux-omap, robdclark, tomi.valkeinen, bcousson
Cc: devicetree, linux-doc, Archit Taneja, Andy Gross
Add Dynamic Memory Manager (DMM) bindings for OMAP4 and OMAP5 devices. DMM
only requires address and irq information.
Add documentation for the DMM bindings.
Originally worked on by Andy Gross.
Cc: Andy Gross <andygro@gmail.com>
Signed-off-by: Archit Taneja <archit@ti.com>
---
Documentation/devicetree/bindings/arm/omap/dmm.txt | 17 +++++++++++++++++
arch/arm/boot/dts/omap4.dtsi | 7 +++++++
arch/arm/boot/dts/omap5.dtsi | 7 +++++++
3 files changed, 31 insertions(+)
create mode 100644 Documentation/devicetree/bindings/arm/omap/dmm.txt
diff --git a/Documentation/devicetree/bindings/arm/omap/dmm.txt b/Documentation/devicetree/bindings/arm/omap/dmm.txt
new file mode 100644
index 0000000..237cd83
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/omap/dmm.txt
@@ -0,0 +1,17 @@
+OMAP Dynamic Memory Manager (DMM) bindings
+
+Required properties:
+- compatible: Must be "ti,omap4-dmm" for OMAP4 family
+ Must be "ti,omap5-dmm" for OMAP5 family
+- reg: Contains timer register address range (base address and length)
+- interrupts: Contains interrupt information (source, etc) for the DMM IRQ
+- ti,hwmods: Name of the hwmod associated to the counter, which is typically
+ "dmm"
+
+Example:
+
+dmm: dmm@4e000000 {
+ compatible = "ti,omap4-dmm";
+ reg = <0x4e000000 0x800>;
+ ti,hwmods = "dmm";
+};
diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
index 22d9f2b..24f388e 100644
--- a/arch/arm/boot/dts/omap4.dtsi
+++ b/arch/arm/boot/dts/omap4.dtsi
@@ -487,6 +487,13 @@
ti,hwmods = "kbd";
};
+ dmm: dmm@4e000000 {
+ compatible = "ti,omap4-dmm";
+ reg = <0x4e000000 0x800>;
+ interrupts = <0 113 0x4>;
+ ti,hwmods = "dmm";
+ };
+
emif1: emif@4c000000 {
compatible = "ti,emif-4d";
reg = <0x4c000000 0x100>;
diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
index ac1f1e0..33b4fea 100644
--- a/arch/arm/boot/dts/omap5.dtsi
+++ b/arch/arm/boot/dts/omap5.dtsi
@@ -604,6 +604,13 @@
ti,hwmods = "wd_timer2";
};
+ dmm: dmm@4e000000 {
+ compatible = "ti,omap5-dmm";
+ reg = <0x4e000000 0x800>;
+ interrupts = <0 113 0x4>;
+ ti,hwmods = "dmm";
+ };
+
emif1: emif@0x4c000000 {
compatible = "ti,emif-4d5";
ti,hwmods = "emif1";
--
1.8.1.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/2] arm: dts: omap4+: Add DMM bindings
2013-09-16 9:30 ` [PATCH v2 1/2] arm: dts: omap4+: Add DMM bindings Archit Taneja
@ 2013-09-16 11:19 ` Tomi Valkeinen
[not found] ` <5236E940.9070503-l0cyMroinI0@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Tomi Valkeinen @ 2013-09-16 11:19 UTC (permalink / raw)
To: Archit Taneja
Cc: tony, linux-omap, robdclark, bcousson, devicetree, linux-doc,
Andy Gross
[-- Attachment #1: Type: text/plain, Size: 2725 bytes --]
On 16/09/13 12:30, Archit Taneja wrote:
> Add Dynamic Memory Manager (DMM) bindings for OMAP4 and OMAP5 devices. DMM
> only requires address and irq information.
>
> Add documentation for the DMM bindings.
>
> Originally worked on by Andy Gross.
>
> Cc: Andy Gross <andygro@gmail.com>
> Signed-off-by: Archit Taneja <archit@ti.com>
> ---
> Documentation/devicetree/bindings/arm/omap/dmm.txt | 17 +++++++++++++++++
> arch/arm/boot/dts/omap4.dtsi | 7 +++++++
> arch/arm/boot/dts/omap5.dtsi | 7 +++++++
> 3 files changed, 31 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/arm/omap/dmm.txt
>
> diff --git a/Documentation/devicetree/bindings/arm/omap/dmm.txt b/Documentation/devicetree/bindings/arm/omap/dmm.txt
> new file mode 100644
> index 0000000..237cd83
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/omap/dmm.txt
> @@ -0,0 +1,17 @@
> +OMAP Dynamic Memory Manager (DMM) bindings
> +
> +Required properties:
> +- compatible: Must be "ti,omap4-dmm" for OMAP4 family
> + Must be "ti,omap5-dmm" for OMAP5 family
> +- reg: Contains timer register address range (base address and length)
"timer"?
> +- interrupts: Contains interrupt information (source, etc) for the DMM IRQ
> +- ti,hwmods: Name of the hwmod associated to the counter, which is typically
> + "dmm"
"associated to the counter"?
> +
> +Example:
> +
> +dmm: dmm@4e000000 {
> + compatible = "ti,omap4-dmm";
> + reg = <0x4e000000 0x800>;
> + ti,hwmods = "dmm";
> +};
> diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
> index 22d9f2b..24f388e 100644
> --- a/arch/arm/boot/dts/omap4.dtsi
> +++ b/arch/arm/boot/dts/omap4.dtsi
> @@ -487,6 +487,13 @@
> ti,hwmods = "kbd";
> };
>
> + dmm: dmm@4e000000 {
I don't think anyone refers to this node, so there shouldn't be any need
for the "dmm: " alias.
> + compatible = "ti,omap4-dmm";
> + reg = <0x4e000000 0x800>;
> + interrupts = <0 113 0x4>;
> + ti,hwmods = "dmm";
> + };
> +
> emif1: emif@4c000000 {
> compatible = "ti,emif-4d";
> reg = <0x4c000000 0x100>;
> diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
> index ac1f1e0..33b4fea 100644
> --- a/arch/arm/boot/dts/omap5.dtsi
> +++ b/arch/arm/boot/dts/omap5.dtsi
> @@ -604,6 +604,13 @@
> ti,hwmods = "wd_timer2";
> };
>
> + dmm: dmm@4e000000 {
Same here.
> + compatible = "ti,omap5-dmm";
> + reg = <0x4e000000 0x800>;
> + interrupts = <0 113 0x4>;
> + ti,hwmods = "dmm";
> + };
> +
> emif1: emif@0x4c000000 {
> compatible = "ti,emif-4d5";
> ti,hwmods = "emif1";
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/2] arm: dts: omap4+: Add DMM bindings
[not found] ` <5236E940.9070503-l0cyMroinI0@public.gmane.org>
@ 2013-09-16 12:25 ` Archit Taneja
0 siblings, 0 replies; 7+ messages in thread
From: Archit Taneja @ 2013-09-16 12:25 UTC (permalink / raw)
To: Tomi Valkeinen
Cc: tony-4v6yS6AI5VpBDgjK7y7TUQ, linux-omap-u79uwXL29TY76Z2rM5mHXA,
robdclark-Re5JQEeQqe8AvxtiuMwx3w, bcousson-rdvid1DuHRBWk0Htik3J/w,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-doc-u79uwXL29TY76Z2rM5mHXA, Andy Gross
On Monday 16 September 2013 04:49 PM, Tomi Valkeinen wrote:
> On 16/09/13 12:30, Archit Taneja wrote:
>> Add Dynamic Memory Manager (DMM) bindings for OMAP4 and OMAP5 devices. DMM
>> only requires address and irq information.
>>
>> Add documentation for the DMM bindings.
>>
>> Originally worked on by Andy Gross.
>>
>> Cc: Andy Gross <andygro-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>> Signed-off-by: Archit Taneja <archit-l0cyMroinI0@public.gmane.org>
>> ---
>> Documentation/devicetree/bindings/arm/omap/dmm.txt | 17 +++++++++++++++++
>> arch/arm/boot/dts/omap4.dtsi | 7 +++++++
>> arch/arm/boot/dts/omap5.dtsi | 7 +++++++
>> 3 files changed, 31 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/arm/omap/dmm.txt
>>
>> diff --git a/Documentation/devicetree/bindings/arm/omap/dmm.txt b/Documentation/devicetree/bindings/arm/omap/dmm.txt
>> new file mode 100644
>> index 0000000..237cd83
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/arm/omap/dmm.txt
>> @@ -0,0 +1,17 @@
>> +OMAP Dynamic Memory Manager (DMM) bindings
>> +
>> +Required properties:
>> +- compatible: Must be "ti,omap4-dmm" for OMAP4 family
>> + Must be "ti,omap5-dmm" for OMAP5 family
>> +- reg: Contains timer register address range (base address and length)
>
> "timer"?
>
>> +- interrupts: Contains interrupt information (source, etc) for the DMM IRQ
>> +- ti,hwmods: Name of the hwmod associated to the counter, which is typically
>> + "dmm"
>
> "associated to the counter"?
Seem like copy paste errors, will fix them.
>
>> +
>> +Example:
>> +
>> +dmm: dmm@4e000000 {
>> + compatible = "ti,omap4-dmm";
>> + reg = <0x4e000000 0x800>;
>> + ti,hwmods = "dmm";
>> +};
>> diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
>> index 22d9f2b..24f388e 100644
>> --- a/arch/arm/boot/dts/omap4.dtsi
>> +++ b/arch/arm/boot/dts/omap4.dtsi
>> @@ -487,6 +487,13 @@
>> ti,hwmods = "kbd";
>> };
>>
>> + dmm: dmm@4e000000 {
>
> I don't think anyone refers to this node, so there shouldn't be any need
> for the "dmm: " alias.
Yes, it won't be used. Will remove them.
Thanks,
Archit
--
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 [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-09-16 12:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-10 20:50 [PATCH v2 0/2] ARM: dts: OMAP4+: Add dmm device bindings Andy Gross
2013-04-10 20:50 ` [PATCH v2 1/2] ARM: dts: OMAP4+: Add DMM bindings Andy Gross
2013-04-10 20:50 ` [PATCH v2 2/2] ARM: OMAP2+: Enable DT usage during dmm create Andy Gross
-- strict thread matches above, loose matches on Subject: below --
2013-09-13 9:14 [PATCH 0/4] arm: omap: DMM DT adaptation Archit Taneja
2013-09-16 9:30 ` [PATCH v2 0/2] " Archit Taneja
2013-09-16 9:30 ` [PATCH v2 1/2] arm: dts: omap4+: Add DMM bindings Archit Taneja
2013-09-16 11:19 ` Tomi Valkeinen
[not found] ` <5236E940.9070503-l0cyMroinI0@public.gmane.org>
2013-09-16 12:25 ` Archit Taneja
2013-03-20 20:50 [PATCH v2 0/2] ARM: dts: OMAP4+: Add dmm device bindings Andy Gross
2013-03-20 20:50 ` [PATCH v2 1/2] ARM: dts: OMAP4+: Add DMM bindings Andy Gross
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).