← Documents Documentation/devicetree/bindings/media/hix5hd2-ir.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

HiSilicon HIX5HD2 IR

HiSilicon IR receiver의 MMIO, IRQ, clock과 RC map 바인딩입니다.

Source pathDocumentation/devicetree/bindings/media/hix5hd2-ir.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

hix5hd2-ir.txt:1-26

Deprecated power-syscon 대신 올바른 clock을 제공해야 합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Device-Tree bindings for hix5hd2 ir IP
2
3 Required properties:
4 - compatible: Should contain "hisilicon,hix5hd2-ir", or:
5 - "hisilicon,hi3796cv300-ir" for Hi3796CV300 IR device.
6 - reg: Base physical address of the controller and length of memory
7 mapped region.
8 - interrupts: interrupt-specifier for the sole interrupt generated by
9 the device. The interrupt specifier format depends on the interrupt
10 controller parent.
11 - clocks: clock phandle and specifier pair.
12
13 Optional properties:
14 - linux,rc-map-name: see rc.txt file in the same directory.
15 - hisilicon,power-syscon: DEPRECATED. Don't use this in new dts files.
16 Provide correct clocks instead.
17
18 Example node:
19
20 ir: ir@f8001000 {
21 compatible = "hisilicon,hix5hd2-ir";
22 reg = <0xf8001000 0x1000>;
23 interrupts = <0 47 4>;
24 clocks = <&clock HIX5HD2_IR_CLOCK>;
25 linux,rc-map-name = "rc-tivo";
26 };
27

3. 한국어 전문 번역

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

HiSilicon IR controller 속성

1-17

HiSilicon hix5hd2 IR IP의 `compatible`은 `hisilicon,hix5hd2-ir`이며 Hi3796CV300 장치는 `hisilicon,hi3796cv300-ir`을 사용합니다. `reg`는 controller의 물리 base와 MMIO 길이, `interrupts`는 장치가 만드는 유일한 interrupt의 specifier, `clocks`는 clock phandle과 specifier 쌍입니다.

선택적인 `linux,rc-map-name`은 같은 directory의 `rc.txt`를 따릅니다. `hisilicon,power-syscon`은 deprecated이므로 새 DTS에서 사용하지 말고 올바른 `clocks`를 제공해야 합니다.

IR 수신 경로
IR receiver IPMMIO register
ClockHIX5HD2_IR_CLOCK
Single IRQRemote-control event
linux,rc-map-nameKey map 선택

Clock이 controller를 구동하고 수신 event는 단일 IRQ와 선택한 RC map으로 전달됩니다.

HIX5HD2 IR 예제

18-26

예제는 `0xf8001000`의 0x1000-byte register region, interrupt 47, `HIX5HD2_IR_CLOCK`을 사용하고 RC key map으로 `rc-tivo`를 선택합니다.

ir: ir@f8001000 {
        compatible = "hisilicon,hix5hd2-ir";
        reg = <0xf8001000 0x1000>;
        interrupts = <0 47 4>;
        clocks = <&clock HIX5HD2_IR_CLOCK>;
        linux,rc-map-name = "rc-tivo";
};