Path: blob/master/Documentation/devicetree/bindings/display/bridge/renesas,dsi.yaml
52982 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/display/bridge/renesas,dsi.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Renesas RZ/G2L MIPI DSI Encoder78maintainers:9- Biju Das <biju.das.jz@bp.renesas.com>1011description: |12This binding describes the MIPI DSI encoder embedded in the Renesas13RZ/G2L alike family of SoC's. The encoder can operate in DSI mode, with14up to four data lanes.1516properties:17compatible:18oneOf:19- items:20- enum:21- renesas,r9a07g044-mipi-dsi # RZ/G2{L,LC}22- renesas,r9a07g054-mipi-dsi # RZ/V2L23- const: renesas,rzg2l-mipi-dsi2425- items:26- const: renesas,r9a09g056-mipi-dsi # RZ/V2N27- const: renesas,r9a09g057-mipi-dsi2829- enum:30- renesas,r9a09g057-mipi-dsi # RZ/V2H(P)3132reg:33maxItems: 13435interrupts:36items:37- description: Sequence operation channel 0 interrupt38- description: Sequence operation channel 1 interrupt39- description: Video-Input operation channel 1 interrupt40- description: DSI Packet Receive interrupt41- description: DSI Fatal Error interrupt42- description: DSI D-PHY PPI interrupt43- description: Debug interrupt4445interrupt-names:46items:47- const: seq048- const: seq149- const: vin150- const: rcv51- const: ferr52- const: ppi53- const: debug5455clocks:56oneOf:57- items:58- description: DSI D-PHY PLL multiplied clock59- description: DSI D-PHY system clock60- description: DSI AXI bus clock61- description: DSI Register access clock62- description: DSI Video clock63- description: DSI D-PHY Escape mode transmit clock64- items:65- description: DSI D-PHY PLL reference clock66- description: DSI AXI bus clock67- description: DSI Register access clock68- description: DSI Video clock69- description: DSI D-PHY Escape mode transmit clock7071clock-names:72oneOf:73- items:74- const: pllclk75- const: sysclk76- const: aclk77- const: pclk78- const: vclk79- const: lpclk80- items:81- const: pllrefclk82- const: aclk83- const: pclk84- const: vclk85- const: lpclk8687resets:88oneOf:89- items:90- description: MIPI_DSI_CMN_RSTB91- description: MIPI_DSI_ARESET_N92- description: MIPI_DSI_PRESET_N93- items:94- description: MIPI_DSI_ARESET_N95- description: MIPI_DSI_PRESET_N9697reset-names:98oneOf:99- items:100- const: rst101- const: arst102- const: prst103- items:104- const: arst105- const: prst106107power-domains:108maxItems: 1109110ports:111$ref: /schemas/graph.yaml#/properties/ports112113properties:114port@0:115$ref: /schemas/graph.yaml#/properties/port116description: Parallel input port117118port@1:119$ref: /schemas/graph.yaml#/$defs/port-base120unevaluatedProperties: false121description: DSI output port122123properties:124endpoint:125$ref: /schemas/media/video-interfaces.yaml#126unevaluatedProperties: false127128properties:129data-lanes:130description: array of physical DSI data lane indexes.131minItems: 1132items:133- const: 1134- const: 2135- const: 3136- const: 4137138required:139- data-lanes140141required:142- port@0143- port@1144145required:146- compatible147- reg148- interrupts149- interrupt-names150- clocks151- clock-names152- resets153- reset-names154- power-domains155- ports156157unevaluatedProperties: false158159allOf:160- $ref: ../dsi-controller.yaml#161162- if:163properties:164compatible:165contains:166const: renesas,r9a09g057-mipi-dsi167then:168properties:169clocks:170maxItems: 5171172clock-names:173maxItems: 5174175resets:176maxItems: 2177178reset-names:179maxItems: 2180else:181properties:182clocks:183minItems: 6184185clock-names:186minItems: 6187188resets:189minItems: 3190191reset-names:192minItems: 3193194examples:195- |196#include <dt-bindings/clock/r9a07g044-cpg.h>197#include <dt-bindings/interrupt-controller/arm-gic.h>198199dsi0: dsi@10850000 {200compatible = "renesas,r9a07g044-mipi-dsi", "renesas,rzg2l-mipi-dsi";201reg = <0x10850000 0x20000>;202interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,203<GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,204<GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,205<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,206<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,207<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,208<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;209interrupt-names = "seq0", "seq1", "vin1", "rcv",210"ferr", "ppi", "debug";211clocks = <&cpg CPG_MOD R9A07G044_MIPI_DSI_PLLCLK>,212<&cpg CPG_MOD R9A07G044_MIPI_DSI_SYSCLK>,213<&cpg CPG_MOD R9A07G044_MIPI_DSI_ACLK>,214<&cpg CPG_MOD R9A07G044_MIPI_DSI_PCLK>,215<&cpg CPG_MOD R9A07G044_MIPI_DSI_VCLK>,216<&cpg CPG_MOD R9A07G044_MIPI_DSI_LPCLK>;217clock-names = "pllclk", "sysclk", "aclk", "pclk", "vclk", "lpclk";218resets = <&cpg R9A07G044_MIPI_DSI_CMN_RSTB>,219<&cpg R9A07G044_MIPI_DSI_ARESET_N>,220<&cpg R9A07G044_MIPI_DSI_PRESET_N>;221reset-names = "rst", "arst", "prst";222power-domains = <&cpg>;223224ports {225#address-cells = <1>;226#size-cells = <0>;227228port@0 {229reg = <0>;230dsi0_in: endpoint {231remote-endpoint = <&du_out_dsi0>;232};233};234235port@1 {236reg = <1>;237dsi0_out: endpoint {238data-lanes = <1 2 3 4>;239remote-endpoint = <&adv7535_in>;240};241};242};243};244245- |246#include <dt-bindings/gpio/gpio.h>247248dsi1: dsi@10860000 {249#address-cells = <1>;250#size-cells = <0>;251compatible = "renesas,r9a07g044-mipi-dsi", "renesas,rzg2l-mipi-dsi";252reg = <0x10860000 0x20000>;253interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,254<GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,255<GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,256<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,257<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,258<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,259<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;260interrupt-names = "seq0", "seq1", "vin1", "rcv",261"ferr", "ppi", "debug";262clocks = <&cpg CPG_MOD R9A07G044_MIPI_DSI_PLLCLK>,263<&cpg CPG_MOD R9A07G044_MIPI_DSI_SYSCLK>,264<&cpg CPG_MOD R9A07G044_MIPI_DSI_ACLK>,265<&cpg CPG_MOD R9A07G044_MIPI_DSI_PCLK>,266<&cpg CPG_MOD R9A07G044_MIPI_DSI_VCLK>,267<&cpg CPG_MOD R9A07G044_MIPI_DSI_LPCLK>;268clock-names = "pllclk", "sysclk", "aclk", "pclk", "vclk", "lpclk";269resets = <&cpg R9A07G044_MIPI_DSI_CMN_RSTB>,270<&cpg R9A07G044_MIPI_DSI_ARESET_N>,271<&cpg R9A07G044_MIPI_DSI_PRESET_N>;272reset-names = "rst", "arst", "prst";273power-domains = <&cpg>;274275panel@0 {276compatible = "rocktech,jh057n00900";277reg = <0>;278vcc-supply = <®_2v8_p>;279iovcc-supply = <®_1v8_p>;280reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;281282port {283panel_in: endpoint {284remote-endpoint = <&dsi1_out>;285};286};287};288289ports {290#address-cells = <1>;291#size-cells = <0>;292293port@0 {294reg = <0>;295dsi1_in: endpoint {296remote-endpoint = <&du_out_dsi1>;297};298};299300port@1 {301reg = <1>;302dsi1_out: endpoint {303data-lanes = <1 2 3 4>;304remote-endpoint = <&panel_in>;305};306};307};308};309...310311312