Documentation/devicetree/bindings/clock/img,boston-clock.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

MIPS Boston clock sources

Boston platform syscon의 child로 제공되는 1-cell clock provider입니다.

Source pathDocumentation/devicetree/bindings/clock/img,boston-clock.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.

1. 요약·해설

원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.

요약과 해설

img,boston-clock.txt:1-31

Boston clock identifier와 UART consumer 연결을 설명합니다.

2. 영어 원문 전체

번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.

원문 전체 펼치기
1 Binding for Imagination Technologies MIPS Boston clock sources.
2
3 This binding uses the common clock binding[1].
4
5 [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
6
7 The device node must be a child node of the syscon node corresponding to the
8 Boston system's platform registers.
9
10 Required properties:
11 - compatible : Should be "img,boston-clock".
12 - #clock-cells : Should be set to 1.
13 Values available for clock consumers can be found in the header file:
14 <dt-bindings/clock/boston-clock.h>
15
16 Example:
17
18 system-controller@17ffd000 {
19 compatible = "img,boston-platform-regs", "syscon";
20 reg = <0x17ffd000 0x1000>;
21
22 clk_boston: clock {
23 compatible = "img,boston-clock";
24 #clock-cells = <1>;
25 };
26 };
27
28 uart0: uart@17ffe000 {
29 /* ... */
30 clocks = <&clk_boston BOSTON_CLK_SYS>;
31 };
32

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.

MIPS Boston clock 속성

1-15

Imagination Technologies MIPS Boston clock source 바인딩

이 바인딩은 공통 clock 바인딩 `Documentation/devicetree/bindings/clock/clock-bindings.txt`를 사용합니다.

장치 노드는 Boston system platform register에 해당하는 syscon 노드의 child여야 합니다.

필수 `compatible`은 `img,boston-clock`, `#clock-cells`는 1입니다. Clock consumer가 사용할 수 있는 값은 `<dt-bindings/clock/boston-clock.h>`에 정의되어 있습니다.

Boston clock provider 계층
Boston platform registersimg,boston-platform-regs + syscon
clock childimg,boston-clock
1-cell identifierBOSTON_CLK_* 선택
UART consumerBOSTON_CLK_SYS 사용

Platform syscon 아래 clock provider와 UART consumer의 관계입니다.

Platform syscon과 UART clock 예

16-31

예제는 system controller 안에 Boston clock provider를 배치하고 UART0에서 `BOSTON_CLK_SYS`를 참조합니다.

system-controller@17ffd000 {
        compatible = "img,boston-platform-regs", "syscon";
        reg = <0x17ffd000 0x1000>;

        clk_boston: clock {
                compatible = "img,boston-clock";
                #clock-cells = <1>;
        };
};

uart0: uart@17ffe000 {
        /* ... */
        clocks = <&clk_boston BOSTON_CLK_SYS>;
};