Skip to contentSkip to conversation

drm: tilcdc: add a da850-specific compatible string

PATCH Superseded Bartosz Golaszewski 2 participants 3 messages Sep 30, 2016 – Oct 3, 2016

Subsystems (4)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drm: tilcdc: add a da850-specific compatible string

Due to some potential tweaks for the da850 LCDC (for example: the required memory bandwith settings) we need a separate compatible for the IP present on the da850 boards.

---
v1 -> v2:
- added the new compatible to the bindings documentation

 Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt | 4 ++--
 drivers/gpu/drm/tilcdc/tilcdc_drv.c                         | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt +2 -2
index a83abd7..33b6e8a 100644
@@ -1,7 +1,7 @@
 Device-Tree bindings for tilcdc DRM driver
 
 Required properties:
- - compatible: value should be "ti,am33xx-tilcdc".
+ - compatible: value should be "ti,am33xx-tilcdc" or "ti,da850-tilcdc".
  - interrupts: the interrupt number
  - reg: base address and size of the LCDC device
 
@@ -51,7 +51,7 @@ Optional nodes:
 Example:
 
 	fb: fb at 4830e000 {
-		compatible = "ti,am33xx-tilcdc";
+		compatible = "ti,am33xx-tilcdc", "ti,da850-tilcdc";
 		reg = <0x4830e000 0x1000>;
 		interrupt-parent = <&intc>;
 		interrupts = <36>;
drivers/gpu/drm/tilcdc/tilcdc_drv.c +1 -0
index a694977..231f2c7 100644
@@ -723,6 +723,7 @@ static int tilcdc_pdev_remove(struct platform_device *pdev)
 
 static struct of_device_id tilcdc_of_match[] = {
 		{ .compatible = "ti,am33xx-tilcdc", },
+		{ .compatible = "ti,da850-tilcdc", },
 		{ },
 };
 MODULE_DEVICE_TABLE(of, tilcdc_of_match);
Signature · 1 line
2.9.3
#1 lore raw
Quoted 19 lines · Bartosz Golaszewski

Due to some potential tweaks for the da850 LCDC (for example: the required memory bandwith settings) we need a separate compatible for the IP present on the da850 boards.

---
v1 -> v2:
- added the new compatible to the bindings documentation

 Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt | 4 ++--
 drivers/gpu/drm/tilcdc/tilcdc_drv.c                         | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt +0 -0
index a83abd7..33b6e8a 100644

Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt line 4

Quoted 5 lines
Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt +1 -1
@@ -1,7 +1,7 @@
 Device-Tree bindings for tilcdc DRM driver
 
 Required properties:
- - compatible: value should be "ti,am33xx-tilcdc".
+ - compatible: value should be "ti,am33xx-tilcdc" or "ti,da850-tilcdc".

This documentation does not help much :( It should be on the lines of:

compatible: value should be "ti,am33xx-tilcdc" for AM335x based boards

	    value should be "ti,da850-tilcdc" for DA850/AM18x/OMAP-L138
	    based boards

There are many existing examples of the way compatible strings are documented. You can take a look at them too. Also, since you are introducing a new device-tree compatible, please keep the devicetree list and maintainers in CC too. I don't think it shows up in get_maintainer.pl, so you will have to remember to do it.

Thanks,
Sekhar

#2 lore raw

2016-10-01 11:30 GMT+02:00 Sekhar Nori <[email protected]>:

Quoted 9 lines · Bartosz Golaszewski
Quoted 4 lines

Due to some potential tweaks for the da850 LCDC (for example: the required memory bandwith settings) we need a separate compatible for the IP present on the da850 boards.

This documentation does not help much :( It should be on the lines of:

compatible: value should be "ti,am33xx-tilcdc" for AM335x based boards

Quoted 9 lines
            value should be "ti,da850-tilcdc" for DA850/AM18x/OMAP-L138
            based boards

There are many existing examples of the way compatible strings are documented. You can take a look at them too. Also, since you are introducing a new device-tree compatible, please keep the devicetree list and maintainers in CC too. I don't think it shows up in get_maintainer.pl, so you will have to remember to do it.

Hi Sekhar,

sorry for that, hope v3 is good.

Thanks,
Bartosz