15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25def4c47SEmmanuel Vadot# Copyright (c) 2020 MediaTek 35def4c47SEmmanuel Vadot%YAML 1.2 45def4c47SEmmanuel Vadot--- 55def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/phy/mediatek,ufs-phy.yaml# 65def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 75def4c47SEmmanuel Vadot 8*8bab661aSEmmanuel Vadottitle: MediaTek Universal Flash Storage (UFS) M-PHY 95def4c47SEmmanuel Vadot 105def4c47SEmmanuel Vadotmaintainers: 115def4c47SEmmanuel Vadot - Stanley Chu <stanley.chu@mediatek.com> 125def4c47SEmmanuel Vadot - Chunfeng Yun <chunfeng.yun@mediatek.com> 135def4c47SEmmanuel Vadot 145def4c47SEmmanuel Vadotdescription: | 155def4c47SEmmanuel Vadot UFS M-PHY nodes are defined to describe on-chip UFS M-PHY hardware macro. 165def4c47SEmmanuel Vadot Each UFS M-PHY node should have its own node. 175def4c47SEmmanuel Vadot To bind UFS M-PHY with UFS host controller, the controller node should 185def4c47SEmmanuel Vadot contain a phandle reference to UFS M-PHY node. 195def4c47SEmmanuel Vadot 205def4c47SEmmanuel Vadotproperties: 215def4c47SEmmanuel Vadot $nodename: 225def4c47SEmmanuel Vadot pattern: "^ufs-phy@[0-9a-f]+$" 235def4c47SEmmanuel Vadot 245def4c47SEmmanuel Vadot compatible: 252eb4d8dcSEmmanuel Vadot oneOf: 262eb4d8dcSEmmanuel Vadot - items: 272eb4d8dcSEmmanuel Vadot - enum: 282eb4d8dcSEmmanuel Vadot - mediatek,mt8195-ufsphy 292eb4d8dcSEmmanuel Vadot - const: mediatek,mt8183-ufsphy 302eb4d8dcSEmmanuel Vadot - const: mediatek,mt8183-ufsphy 315def4c47SEmmanuel Vadot 325def4c47SEmmanuel Vadot reg: 335def4c47SEmmanuel Vadot maxItems: 1 345def4c47SEmmanuel Vadot 355def4c47SEmmanuel Vadot clocks: 365def4c47SEmmanuel Vadot items: 375def4c47SEmmanuel Vadot - description: Unipro core control clock. 385def4c47SEmmanuel Vadot - description: M-PHY core control clock. 395def4c47SEmmanuel Vadot 405def4c47SEmmanuel Vadot clock-names: 415def4c47SEmmanuel Vadot items: 425def4c47SEmmanuel Vadot - const: unipro 435def4c47SEmmanuel Vadot - const: mp 445def4c47SEmmanuel Vadot 455def4c47SEmmanuel Vadot "#phy-cells": 465def4c47SEmmanuel Vadot const: 0 475def4c47SEmmanuel Vadot 485def4c47SEmmanuel Vadotrequired: 495def4c47SEmmanuel Vadot - compatible 505def4c47SEmmanuel Vadot - reg 515def4c47SEmmanuel Vadot - "#phy-cells" 525def4c47SEmmanuel Vadot - clocks 535def4c47SEmmanuel Vadot - clock-names 545def4c47SEmmanuel Vadot 555def4c47SEmmanuel VadotadditionalProperties: false 565def4c47SEmmanuel Vadot 575def4c47SEmmanuel Vadotexamples: 585def4c47SEmmanuel Vadot - | 595def4c47SEmmanuel Vadot #include <dt-bindings/clock/mt8183-clk.h> 605def4c47SEmmanuel Vadot ufsphy: ufs-phy@11fa0000 { 615def4c47SEmmanuel Vadot compatible = "mediatek,mt8183-ufsphy"; 625def4c47SEmmanuel Vadot reg = <0x11fa0000 0xc000>; 635def4c47SEmmanuel Vadot clocks = <&infracfg CLK_INFRA_UNIPRO_SCK>, 645def4c47SEmmanuel Vadot <&infracfg CLK_INFRA_UFS_MP_SAP_BCLK>; 655def4c47SEmmanuel Vadot clock-names = "unipro", "mp"; 665def4c47SEmmanuel Vadot #phy-cells = <0>; 675def4c47SEmmanuel Vadot }; 685def4c47SEmmanuel Vadot 695def4c47SEmmanuel Vadot... 70