요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
* Altera Arria10 Development Kit System Resource Chip
Required parent device properties:
- compatible : "altr,a10sr"
- spi-max-frequency : Maximum SPI frequency.
- reg : The SPI Chip Select address for the Arria10
System Resource chip
- interrupts : The interrupt line the device is connected to.
- interrupt-controller : Marks the device node as an interrupt controller.
- #interrupt-cells : The number of cells to describe an IRQ, should be 2.
The first cell is the IRQ number.
The second cell is the flags, encoded as trigger
masks from ../interrupt-controller/interrupts.txt.
The A10SR consists of these sub-devices:
Device Description
------ ----------
a10sr_gpio GPIO Controller
a10sr_rst Reset Controller
Arria10 GPIO
Required Properties:
- compatible : Should be "altr,a10sr-gpio"
- gpio-controller : Marks the device node as a GPIO Controller.
- #gpio-cells : Should be two. The first cell is the pin number and
the second cell is used to specify flags.
See ../gpio/gpio.txt for more information.
Arria10 Peripheral PHY Reset
Required Properties:
- compatible : Should be "altr,a10sr-reset"
- #reset-cells : Should be one.
Example:
resource-manager@0 {
compatible = "altr,a10sr";
reg = <0>;
spi-max-frequency = <100000>;
interrupt-parent = <&portb>;
interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
interrupt-controller;
#interrupt-cells = <2>;
a10sr_gpio: gpio-controller {
compatible = "altr,a10sr-gpio";
gpio-controller;
#gpio-cells = <2>;
};
a10sr_rst: reset-controller {
compatible = "altr,a10sr-reset";
#reset-cells = <1>;
};
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Arria10 System Resource Chip
1-2이 바인딩은 Altera Arria10 Development Kit의 System Resource Chip(A10SR)을 설명합니다.
SPI 상위 장치가 자체 interrupt domain과 GPIO 및 peripheral reset 자식을 제공합니다.
상위 SPI·인터럽트 속성
3-14`compatible`은 `altr,a10sr`, `spi-max-frequency`는 최대 SPI 주파수, `reg`는 Arria10 System Resource Chip의 SPI chip-select 주소입니다. `interrupts`는 장치가 연결된 인터럽트 선이고 `interrupt-controller`는 이 노드를 인터럽트 컨트롤러로 표시합니다.
`#interrupt-cells`는 2여야 합니다. 첫 cell은 IRQ 번호, 둘째 cell은 `../interrupt-controller/interrupts.txt`의 trigger mask로 인코딩한 flag입니다.
GPIO와 reset 하위 장치
15-21A10SR은 GPIO controller인 `a10sr_gpio`와 reset controller인 `a10sr_rst` 두 하위 장치로 구성됩니다.
Arria10 GPIO 필수 속성
22-29GPIO 자식의 `compatible`은 `altr,a10sr-gpio`여야 하고 `gpio-controller`로 컨트롤러임을 표시합니다. `#gpio-cells`는 2이며 첫 cell은 pin 번호, 둘째 cell은 flag입니다. 자세한 형식은 `../gpio/gpio.txt`를 봅니다.
Peripheral PHY reset 속성
30-34Peripheral PHY reset 자식의 `compatible`은 `altr,a10sr-reset`이어야 하고 `#reset-cells`는 1입니다.
A10SR resource manager 예제
35-56예제는 chip-select 0에서 최대 100kHz SPI를 사용하고 port B의 interrupt 5를 active-low level로 연결합니다. A10SR interrupt specifier는 두 cell입니다.
GPIO 자식은 두 GPIO cell을, reset 자식은 하나의 reset cell을 제공하며 각각 `a10sr_gpio`, `a10sr_rst` label을 갖습니다.
resource-manager@0 {
compatible = "altr,a10sr";
reg = <0>;
spi-max-frequency = <100000>;
interrupt-parent = <&portb>;
interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
interrupt-controller;
#interrupt-cells = <2>;
a10sr_gpio: gpio-controller {
compatible = "altr,a10sr-gpio";
gpio-controller;
#gpio-cells = <2>;
};
a10sr_rst: reset-controller {
compatible = "altr,a10sr-reset";
#reset-cells = <1>;
};
};
요약과 해설
altera-a10sr.txt:1-56IRQ flag, GPIO pin flag와 peripheral PHY reset cell 형식을 설명합니다.