1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2# Copyright (c) 2020 MediaTek 3%YAML 1.2 4--- 5$id: http://devicetree.org/schemas/phy/mediatek,ufs-phy.yaml# 6$schema: http://devicetree.org/meta-schemas/core.yaml# 7 8title: MediaTek Universal Flash Storage (UFS) M-PHY binding 9 10maintainers: 11 - Stanley Chu <stanley.chu@mediatek.com> 12 - Chunfeng Yun <chunfeng.yun@mediatek.com> 13 14description: | 15 UFS M-PHY nodes are defined to describe on-chip UFS M-PHY hardware macro. 16 Each UFS M-PHY node should have its own node. 17 To bind UFS M-PHY with UFS host controller, the controller node should 18 contain a phandle reference to UFS M-PHY node. 19 20properties: 21 $nodename: 22 pattern: "^ufs-phy@[0-9a-f]+$" 23 24 compatible: 25 enum: mediatek,mt8195-ufsphy 26 const: mediatek,mt8183-ufsphy 27 28 reg: 29 maxItems: 1 30 31 clocks: 32 items: 33 - description: Unipro core control clock. 34 - description: M-PHY core control clock. 35 36 clock-names: 37 items: 38 - const: unipro 39 - const: mp 40 41 "#phy-cells": 42 const: 0 43 44required: 45 - compatible 46 - reg 47 - "#phy-cells" 48 - clocks 49 - clock-names 50 51additionalProperties: false 52 53examples: 54 - | 55 #include <dt-bindings/clock/mt8183-clk.h> 56 ufsphy: ufs-phy@11fa0000 { 57 compatible = "mediatek,mt8183-ufsphy"; 58 reg = <0x11fa0000 0xc000>; 59 clocks = <&infracfg CLK_INFRA_UNIPRO_SCK>, 60 <&infracfg CLK_INFRA_UFS_MP_SAP_BCLK>; 61 clock-names = "unipro", "mp"; 62 #phy-cells = <0>; 63 }; 64 65... 66