File Index
Files and directories
Sign in
FILE

rockchip,dw-mipi-dsi.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml YAML
  1# SPDX-License-Identifier: GPL-2.0
  2%YAML 1.2
  3---
  4$id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
  5$schema: http://devicetree.org/meta-schemas/core.yaml#
  6
  7title: Rockchip specific extensions to the Synopsys Designware MIPI DSI
  8
  9maintainers:
 10  - Sandy Huang <hjc@rock-chips.com>
 11  - Heiko Stuebner <heiko@sntech.de>
 12
 13properties:
 14  compatible:
 15    items:
 16      - enum:
 17          - rockchip,px30-mipi-dsi
 18          - rockchip,rk3128-mipi-dsi
 19          - rockchip,rk3288-mipi-dsi
 20          - rockchip,rk3368-mipi-dsi
 21          - rockchip,rk3399-mipi-dsi
 22          - rockchip,rk3568-mipi-dsi
 23          - rockchip,rv1126-mipi-dsi
 24      - const: snps,dw-mipi-dsi
 25
 26  interrupts:
 27    maxItems: 1
 28
 29  clocks:
 30    minItems: 1
 31    maxItems: 4
 32
 33  clock-names:
 34    oneOf:
 35      - minItems: 2
 36        items:
 37          - const: ref
 38          - const: pclk
 39          - const: phy_cfg
 40          - const: grf
 41      - const: pclk
 42
 43  rockchip,grf:
 44    $ref: /schemas/types.yaml#/definitions/phandle
 45    description:
 46      This SoC uses GRF regs to switch between vopl/vopb.
 47
 48  phys:
 49    maxItems: 1
 50
 51  phy-names:
 52    const: dphy
 53
 54  "#phy-cells":
 55    const: 0
 56    description:
 57      Defined when in use as ISP phy.
 58
 59  power-domains:
 60    maxItems: 1
 61
 62required:
 63  - compatible
 64  - clocks
 65  - clock-names
 66  - rockchip,grf
 67
 68allOf:
 69  - $ref: /schemas/display/bridge/snps,dw-mipi-dsi.yaml#
 70  - if:
 71      properties:
 72        compatible:
 73          contains:
 74            enum:
 75              - rockchip,px30-mipi-dsi
 76              - rockchip,rk3128-mipi-dsi
 77              - rockchip,rk3368-mipi-dsi
 78              - rockchip,rk3568-mipi-dsi
 79              - rockchip,rv1126-mipi-dsi
 80
 81    then:
 82      properties:
 83        clocks:
 84          maxItems: 1
 85
 86        clock-names:
 87          maxItems: 1
 88
 89      required:
 90        - phys
 91        - phy-names
 92
 93  - if:
 94      properties:
 95        compatible:
 96          contains:
 97            const: rockchip,rk3288-mipi-dsi
 98
 99    then:
100      properties:
101        clocks:
102          minItems: 2
103          maxItems: 2
104
105        clock-names:
106          minItems: 2
107          maxItems: 2
108
109  - if:
110      properties:
111        compatible:
112          contains:
113            const: rockchip,rk3399-mipi-dsi
114
115    then:
116      properties:
117        clocks:
118          minItems: 4
119
120        clock-names:
121          minItems: 4
122
123unevaluatedProperties: false
124
125examples:
126  - |
127    #include <dt-bindings/clock/rk3288-cru.h>
128    #include <dt-bindings/interrupt-controller/arm-gic.h>
129    #include <dt-bindings/interrupt-controller/irq.h>
130
131    mipi_dsi: dsi@ff960000 {
132      compatible = "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi";
133      reg = <0xff960000 0x4000>;
134      interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
135      clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_MIPI_DSI0>;
136      clock-names = "ref", "pclk";
137      resets = <&cru SRST_MIPIDSI0>;
138      reset-names = "apb";
139      rockchip,grf = <&grf>;
140
141      ports {
142        #address-cells = <1>;
143        #size-cells = <0>;
144
145        mipi_in: port@0 {
146          reg = <0>;
147          #address-cells = <1>;
148          #size-cells = <0>;
149
150          mipi_in_vopb: endpoint@0 {
151            reg = <0>;
152            remote-endpoint = <&vopb_out_mipi>;
153          };
154          mipi_in_vopl: endpoint@1 {
155            reg = <1>;
156            remote-endpoint = <&vopl_out_mipi>;
157          };
158        };
159
160        mipi_out: port@1 {
161          reg = <1>;
162
163          mipi_out_panel: endpoint {
164            remote-endpoint = <&panel_in_mipi>;
165          };
166        };
167      };
168    };
~/ Read-only file preview.