# PMIC

电源管理集成电路 (PMIC) 是一种专用电子元件，用于管理设备内的各种电源要求。

PMIC 负责监督各种电源要求，包括：

- 电池管理任务，例如充电和计量。
- 用户界面组件，例如闪存、显示器和 RGB 颜色空间。
- 片上系统 (SoC) 基础架构元素，例如时钟、模数转换器 (ADC) 和开机 (PON) 功能。

一些 PMIC 资源可以通过 XB\_CFG 镜像在 XBL 中进行自定义。配置 PMIC XBL DT 属性可确保最佳性能和集成。这些定制功能可以使用 DT 框架来执行。

Linux 主机 PC 的 PMIC DTSI 文件位于 `boot_images/boot/Settings/Soc/<Chipset>/Core/PMIC/pm.dtsi, access.dtsi`

下表列出了 PMIC DT 属性：

| 属性名称 | 属性描述 | 数据类型 | 可能的值/取值范围 | 设备行为 |
| --- | --- | --- | --- | --- |
| `s2-kpdpwr` | 开启：PMIC 电源键引脚复位配置 | Boolean | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 电源键可配置为在 `s1-ms` 和 `s2-ms` 属性中指定的特定持续时间内置有效时重置或关闭设备。<br><br><br>该属性可使 DT 设置生效。如果为 PM\_FALSE，则对默认硬件设置进行编程。 |
| `s2-kpdpwr` | `reset-type`：选择复位类型。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_WARM_RESET</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_HARD_RESET</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_SHUTDOWN</span></code></p></li><br></ul> | <ul class="simple"><br><li><p>WARM_RESET 用于故障 dump 收集。</p></li><br><li><p>HARD_RESET 用于重新启动设备。</p></li><br><li><p>SHUTDOWN 用于关闭设备</p></li><br></ul> |
| `s2-kpdpwr` | `s1-ms`: Assertion 时间（从可能的值中进行选择）。 | UINT32 | <ul class="simple"><br><li><p>0</p></li><br><li><p>32</p></li><br><li><p>56</p></li><br><li><p>80</p></li><br><li><p>128</p></li><br><li><p>184</p></li><br><li><p>272</p></li><br><li><p>408</p></li><br><li><p>608</p></li><br><li><p>904</p></li><br><li><p>1352</p></li><br><li><p>2048</p></li><br><li><p>3072</p></li><br><li><p>4480</p></li><br><li><p>6720</p></li><br><li><p>10256</p></li><br></ul> | `KPDPWR_N_RESET_S1_TIMER`（单位：毫秒） |
| `s2-kpdpwr` | `s2-ms`: Assertion 时间（从可能的值中进行选择）。 | UINT32 | <ul class="simple"><br><li><p>0</p></li><br><li><p>10</p></li><br><li><p>50</p></li><br><li><p>100</p></li><br><li><p>250</p></li><br><li><p>500</p></li><br><li><p>1000</p></li><br><li><p>2000</p></li><br></ul> | `KPDPWR_N_RESET_S2_TIMER`（单位：毫秒） |
| `s2-kpdpwr-resin` | 启用：配置 以更新 PMIC 电源和 Resin 组合键。 | Boolean | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | power 和 Resin 组合键的持续时间在 `s1-ms` 和 `s2-ms` 属性中指定。<br><br><br>该属性可使 DT 设置生效。如果为 `PM_FALSE`，则对硬件默认设置进行编程。 |
| `s2-kpdpwr-resin` | `reset-type`：选择复位类型。 | UINT32 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_WARM_RESET</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_HARD_RESET</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_SHUTDOWN</span></code></p></li><br></ul> | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">WARM_RESET</span></code> 用于收集 crash dump。</p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">HARD_RESET</span></code> 用于重新启动设备。</p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">SHUTDOWN</span></code> 用于关闭设备</p></li><br></ul> |
| `s2-kpdpwr-resin` | `s1-ms`：Assertion 时间值必须从可能的值中选择。 | UINT32 | <ul class="simple"><br><li><p>0</p></li><br><li><p>32</p></li><br><li><p>56</p></li><br><li><p>80</p></li><br><li><p>128</p></li><br><li><p>184</p></li><br><li><p>272</p></li><br><li><p>408</p></li><br><li><p>608</p></li><br><li><p>904</p></li><br><li><p>1352</p></li><br><li><p>2048</p></li><br><li><p>3072</p></li><br><li><p>4480</p></li><br><li><p>6720</p></li><br><li><p>10256</p></li><br></ul> | `RESIN_AND_KPDPWR_RESET_S1_TIMER`（单位：毫秒） |
| `s2-kpdpwr-resin` | `s2-ms`：置有效时间值必须从可能的值中选择。 | UINT32 | <ul class="simple"><br><li><p>0</p></li><br><li><p>10</p></li><br><li><p>50</p></li><br><li><p>100</p></li><br><li><p>250</p></li><br><li><p>500</p></li><br><li><p>1000</p></li><br><li><p>2000</p></li><br></ul> | `RESIN_AND_KPDPWR_RESET_S2_TIMER`（单位：毫秒） |
| `s2-resin` | 开启：PMIC Resin 键引脚用作音量降低键。 | Boolean | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 当设备处于 assert 并持续了 `s1-ms` 和 `s2-ms` 中指定的时间时，可以将 resin 键配置为重置或关闭设备。<br><br><br>该属性可使 DT 设置生效。如果值为 `PM_FALSE`，则对硬件默认设置进行编程。 |
| `s2-resin` | `reset-type`：选择复位类型。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_WARM_RESET</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_HARD_RESET</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_SHUTDOWN</span></code></p></li><br></ul> | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">WARM_RESET</span></code> 用于收集 crash dump。</p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">HARD_RESET</span></code> 用于重新启动设备。</p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">SHUTDOWN</span></code> 用于关闭设备</p></li><br></ul> |
| `s2-resin` | `s1-ms`：置有效时间值必须从可能的值中选择。 | UINT32 | <ul class="simple"><br><li><p>0</p></li><br><li><p>32</p></li><br><li><p>56</p></li><br><li><p>80</p></li><br><li><p>128</p></li><br><li><p>184</p></li><br><li><p>272</p></li><br><li><p>408</p></li><br><li><p>608</p></li><br><li><p>904</p></li><br><li><p>1352</p></li><br><li><p>2048</p></li><br><li><p>3072</p></li><br><li><p>4480</p></li><br><li><p>6720</p></li><br><li><p>10256</p></li><br></ul> | `RESIN_N_RESET_S1_TIMER`（单位：毫秒） |
| `s2-resin` | `s2-ms`：置有效时间值必须从可能的值中选择。 | UINT32 | <ul class="simple"><br><li><p>0</p></li><br><li><p>10</p></li><br><li><p>50</p></li><br><li><p>100</p></li><br><li><p>250</p></li><br><li><p>500</p></li><br><li><p>1000</p></li><br><li><p>2000</p></li><br></ul> | `RESIN_N_RESET_S2_TIMER`（单位：毫秒） |
| `s3-reset` | 启用：配置 S3 重置。 | Boolean | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | <ul class="simple"><br><li><p>如果设备被卡住并且无法通过 S2 重置恢复，S3 重置会执行故障安全重置或恢复出厂设置。</p></li><br><li><p>当按键在 timervalue-ms 指定的持续时间内置有效时，将触发 S3 重置。</p></li><br><li><p>该属性可使 DT 设置生效。如果值为 <code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code>，则对默认硬件设置进行编程。</p></li><br></ul> |
| `s3-reset` | `s3-src`：选择复位源。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_PON_RESET_SOURCE_KPDPWR</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_PON_RESET_SOURCE_RESIN</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_PON_RESET_SOURCE_RESIN_AND_KPDPWR</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_PON_RESET_SOURCE_RESIN_OR_KPDPWR</span></code></p></li><br></ul> | S3 重置源可以是电源键或 Resin 键，或两者的组合。 |
| `s3-reset` | `timervalue-ms`：置有效时间值必须从可能的值中选择。 | UINT32 | <ul class="simple"><br><li><p>0（立即）</p></li><br><li><p>8</p></li><br><li><p>16</p></li><br><li><p>32</p></li><br><li><p>63</p></li><br><li><p>125</p></li><br><li><p>240</p></li><br><li><p>500</p></li><br><li><p>1000</p></li><br><li><p>2000</p></li><br><li><p>4000</p></li><br><li><p>8000</p></li><br><li><p>16000</p></li><br><li><p>32000</p></li><br><li><p>64000</p></li><br><li><p>128000</p></li><br></ul> | `RESET_S3_TIMER_n`（单位：毫秒） |
| uvlo-config | `PMIC_INDEX`：配置各种 PMIC 的欠压锁定阈值。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_A</span> <span class="pre">(PMK7325)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_B</span> <span class="pre">(PM7325)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_C</span> <span class="pre">(PM7350C)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_D</span> <span class="pre">(PM7325B)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_E</span> <span class="pre">(PMR735A)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_I</span> <span class="pre">(PM7250B)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_K</span> <span class="pre">(PMG1110)</span></code></p></li><br></ul> | 当 PMIC 的输入电压达到欠压锁定 (UVLO) 阈值时，设备会突然关闭。为 Qualcomm 参考设备中的每个 PMIC配置 UVLO 阈值。`pmic_index` 用于选择需要更改阈值的 PMIC。 |
| uvlo-config | `uvlo_thresh` | UINT32 | mV | UVLO 阈值（单位：毫伏） |
| uvlo-config | `uvlo_hyst` | UINT32 | mV | UVLO 迟滞值（单位：毫伏） |
| uvlo-config | `uvlo_enable` | Boolean | `PM_ENABLE`<br><br><br>`PM_DISABLE` | 该属性可使 DT 设置生效。如果为 `PM_ DISABLE`，则对硬件默认设置进行编程。 |
| ovlo-config | `PMIC_INDEX`：配置各种 PMIC 的过压锁定阈值。 | `PMIC_INDEX` | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_A</span> <span class="pre">(PMK7325)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_B</span> <span class="pre">(PM7325)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_C</span> <span class="pre">(PM7350C)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_D</span> <span class="pre">(PM7325B)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_E</span> <span class="pre">(PMR735A)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_I</span> <span class="pre">(PM7250B)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_K</span> <span class="pre">(PMG1110)</span></code></p></li><br></ul> | 当 PMIC 的输入电压达到过压锁定 (OVLO) 阈值时，设备会突然关闭。为 Qualcomm 参考设备中的每个 PMIC配置 OVLO 阈值。`pmic_index` 用于选择需要更改阈值的 PMIC。 |
| ovlo-config | `ovlo_thresh` | – | mV | OVLO 阈值（单位：毫伏） |
| ovlo-config | `ovlo_hyst` | – | mV | OVLO 迟滞值（单位：毫伏） |
| ovlo-config | `ovlo_enable` | – | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_</span> <span class="pre">ENABLE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_</span> <span class="pre">DISABLE</span></code></p></li><br></ul> | 该属性可使 DT 设置生效。如果为 `PM_ DISABLE`，则对硬件默认设置进行编程。 |
| Long-pwrkey-dbnc-chk | `dbnc-time-ms`：电源键去抖动时间，以检查有效的按键响应以启动设备。 | UINT32 | ms | 如果在配置的 `dbnc-time-ms` 持续时间内未按下电源键，则设备会在启动期间根据配置 `chk-at` 在 XBL 或 UEFI 中关闭。 |
| Long-pwrkey-dbnc-chk | `chk-at`：在 XBL 或 UEFI 阶段检查按键。 | UINT8 | 0, 1, 2 | <ul class="simple"><br><li><p>0 = 不检查</p></li><br><li><p>1 = 签入 XBL Loader 阶段</p></li><br><li><p>2 = 签入 XBL Core (UEFI)</p></li><br></ul> |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | 详细：选择 PON 日志级别。 | UINT32 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_EVENT_LOG_LEVEL_MIN</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_EVENT_LOG_LEVEL_VERBOSE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_EVENT_LOG_LEVEL_RAWDATA</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_EVENT_LOG_LEVEL_MAX</span></code></p></li><br></ul> | PON 日志显示了设备开机、关机和故障的各种原因。<br><br><br><br>> <br>> <br>> <ul class="simple"><br>> <li><p>在 UART 日志中打印的 PON 日志的最小版本</p></li><br>> <li><p>UART 日志中打印详细 PON 日志。</p></li><br>> <li><p>在在 PON 日志中打印的 Verbose 解析 PON 日志和 RAW SDAM 寄存器数据</p></li><br>> </ul> |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_LDO_SET_ENABLE`：启用 LDO。 | UINT32 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_LDO_SET_VOLT`：设置 LDO 电压。 | UINT32 | mV | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_LDO_SET_MODE`: 设置 LDO 模式。 | UINT32 | <ul class="simple"><br><li><p>0: 低功耗</p></li><br><li><p>1: 旁路</p></li><br><li><p>3: 常规电源模式</p></li><br><li><p>4：保留模式</p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_LDO_SET_PD_CTR`：设置 LDO 的下拉。 | UINT32 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_LDO_SET_PIN_CTRL`：启用 LDO 的引脚控制 | UINT32 | <ul class="simple"><br><li><p>0: HWEN0</p></li><br><li><p>1: HWEN1</p></li><br><li><p>2: HWEN2</p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_LDO_SET_OCP_BROADCAST`：启用 LDO OCP 广播，以可在 OCP 时关闭设备。 | UINT32 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_LDO_SET_AHC`：启用 LDO 自动 head room 控制。 | UINT32 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_LDO_SET_ULS`：设置 LDO 电压上限。 | UINT32 | mV | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_SMPS_SET_AHC_HR`：配置 SMPS AHC 预留 head room。 | UINT32 | <ul class="simple"><br><li><p>0x0: 0mV</p></li><br><li><p>0x1: 8mV</p></li><br><li><p>0x1: 8mV</p></li><br><li><p>0x1: 8mV</p></li><br><li><p>0x1: 8mV</p></li><br><li><p>0x2: 16mV</p></li><br><li><p>0x3: 24mV</p></li><br><li><p>0x4: 32mV（默认）</p></li><br><li><p>0x5: 40mV</p></li><br><li><p>0x6: 48mV</p></li><br><li><p>0x7: 56mV</p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_SMPS_SET_ENABLE`：启用 SMPS | UINT32 | <ul class="simple"><br><li><p>PM_TRUE</p></li><br><li><p>PM_FALSE</p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_SMPS_SET_VOLT`：设置 SMPS 电压。 | UINT32 | mV | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_SMPS_SET_MODE`：设置 SMPS 模式。 | UINT32 | <ul class="simple"><br><li><p>0: 低功耗</p></li><br><li><p>2：自动模式</p></li><br><li><p>3: 常规电源模式</p></li><br><li><p>4：保留模式</p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_SMPS_SET_PD_CTRL`：设置 SMPS 的下拉方式。 | UINT32 | <ul class="simple"><br><li><p>PM_TRUE</p></li><br><li><p>PM_FALSE</p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_SMPS_SET_PIN_CTRL`：启用 SMPS 的引脚控制 | UINT32 | <ul class="simple"><br><li><p>0: HWEN0</p></li><br><li><p>1: HWEN1</p></li><br><li><p>2: HWEN2</p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_SMPS_SET_OCP_BROADCAST`：启用 SMPS OCP 广播，以可在 OCP 时关闭设备。 | UINT32 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `T PM_SMPS_SET_AHC`：启用 SMPS 自动 head room 控制。 | UINT32 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_SMPS_SET_ULS`：设置 SMPS 电压的上限。 | UINT32 | mV | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_GPIO_SET_ENABLE`：启用 GPIO。 | UINT32 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_GPIO_SET_CFG_MODE`：配置 GPIO 模式。 | UINT32 | <ul class="simple"><br><li><p>0: <code class="docutils literal notranslate"><span class="pre">PM_GPIO_DIG_IN</span></code></p></li><br><li><p>1: <code class="docutils literal notranslate"><span class="pre">PM_GPIO_DIG_OUT</span></code></p></li><br><li><p>2: <code class="docutils literal notranslate"><span class="pre">PM_GPIO_DIG_IN_OUT</span></code></p></li><br><li><p>3: <code class="docutils literal notranslate"><span class="pre">PM_GPIO_ANA_PASS_THRU</span></code></p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_GPIO_SET_OUTPUT_LVL`：设置 GPIO 输出电平。 | UINT32 | <ul class="simple"><br><li><p>0: 引脚电平低</p></li><br><li><p>1: 引脚电平高</p></li><br><li><p>2 - 引脚电平为 Hi-Z</p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_GPIO_SET_VOLT_SRC`：选择 1.8 V 或 3.6 V 的 GPIO 电压源。 | UINT32 | <ul class="simple"><br><li><p>0: <code class="docutils literal notranslate"><span class="pre">PM_GPIO_VIN0</span></code></p></li><br><li><p>1: <code class="docutils literal notranslate"><span class="pre">PM_GPIO_VIN1</span></code></p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_GPIO_SET_OUT_BUFF_CONFIG`：选择 GPIO 输出缓存配置。 | UINT32 | <ul class="simple"><br><li><p>0: CMOS 输出</p></li><br><li><p>1：开漏 NMOS 输出</p></li><br><li><p>2: PMOS 开漏输出</p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_GPIO_SET_OUT_SRC_CFG`：选择 GPIO 输出源配置。 | UINT32 | <ul class="simple"><br><li><p>0: 接地</p></li><br><li><p>1: 配对 GPIO</p></li><br><li><p>2: 特殊功能 1</p></li><br><li><p>3: 特殊功能 2</p></li><br><li><p>4: 特殊功能 3</p></li><br><li><p>5: 特殊功能 4</p></li><br><li><p>6: D-test 1</p></li><br><li><p>7: D-test 2</p></li><br><li><p>8: D-test 3</p></li><br><li><p>9：L D 测试 4</p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_GPIO_SET_OUT_DRV_STR`：选择 GPIO 引脚驱动强度。 | UINT32 | <ul class="simple"><br><li><p>0: 输出缓存强度低。</p></li><br><li><p>1: 输出缓存强度中等。</p></li><br><li><p>2: 输出缓存强度高。</p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_GPIO_SET_PULL_SEL`：选择 GPIO 上下拉设置。 | UINT32 | <ul class="simple"><br><li><p>0：30μA 恒定上拉</p></li><br><li><p>1：31.5μA 恒定上拉</p></li><br><li><p>3：1.5μA 恒定上拉与 30μA 升压相结合</p></li><br><li><p>4：10μA 恒定下拉</p></li><br><li><p>5: 无上下拉</p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_SET_DELAY` 在任意 2 个 API 调用之间添加延迟。 | UINT32 | 延迟（单位：微秒） | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_CLK_ENABLE`：启用时钟，例如 ln\_bb\_clk、rf\_clk。 | UINT32 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_CLK_DRV_STR`：选择时钟的驱动强度。 | UINT32 | 0-63 | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_SPMI_CLK_DATA_CFG`：选择 SPMI 驱动强度。 | UINT32 | <ul class="simple"><br><li><p>0x0: LOW10PF</p></li><br><li><p>0x1: MID20PF</p></li><br><li><p>0x2: HIGH40PF</p></li><br><li><p>0x3: VERYHIGH50PF</p></li><br></ul> | 配置 LDO。请参阅 [SMPS/LDO/CLK 示例代码](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html#section-m4y-zkw-51c) |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PM_BUSID`：选择 SPMI 总线。 | UINT32 | `PM_BUSID_0` | 必须为 PM\_BUSID\_0 |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PMIC_Index`：选择 PMIC。 | UINT32 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_A</span> <span class="pre">(PMK7325)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_B</span> <span class="pre">(PM7325)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_C</span> <span class="pre">(PM7350C)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_D</span> <span class="pre">(PM7325B)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_E</span> <span class="pre">(PMR735A)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_I</span> <span class="pre">(PM7250B)</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PMIC_K</span> <span class="pre">(PMG1110)</span></code></p></li><br></ul> | 参见 `/boot_images/boot/Settings/ Include/pm_defines.h` |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | `PMIC_Peripheral`：选择 LDO、SMPS、时钟、GPIO 编号。 | UINT32 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_LDO_x</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_SMPS_x</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_CLK_x</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_GPIO_x</span></code></p></li><br></ul> | 参见：<br><br><br>`/boot_images/boot/Settings/Include/ pm_defines.h`<br><br><br>`/boot_images/boot/QcomPkg/`<br><br><br>包括 `/api/pmic/pm/pm_gpio.h`（用于 GPIO 枚举） |
| sw-config<br><br><br>为了在启动时修改各种 LDO、SMPS、时钟、GPIO 的 PMIC 软件配置 | API 参数自变量 | UINT32 | `PM_TRUE`, `PM_FALSE`<br><br><br>或<br><br><br>`Integer`<br><br><br>或<br><br><br>`Enum` | 参见 `/boot_images/boot/Settings/Include/ pm_defines.h`<br><br><br>`/boot_images/boot/QcomPkg/`<br><br><br>包括 `/api/pmic/pm/pm_gpio.h`（用于 GPIO 枚举） |
| Access 权限 (access.dtsi)<br><br><br>为了修改/启用对不同子系统（例如 AOP、APSS、UEFI、TZ、MSS BUSID）的 PMIC 外设的写入访问：选择 SPMI 总线 | `UINT32` | <ul class="simple"><br><li><p>PM_BUSID_0</p></li><br><li><p>PM_BUSID_1</p></li><br></ul> | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_BUSID_0</span></code>– 用于SPMI0 总线辅助设备</p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_BUSID_1</span></code>– 用于SPMI1 总线辅助设备</p></li><br></ul> | – |
| Access 权限 (access.dtsi)<br><br><br>为了修改/启用对不同子系统（例如 AOP、APSS、UEFI、TZ、MSS BUSID）的 PMIC 外设的写入访问：选择 SPMI 总线 | `SecondaryID`: 选择辅助 ID。 | UINT32 | <ul class="simple"><br><li><p>0: <code class="docutils literal notranslate"><span class="pre">PMIC_A</span> <span class="pre">(PMK7325)</span></code></p></li><br><li><p>1: <code class="docutils literal notranslate"><span class="pre">PMIC_B</span> <span class="pre">(PM7325)</span></code></p></li><br><li><p>2: <code class="docutils literal notranslate"><span class="pre">PMIC_C</span> <span class="pre">(PM7350C)</span></code></p></li><br><li><p>3: <code class="docutils literal notranslate"><span class="pre">PMIC_D</span> <span class="pre">(PM7325B)</span></code></p></li><br><li><p>4: <code class="docutils literal notranslate"><span class="pre">PMIC_E</span> <span class="pre">(PMR735A)</span></code></p></li><br><li><p>8: <code class="docutils literal notranslate"><span class="pre">PMIC_I</span> <span class="pre">(PM7250B)</span></code></p></li><br><li><p>9: <code class="docutils literal notranslate"><span class="pre">PMIC_I</span> <span class="pre">(PM7250B)</span></code></p></li><br></ul> | – |
| Access 权限 (access.dtsi)<br><br><br>为了修改/启用对不同子系统（例如 AOP、APSS、UEFI、TZ、MSS BUSID）的 PMIC 外设的写入访问：选择 SPMI 总线 | `PERIPH (PPID)`：在 PMIC 中选择外设。 | UINT32 | PMIC 外设寄存器基址<br><br><br>0x1 至 0xFF | PMIC 外设寄存器基址。<br><br><br>示例：<br><br><br><br>> <br>> <br>> <ul class="simple"><br>> <li><p>对于 PM7325，GPIO_01 PPID 为 0x88</p></li><br>> <li><p>对于 PMK7325，PON_PBS PPID 为 0x08</p></li><br>> </ul> |
| Access 权限 (access.dtsi)<br><br><br>为了修改/启用对不同子系统（例如 AOP、APSS、UEFI、TZ、MSS BUSID）的 PMIC 外设的写入访问：选择 SPMI 总线 | `OPERATION` 添加或删除具有权限的通道。 | UINT32 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">APPEND</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">REMOVE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">APPEND_WITH_IRQ</span></code></p></li><br></ul> | <ul class="simple"><br><li><p>APPEND：为 PMIC 外设添加一个通道，定义的 DRV 具有写入权限。保留默认通道设置。</p></li><br><li><p>删除：为具有已定义 DRV 的 PMIC 外设移除通道。</p></li><br><li><p>APPEND_WITH_IRQ：为具有已定义 DRV 的 PMIC 外设添加通道，覆盖了默认的 IRQ 所有者 DRV。在这种情况下，写入权限 DRV 将保留默认设置。</p></li><br></ul><br><br><br>> <br>> <br>> Note<br>> <br>> <br>> 只能有一个 IRQ DRV 所有者，但可以有多个写入权限 DRV。 |
| Charger | pmic-index-charger：选择 PMIC 充电索引 | UINT32 | `PMIC_D` or `PMIC_I` | 主充电 PMIC 索引 |
| Charger | `Dead-battery-threshold`：设置无电量电池阈值。 | UINT32 | 2800 -3300 | DBC 阈值（单位：毫伏）XBL 允许您在事件发生后启动至 UEFI。 |
| Charger | `ichg-fs-cfg-enable`：将充电电流范围增加至 20A。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 该标志用于检查是否应应用满量程充电电流设置 |
| Charger | `ichg-fs-cfg-value` | UINT32 | <ul class="simple"><br><li><p>0: 10A</p></li><br><li><p>1: 20A</p></li><br></ul> | 支持满量程充电电流-0：10A； 1：20A。 |
| Charger | `pm-chg-batt-cfg-enable`：选择 1 S 或 2 S 的电池类型。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 检查是否应应用 1S 或 2S 电池配置的标记。 |
| Charger | `pm-chg-batt-cfg-is_1s_battery` | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 表示是否存在 1S 或 2S 电池 |
| Charger | `dbg-board-id-cfg-min-id-ohms`：用于调试板检测的最小值 `batt_id`（以欧姆为单位）。 | UINT32 | 2000 | 带调试板的无电池平台，`batt_id` 应在此最小和最大范围内，以跳过电池充电。 |
| Charger | `dbg-board-id-cfg-max-id-ohms`：调试板检测的最大值 `batt_id`（以欧姆为单位）。 | UINT32 | 14000 | 带调试板的无电池平台，`batt_id` 应在此最小和最大范围内，以跳过电池充电。 |
| Charger | `afp-cfg-too-hot-threshold`：设置高温时的 AFP 阈值温度。 | UINT32 | 温度（单位：摄氏度） | 如果电池温度超过任何 AFP 阈值，设备将自动关闭。<br><br><br>示例：75 C |
| Charger | `afp-cfg-too-hot-enable`：启用/禁用 AFP 以进行高温阈值配置 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 达到高温阈值时启用/禁用 AFP。<br><br><br>如果为 `PM_FALSE`，则对硬件默认设置进行编程。 |
| Charger | `afp-cfg-too-cold-threshold`：AFP 低温阈值温度。 | UINT32 | 温度（单位：摄氏度） | 示例：-20 C |
| Charger | `afp-cfg-too-cold-enable`：启用/禁用 AFP 以进行低温阈值配置 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 达到低温阈值时启用/禁用 AFP。<br><br><br>如果为 `PM_FALSE`，则对硬件默认设置进行编程。 |
| Charger | `no-batt-cfg-enable`: 启用无电池配置。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 如果选择 `PM_TRUE`，则如果未检测到电池，设备将自动启动。 |
| Charger | `no-batt-cfg-boot-without-batt`：未检测到电池时继续启动。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 如果为 `PM_FALSE`，则如果未检测到电池，设备将自动关闭。 |
| Charger | `no-batt-cfg-icl-value_ma`：设置无电池平台的输入电流限制。 | UINT32 | 0-5000 | 输入电流限值（单位：mA） |
| Charger | `float-voltage-cfg-enable`: 配置最大电池电压。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 如果为 `PM_FALSE`，则对硬件默认设置进行编程。 |
| Charger | `float-voltage-cfg-value-mv` | UINT8 | 0-4500 | 充电时的最大电池电压 |
| Charger | `pre-charging-current-cfg-enable`：配置预充电电流。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 如果为 `PM_FALSE`，则对硬件默认设置进行编程。 |
| Charger | `pre-charging-current-cfg-value-ma` | UINT32 | 0-600 | 当电池电压 &lt; Vsys\_min 时的预充电电流（单位：mA）<br><br><br>Ex: 3V |
| Charger | `fast-charging-current-enable`：配置快速充电电流。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 如果为 PM\_FALSE，则对硬件默认设置进行编程。 |
| Charger | `fast-charging-current-value-ma` | UINT32 | 0 - 10000 | – |
| Charger | `usbin-input-current-enable`：配置 USB 输入电流限值。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 如果为 PM\_FALSE，则对硬件默认设置进行编程。 |
| Charger | `usbin-input-current-value-ma` | UINT32 | 0-5000 | USB 输入电流配置 |
| Charger | `dam-cable-chg-enable`：启用 DAM 线充电。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 如果为 PM\_FALSE，则对硬件默认设置进行编程。<br><br><br>默认情况下，硬件禁用 DAM 线充电 |
| Charger | `dam-cable-aicl-enable`：为 DAM 线启用 AICL。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 如果为 PM\_FALSE，则对硬件默认设置进行编程。<br><br><br>默认情况下，硬件禁用 DAM 线 AICL。 |
| Charger | secondary-charger-present：表示 Qualcomm 辅助充电器存在。 | UINT8 | <ul class="simple"><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_TRUE</span></code></p></li><br><li><p><code class="docutils literal notranslate"><span class="pre">PM_FALSE</span></code></p></li><br></ul> | 辅助充电器设置 |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |

## SMPS/LDO/CLK 示例代码

- driver-post-init = &lt;
    - // PM\_SMPS\_SET\_AHC\_HR        PM\_BUSID\_0   PMIC\_C  PM\_SMPS\_1    0x57
// PM\_SMPS\_SET\_ULS           PM\_BUSID\_0   PMIC\_F  PM\_SMPS\_6    1375000          /*The Voltage is in microVolts*/
// PM\_LDO\_SET\_ULS            PM\_BUSID\_0   PMIC\_F  PM\_SMPS\_6    1375000          /*The Voltage is in microVolts*/
// PM\_CLK\_ENABLE             PM\_BUSID\_0   PMIC\_A  PM\_CLK\_RF\_1  PM\_TRUE
// PM\_SMPS\_SET\_VOLT          PM\_BUSID\_0   PMIC\_B  PM\_SMPS\_1    1200
// PM\_SMPS\_SET\_AHC           PM\_BUSID\_0   PMIC\_B  PM\_SMPS\_1    PM\_FALSE
// PM\_LDO\_SET\_AHC            PM\_BUSID\_0   PMIC\_B  PM\_LDO\_1     PM\_FALSE
// PM\_LDO\_SET\_VOLT           PM\_BUSID\_0   PMIC\_B  PM\_LDO\_1     1200
// PM\_LDO\_SET\_MODE           PM\_BUSID\_0   PMIC\_B  PM\_LDO\_1     PM\_SW\_MODE\_NPM
// PM\_SMPS\_SET\_MODE          PM\_BUSID\_0   PMIC\_B  PM\_SMPS\_1    PM\_SW\_MODE\_NPM
// PM\_SMPS\_SET\_PD\_CTRL       PM\_BUSID\_0   PMIC\_B  PM\_SMPS\_1    PM\_TRUE
// PM\_SMPS\_SET\_PIN\_CTRL      PM\_BUSID\_0   PMIC\_B  PM\_SMPS\_1    PM\_TRUE
// PM\_SMPS\_SET\_OCP\_BROADCAST PM\_BUSID\_0   PMIC\_B  PM\_SMPS\_1    PM\_TRUE
// PM\_LDO\_SET\_PD\_CTRL        PM\_BUSID\_0   PMIC\_B  PM\_LDO\_1     PM\_TRUE
// PM\_LDO\_SET\_PIN\_CTRL       PM\_BUSID\_0   PMIC\_B  PM\_LDO\_1     PM\_TRUE
// PM\_LDO\_SET\_OCP\_BROADCAST  PM\_BUSID\_0   PMIC\_B  PM\_LDO\_1     PM\_TRUE
// PM\_CLK\_DRV\_STR            PM\_BUSID\_0   PMIC\_A  PM\_CLK\_RF\_1  3
// PM\_SMPS\_SET\_ENABLE        PM\_BUSID\_0   PMIC\_B  PM\_SMPS\_1    PM\_TRUE
// PM\_LDO\_SET\_ENABLE         PM\_BUSID\_0   PMIC\_B  PM\_LDO\_1     PM\_TRUE
// PM\_SPMI\_CLK\_DATA\_CFG      PM\_BUSID\_0   PMIC\_A  0x2          0x2              /*BUS\_ID, PMIC\_ID, CLK buff Config, DATA buff Config*/
PM\_DELAY(10)
&gt; ;

Last Published: Jan 24, 2025

[Previous Topic
启动](https://docs.qualcomm.com/bundle/publicresource/80-70017-4SC/topics/boot-developer-touchpoints.md) [Next Topic
TLMM](https://docs.qualcomm.com/bundle/publicresource/80-70017-4SC/topics/tlmm-developer-touchpoints.md)

Source: [https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html](https://docs.qualcomm.com/doc/80-70017-4SC/topic/pmic-developer-touchpoints.html)