요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
* NXP PCA PCA9564/PCA9665 I2C controller
The PCA9564/PCA9665 serves as an interface between most standard
parallel-bus microcontrollers/microprocessors and the serial I2C-bus
and allows the parallel bus system to communicate bi-directionally
with the I2C-bus.
Required properties :
- reg : Offset and length of the register set for the device
- compatible : one of "nxp,pca9564" or "nxp,pca9665"
Optional properties
- interrupts : the interrupt number
- reset-gpios : gpio specifier for gpio connected to RESET_N pin. As the line
is active low, it should be marked GPIO_ACTIVE_LOW.
- clock-frequency : I2C bus frequency.
Example:
i2c0: i2c@80000 {
compatible = "nxp,pca9564";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x80000 0x4>;
reset-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
clock-frequency = <100000>;
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
PCA9564/PCA9665 controller 속성
1-18NXP PCA9564/PCA9665는 일반적인 parallel-bus microcontroller 또는 microprocessor와 serial I2C bus 사이의 interface로 동작하여 두 bus가 양방향 통신하도록 합니다.
필수 `reg`는 device register set의 offset과 length이고, `compatible`은 `nxp,pca9564` 또는 `nxp,pca9665`입니다. 선택 `interrupts`는 interrupt number, `reset-gpios`는 RESET_N pin에 연결된 GPIO specifier입니다. RESET_N line은 active-low이므로 `GPIO_ACTIVE_LOW`로 표시해야 합니다. `clock-frequency`는 I2C bus frequency입니다.
Parallel bus와 I2C bus 사이 controller의 주요 자원을 정리합니다.
PCA9564 100 kHz 예제
19-27예제의 PCA9564 controller는 register `0x80000`의 4-byte 영역, GPIO1 pin 0의 active-low reset과 100 kHz I2C bus를 사용합니다.
i2c0: i2c@80000 {
compatible = "nxp,pca9564";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x80000 0x4>;
reset-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
clock-frequency = <100000>;
};
요약과 해설
i2c-pca-platform.txt:1-27Register, active-low reset과 bus frequency를 설명합니다.