1*8ccc0d23SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*8ccc0d23SEmmanuel Vadot%YAML 1.2 3*8ccc0d23SEmmanuel Vadot--- 4*8ccc0d23SEmmanuel Vadot$id: http://devicetree.org/schemas/phy/rockchip,rk3588-mipi-dcphy.yaml# 5*8ccc0d23SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*8ccc0d23SEmmanuel Vadot 7*8ccc0d23SEmmanuel Vadottitle: Rockchip MIPI D-/C-PHY with Samsung IP block 8*8ccc0d23SEmmanuel Vadot 9*8ccc0d23SEmmanuel Vadotmaintainers: 10*8ccc0d23SEmmanuel Vadot - Guochun Huang <hero.huang@rock-chips.com> 11*8ccc0d23SEmmanuel Vadot - Heiko Stuebner <heiko@sntech.de> 12*8ccc0d23SEmmanuel Vadot 13*8ccc0d23SEmmanuel Vadotproperties: 14*8ccc0d23SEmmanuel Vadot compatible: 15*8ccc0d23SEmmanuel Vadot enum: 16*8ccc0d23SEmmanuel Vadot - rockchip,rk3576-mipi-dcphy 17*8ccc0d23SEmmanuel Vadot - rockchip,rk3588-mipi-dcphy 18*8ccc0d23SEmmanuel Vadot 19*8ccc0d23SEmmanuel Vadot reg: 20*8ccc0d23SEmmanuel Vadot maxItems: 1 21*8ccc0d23SEmmanuel Vadot 22*8ccc0d23SEmmanuel Vadot "#phy-cells": 23*8ccc0d23SEmmanuel Vadot const: 1 24*8ccc0d23SEmmanuel Vadot description: | 25*8ccc0d23SEmmanuel Vadot Argument is mode to operate in. Supported modes are: 26*8ccc0d23SEmmanuel Vadot - PHY_TYPE_DPHY 27*8ccc0d23SEmmanuel Vadot - PHY_TYPE_CPHY 28*8ccc0d23SEmmanuel Vadot See include/dt-bindings/phy/phy.h for constants. 29*8ccc0d23SEmmanuel Vadot 30*8ccc0d23SEmmanuel Vadot clocks: 31*8ccc0d23SEmmanuel Vadot maxItems: 2 32*8ccc0d23SEmmanuel Vadot 33*8ccc0d23SEmmanuel Vadot clock-names: 34*8ccc0d23SEmmanuel Vadot items: 35*8ccc0d23SEmmanuel Vadot - const: pclk 36*8ccc0d23SEmmanuel Vadot - const: ref 37*8ccc0d23SEmmanuel Vadot 38*8ccc0d23SEmmanuel Vadot resets: 39*8ccc0d23SEmmanuel Vadot maxItems: 4 40*8ccc0d23SEmmanuel Vadot 41*8ccc0d23SEmmanuel Vadot reset-names: 42*8ccc0d23SEmmanuel Vadot items: 43*8ccc0d23SEmmanuel Vadot - const: m_phy 44*8ccc0d23SEmmanuel Vadot - const: apb 45*8ccc0d23SEmmanuel Vadot - const: grf 46*8ccc0d23SEmmanuel Vadot - const: s_phy 47*8ccc0d23SEmmanuel Vadot 48*8ccc0d23SEmmanuel Vadot rockchip,grf: 49*8ccc0d23SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 50*8ccc0d23SEmmanuel Vadot description: 51*8ccc0d23SEmmanuel Vadot Phandle to the syscon managing the 'mipi dcphy general register files'. 52*8ccc0d23SEmmanuel Vadot 53*8ccc0d23SEmmanuel Vadotrequired: 54*8ccc0d23SEmmanuel Vadot - compatible 55*8ccc0d23SEmmanuel Vadot - reg 56*8ccc0d23SEmmanuel Vadot - clocks 57*8ccc0d23SEmmanuel Vadot - clock-names 58*8ccc0d23SEmmanuel Vadot - resets 59*8ccc0d23SEmmanuel Vadot - reset-names 60*8ccc0d23SEmmanuel Vadot - "#phy-cells" 61*8ccc0d23SEmmanuel Vadot 62*8ccc0d23SEmmanuel VadotadditionalProperties: false 63*8ccc0d23SEmmanuel Vadot 64*8ccc0d23SEmmanuel Vadotexamples: 65*8ccc0d23SEmmanuel Vadot - | 66*8ccc0d23SEmmanuel Vadot #include <dt-bindings/clock/rockchip,rk3588-cru.h> 67*8ccc0d23SEmmanuel Vadot #include <dt-bindings/reset/rockchip,rk3588-cru.h> 68*8ccc0d23SEmmanuel Vadot 69*8ccc0d23SEmmanuel Vadot soc { 70*8ccc0d23SEmmanuel Vadot #address-cells = <2>; 71*8ccc0d23SEmmanuel Vadot #size-cells = <2>; 72*8ccc0d23SEmmanuel Vadot 73*8ccc0d23SEmmanuel Vadot phy@feda0000 { 74*8ccc0d23SEmmanuel Vadot compatible = "rockchip,rk3588-mipi-dcphy"; 75*8ccc0d23SEmmanuel Vadot reg = <0x0 0xfeda0000 0x0 0x10000>; 76*8ccc0d23SEmmanuel Vadot clocks = <&cru PCLK_MIPI_DCPHY0>, 77*8ccc0d23SEmmanuel Vadot <&cru CLK_USBDPPHY_MIPIDCPPHY_REF>; 78*8ccc0d23SEmmanuel Vadot clock-names = "pclk", "ref"; 79*8ccc0d23SEmmanuel Vadot resets = <&cru SRST_M_MIPI_DCPHY0>, 80*8ccc0d23SEmmanuel Vadot <&cru SRST_P_MIPI_DCPHY0>, 81*8ccc0d23SEmmanuel Vadot <&cru SRST_P_MIPI_DCPHY0_GRF>, 82*8ccc0d23SEmmanuel Vadot <&cru SRST_S_MIPI_DCPHY0>; 83*8ccc0d23SEmmanuel Vadot reset-names = "m_phy", "apb", "grf", "s_phy"; 84*8ccc0d23SEmmanuel Vadot rockchip,grf = <&mipidcphy0_grf>; 85*8ccc0d23SEmmanuel Vadot #phy-cells = <1>; 86*8ccc0d23SEmmanuel Vadot }; 87*8ccc0d23SEmmanuel Vadot }; 88