Rockchip specific extensions to the Analogix Display Port

Schema identifier ($id): "http://devicetree.org/schemas/display/rockchip/rockchip,analogix-dp.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 #

Allowed values (enum): "rockchip,rk3288-dp", "rockchip,rk3399-edp", "rockchip,rk3588-edp"

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "dp"

Item 2

Exact value (const): "pclk"

Item 3

Exact value (const): "grf"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reset-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "dp"

Item 2

Exact value (const): "apb"

rockchip,grf — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

This SoC makes use of GRF regs.

aux-bus — not listed as required here #

Shared schema rule ($ref): /schemas/display/dp-aux-bus.yaml#

Required in this object (required): "compatible", "clocks", "clock-names", "resets", "reset-names", "rockchip,grf"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/display/bridge/analogix,dp.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "rockchip,rk3588-edp"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

Minimum number of items (minItems): 2

reset-names — not listed as required here

Minimum number of items (minItems): 2

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>
dp@ff970000 {
  compatible = "rockchip,rk3288-dp";
  reg = <0xff970000 0x4000>;
  interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&cru SCLK_EDP>, <&cru PCLK_EDP_CTRL>;
  clock-names = "dp", "pclk";
  phys = <&dp_phy>;
  phy-names = "dp";
  resets = <&cru 111>;
  reset-names = "dp";
  rockchip,grf = <&grf>;
  pinctrl-0 = <&edp_hpd>;
  pinctrl-names = "default";

  ports {
    #address-cells = <1>;
    #size-cells = <0>;

    edp_in: port@0 {
      reg = <0>;
      #address-cells = <1>;
      #size-cells = <0>;

      edp_in_vopb: endpoint@0 {
        reg = <0>;
        remote-endpoint = <&vopb_out_edp>;
      };
      edp_in_vopl: endpoint@1 {
        reg = <1>;
        remote-endpoint = <&vopl_out_edp>;
      };
    };

    edp_out: port@1 {
      reg = <1>;

      edp_out_panel: endpoint {
        remote-endpoint = <&panel_in_edp>;
      };
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page