Rockchip specific extensions to the Synopsys Designware MIPI DSI
Schema identifier ($id): "http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sandy Huang <hjc@rock-chips.com>", "Heiko Stuebner <heiko@sntech.de>"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"rockchip,px30-mipi-dsi","rockchip,rk3128-mipi-dsi","rockchip,rk3288-mipi-dsi","rockchip,rk3368-mipi-dsi","rockchip,rk3399-mipi-dsi","rockchip,rk3506-mipi-dsi","rockchip,rk3568-mipi-dsi","rockchip,rv1126-mipi-dsi"
Item 2
Exact value (
const):"snps,dw-mipi-dsi"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
clock-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Minimum number of items (
minItems):2Array item rules (
items)Item 1
Exact value (
const):"ref"Item 2
Exact value (
const):"pclk"Item 3
Exact value (
const):"phy_cfg"Item 4
Exact value (
const):"grf"
Rule 2
Exact value (
const):"pclk"
rockchip,grf — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
This SoC uses GRF regs to switch between vopl/vopb.
phys — not listed as required here #
Maximum number of items (maxItems): 1
phy-names — not listed as required here #
Exact value (const): "dphy"
#phy-cells — not listed as required here #
Exact value (const): 0
Defined when in use as ISP phy.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "clocks", "clock-names", "rockchip,grf"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/display/bridge/snps,dw-mipi-dsi.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,px30-mipi-dsi","rockchip,rk3128-mipi-dsi","rockchip,rk3368-mipi-dsi","rockchip,rk3506-mipi-dsi","rockchip,rk3568-mipi-dsi","rockchip,rv1126-mipi-dsi"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereMaximum number of items (
maxItems):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"rockchip,rk3288-mipi-dsi"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"rockchip,rk3399-mipi-dsi"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):4
clock-names— not listed as required hereMinimum number of items (
minItems):4
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rk3288-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
mipi_dsi: dsi@ff960000 {
compatible = "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi";
reg = <0xff960000 0x4000>;
interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_MIPI_DSI0>;
clock-names = "ref", "pclk";
resets = <&cru SRST_MIPIDSI0>;
reset-names = "apb";
rockchip,grf = <&grf>;
ports {
#address-cells = <1>;
#size-cells = <0>;
mipi_in: port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
mipi_in_vopb: endpoint@0 {
reg = <0>;
remote-endpoint = <&vopb_out_mipi>;
};
mipi_in_vopl: endpoint@1 {
reg = <1>;
remote-endpoint = <&vopl_out_mipi>;
};
};
mipi_out: port@1 {
reg = <1>;
mipi_out_panel: endpoint {
remote-endpoint = <&panel_in_mipi>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0