Documentation/devicetree/bindings/gpio/gpio-grgpio.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

Aeroflex Gaisler GRGPIO

GRLIB GRGPIO line 수와 per-line IRQ mapping 바인딩입니다.

Source pathDocumentation/devicetree/bindings/gpio/gpio-grgpio.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

gpio-grgpio.txt:1-26

AMBA resource와 irqmap의 line별 interrupt index를 설명합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Aeroflex Gaisler GRGPIO General Purpose I/O cores.
2
3 The GRGPIO GPIO core is available in the GRLIB VHDL IP core library.
4
5 Note: In the ordinary environment for the GRGPIO core, a Leon SPARC system,
6 these properties are built from information in the AMBA plug&play.
7
8 Required properties:
9
10 - name : Should be "GAISLER_GPIO" or "01_01a"
11
12 - reg : Address and length of the register set for the device
13
14 - interrupts : Interrupt numbers for this device
15
16 Optional properties:
17
18 - nbits : The number of gpio lines. If not present driver assumes 32 lines.
19
20 - irqmap : An array with an index for each gpio line. An index is either a valid
21 index into the interrupts property array, or 0xffffffff that indicates
22 no irq for that line. Driver provides no interrupt support if not
23 present.
24
25 For further information look in the documentation for the GLIB IP core library:
26 http://www.gaisler.com/products/grlib/grip.pdf
27

3. 한국어 전문 번역

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

Aeroflex Gaisler GRGPIO 필수 속성

1-15

Aeroflex Gaisler GRGPIO General Purpose I/O core는 GRLIB VHDL IP core library에서 제공합니다. 일반적인 GRGPIO 환경인 Leon SPARC system에서는 이 속성을 AMBA plug-and-play 정보에서 구성합니다.

필수 `name`은 `GAISLER_GPIO` 또는 `01_01a`입니다. `reg`는 device register set의 address와 length이고, `interrupts`는 device interrupt 번호입니다.

GRGPIO 자원과 기본값
Property값/의미
nameGAISLER_GPIO 또는 01_01a
regRegister address와 length
interruptsDevice interrupt array
nbits생략 시 32 GPIO lines

AMBA 정보에서 얻는 필수 자원과 선택 GPIO/IRQ 구성을 정리합니다.

GRGPIO 선택 속성

16-26

선택 `nbits`는 GPIO line 수이며 생략하면 driver는 32 line으로 가정합니다.

`irqmap`은 GPIO line마다 하나의 index를 갖는 array입니다. 각 index는 `interrupts` property array의 유효한 index이거나, 해당 line에 IRQ가 없음을 나타내는 `0xffffffff`입니다. `irqmap`이 없으면 driver는 interrupt를 지원하지 않습니다.

추가 정보는 GRLIB IP core library 문서 `http://www.gaisler.com/products/grlib/grip.pdf`를 참조합니다.