Part 1
요약·해설
공유 regulator의 *-supply와 single-client *-gpios 선택 기준을 구분합니다.
*-supply · regulator API
*-gpios · driver-owned
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
2FDFEAEA5E31FDB778EA4DD3137050C61FE986BB5B834818E1AC0541DFC80CBE
.. _regulator_api:
Regulators
##########
This subsystem provides control of voltage and current regulators. A common
example is a GPIO that controls a transistor that supplies current to a device
that is not always needed. Another example is a PMIC, typically a much more
complex device.
The ``*-supply`` devicetree properties are used to identify the regulator(s)
that a devicetree node directly depends on. Within the driver for the node the
regulator API is used to issue requests for power when the device is to be
active, and release the power request when the device shuts down.
The simplest case where a regulator is needed is one where there is only one
client. For those situations the cost of using the regulator device
infrastructure is not justified, and ``*-gpios`` devicetree properties should be
used. There is no device interface to these regulators as they are entirely
controlled within the driver for the corresponding node, e.g. a sensor.
.. _regulator_api_reference:
API Reference
**************
.. doxygengroup:: regulator_interface
Part 3
한국어 전문 번역
Regulator subsystem은 voltage regulator와 current regulator를 제어합니다. 흔한 예로 항상 필요하지 않은 device에 current를 공급하는 transistor를 GPIO로 제어하는 방식이 있습니다. 보통 훨씬 복잡한 device인 PMIC도 또 다른 예입니다.
*-supply devicetree property는 어떤 devicetree node가 직접 의존하는 regulator를 식별합니다. 해당 node의 driver는 device를 활성화할 때 regulator API로 power를 요청하고, device를 종료할 때 그 요청을 해제합니다.
Regulator가 필요하지만 client가 하나뿐인 경우가 가장 단순합니다. 이런 상황에서는 regulator device infrastructure를 사용하는 비용이 정당화되지 않으므로 *-gpios devicetree property를 사용해야 합니다. 이 regulator에는 device interface가 없으며 sensor 같은 해당 node의 driver 내부에서 전적으로 제어합니다.
API Reference
regulator_interface Doxygen group이 regulator interface의 공식 API reference를 제공합니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.