Skip to contentSkip to conversation

drm: Add DT bindings documentation for OpenCores VGA/LCD controller

PATCH In review Andrea Merello 2 participants 4 messages Jun 9, 2016 – Jun 27, 2016

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

PATCH 2/2 drm: Add DT bindings documentation for OpenCores VGA/LCD controller

Cc Stefan Kristiansson <[email protected]>
Cc Tomi Valkeinen <[email protected]>
Cc Francesco Diotalevi <[email protected]>
Cc Claudio Lorini <[email protected]>
---
 .../bindings/display/opencores,ocdrm.txt           | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/opencores,ocdrm.txt
Documentation/devicetree/bindings/display/opencores,ocdrm.txt new file +27 -0
new file mode 100644
index 0000000..8d36de5
@@ -0,0 +1,27 @@
+OpenCores VGA/LCD controller
+
+Required properties:
+- compatible: "opencores,ocdrm"
+- reg: Physical base address and length of the controller's registers.
+- clocks: Must contain an entry for the pixelclock generator.
+  See ../clocks/clock-bindings.txt for details.
+
+Required sub-nodes:
+- port: the connection to a DRM bridge.  The connection is modelled
+  using the OF graph bindings specified in
+  Documentation/devicetree/bindings/graph.txt.
+
+Example:
+
+ocdrm@43c10000 {
+	compatible = "opencores,ocfb-drm";
+	reg = <0x43c10000 0x10000>;
+	clocks = <&pix_clock>;
+	ports {
+		port@0 {
+			rgb_out: endpoint {
+				remote-endpoint = <&bridge_in>;
+			};
+		};
+	};
+};
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 16 lines · Andrea Merello
Cc Stefan Kristiansson <[email protected]>
Cc Tomi Valkeinen <[email protected]>
Cc Francesco Diotalevi <[email protected]>
Cc Claudio Lorini <[email protected]>
---
 .../bindings/display/opencores,ocdrm.txt           | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/opencores,ocdrm.txt
Documentation/devicetree/bindings/display/opencores,ocdrm.txt new file +0 -0
new file mode 100644
index 0000000..8d36de5

Documentation/devicetree/bindings/display/opencores,ocdrm.txt line 4

Quoted 4 lines
Documentation/devicetree/bindings/display/opencores,ocdrm.txt new file +4 -0
@@ -0,0 +1,27 @@
+OpenCores VGA/LCD controller
+
+Required properties:
+- compatible: "opencores,ocdrm"

Name this based on what the h/w block is called, not a Linux subsystem.

Is there any sort of versioning for OpenCore IP that you can include in the name?

Documentation/devicetree/bindings/display/opencores,ocdrm.txt line 10

Quoted 6 lines
Documentation/devicetree/bindings/display/opencores,ocdrm.txt new file +6 -0
+- reg: Physical base address and length of the controller's registers.
+- clocks: Must contain an entry for the pixelclock generator.
+  See ../clocks/clock-bindings.txt for details.
+
+Required sub-nodes:
+- port: the connection to a DRM bridge.  The connection is modelled

Don't include Linux driver details (DRM) in bindings.

Documentation/devicetree/bindings/display/opencores,ocdrm.txt line 17

Quoted 7 lines
Documentation/devicetree/bindings/display/opencores,ocdrm.txt new file +7 -0
+  using the OF graph bindings specified in
+  Documentation/devicetree/bindings/graph.txt.
+
+Example:
+
+ocdrm@43c10000 {
+	compatible = "opencores,ocfb-drm";

Doesn't match the above and even worse naming.

Documentation/devicetree/bindings/display/opencores,ocdrm.txt line 21

Quoted 4 lines
Documentation/devicetree/bindings/display/opencores,ocdrm.txt new file +4 -0
+	reg = <0x43c10000 0x10000>;
+	clocks = <&pix_clock>;
+	ports {
+		port@0 {

Single port doesn't need a unit address.

Quoted 13 lines
Documentation/devicetree/bindings/display/opencores,ocdrm.txt new file +6 -0
+			rgb_out: endpoint {
+				remote-endpoint = <&bridge_in>;
+			};
+		};
+	};
+};
Signature · 6 lines
1.9.1

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

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 11 lines · Rob Herring
Quoted 10 lines · Andrea Merello
Cc Stefan Kristiansson <[email protected]>
Cc Tomi Valkeinen <[email protected]>
Cc Francesco Diotalevi <[email protected]>
Cc Claudio Lorini <[email protected]>
---
 .../bindings/display/opencores,ocdrm.txt           | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/opencores,ocdrm.txt
Quoted 12 lines

Documentation/devicetree/bindings/display/opencores,ocdrm.txt line 4

Quoted 10 lines
Documentation/devicetree/bindings/display/opencores,ocdrm.txt new file +4 -0
new file mode 100644
index 0000000..8d36de5
@@ -0,0 +1,27 @@
+OpenCores VGA/LCD controller
+
+Required properties:
+- compatible: "opencores,ocdrm"

Name this based on what the h/w block is called, not a Linux subsystem.

Ok.

Something like "opencores,video" ?

The older framebuffer driver has "opencores,ocfb"; I assumed the suffix -fb was because of it is a "framebuffer" _driver_, but maybe it is because they consider it a "framebuffer" _device_.

Maybe I can keep the same "compatible" string? Is it ok to have two drivers (maybe temporarily, until the older one fades out) with the same "compatible" ?

Quoted 2 lines

Is there any sort of versioning for OpenCore IP that you can include in the name?

Not sure about this. I'll check.

Quoted 8 lines

Documentation/devicetree/bindings/display/opencores,ocdrm.txt line 10

Quoted 6 lines
Documentation/devicetree/bindings/display/opencores,ocdrm.txt new file +6 -0
+- reg: Physical base address and length of the controller's registers.
+- clocks: Must contain an entry for the pixelclock generator.
+  See ../clocks/clock-bindings.txt for details.
+
+Required sub-nodes:
+- port: the connection to a DRM bridge.  The connection is modelled

Don't include Linux driver details (DRM) in bindings.

You mean telling that the port must be a connection to a DRM bridge, leaving out further details?

Quoted 9 lines

Documentation/devicetree/bindings/display/opencores,ocdrm.txt line 17

Quoted 7 lines
Documentation/devicetree/bindings/display/opencores,ocdrm.txt new file +7 -0
+  using the OF graph bindings specified in
+  Documentation/devicetree/bindings/graph.txt.
+
+Example:
+
+ocdrm@43c10000 {
+     compatible = "opencores,ocfb-drm";

Doesn't match the above and even worse naming.

OK.

Quoted 6 lines

Documentation/devicetree/bindings/display/opencores,ocdrm.txt line 21

Quoted 4 lines
Documentation/devicetree/bindings/display/opencores,ocdrm.txt new file +4 -0
+     reg = <0x43c10000 0x10000>;
+     clocks = <&pix_clock>;
+     ports {
+             port@0 {

Single port doesn't need a unit address.

OK.

Quoted 13 lines
Quoted 13 lines
Documentation/devicetree/bindings/display/opencores,ocdrm.txt new file +6 -1
+                     rgb_out: endpoint {
+                             remote-endpoint = <&bridge_in>;
+                     };
+             };
+     };
+};
--

1.9.1

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

maintainer
#3 lore raw
Quoted 25 lines · Andrea Merello
Quoted 11 lines · Rob Herring
Quoted 10 lines · Andrea Merello
Cc Stefan Kristiansson <[email protected]>
Cc Tomi Valkeinen <[email protected]>
Cc Francesco Diotalevi <[email protected]>
Cc Claudio Lorini <[email protected]>
---
 .../bindings/display/opencores,ocdrm.txt           | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/opencores,ocdrm.txt
Quoted 12 lines

Documentation/devicetree/bindings/display/opencores,ocdrm.txt line 4

Quoted 10 lines
Documentation/devicetree/bindings/display/opencores,ocdrm.txt new file +4 -0
new file mode 100644
index 0000000..8d36de5
@@ -0,0 +1,27 @@
+OpenCores VGA/LCD controller
+
+Required properties:
+- compatible: "opencores,ocdrm"

Name this based on what the h/w block is called, not a Linux subsystem.

Quoted 3 lines

Ok.

Something like "opencores,video" ?

The VGA/LCD controller IP block is just called "video"?

Quoted 3 lines

The older framebuffer driver has "opencores,ocfb"; I assumed the suffix -fb was because of it is a "framebuffer" _driver_, but maybe it is because they consider it a "framebuffer" _device_.

Could be either. The FB and DRM "bindings" have been flawed in general. The bindings should describe hardware blocks and the connections between them, not what the kernel subsystem wants.

Quoted 3 lines

Maybe I can keep the same "compatible" string? Is it ok to have two drivers (maybe temporarily, until the older one fades out) with the same "compatible" ?

In principal, that is exactly how it should work. However, the FB binding is probably incomplete or flawed. If keeping the compatible string is enough for it to work, then that is fine.

Quoted 14 lines
Quoted 2 lines

Is there any sort of versioning for OpenCore IP that you can include in the name?

Not sure about this. I'll check.

Quoted 8 lines

Documentation/devicetree/bindings/display/opencores,ocdrm.txt line 10

Quoted 6 lines
Documentation/devicetree/bindings/display/opencores,ocdrm.txt new file +6 -0
+- reg: Physical base address and length of the controller's registers.
+- clocks: Must contain an entry for the pixelclock generator.
+  See ../clocks/clock-bindings.txt for details.
+
+Required sub-nodes:
+- port: the connection to a DRM bridge.  The connection is modelled

Don't include Linux driver details (DRM) in bindings.

Quoted 2 lines

You mean telling that the port must be a connection to a DRM bridge, leaving out further details?

The binding itself and description should not contain the word DRM. Just say connection to bridge chip or connector.

Rob
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel