[alsa-devel] [PATCH 11/23] Documentation: of: add type property

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Mon Oct 17 10:35:16 CEST 2016


From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>

OF graph indicates each devices connection. But it doesn't support type
of each port. For example HDMI case, it has video port and sound port
in one device node.
In this case, current driver can't handle each port correctly.
This patch enables to use type property on OF graph.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
 Documentation/devicetree/bindings/graph.txt | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/Documentation/devicetree/bindings/graph.txt b/Documentation/devicetree/bindings/graph.txt
index fcb1c6a..fe6c8ce 100644
--- a/Documentation/devicetree/bindings/graph.txt
+++ b/Documentation/devicetree/bindings/graph.txt
@@ -110,6 +110,27 @@ device-2 {
         };
 };
 
+port / endpoint type
+--------------------
+
+Each port can have its type if needed.
+For example HDMI case, it has video port and sound port.
+Below example indicates that port at 0 is HDMI-video port,
+and port at 1 is HDMI-sound port.
+
+HDMI {
+	port at 0 {
+		type = "video";
+		endpoint {
+		};
+	};
+	port at 1 {
+		type = "sound";
+		endpoint {
+		};
+	};
+};
+
 
 Required properties
 -------------------
-- 
1.9.1



More information about the Alsa-devel mailing list