All of lore.kernel.org
 help / color / mirror / Atom feed
From: Biju Das <biju.das.jz@bp.renesas.com>
To: cip-dev@lists.cip-project.org,
	Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>,
	Pavel Machek <pavel@denx.de>
Cc: Biju Das <biju.das.jz@bp.renesas.com>,
	Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: [PATCH 6.1.y-cip 01/20] dt-bindings: display: bridge: Document RZ/G2L MIPI DSI TX bindings
Date: Tue,  5 Sep 2023 17:07:18 +0100	[thread overview]
Message-ID: <20230905160737.167877-2-biju.das.jz@bp.renesas.com> (raw)
In-Reply-To: <20230905160737.167877-1-biju.das.jz@bp.renesas.com>

commit b1a90f510230afa9483e38fccbf9e4274c92aa8c upstream.

The RZ/G2L MIPI DSI TX is embedded in the Renesas RZ/G2L family SoC's. It
can operate in DSI mode, with up to four data lanes.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
 .../bindings/display/bridge/renesas,dsi.yaml  | 182 ++++++++++++++++++
 1 file changed, 182 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/bridge/renesas,dsi.yaml

diff --git a/Documentation/devicetree/bindings/display/bridge/renesas,dsi.yaml b/Documentation/devicetree/bindings/display/bridge/renesas,dsi.yaml
new file mode 100644
index 000000000000..131d5b63ec4f
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/bridge/renesas,dsi.yaml
@@ -0,0 +1,182 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/bridge/renesas,dsi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Renesas RZ/G2L MIPI DSI Encoder
+
+maintainers:
+  - Biju Das <biju.das.jz@bp.renesas.com>
+
+description: |
+  This binding describes the MIPI DSI encoder embedded in the Renesas
+  RZ/G2L alike family of SoC's. The encoder can operate in DSI mode, with
+  up to four data lanes.
+
+allOf:
+  - $ref: /schemas/display/dsi-controller.yaml#
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - renesas,r9a07g044-mipi-dsi # RZ/G2{L,LC}
+      - const: renesas,rzg2l-mipi-dsi
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    items:
+      - description: Sequence operation channel 0 interrupt
+      - description: Sequence operation channel 1 interrupt
+      - description: Video-Input operation channel 1 interrupt
+      - description: DSI Packet Receive interrupt
+      - description: DSI Fatal Error interrupt
+      - description: DSI D-PHY PPI interrupt
+      - description: Debug interrupt
+
+  interrupt-names:
+    items:
+      - const: seq0
+      - const: seq1
+      - const: vin1
+      - const: rcv
+      - const: ferr
+      - const: ppi
+      - const: debug
+
+  clocks:
+    items:
+      - description: DSI D-PHY PLL multiplied clock
+      - description: DSI D-PHY system clock
+      - description: DSI AXI bus clock
+      - description: DSI Register access clock
+      - description: DSI Video clock
+      - description: DSI D-PHY Escape mode transmit clock
+
+  clock-names:
+    items:
+      - const: pllclk
+      - const: sysclk
+      - const: aclk
+      - const: pclk
+      - const: vclk
+      - const: lpclk
+
+  resets:
+    items:
+      - description: MIPI_DSI_CMN_RSTB
+      - description: MIPI_DSI_ARESET_N
+      - description: MIPI_DSI_PRESET_N
+
+  reset-names:
+    items:
+      - const: rst
+      - const: arst
+      - const: prst
+
+  power-domains:
+    maxItems: 1
+
+  ports:
+    $ref: /schemas/graph.yaml#/properties/ports
+
+    properties:
+      port@0:
+        $ref: /schemas/graph.yaml#/properties/port
+        description: Parallel input port
+
+      port@1:
+        $ref: /schemas/graph.yaml#/$defs/port-base
+        unevaluatedProperties: false
+        description: DSI output port
+
+        properties:
+          endpoint:
+            $ref: /schemas/media/video-interfaces.yaml#
+            unevaluatedProperties: false
+
+            properties:
+              data-lanes:
+                description: array of physical DSI data lane indexes.
+                minItems: 1
+                items:
+                  - const: 1
+                  - const: 2
+                  - const: 3
+                  - const: 4
+
+            required:
+              - data-lanes
+
+    required:
+      - port@0
+      - port@1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-names
+  - clocks
+  - clock-names
+  - resets
+  - reset-names
+  - power-domains
+  - ports
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/r9a07g044-cpg.h>
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+    dsi0: dsi@10850000 {
+        compatible = "renesas,r9a07g044-mipi-dsi", "renesas,rzg2l-mipi-dsi";
+        reg = <0x10850000 0x20000>;
+        interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
+        interrupt-names = "seq0", "seq1", "vin1", "rcv",
+                          "ferr", "ppi", "debug";
+        clocks = <&cpg CPG_MOD R9A07G044_MIPI_DSI_PLLCLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_SYSCLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_ACLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_PCLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_VCLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_LPCLK>;
+        clock-names = "pllclk", "sysclk", "aclk", "pclk", "vclk", "lpclk";
+        resets = <&cpg R9A07G044_MIPI_DSI_CMN_RSTB>,
+                 <&cpg R9A07G044_MIPI_DSI_ARESET_N>,
+                 <&cpg R9A07G044_MIPI_DSI_PRESET_N>;
+        reset-names = "rst", "arst", "prst";
+        power-domains = <&cpg>;
+
+        ports {
+            #address-cells = <1>;
+            #size-cells = <0>;
+
+            port@0 {
+                reg = <0>;
+                dsi0_in: endpoint {
+                    remote-endpoint = <&du_out_dsi0>;
+                };
+            };
+
+            port@1 {
+                reg = <1>;
+                dsi0_out: endpoint {
+                    data-lanes = <1 2 3 4>;
+                    remote-endpoint = <&adv7535_in>;
+                };
+            };
+        };
+    };
+...
-- 
2.25.1



  reply	other threads:[~2023-09-05 16:07 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-05 16:07 [PATCH 6.1.y-cip 00/20] Add Renesas RZ/G2L DSI,VSP,FCP support Biju Das
2023-09-05 16:07 ` Biju Das [this message]
2023-09-05 16:07 ` [PATCH 6.1.y-cip 02/20] dt-bindings: display: bridge: renesas,rzg2l-mipi-dsi: Document RZ/V2L support Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 03/20] drm: rcar-du: Add RZ/G2L DSI driver Biju Das
2023-09-06  8:41   ` Pavel Machek
2023-09-06  9:22     ` Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 04/20] drm: rcar-du: Fix Kconfig dependency between DRM and RZG2L_MIPI_DSI Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 05/20] drm: rcar-du: rzg2l_mipi_dsi: Enhance device lanes check Biju Das
2023-09-06  8:46   ` Pavel Machek
2023-09-06  9:07     ` [cip-dev] " Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 06/20] arm64: dts: renesas: r9a07g044: Add fcpvd node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 07/20] arm64: dts: renesas: r9a07g044: Add vspd node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 08/20] arm64: dts: renesas: r9a07g044: Add DSI node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 09/20] arm64: dts: renesas: r9a07g054: Add fcpvd node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 10/20] arm64: dts: renesas: r9a07g054: Add vspd node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 11/20] arm64: dts: renesas: r9a07g054: Add DSI node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 12/20] arm64: dts: renesas: rzg2l-smarc: Link DSI with ADV7535 Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 13/20] arm64: dts: renesas: rzg2lc-smarc: " Biju Das
2023-09-06  8:18   ` Pavel Machek
2023-09-06  8:23     ` Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 14/20] arm64: defconfig: Enable Renesas RZ/G2L MIPI DSI driver Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 15/20] drm: renesas: Add RZ/G2L DU Support Biju Das
2023-09-06  0:23   ` nobuhiro1.iwamatsu
2023-09-06  5:40     ` Biju Das
2023-09-06  5:45       ` nobuhiro1.iwamatsu
2023-09-06 12:20   ` Pavel Machek
2023-09-05 16:07 ` [PATCH 6.1.y-cip 16/20] arm64: dts: renesas: r9a07g044: Add DU node Biju Das
2023-09-05 23:39   ` nobuhiro1.iwamatsu
2023-09-06  5:42     ` Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 17/20] arm64: dts: renesas: r9a07g054: " Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 18/20] arm64: dts: renesas: rzg2l-smarc: Enable DU and link with DSI Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 19/20] arm64: dts: renesas: rzg2lc-smarc: " Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 20/20] defconfig: Enable display on RZ/G2L SMARC EVK Biju Das
2023-09-06  8:47 ` [PATCH 6.1.y-cip 00/20] Add Renesas RZ/G2L DSI,VSP,FCP support Pavel Machek
2023-09-06 10:44   ` nobuhiro1.iwamatsu
2023-09-06 12:08     ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230905160737.167877-2-biju.das.jz@bp.renesas.com \
    --to=biju.das.jz@bp.renesas.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=nobuhiro1.iwamatsu@toshiba.co.jp \
    --cc=pavel@denx.de \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.