Part 1
요약·해설
공식 원문 518줄과 property 40행을 전수 대조해 continuous/standby selection·12 axis combinations·variant-dependent ±40~±266mT ranges·active-low INT trigger·angle/gain correction·2x~32x output-rate trade-off 제약을 보존했습니다.
ti,tmag5273
Texas Instruments
40 rows
I2C 3-axis magnetic/temperature sensor + INT/CRC
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
22BA6B8BD8772BBD23C57F7381667813D188FEA4B676A016C98D5F8694F0EFAA
:orphan:
.. raw:: html
<!--
FIXME: do not limit page width until content uses another representation
format other than tables
-->
<style>.wy-nav-content { max-width: none; !important }</style>
.. dtcompatible:: ti,tmag5273
.. _dtbinding_ti_tmag5273:
ti,tmag5273 (on i2c bus)
########################
Vendor: :ref:`Texas Instruments <dt_vendor_ti>`
Description
***********
.. code-block:: none
Texas Instruments TMAG5273 Low-Power Linear 3D Hall-Effect Sensor with an I2C interface.
See the specification for the default I2C address.
The specification of the sensor can be found at:
https://www.ti.com/lit/ds/symlink/tmag5273.pdf
When setting the enum properties in a .dts or .dtsi file you may
include tmag5273.h and use the macros defined there.
Example:
#include <zephyr/dt-bindings/sensor/tmag5273.h>
tmag5273: tmag5273@0 {
...
axis = <TMAG5273_DT_AXIS_XYZ>;
range = <TMAG5273_DT_AXIS_RANGE_HIGH>;
};
Properties
**********
.. tabs::
.. group-tab:: Node specific properties
Properties not inherited from the base binding file.
.. list-table::
:widths: 1 1 4
:header-rows: 1
* - Name
- Type
- Details
* - ``friendly-name``
- ``string``
- .. code-block:: none
Human readable string describing the sensor. It can be used to
distinguish multiple instances of the same model (e.g., lid accelerometer
vs. base accelerometer in a laptop) to a host operating system.
This property is defined in the Generic Sensor Property Usages of the HID
Usage Tables specification
(https://usb.org/sites/default/files/hut1_3_0.pdf, section 22.5).
* - ``supply-gpios``
- ``phandle-array``
- .. code-block:: none
GPIO specifier that controls power to the device.
This property should be provided when the device has a dedicated
switch that controls power to the device. The supply state is
entirely the responsibility of the device driver.
Contrast with vin-supply.
* - ``vin-supply``
- ``phandle``
- .. code-block:: none
Reference to the regulator that controls power to the device.
The referenced devicetree node must have a regulator compatible.
This property should be provided when device power is supplied
by a shared regulator. The supply state is dependent on the
request status of all devices fed by the regulator.
Contrast with supply-gpios. If both properties are provided
then the regulator must be requested before the supply GPIOS is
set to an active state, and the supply GPIOS must be set to an
inactive state before releasing the regulator.
* - ``operation-mode``
- ``int``
- .. code-block:: none
Sensor mode used if set to "active".
Defaults to continuous sampling (TMAG5273_DT_OPER_MODE_CONTINUOUS).
- 0 # TMAG5273_DT_OPER_MODE_CONTINUOUS (continuous)
- 1 # TMAG5273_DT_OPER_MODE_STANDBY (standby)
Legal values: ``0``, ``1``
* - ``axis``
- ``int``
- .. code-block:: none
Magnet axis channel inputs.
Defaults to measure all axis (TMAG5273_DT_AXIS_XYZ).
- 0 # TMAG5273_DT_AXIS_NONE
- 1 # TMAG5273_DT_AXIS_X
- 2 # TMAG5273_DT_AXIS_Y
- 3 # TMAG5273_DT_AXIS_Z
- 4 # TMAG5273_DT_AXIS_XY
- 5 # TMAG5273_DT_AXIS_XZ
- 6 # TMAG5273_DT_AXIS_YZ
- 7 # TMAG5273_DT_AXIS_XYZ
- 8 # TMAG5273_DT_AXIS_XYX (pseudo-simultaneous sampling)
- 9 # TMAG5273_DT_AXIS_YXY (pseudo-simultaneous sampling)
- 10 # TMAG5273_DT_AXIS_YZY (pseudo-simultaneous sampling)
- 11 # TMAG5273_DT_AXIS_XZX (pseudo-simultaneous sampling)
Default value: ``7``
Legal values: ``0``, ``1``, ``2``, ``3``, ``4``, ``5``, ``6``, ``7``, ``8``, ``9``, ``10``, ``11``
* - ``temperature``
- ``boolean``
- .. code-block:: none
Select for temperature measurement.
* - ``range``
- ``int``
- .. code-block:: none
XYZ-measurement range for magnetic-field value.
Defaults to lower range (higher resolution; TMAG5273_DT_AXIS_RANGE_LOW).
- 0 # TMAG5273_DT_AXIS_RANGE_LOW (+/-40 mT (TMAG5273A1) or +/-133 mT (TMAG5273A2))
- 1 # TMAG5273_DT_AXIS_RANGE_HIGH (+/-80 mT (TMAG5273A1) or +/-266 mT (TMAG5273A2))
- 2 # TMAG5273_DT_AXIS_RANGE_RUNTIME (@runtime (initial value is: "high"))
Default value: ``1``
Legal values: ``0``, ``1``, ``2``
* - ``int-gpios``
- ``phandle-array``
- .. code-block:: none
The INT signal connection.
The signal is active-low as produced by the sensor.
Either used for interrupt signaling, or triggering a conversion.
* - ``temperature-coefficient``
- ``int``
- .. code-block:: none
Selects the magnet temperature coefficient.
Defaults to none (TMAG5273_DT_TEMP_COEFF_NONE).
- 0 # TMAG5273_DT_TEMP_COEFF_NONE (none)
- 1 # TMAG5273_DT_TEMP_COEFF_NDBFE (0.12 %/deg C (NdBFe))
- 2 # TMAG5273_DT_TEMP_COEFF_CERAMIC (0.2 %/deg C (Ceramic))
Ignored if temperature is not measured.
Legal values: ``0``, ``1``, ``2``
* - ``trigger-conversion-via-int``
- ``boolean``
- .. code-block:: none
Selects initiation of a single conversion based on a trigger via
the INT-pin if enabled, and via I2C-command if disabled.
Used in "standby"-, "wakeup-and-sleep"- and "sleep"-mode.
Using I2C-conversion trigger may result in (handled) I2C-errors.
* - ``angle-magnitude-axis``
- ``int``
- .. code-block:: none
Enables angle calculation, magnetic gain, and offset corrections
between two selected magnetic channels.
Defaults to no additional calculations (TMAG5273_DT_ANGLE_MAG_NONE).
- 0 # TMAG5273_DT_ANGLE_MAG_NONE (deactivated)
- 1 # TMAG5273_DT_ANGLE_MAG_XY (x/y)
- 2 # TMAG5273_DT_ANGLE_MAG_YZ (y/z)
- 3 # TMAG5273_DT_ANGLE_MAG_XZ (x/z)
- 4 # TMAG5273_DT_ANGLE_MAG_RUNTIME (@runtime (initial value is: "deactivated"))
Legal values: ``0``, ``1``, ``2``, ``3``, ``4``
* - ``ch-mag-gain-correction``
- ``int``
- .. code-block:: none
Channel for the magnitude gain correction.
Defaults to 1st channel.
- 0 # TMAG5273_DT_CORRECTION_CH_1 (1st channel)
- 1 # TMAG5273_DT_CORRECTION_CH_2 (2nd channel)
Only active if angle-magnitude-calculation is active.
Legal values: ``0``, ``1``
* - ``average-mode``
- ``int``
- .. code-block:: none
Enables additional sampling of the sensor data to reduce the noise effect
(or to increase resolution).
Note that averaging will influence the output data rate.
Defaults to 2x averaging (TMAG5273_DT_AVERAGING_2X).
- 0 # TMAG5273_DT_AVERAGING_NONE (10.0-kSPS (3-axes) or 20-kSPS (1 axis))
- 1 # TMAG5273_DT_AVERAGING_2X (5.7-kSPS (3-axes) or 13.3-kSPS (1 axis))
- 2 # TMAG5273_DT_AVERAGING_4X (3.1-kSPS (3-axes) or 8.0-kSPS (1 axis))
- 3 # TMAG5273_DT_AVERAGING_8X (1.6-kSPS (3-axes) or 4.4-kSPS (1 axis))
- 4 # TMAG5273_DT_AVERAGING_16X (0.8-kSPS (3-axes) or 2.4-kSPS (1 axis))
- 5 # TMAG5273_DT_AVERAGING_32X (0.4-kSPS (3-axes) or 1.2-kSPS (1 axis))
Default value: ``1``
Legal values: ``0``, ``1``, ``2``, ``3``, ``4``, ``5``
* - ``crc-enabled``
- ``boolean``
- .. code-block:: none
Activate I2C CRC byte to be sent.
* - ``low-noise``
- ``boolean``
- .. code-block:: none
Select low-noise mode when enabled, and low-power mode when disabled.
* - ``ignore-diag-fail``
- ``boolean``
- .. code-block:: none
Ignore detected diagnostic fail.
According to the manual, this should be done if VCC < 2.3V.
.. group-tab:: Deprecated node specific properties
Deprecated properties not inherited from the base binding file.
(None)
.. group-tab:: Base properties
Properties inherited from the base binding file, which defines
common properties that may be set on many nodes. Not all of these
may apply to the "ti,tmag5273" compatible.
.. list-table::
:widths: 1 1 4
:header-rows: 1
* - Name
- Type
- Details
* - ``wakeup-source``
- ``boolean``
- .. code-block:: none
Property to identify that a device can be used as wake up source.
When this property is provided a specific flag is set into the
device that tells the system that the device is capable of
wake up the system.
Wake up capable devices are disabled (interruptions will not wake up
the system) by default but they can be enabled at runtime if necessary.
* - ``power-domain``
- ``phandle``
- .. code-block:: none
Power domain the device belongs to.
The device will be notified when the power domain it belongs to is either
suspended or resumed.
* - ``zephyr,pm-device-runtime-auto``
- ``boolean``
- .. code-block:: none
Automatically configure the device for runtime power management after the
init function runs.
* - ``zephyr,disabling-power-states``
- ``phandles``
- .. code-block:: none
List of power states that will disable this device power.
* - ``status``
- ``string``
- .. code-block:: none
indicates the operational status of a device
Legal values: ``'ok'``, ``'okay'``, ``'disabled'``, ``'reserved'``, ``'fail'``, ``'fail-sss'``
See :ref:`dt-important-props` for more information.
* - ``compatible``
- ``string-array``
- .. code-block:: none
compatible strings
This property is **required**.
See :ref:`dt-important-props` for more information.
* - ``reg``
- ``array``
- .. code-block:: none
register space
This property is **required**.
See :ref:`dt-important-props` for more information.
* - ``reg-names``
- ``string-array``
- .. code-block:: none
name of each register space
* - ``interrupts``
- ``array``
- .. code-block:: none
interrupts for device
See :ref:`dt-important-props` for more information.
* - ``interrupts-extended``
- ``compound``
- .. code-block:: none
extended interrupt specifier for device
* - ``interrupt-names``
- ``string-array``
- .. code-block:: none
name of each interrupt
* - ``interrupt-parent``
- ``phandle``
- .. code-block:: none
phandle to interrupt controller node
* - ``label``
- ``string``
- .. code-block:: none
Human readable string describing the device (used as device_get_binding() argument)
See :ref:`dt-important-props` for more information.
This property is **deprecated**.
* - ``clocks``
- ``phandle-array``
- .. code-block:: none
Clock gate information
* - ``clock-names``
- ``string-array``
- .. code-block:: none
name of each clock
* - ``#address-cells``
- ``int``
- .. code-block:: none
number of address cells in reg property
* - ``#size-cells``
- ``int``
- .. code-block:: none
number of size cells in reg property
* - ``dmas``
- ``phandle-array``
- .. code-block:: none
DMA channels specifiers
* - ``dma-names``
- ``string-array``
- .. code-block:: none
Provided names of DMA channel specifiers
* - ``io-channels``
- ``phandle-array``
- .. code-block:: none
IO channels specifiers
* - ``io-channel-names``
- ``string-array``
- .. code-block:: none
Provided names of IO channel specifiers
* - ``mboxes``
- ``phandle-array``
- .. code-block:: none
mailbox / IPM channels specifiers
* - ``mbox-names``
- ``string-array``
- .. code-block:: none
Provided names of mailbox / IPM channel specifiers
* - ``zephyr,deferred-init``
- ``boolean``
- .. code-block:: none
Do not initialize device automatically on boot. Device should be manually
initialized using device_init().
Part 3
한국어 전문 번역
ti,tmag5273
Vendor: Texas Instruments
공식 설명
Texas Instruments TMAG5273 Low-Power Linear 3D Hall-Effect Sensor with an I2C interface.
See the specification for the default I2C address.
The specification of the sensor can be found at:
https://www.ti.com/lit/ds/symlink/tmag5273.pdf
When setting the enum properties in a .dts or .dtsi file you may
include tmag5273.h and use the macros defined there.
Example:
#include <zephyr/dt-bindings/sensor/tmag5273.h>
tmag5273: tmag5273@0 {
...
axis = <TMAG5273_DT_AXIS_XYZ>;
range = <TMAG5273_DT_AXIS_RANGE_HIGH>;
};저전력 3축 측정과 I2C trigger 구성
Base compatible·reg가 필수이고 모든 node-specific 설정은 선택입니다. Enum property는 tmag5273.h를 include해 TMAG5273_DT_* macro로 지정할 수 있습니다.
None · X/Y/Z · repeated sequence
A1 ±40/80mT · A2 ±133/266mT
Average · angle · gain correction
Optional CRC + active-low INT
축 조합과 output rate
axis 0~11은 none, 단일/복수 축과 XYX/YXY/YZY/XZX pseudo-simultaneous sequence입니다. 기본값 7은 XYZ입니다. average-mode는 none부터 32x까지이고 기본은 2x입니다. 3축 기준 output rate는 no averaging 10.0kSPS에서 32x 0.4kSPS로 낮아집니다.
Range 기본값 원문 충돌
Range code 0은 A1 ±40mT/A2 ±133mT low range, code 1은 ±80/±266mT high range, code 2는 runtime 선택입니다. 공식 prose는 low range가 기본이라고 하지만 표 metadata는 기본값 1을 표시합니다. 신구 관계를 확정할 근거가 없어 둘 다 보존하고 자동 수정하지 않았습니다.
INT trigger, temperature와 correction
INT는 sensor가 만드는 active-low signal이며 notification 또는 conversion trigger로 사용합니다. trigger-conversion-via-int가 없으면 I2C command로 trigger하며 원문은 이 방식이 처리 가능한 I2C error를 만들 수 있다고 설명합니다.
Temperature coefficient는 NdBFe 0.12%/°C 또는 Ceramic 0.2%/°C를 선택하며 temperature 측정이 꺼져 있으면 무시됩니다. Angle/magnitude axis를 켜면 XY/YZ/XZ channel pair에 gain/offset correction을 적용할 수 있습니다.
low-noise가 없으면 low-power mode이고, ignore-diag-fail은 manual 지침상 VCC < 2.3V일 때 사용합니다. CRC option은 I2C CRC byte를 추가합니다.
속성 전체 번역
공식 node-specific 16개와 base 24개 property를 모두 번역했습니다.
노드 전용 속성 · 16개
| 이름 | 형식 | 설명과 제약 |
|---|---|---|
friendly-name | string | 호스트 운영체제가 같은 모델의 센서 여러 개를 구분할 때 쓰는 이름입니다. HID Usage Tables 1.3의 22.5절에 정의되어 있습니다. |
supply-gpios | phandle-array | 장치 전용 전원 스위치를 제어하는 GPIO입니다. vin-supply와 함께 사용하면 먼저 레귤레이터에 전원 공급을 요청한 뒤 GPIO를 활성화합니다. |
vin-supply | phandle | 공유 레귤레이터 노드의 phandle입니다. supply-gpios와 함께 사용하면 먼저 GPIO를 비활성화한 뒤 레귤레이터 사용을 해제합니다. |
operation-mode | int | Sensor가 active일 때 사용할 mode입니다. 0은 continuous, 1은 standby이고 설명상 기본은 continuous입니다. 허용값: 0, 1 |
axis | int | Magnetic axis input 조합입니다. 0~7은 none/X/Y/Z/XY/XZ/YZ/XYZ, 8~11은 XYX/YXY/YZY/XZX pseudo-simultaneous sequence이며 기본값은 XYZ를 뜻하는 7입니다. 기본값: 7 · 허용값: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 |
temperature | boolean | Temperature 측정을 활성화합니다. |
range | int | XYZ magnetic range code입니다. A1/A2에서 low는 ±40/±133mT, high는 ±80/±266mT이며 runtime 선택도 가능합니다. 원문 prose와 metadata 기본값이 서로 다릅니다. 기본값: 1 · 허용값: 0, 1, 2 |
int-gpios | phandle-array | Sensor가 만드는 active-low INT signal입니다. Interrupt notification 또는 single conversion trigger로 사용합니다. |
temperature-coefficient | int | Magnet temperature coefficient입니다. 0 none, 1 NdBFe 0.12%/°C, 2 Ceramic 0.2%/°C이며 temperature를 측정하지 않으면 무시됩니다. 허용값: 0, 1, 2 |
trigger-conversion-via-int | boolean | 설정하면 enabled INT pin trigger로 single conversion을 시작하고, 없으면 I2C command로 시작합니다. Standby·wakeup-and-sleep·sleep mode에서 사용되며 I2C trigger는 처리 가능한 I2C error를 만들 수 있습니다. |
angle-magnitude-axis | int | 두 magnetic channel 사이 angle 계산과 gain/offset correction을 활성화합니다. 0 off, 1 XY, 2 YZ, 3 XZ, 4 runtime 선택입니다. 허용값: 0, 1, 2, 3, 4 |
ch-mag-gain-correction | int | Magnitude gain correction에 사용할 channel입니다. 0은 첫 channel, 1은 둘째 channel이며 angle/magnitude 계산이 켜졌을 때만 유효합니다. 허용값: 0, 1 |
average-mode | int | Noise를 줄이거나 resolution을 높이는 averaging code입니다. 0~5는 none/2x/4x/8x/16x/32x이고 기본값 1은 2x이며 averaging이 커질수록 output data rate가 낮아집니다. 기본값: 1 · 허용값: 0, 1, 2, 3, 4, 5 |
crc-enabled | boolean | I2C CRC byte 전송을 활성화합니다. |
low-noise | boolean | 설정하면 low-noise mode, 없으면 low-power mode를 선택합니다. |
ignore-diag-fail | boolean | 검출된 diagnostic failure를 무시합니다. Manual에 따르면 VCC가 2.3V보다 낮을 때 설정해야 합니다. |
Base binding property · 24개
공통 기본 바인딩에서 상속한 속성입니다. 이 compatible에서 사용하지 않는 속성도 공식 참조 문서에 실려 있으면 함께 표시합니다.
| 이름 | 형식 | 설명과 제약 |
|---|---|---|
wakeup-source | boolean | 이 장치를 시스템 깨우기에 사용할 수 있음을 나타냅니다. 이 속성이 있으면 깨우기 지원 플래그가 설정됩니다. 기본 상태에서는 장치의 인터럽트로 시스템을 깨우지 않으며, 실행 중에 깨우기 기능을 활성화할 수 있습니다. |
power-domain | phandle | 장치가 속한 전원 도메인의 phandle입니다. 해당 전원 도메인이 일시 중단되거나 다시 동작하면 장치에 알림이 전달됩니다. |
zephyr,pm-device-runtime-auto | boolean | 초기화 함수 실행 후 장치의 런타임 전원 관리를 자동으로 설정합니다. |
zephyr,disabling-power-states | phandles | 이 장치의 전원이 꺼지는 전원 상태 목록입니다. |
status | string | 장치의 동작 상태를 나타냅니다. 허용값: 'ok', 'okay', 'disabled', 'reserved', 'fail', 'fail-sss' |
compatible | string-array | 이 노드에 적용할 바인딩과 드라이버를 식별하는 compatible 문자열 목록입니다. 필수 |
reg | array | 장치 레지스터의 주소 범위를 지정합니다. 필수 |
reg-names | string-array | 각 register space의 이름입니다. |
interrupts | array | 장치에서 사용하는 인터럽트를 지정하는 목록입니다. |
interrupts-extended | compound | 인터럽트 컨트롤러의 phandle을 함께 지정하는 확장 형식의 인터럽트 명세입니다. |
interrupt-names | string-array | 각 interrupt의 이름입니다. |
interrupt-parent | phandle | 인터럽트 컨트롤러 노드를 가리키는 phandle입니다. |
label | string | 사람이 장치를 알아볼 수 있도록 붙이는 이름입니다. 과거에는 device_get_binding()의 인자로 사용했습니다. 사용 중단됨 |
clocks | phandle-array | 클록 게이트 또는 클록 공급원을 지정하는 phandle 배열입니다. |
clock-names | string-array | 각 clock의 이름입니다. |
#address-cells | int | 하위 노드의 reg 속성에서 주소를 나타내는 데 쓰는 셀 수입니다. |
#size-cells | int | 하위 노드의 reg 속성에서 크기를 나타내는 데 쓰는 셀 수입니다. |
dmas | phandle-array | DMA 채널을 지정하는 phandle 배열입니다. |
dma-names | string-array | 지정한 DMA 채널의 이름입니다. |
io-channels | phandle-array | I/O 채널을 지정하는 phandle 배열입니다. |
io-channel-names | string-array | 지정한 I/O 채널의 이름입니다. |
mboxes | phandle-array | 메일박스/IPM 채널을 지정하는 phandle 배열입니다. |
mbox-names | string-array | 지정한 메일박스/IPM 채널의 이름입니다. |
zephyr,deferred-init | boolean | 부팅할 때 장치를 자동으로 초기화하지 않습니다. 이후 device_init()를 호출해 직접 초기화해야 합니다. |
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.