Debian Codegraph @

Documentation/devicetree/bindings/ufs/rockchip,rk3576-ufshc.yaml

raw symbols SCIP
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/ufs/rockchip,rk3576-ufshc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Rockchip UFS Host Controller
8
9 maintainers:
10 - Shawn Lin <[email protected]>
11
12 allOf:
13 - $ref: ufs-common.yaml
14
15 properties:
16 compatible:
17 const: rockchip,rk3576-ufshc
18
19 reg:
20 maxItems: 5
21
22 reg-names:
23 items:
24 - const: hci
25 - const: mphy
26 - const: hci_grf
27 - const: mphy_grf
28 - const: hci_apb
29
30 clocks:
31 maxItems: 4
32
33 clock-names:
34 items:
35 - const: core
36 - const: pclk
37 - const: pclk_mphy
38 - const: ref_out
39
40 power-domains:
41 maxItems: 1
42
43 resets:
44 maxItems: 5
45
46 reset-names:
47 items:
48 - const: biu
49 - const: sys
50 - const: ufs
51 - const: grf
52 - const: mphy
53
54 reset-gpios:
55 maxItems: 1
56 description: |
57 GPIO specifiers for host to reset the whole UFS device including PHY and
58 memory. This gpio is active low and should choose the one whose high output
59 voltage is lower than 1.5V based on the UFS spec.
60
61 required:
62 - compatible
63 - reg
64 - reg-names
65 - clocks
66 - clock-names
67 - interrupts
68 - power-domains
69 - resets
70 - reset-names
71 - reset-gpios
72
73 unevaluatedProperties: false
74
75 examples:
76 - |
77 #include <dt-bindings/clock/rockchip,rk3576-cru.h>
78 #include <dt-bindings/reset/rockchip,rk3576-cru.h>
79 #include <dt-bindings/interrupt-controller/arm-gic.h>
80 #include <dt-bindings/power/rockchip,rk3576-power.h>
81 #include <dt-bindings/pinctrl/rockchip.h>
82 #include <dt-bindings/gpio/gpio.h>
83
84 soc {
85 #address-cells = <2>;
86 #size-cells = <2>;
87
88 ufshc: ufshc@2a2d0000 {
89 compatible = "rockchip,rk3576-ufshc";
90 reg = <0x0 0x2a2d0000 0x0 0x10000>,
91 <0x0 0x2b040000 0x0 0x10000>,
92 <0x0 0x2601f000 0x0 0x1000>,
93 <0x0 0x2603c000 0x0 0x1000>,
94 <0x0 0x2a2e0000 0x0 0x10000>;
95 reg-names = "hci", "mphy", "hci_grf", "mphy_grf", "hci_apb";
96 clocks = <&cru ACLK_UFS_SYS>, <&cru PCLK_USB_ROOT>, <&cru PCLK_MPHY>,
97 <&cru CLK_REF_UFS_CLKOUT>;
98 clock-names = "core", "pclk", "pclk_mphy", "ref_out";
99 interrupts = <GIC_SPI 361 IRQ_TYPE_LEVEL_HIGH>;
100 power-domains = <&power RK3576_PD_USB>;
101 resets = <&cru SRST_A_UFS_BIU>, <&cru SRST_A_UFS_SYS>, <&cru SRST_A_UFS>,
102 <&cru SRST_P_UFS_GRF>, <&cru SRST_MPHY_INIT>;
103 reset-names = "biu", "sys", "ufs", "grf", "mphy";
104 reset-gpios = <&gpio4 RK_PD0 GPIO_ACTIVE_LOW>;
105 };
106 };