← Documents Documentation/arch/arm/samsung/gpio.rst GitHub 원문 ↗

Linux 6.18.37 · Architecture

Samsung GPIO implementation

gpiolib와 Samsung 전용 핀 기능·풀 저항 제어의 역할 분담 및 SoC별 핀 구성 등록 방식을 설명합니다.

Source pathDocumentation/arch/arm/samsung/gpio.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

gpio.rst:1-32

일반 GPIO 동작은 gpiolib에 맡기고, Samsung 핀의 특수 기능과 풀 저항처럼 SoC 고유 처리가 필요한 부분만 전용 API가 담당합니다. 번호 체계를 일치시켜 공통 GPIO API와 전용 핀 설정을 함께 사용할 수 있습니다.

Samsung GPIO 구성 경로
driver / machinegpiolib 공통 GPIOs3c_gpio_cfgpin() / s3c_gpio_setpull()SoC pin registers

공통 GPIO 번호와 작업은 gpiolib가 처리하고 SoC 등록 정보와 Samsung 전용 호출이 핀 기능을 완성합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 ===========================
2 Samsung GPIO implementation
3 ===========================
4
5 Introduction
6 ------------
7
8 This outlines the Samsung GPIO implementation and the architecture
9 specific calls provided alongside the drivers/gpio core.
10
11
12 GPIOLIB integration
13 -------------------
14
15 The gpio implementation uses gpiolib as much as possible, only providing
16 specific calls for the items that require Samsung specific handling, such
17 as pin special-function or pull resistor control.
18
19 GPIO numbering is synchronised between the Samsung and gpiolib system.
20
21
22 PIN configuration
23 -----------------
24
25 Pin configuration is specific to the Samsung architecture, with each SoC
26 registering the necessary information for the core gpio configuration
27 implementation to configure pins as necessary.
28
29 The s3c_gpio_cfgpin() and s3c_gpio_setpull() provide the means for a
30 driver or machine to change gpio configuration.
31
32 See arch/arm/mach-s3c/gpio-cfg.h for more information on these functions.
33

3. 한국어 전문 번역

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

Samsung GPIO 구현

1-11

이 문서는 `drivers/gpio` 코어와 함께 제공되는 Samsung GPIO 구현 및 아키텍처 전용 호출을 개괄합니다.

GPIOLIB 통합

12-21

GPIO 구현은 가능한 한 gpiolib를 사용하고, 핀 특수 기능이나 풀 저항(pull resistor) 제어처럼 Samsung 전용 처리가 필요한 항목에 대해서만 별도 호출을 제공합니다.

GPIO 번호 체계는 Samsung 구현과 gpiolib 시스템 사이에서 동기화됩니다.

핀 구성

22-32

핀 구성은 Samsung 아키텍처에 종속됩니다. 각 SoC는 코어 GPIO 구성 구현이 핀을 필요에 맞게 설정할 수 있도록 필수 정보를 등록합니다.

드라이버나 머신 코드는 `s3c_gpio_cfgpin()`과 `s3c_gpio_setpull()`을 사용해 GPIO 구성을 바꿀 수 있습니다. 자세한 내용은 `arch/arm/mach-s3c/gpio-cfg.h`를 참조하십시오.