요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/ufs/hisilicon,ufs.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: HiSilicon Universal Flash Storage (UFS) Controller
maintainers:
- Li Wei <liwei213@huawei.com>
# 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
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
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";
};
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
HiSilicon UFS controller
1-11GPL-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";
};
};
요약과 해설
hisilicon,ufs.yaml:1-90Hi3660·Hi3670 UFS controller의 JEDEC 세대, dual register 영역, clock 및 reset을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며 compatible, clock name, phandle, register, interrupt, source path 및 원문 줄 좌표를 원형대로 보존합니다.