diff mbox series

[2/2] drm: dt-bindings: adi: axi-hdmi-tx: Add DT bindings for axi-hdmi-tx

Message ID 20201005141226.180655-2-bogdan.togorean@analog.com
State Changes Requested, archived
Headers show
Series None | expand

Checks

Context Check Description
robh/checkpatch success
robh/dt-meta-schema success

Commit Message

Bogdan Togorean Oct. 5, 2020, 2:12 p.m. UTC
Add YAML device tree bindings for Analog Devices Inc. AXI HDMI TX
IP core DRM driver.

Signed-off-by: Bogdan Togorean <bogdan.togorean@analog.com>
---
 .../bindings/gpu/adi,axi-hdmi-tx.yaml         | 70 +++++++++++++++++++
 1 file changed, 70 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpu/adi,axi-hdmi-tx.yaml

Comments

Rob Herring Oct. 6, 2020, 10 p.m. UTC | #1
On Mon, Oct 05, 2020 at 05:12:09PM +0300, Bogdan Togorean wrote:
> Add YAML device tree bindings for Analog Devices Inc. AXI HDMI TX
> IP core DRM driver.
> 
> Signed-off-by: Bogdan Togorean <bogdan.togorean@analog.com>
> ---
>  .../bindings/gpu/adi,axi-hdmi-tx.yaml         | 70 +++++++++++++++++++

Not a GPU? Goes in .../bindings/display/

>  1 file changed, 70 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/gpu/adi,axi-hdmi-tx.yaml
> 
> diff --git a/Documentation/devicetree/bindings/gpu/adi,axi-hdmi-tx.yaml b/Documentation/devicetree/bindings/gpu/adi,axi-hdmi-tx.yaml
> new file mode 100644
> index 000000000000..ab7e71d14d1d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpu/adi,axi-hdmi-tx.yaml
> @@ -0,0 +1,70 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/gpu/adi,axi-hdmi-tx.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Analog Devices AXI HDMI TX HDL core
> +
> +maintainers:
> +  - Bogdan Togorean <bogdan.togorean@analog.com>
> +
> +description: |
> +  The AXI HDMI HDL driver is the driver for the HDL graphics core which
> +  is used on various FPGA designs. It's mostly used to interface with
> +  the ADV7511 driver on some Zynq boards (e.g. ZC702 & ZedBoard).
> +
> +properties:
> +  compatible:
> +    const: adi,axi-hdmi-tx-1.00.a
> +
> +  reg:
> +    maxItems: 1
> +
> +  dmas:
> +    items:
> +      - description: phandle to AXIS DMA controller
> +    maxItems: 1
> +
> +  dma-names:
> +    items:
> +      - const: video
> +
> +  clocks:
> +    maxItems: 1
> +    description: phandle to the pixel clock
> +
> +  adi,is-rgb:
> +    type: boolean
> +    description: control color space conversion
> +
> +  port:
> +    type: object
> +    description: |
> +      Port as described in Documentation/devicetree/bindings/graph.txt.
> +      Remote output connection to ADV7511 driver

The exact device it's connected to is outside the scope of this binding.

> +
> +required:
> +  - compatible
> +  - reg
> +  - dmas
> +  - dma-names
> +  - clocks
> +  - port

additionalProperties: false

> +
> +examples:
> +  - |
> +    axi_hdmi_tx: axi_hdmi@70e00000 {
> +            compatible = "adi,axi-hdmi-tx-1.00.a";
> +            reg = <0x70e00000 0x10000>;
> +            dmas = <&hdmi_dma 0>;
> +            dma-names = "video";
> +            clocks = <&hdmi_clock>;
> +
> +            port {
> +                    axi_hdmi_out: endpoint {
> +                            remote-endpoint = <&zynq_hdmi_in>;
> +                    };
> +            };
> +    };
> +...
> -- 
> 2.28.0
>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/gpu/adi,axi-hdmi-tx.yaml b/Documentation/devicetree/bindings/gpu/adi,axi-hdmi-tx.yaml
new file mode 100644
index 000000000000..ab7e71d14d1d
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpu/adi,axi-hdmi-tx.yaml
@@ -0,0 +1,70 @@ 
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/gpu/adi,axi-hdmi-tx.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices AXI HDMI TX HDL core
+
+maintainers:
+  - Bogdan Togorean <bogdan.togorean@analog.com>
+
+description: |
+  The AXI HDMI HDL driver is the driver for the HDL graphics core which
+  is used on various FPGA designs. It's mostly used to interface with
+  the ADV7511 driver on some Zynq boards (e.g. ZC702 & ZedBoard).
+
+properties:
+  compatible:
+    const: adi,axi-hdmi-tx-1.00.a
+
+  reg:
+    maxItems: 1
+
+  dmas:
+    items:
+      - description: phandle to AXIS DMA controller
+    maxItems: 1
+
+  dma-names:
+    items:
+      - const: video
+
+  clocks:
+    maxItems: 1
+    description: phandle to the pixel clock
+
+  adi,is-rgb:
+    type: boolean
+    description: control color space conversion
+
+  port:
+    type: object
+    description: |
+      Port as described in Documentation/devicetree/bindings/graph.txt.
+      Remote output connection to ADV7511 driver
+
+required:
+  - compatible
+  - reg
+  - dmas
+  - dma-names
+  - clocks
+  - port
+
+examples:
+  - |
+    axi_hdmi_tx: axi_hdmi@70e00000 {
+            compatible = "adi,axi-hdmi-tx-1.00.a";
+            reg = <0x70e00000 0x10000>;
+            dmas = <&hdmi_dma 0>;
+            dma-names = "video";
+            clocks = <&hdmi_clock>;
+
+            port {
+                    axi_hdmi_out: endpoint {
+                            remote-endpoint = <&zynq_hdmi_in>;
+                    };
+            };
+    };
+...