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