← Documents Documentation/hwmon/lm70.rst GitHub 원문 ↗

Linux 6.18.37 · Hardware Monitoring

Kernel driver lm70

LM70 계열 SPI/Microwire 온도 센서의 10·11·13·14비트 데이터 해석입니다.

Source pathDocumentation/hwmon/lm70.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약·해설

lm70.rst:1-69

16 SCLK 전송으로 온도 원시값을 받고 센서 모델에 맞는 데이터 폭과 분해능을 적용합니다.

문서 개요
항목
SourceDocumentation/hwmon/lm70.rst
분량69 source lines
인터페이스SPI/Microwire
데이터 폭10~14비트

원문 분량과 핵심 인터페이스입니다.

동작 흐름
센서 식별16 SCLK 전송부호값 추출모델별 온도 환산

장치 연결부터 hwmon 사용까지의 핵심 순서입니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Kernel driver lm70
2 ==================
3
4 Supported chips:
5
6 * National Semiconductor LM70
7
8 Datasheet: https://www.ti.com/product/LM70
9
10 * Texas Instruments TMP121/TMP123
11
12 Information: http://focus.ti.com/docs/prod/folders/print/tmp121.html
13
14 * Texas Instruments TMP122/TMP124
15
16 Information: https://www.ti.com/product/tmp122
17
18 * Texas Instruments TMP125
19
20 Information: https://www.ti.com/product/tmp125
21
22 * National Semiconductor LM71
23
24 Datasheet: https://www.ti.com/product/LM71
25
26 * National Semiconductor LM74
27
28 Datasheet: https://www.ti.com/product/LM74
29
30
31 Author:
32 Kaiwan N Billimoria <kaiwan@designergraphix.com>
33
34 Description
35 -----------
36
37 This driver implements support for the National Semiconductor LM70
38 temperature sensor.
39
40 The LM70 temperature sensor chip supports a single temperature sensor.
41 It communicates with a host processor (or microcontroller) via an
42 SPI/Microwire Bus interface.
43
44 Communication with the LM70 is simple: when the temperature is to be sensed,
45 the driver accesses the LM70 using SPI communication: 16 SCLK cycles
46 comprise the MOSI/MISO loop. At the end of the transfer, the 11-bit 2's
47 complement digital temperature (sent via the SIO line), is available in the
48 driver for interpretation. This driver makes use of the kernel's in-core
49 SPI support.
50
51 As a real (in-tree) example of this "SPI protocol driver" interfacing
52 with a "SPI master controller driver", see drivers/spi/spi_lm70llp.c
53 and its associated documentation.
54
55 The LM74 and TMP121/TMP122/TMP123/TMP124 are very similar; main difference is
56 13-bit temperature data (0.0625 degrees celsius resolution).
57
58 The TMP122/TMP124 also feature configurable temperature thresholds.
59
60 The TMP125 is less accurate and provides 10-bit temperature data
61 with 0.25 degrees Celsius resolution.
62
63 The LM71 is also very similar; main difference is 14-bit temperature
64 data (0.03125 degrees celsius resolution).
65
66 Thanks to
67 ---------
68 Jean Delvare <jdelvare@suse.de> for mentoring the hwmon-side driver
69 development.
70

3. 한국어 전문 번역

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

SPI 온도 센서 지원 계열

1-33

`lm70` 드라이버는 National Semiconductor LM70·LM71·LM74와 TI TMP121·TMP123·TMP122·TMP124·TMP125를 지원합니다. 원문은 각 제품의 데이터시트 또는 제품 정보 링크를 보존합니다.

작성자는 Kaiwan N Billimoria이며 이 드라이버는 우선 LM70 온도 센서 지원을 구현합니다.

LM70 계열
제조사모델
National SemiconductorLM70, LM71, LM74
Texas InstrumentsTMP121, TMP122, TMP123, TMP124, TMP125

지원되는 SPI 온도 센서를 묶어 봅니다.

SPI 센서 선택
실장 센서 모델 확인SPI 버스와 칩 선택 확인lm70 호환 드라이버 연결온도 채널 게시

모델별 데이터 폭과 기능을 확인하기 전의 공통 절차입니다.

Kernel driver lm70
==================

Supported chips:

  * National Semiconductor LM70

    Datasheet: https://www.ti.com/product/LM70

  * Texas Instruments TMP121/TMP123

    Information: http://focus.ti.com/docs/prod/folders/print/tmp121.html

  * Texas Instruments TMP122/TMP124

    Information: https://www.ti.com/product/tmp122

  * Texas Instruments TMP125

    Information: https://www.ti.com/product/tmp125

  * National Semiconductor LM71

    Datasheet: https://www.ti.com/product/LM71

  * National Semiconductor LM74

    Datasheet: https://www.ti.com/product/LM74


Author:
        Kaiwan N Billimoria <kaiwan@designergraphix.com>

LM70 SPI/Microwire 전송과 데이터 해석

34-54

LM70은 단일 온도 센서를 제공하며 호스트 프로세서 또는 마이크로컨트롤러와 SPI/Microwire 버스로 통신합니다.

온도 측정 시 16개의 SCLK 주기가 MOSI/MISO 전송 루프를 구성합니다. 전송이 끝나면 SIO 선으로 전달된 11비트 2의 보수 디지털 온도 값을 드라이버가 해석할 수 있습니다. 구현은 커널 내부 SPI 코어를 사용합니다.

SPI 프로토콜 드라이버와 SPI 마스터 컨트롤러 드라이버의 실제 커널 트리 예로 `drivers/spi/spi_lm70llp.c`와 관련 문서를 참조할 수 있습니다.

LM70 전송 구조
요소
인터페이스SPI/Microwire
전송 길이16 SCLK 주기
온도 데이터11비트 2의 보수
데이터 선SIO
커널 예제drivers/spi/spi_lm70llp.c

버스 전송에서 온도 값이 만들어지는 과정을 정리합니다.

LM70 온도 읽기
칩 선택 활성화16 SCLK 주기 전송SIO 데이터 수신11비트 2의 보수 추출섭씨 온도로 변환

한 번의 SPI 전송으로 온도 원시값을 얻습니다.

Description
-----------

This driver implements support for the National Semiconductor LM70
temperature sensor.

The LM70 temperature sensor chip supports a single temperature sensor.
It communicates with a host processor (or microcontroller) via an
SPI/Microwire Bus interface.

Communication with the LM70 is simple: when the temperature is to be sensed,
the driver accesses the LM70 using SPI communication: 16 SCLK cycles
comprise the MOSI/MISO loop. At the end of the transfer, the 11-bit 2's
complement digital temperature (sent via the SIO line), is available in the
driver for interpretation. This driver makes use of the kernel's in-core
SPI support.

As a real (in-tree) example of this "SPI protocol driver" interfacing
with a "SPI master controller driver", see drivers/spi/spi_lm70llp.c
and its associated documentation.

13·10·14비트 변형과 분해능

55-69

LM74와 TMP121·TMP122·TMP123·TMP124는 LM70과 매우 비슷하지만 주된 차이는 13비트 온도 데이터와 0.0625도 섭씨 분해능입니다. TMP122와 TMP124는 설정 가능한 온도 임계값도 제공합니다.

TMP125는 정확도가 더 낮고 10비트 온도 데이터와 0.25도 섭씨 분해능을 제공합니다. LM71은 14비트 온도 데이터와 0.03125도 섭씨 분해능이 주된 차이입니다.

hwmon 측 드라이버 개발을 지도한 Jean Delvare에게 감사를 전합니다.

호환 센서 데이터 폭
모델데이터 폭분해능
LM7011비트기본 LM70 형식
LM74, TMP121/122/123/12413비트0.0625 C
TMP12510비트0.25 C
LM7114비트0.03125 C
TMP122, TMP12413비트설정 가능한 임계값 추가

모델군별 온도 데이터 폭과 분해능입니다.

변형별 변환
센서 모델 식별10·11·13·14비트 폭 선택부호 있는 원시값 추출모델별 분해능 적용온도와 임계값 게시

칩 유형에 맞는 데이터 폭과 스케일을 적용합니다.

The LM74 and TMP121/TMP122/TMP123/TMP124 are very similar; main difference is
13-bit temperature data (0.0625 degrees celsius resolution).

The TMP122/TMP124 also feature configurable temperature thresholds.

The TMP125 is less accurate and provides 10-bit temperature data
with 0.25 degrees Celsius resolution.

The LM71 is also very similar; main difference is 14-bit temperature
data (0.03125 degrees celsius resolution).

Thanks to
---------
Jean Delvare <jdelvare@suse.de> for mentoring the hwmon-side driver
development.