xref: /freebsd/sys/contrib/device-tree/Bindings/phy/rockchip,rk3588-hdptx-phy.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
101950c46SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
201950c46SEmmanuel Vadot%YAML 1.2
301950c46SEmmanuel Vadot---
401950c46SEmmanuel Vadot$id: http://devicetree.org/schemas/phy/rockchip,rk3588-hdptx-phy.yaml#
501950c46SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
601950c46SEmmanuel Vadot
701950c46SEmmanuel Vadottitle: Rockchip SoC HDMI/eDP Transmitter Combo PHY
801950c46SEmmanuel Vadot
901950c46SEmmanuel Vadotmaintainers:
1001950c46SEmmanuel Vadot  - Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
1101950c46SEmmanuel Vadot
1201950c46SEmmanuel Vadotproperties:
1301950c46SEmmanuel Vadot  compatible:
1401950c46SEmmanuel Vadot    enum:
1501950c46SEmmanuel Vadot      - rockchip,rk3588-hdptx-phy
1601950c46SEmmanuel Vadot
1701950c46SEmmanuel Vadot  reg:
1801950c46SEmmanuel Vadot    maxItems: 1
1901950c46SEmmanuel Vadot
2001950c46SEmmanuel Vadot  clocks:
2101950c46SEmmanuel Vadot    items:
2201950c46SEmmanuel Vadot      - description: Reference clock
2301950c46SEmmanuel Vadot      - description: APB clock
2401950c46SEmmanuel Vadot
2501950c46SEmmanuel Vadot  clock-names:
2601950c46SEmmanuel Vadot    items:
2701950c46SEmmanuel Vadot      - const: ref
2801950c46SEmmanuel Vadot      - const: apb
2901950c46SEmmanuel Vadot
30*b2d2a78aSEmmanuel Vadot  "#clock-cells":
31*b2d2a78aSEmmanuel Vadot    const: 0
32*b2d2a78aSEmmanuel Vadot
3301950c46SEmmanuel Vadot  "#phy-cells":
3401950c46SEmmanuel Vadot    const: 0
3501950c46SEmmanuel Vadot
3601950c46SEmmanuel Vadot  resets:
3701950c46SEmmanuel Vadot    items:
3801950c46SEmmanuel Vadot      - description: PHY reset line
3901950c46SEmmanuel Vadot      - description: APB reset line
4001950c46SEmmanuel Vadot      - description: INIT reset line
4101950c46SEmmanuel Vadot      - description: CMN reset line
4201950c46SEmmanuel Vadot      - description: LANE reset line
4301950c46SEmmanuel Vadot      - description: ROPLL reset line
4401950c46SEmmanuel Vadot      - description: LCPLL reset line
4501950c46SEmmanuel Vadot
4601950c46SEmmanuel Vadot  reset-names:
4701950c46SEmmanuel Vadot    items:
4801950c46SEmmanuel Vadot      - const: phy
4901950c46SEmmanuel Vadot      - const: apb
5001950c46SEmmanuel Vadot      - const: init
5101950c46SEmmanuel Vadot      - const: cmn
5201950c46SEmmanuel Vadot      - const: lane
5301950c46SEmmanuel Vadot      - const: ropll
5401950c46SEmmanuel Vadot      - const: lcpll
5501950c46SEmmanuel Vadot
5601950c46SEmmanuel Vadot  rockchip,grf:
5701950c46SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
5801950c46SEmmanuel Vadot    description: Some PHY related data is accessed through GRF regs.
5901950c46SEmmanuel Vadot
6001950c46SEmmanuel Vadotrequired:
6101950c46SEmmanuel Vadot  - compatible
6201950c46SEmmanuel Vadot  - reg
6301950c46SEmmanuel Vadot  - clocks
6401950c46SEmmanuel Vadot  - clock-names
6501950c46SEmmanuel Vadot  - "#phy-cells"
6601950c46SEmmanuel Vadot  - resets
6701950c46SEmmanuel Vadot  - reset-names
6801950c46SEmmanuel Vadot  - rockchip,grf
6901950c46SEmmanuel Vadot
7001950c46SEmmanuel VadotadditionalProperties: false
7101950c46SEmmanuel Vadot
7201950c46SEmmanuel Vadotexamples:
7301950c46SEmmanuel Vadot  - |
7401950c46SEmmanuel Vadot    #include <dt-bindings/clock/rockchip,rk3588-cru.h>
7501950c46SEmmanuel Vadot    #include <dt-bindings/reset/rockchip,rk3588-cru.h>
7601950c46SEmmanuel Vadot
7701950c46SEmmanuel Vadot    soc {
7801950c46SEmmanuel Vadot      #address-cells = <2>;
7901950c46SEmmanuel Vadot      #size-cells = <2>;
8001950c46SEmmanuel Vadot
8101950c46SEmmanuel Vadot      phy@fed60000 {
8201950c46SEmmanuel Vadot        compatible = "rockchip,rk3588-hdptx-phy";
8301950c46SEmmanuel Vadot        reg = <0x0 0xfed60000 0x0 0x2000>;
8401950c46SEmmanuel Vadot        clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>, <&cru PCLK_HDPTX0>;
8501950c46SEmmanuel Vadot        clock-names = "ref", "apb";
8601950c46SEmmanuel Vadot        #phy-cells = <0>;
8701950c46SEmmanuel Vadot        resets = <&cru SRST_HDPTX0>, <&cru SRST_P_HDPTX0>,
8801950c46SEmmanuel Vadot                 <&cru SRST_HDPTX0_INIT>, <&cru SRST_HDPTX0_CMN>,
8901950c46SEmmanuel Vadot                 <&cru SRST_HDPTX0_LANE>, <&cru SRST_HDPTX0_ROPLL>,
9001950c46SEmmanuel Vadot                 <&cru SRST_HDPTX0_LCPLL>;
9101950c46SEmmanuel Vadot        reset-names = "phy", "apb", "init", "cmn", "lane", "ropll", "lcpll";
9201950c46SEmmanuel Vadot        rockchip,grf = <&hdptxphy_grf>;
9301950c46SEmmanuel Vadot      };
9401950c46SEmmanuel Vadot    };
95