Rockchip SoC MIPI RX0 D-PHY

Schema identifier ($id): "http://devicetree.org/schemas/phy/rockchip-inno-csi-dphy.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

The Rockchip SoC has a MIPI CSI D-PHY based on an Innosilicon IP which connects to the ISP1 (Image Signal Processing unit v1.0) for CSI cameras.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,px30-csi-dphy", "rockchip,rk1808-csi-dphy", "rockchip,rk3326-csi-dphy", "rockchip,rk3368-csi-dphy", "rockchip,rk3568-csi-dphy", "rockchip,rk3588-csi-dphy"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "pclk"

#phy-cells — required here #

Exact value (const): 0

power-domains — not listed as required here #

Video in/out power domain.

Maximum number of items (maxItems): 1

resets — required here #

Array item rules (items) #

Item 1

APB reset line

Item 2

PHY reset line

Minimum number of items (minItems): 1

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "phy"

Minimum number of items (minItems): 1

rockchip,grf — required here #

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

Some additional phy settings are access through GRF regs.

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

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "rockchip,px30-csi-dphy", "rockchip,rk1808-csi-dphy", "rockchip,rk3326-csi-dphy", "rockchip,rk3368-csi-dphy"

When the condition matches (then) #

Required in this object (required): "power-domains"

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,px30-csi-dphy", "rockchip,rk1808-csi-dphy", "rockchip,rk3326-csi-dphy", "rockchip,rk3368-csi-dphy", "rockchip,rk3568-csi-dphy"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

Maximum number of items (maxItems): 1

reset-names — not listed as required here

Maximum number of items (maxItems): 1

When the condition does not match (else) #

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 matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #


csi_dphy: phy@ff2f0000 {
    compatible = "rockchip,px30-csi-dphy";
    reg = <0xff2f0000 0x4000>;
    clocks = <&cru 1>;
    clock-names = "pclk";
    #phy-cells = <0>;
    power-domains = <&power 1>;
    resets = <&cru 1>;
    reset-names = "apb";
    rockchip,grf = <&grf>;
};
#include <dt-bindings/clock/rockchip,rk3588-cru.h>
#include <dt-bindings/reset/rockchip,rk3588-cru.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    phy@fedc0000 {
        compatible = "rockchip,rk3588-csi-dphy";
        reg = <0x0 0xfedc0000 0x0 0x8000>;
        clocks = <&cru PCLK_CSIPHY0>;
        clock-names = "pclk";
        #phy-cells = <0>;
        resets = <&cru SRST_P_CSIPHY0>, <&cru SRST_CSIPHY0>;
        reset-names = "apb", "phy";
        rockchip,grf = <&csidphy0_grf>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page