← Documents Documentation/devicetree/bindings/ufs/hisilicon,ufs.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / UFS

HiSilicon UFS Controller

Hi3660·Hi3670 UFS controller의 JEDEC 세대, dual register 영역, clock 및 reset을 설명합니다.

Source pathDocumentation/devicetree/bindings/ufs/hisilicon,ufs.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약과 해설

hisilicon,ufs.yaml:1-90

Hi3660·Hi3670 UFS controller의 JEDEC 세대, dual register 영역, clock 및 reset을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며 compatible, clock name, phandle, register, interrupt, source path 및 원문 줄 좌표를 원형대로 보존합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/ufs/hisilicon,ufs.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: HiSilicon Universal Flash Storage (UFS) Controller
8
9 maintainers:
10 - Li Wei <liwei213@huawei.com>
11
12 # Select only our matches, not all jedec,ufs
13 select:
14 properties:
15 compatible:
16 contains:
17 enum:
18 - hisilicon,hi3660-ufs
19 - hisilicon,hi3670-ufs
20 required:
21 - compatible
22
23 allOf:
24 - $ref: ufs-common.yaml
25
26 properties:
27 compatible:
28 oneOf:
29 - items:
30 - const: hisilicon,hi3660-ufs
31 - const: jedec,ufs-1.1
32 - items:
33 - enum:
34 - hisilicon,hi3670-ufs
35 - const: jedec,ufs-2.1
36
37 clocks:
38 minItems: 2
39 maxItems: 2
40
41 clock-names:
42 items:
43 - const: ref_clk
44 - const: phy_clk
45
46 reg:
47 items:
48 - description: UFS register address space
49 - description: UFS SYS CTRL register address space
50
51 resets:
52 maxItems: 1
53
54 reset-names:
55 items:
56 - const: rst
57
58 required:
59 - compatible
60 - reg
61 - resets
62 - reset-names
63
64 unevaluatedProperties: false
65
66 examples:
67 - |
68 #include <dt-bindings/clock/hi3670-clock.h>
69 #include <dt-bindings/interrupt-controller/arm-gic.h>
70
71 soc {
72 #address-cells = <2>;
73 #size-cells = <2>;
74
75 ufs@ff3c0000 {
76 compatible = "hisilicon,hi3670-ufs", "jedec,ufs-2.1";
77 reg = <0x0 0xff3c0000 0x0 0x1000>,
78 <0x0 0xff3e0000 0x0 0x1000>;
79 interrupt-parent = <&gic>;
80 interrupts = <GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH>;
81 clocks = <&crg_ctrl HI3670_CLK_GATE_UFSIO_REF>,
82 <&crg_ctrl HI3670_CLK_GATE_UFS_SUBSYS>;
83 clock-names = "ref_clk", "phy_clk";
84 freq-table-hz = <0 0>,
85 <0 0>;
86
87 resets = <&crg_rst 0x84 12>;
88 reset-names = "rst";
89 };
90 };
91

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

HiSilicon UFS controller

1-11

GPL-2.0-only 또는 BSD-2-Clause 이중 라이선스의 이 스키마는 HiSilicon Universal Flash Storage(UFS) controller를 정의합니다. 관리자는 Li Wei입니다.

Hi3660·Hi3670 선택과 공통 스키마

12-25

이 스키마는 모든 `jedec,ufs` 장치가 아니라 `compatible`에 `hisilicon,hi3660-ufs` 또는 `hisilicon,hi3670-ufs`가 포함된 node만 선택합니다. `compatible`은 필수이고 공통 속성은 `ufs-common.yaml`에서 상속합니다.

# Select only our matches, not all jedec,ufs
select:
  properties:
    compatible:
      contains:
        enum:
          - hisilicon,hi3660-ufs
          - hisilicon,hi3670-ufs
  required:
    - compatible

allOf:
  - $ref: ufs-common.yaml

UFS 세대, clock, register 및 reset

26-64

`hisilicon,hi3660-ufs`는 `jedec,ufs-1.1`과 함께 사용하고, `hisilicon,hi3670-ufs`는 `jedec,ufs-2.1`과 함께 사용합니다. `clocks`는 정확히 2개이며 `clock-names`는 `ref_clk`, `phy_clk` 순서입니다.

`reg`의 첫 항목은 UFS register address space, 둘째 항목은 UFS SYS CTRL register address space입니다. `resets`는 최대 한 항목이고 `reset-names` 값은 `rst`입니다. 필수 속성은 `compatible`, `reg`, `resets`, `reset-names`이며, 평가되지 않은 추가 속성은 허용하지 않습니다.

properties:
  compatible:
    oneOf:
      - items:
          - const: hisilicon,hi3660-ufs
          - const: jedec,ufs-1.1
      - items:
          - enum:
              - hisilicon,hi3670-ufs
          - const: jedec,ufs-2.1

  clocks:
    minItems: 2
    maxItems: 2

  clock-names:
    items:
      - const: ref_clk
      - const: phy_clk

  reg:
    items:
      - description: UFS register address space
      - description: UFS SYS CTRL register address space

  resets:
    maxItems: 1

  reset-names:
    items:
      - const: rst

required:
  - compatible
  - reg
  - resets
  - reset-names

unevaluatedProperties: false

Hi3670 UFS node 예제

65-90

예제 `ufs@ff3c0000`은 `hisilicon,hi3670-ufs`와 `jedec,ufs-2.1`을 선언합니다. UFS와 SYS CTRL용 0x1000-byte register 영역 두 개, GIC SPI interrupt 278, `HI3670_CLK_GATE_UFSIO_REF`와 `HI3670_CLK_GATE_UFS_SUBSYS` clock을 각각 `ref_clk`와 `phy_clk`로 지정합니다. 두 clock의 frequency table은 `<0 0>`이며, `crg_rst`의 offset 0x84 bit 12 reset을 `rst`라는 이름으로 사용합니다.


examples:
  - |
    #include <dt-bindings/clock/hi3670-clock.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    soc {
        #address-cells = <2>;
        #size-cells = <2>;

        ufs@ff3c0000 {
            compatible = "hisilicon,hi3670-ufs", "jedec,ufs-2.1";
            reg = <0x0 0xff3c0000 0x0 0x1000>,
                  <0x0 0xff3e0000 0x0 0x1000>;
            interrupt-parent = <&gic>;
            interrupts = <GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH>;
            clocks = <&crg_ctrl HI3670_CLK_GATE_UFSIO_REF>,
                     <&crg_ctrl HI3670_CLK_GATE_UFS_SUBSYS>;
            clock-names = "ref_clk", "phy_clk";
            freq-table-hz = <0 0>,
                            <0 0>;

            resets = <&crg_rst 0x84 12>;
            reset-names = "rst";
        };
    };