Rockchip MIPI D-/C-PHY with Samsung IP block

Schema identifier ($id): "http://devicetree.org/schemas/phy/rockchip,rk3588-mipi-dcphy.yaml#"

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

Maintainers (maintainers): "Guochun Huang <hero.huang@rock-chips.com>", "Heiko Stuebner <heiko@sntech.de>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,rk3576-mipi-dcphy", "rockchip,rk3588-mipi-dcphy"

reg — required here #

Maximum number of items (maxItems): 1

#phy-cells — required here #

Exact value (const): 1

Argument is mode to operate in. Supported modes are:
  - PHY_TYPE_DPHY
  - PHY_TYPE_CPHY
See include/dt-bindings/phy/phy.h for constants.

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "ref"

resets — required here #

Maximum number of items (maxItems): 4

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "m_phy"

Item 2

Exact value (const): "apb"

Item 3

Exact value (const): "grf"

Item 4

Exact value (const): "s_phy"

rockchip,grf — not listed as required here #

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

Phandle to the syscon managing the 'mipi dcphy general register files'.

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

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rockchip,rk3588-cru.h>
#include <dt-bindings/reset/rockchip,rk3588-cru.h>

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

  phy@feda0000 {
    compatible = "rockchip,rk3588-mipi-dcphy";
    reg = <0x0 0xfeda0000 0x0 0x10000>;
    clocks = <&cru PCLK_MIPI_DCPHY0>,
             <&cru CLK_USBDPPHY_MIPIDCPPHY_REF>;
    clock-names = "pclk", "ref";
    resets = <&cru SRST_M_MIPI_DCPHY0>,
             <&cru SRST_P_MIPI_DCPHY0>,
             <&cru SRST_P_MIPI_DCPHY0_GRF>,
             <&cru SRST_S_MIPI_DCPHY0>;
    reset-names = "m_phy", "apb", "grf", "s_phy";
    rockchip,grf = <&mipidcphy0_grf>;
    #phy-cells = <1>;
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page