xref: /linux/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*954c6010SKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*954c6010SKrzysztof Kozlowski%YAML 1.2
3*954c6010SKrzysztof Kozlowski---
4*954c6010SKrzysztof Kozlowski$id: http://devicetree.org/schemas/ufs/mediatek,ufs.yaml#
5*954c6010SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6*954c6010SKrzysztof Kozlowski
7*954c6010SKrzysztof Kozlowskititle: Mediatek Universal Flash Storage (UFS) Controller
8*954c6010SKrzysztof Kozlowski
9*954c6010SKrzysztof Kozlowskimaintainers:
10*954c6010SKrzysztof Kozlowski  - Stanley Chu <stanley.chu@mediatek.com>
11*954c6010SKrzysztof Kozlowski
12*954c6010SKrzysztof KozlowskiallOf:
13*954c6010SKrzysztof Kozlowski  - $ref: ufs-common.yaml
14*954c6010SKrzysztof Kozlowski
15*954c6010SKrzysztof Kozlowskiproperties:
16*954c6010SKrzysztof Kozlowski  compatible:
17*954c6010SKrzysztof Kozlowski    enum:
18*954c6010SKrzysztof Kozlowski      - mediatek,mt8183-ufshci
19*954c6010SKrzysztof Kozlowski      - mediatek,mt8192-ufshci
20*954c6010SKrzysztof Kozlowski
21*954c6010SKrzysztof Kozlowski  clocks:
22*954c6010SKrzysztof Kozlowski    maxItems: 1
23*954c6010SKrzysztof Kozlowski
24*954c6010SKrzysztof Kozlowski  clock-names:
25*954c6010SKrzysztof Kozlowski    items:
26*954c6010SKrzysztof Kozlowski      - const: ufs
27*954c6010SKrzysztof Kozlowski
28*954c6010SKrzysztof Kozlowski  phys:
29*954c6010SKrzysztof Kozlowski    maxItems: 1
30*954c6010SKrzysztof Kozlowski
31*954c6010SKrzysztof Kozlowski  reg:
32*954c6010SKrzysztof Kozlowski    maxItems: 1
33*954c6010SKrzysztof Kozlowski
34*954c6010SKrzysztof Kozlowski  vcc-supply: true
35*954c6010SKrzysztof Kozlowski
36*954c6010SKrzysztof Kozlowskirequired:
37*954c6010SKrzysztof Kozlowski  - compatible
38*954c6010SKrzysztof Kozlowski  - clocks
39*954c6010SKrzysztof Kozlowski  - clock-names
40*954c6010SKrzysztof Kozlowski  - phys
41*954c6010SKrzysztof Kozlowski  - reg
42*954c6010SKrzysztof Kozlowski  - vcc-supply
43*954c6010SKrzysztof Kozlowski
44*954c6010SKrzysztof KozlowskiunevaluatedProperties: false
45*954c6010SKrzysztof Kozlowski
46*954c6010SKrzysztof Kozlowskiexamples:
47*954c6010SKrzysztof Kozlowski  - |
48*954c6010SKrzysztof Kozlowski    #include <dt-bindings/clock/mt8183-clk.h>
49*954c6010SKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
50*954c6010SKrzysztof Kozlowski
51*954c6010SKrzysztof Kozlowski    soc {
52*954c6010SKrzysztof Kozlowski        #address-cells = <2>;
53*954c6010SKrzysztof Kozlowski        #size-cells = <2>;
54*954c6010SKrzysztof Kozlowski
55*954c6010SKrzysztof Kozlowski        ufs@ff3c0000 {
56*954c6010SKrzysztof Kozlowski            compatible = "mediatek,mt8183-ufshci";
57*954c6010SKrzysztof Kozlowski            reg = <0 0x11270000 0 0x2300>;
58*954c6010SKrzysztof Kozlowski            interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>;
59*954c6010SKrzysztof Kozlowski            phys = <&ufsphy>;
60*954c6010SKrzysztof Kozlowski
61*954c6010SKrzysztof Kozlowski            clocks = <&infracfg_ao CLK_INFRA_UFS>;
62*954c6010SKrzysztof Kozlowski            clock-names = "ufs";
63*954c6010SKrzysztof Kozlowski            freq-table-hz = <0 0>;
64*954c6010SKrzysztof Kozlowski
65*954c6010SKrzysztof Kozlowski            vcc-supply = <&mt_pmic_vemc_ldo_reg>;
66*954c6010SKrzysztof Kozlowski        };
67*954c6010SKrzysztof Kozlowski    };
68