← Documents Documentation/devicetree/bindings/pwm/nxp,pca9685-pwm.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

NXP PCA9685 PWM

NXP PCA9685 PWM의 register, clock, PWM cell과 channel binding입니다.

Source pathDocumentation/devicetree/bindings/pwm/nxp,pca9685-pwm.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

nxp,pca9685-pwm.txt:1-27

Controller별 필수 property와 실제 device-tree 예제를 함께 설명합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 NXP PCA9685 16-channel 12-bit PWM LED controller
2 ================================================
3
4 Required properties:
5 - compatible: "nxp,pca9685-pwm"
6 - #pwm-cells: Should be 2. See pwm.yaml in this directory for a description of
7 the cells format.
8 The index 16 is the ALLCALL channel, that sets all PWM channels at the same
9 time.
10
11 Optional properties:
12 - invert (bool): boolean to enable inverted logic
13 - open-drain (bool): boolean to configure outputs with open-drain structure;
14 if omitted use totem-pole structure
15
16 Example:
17
18 For LEDs that are directly connected to the PCA, the following setting is
19 applicable:
20
21 pca: pca@41 {
22 compatible = "nxp,pca9685-pwm";
23 #pwm-cells = <2>;
24 reg = <0x41>;
25 invert;
26 open-drain;
27 };
28

3. 한국어 전문 번역

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

필수·선택 property

1-15

NXP PCA9685는 16-channel 12-bit PWM LED controller입니다. 필수 `compatible`은 `nxp,pca9685-pwm`, `#pwm-cells`는 2입니다. Index 16은 모든 PWM channel을 동시에 설정하는 ALLCALL channel입니다. 선택 boolean `invert`는 logic을 반전하고 `open-drain`은 output을 open-drain으로 설정합니다. 생략하면 totem-pole 구조를 사용합니다.

Device-tree 예제

16-27

PCA에 LED를 직접 연결한 예제는 I2C address 0x41에서 inverted open-drain 출력을 사용합니다.

pca: pca@41 {
        compatible = "nxp,pca9685-pwm";
        #pwm-cells = <2>;
        reg = <0x41>;
        invert;
        open-drain;
};