Skip to contentSkip to conversation

drm: tilcdc: add a da850-specific compatible string

PATCH In review Bartosz Golaszewski 3 participants 4 messages Oct 3, 2016 – Oct 10, 2016

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

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

v2 -> v3:
- made the documentation more detailed

 Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt | 6 ++++--
 drivers/gpu/drm/tilcdc/tilcdc_drv.c                         | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt +4 -2
index a83abd7..6fddb4f 100644
@@ -1,7 +1,9 @@
 Device-Tree bindings for tilcdc DRM driver
 
 Required properties:
- - compatible: value should be "ti,am33xx-tilcdc".
+ - compatible: value should be one of the following:
+    - "ti,am33xx-tilcdc" for AM335x based boards
+    - "ti,da850-tilcdc" for DA850/AM18x/OMAP-L138 based boards
  - interrupts: the interrupt number
  - reg: base address and size of the LCDC device
 
@@ -51,7 +53,7 @@ Optional nodes:
 Example:
 
 	fb: fb@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
maintainer Acked-by on v3 1/1
#1 lore raw
Quoted 10 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

Quoted 6 lines

v2 -> v3:
- made the documentation more detailed

 Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt | 6 ++++--
 drivers/gpu/drm/tilcdc/tilcdc_drv.c                         | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)
maintainer Acked-by on v3 1/1
#2 lore raw
In reply to Bartosz Golaszewski
Quoted 10 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

Quoted 6 lines

v2 -> v3:
- made the documentation more detailed

 Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt | 6 ++++--
 drivers/gpu/drm/tilcdc/tilcdc_drv.c                         | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)
#3 lore raw
In reply to Bartosz Golaszewski
Quoted 6 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.

Thanks,
I pick this up, but I won't send it for 4.9 any more. The LCDC rev1 support is not yet complete in 4.9 anyway.

BR,
Jyri

Quoted 48 lines

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

v2 -> v3:
- made the documentation more detailed

 Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt | 6 ++++--
 drivers/gpu/drm/tilcdc/tilcdc_drv.c                         | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt +4 -2
index a83abd7..6fddb4f 100644
@@ -1,7 +1,9 @@
 Device-Tree bindings for tilcdc DRM driver
 
 Required properties:
- - compatible: value should be "ti,am33xx-tilcdc".
+ - compatible: value should be one of the following:
+    - "ti,am33xx-tilcdc" for AM335x based boards
+    - "ti,da850-tilcdc" for DA850/AM18x/OMAP-L138 based boards
  - interrupts: the interrupt number
  - reg: base address and size of the LCDC device
 
@@ -51,7 +53,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);