为IP5306 PMIC驱动添加了硬件看门狗脉冲生成功能,通过RTC2、GPIOTE和PPI外设实现硬 件级的唤醒脉冲生成。当配置keepalive-hardware属性时,系统将使用硬件方式而非软件 定时器来产生看门狗脉冲。 在设备树中新增keepalive-hardware布尔属性,用于启用硬件看门狗功能,并相应更新了 驱动程序以支持软硬件两种看门狗模式的选择。 相关的DTS文件和配置也进行了相应调整,包括添加必要的nRF52硬件抽象层依赖以及 RTC2和GPIOTE相关配置选项。
26 lines
691 B
YAML
26 lines
691 B
YAML
description: Injoinic IP5306 PMIC with selectable software or hardware wakeup keepalive support
|
|
|
|
compatible: "injoinic,ip5306"
|
|
|
|
include: i2c-device.yaml
|
|
|
|
properties:
|
|
wakeup-gpios:
|
|
type: phandle-array
|
|
required: true
|
|
description: GPIO used to generate the wakeup keepalive pulse.
|
|
|
|
keepalive-interval-ms:
|
|
type: int
|
|
required: true
|
|
description: Period between two keepalive pulses, measured from pulse start.
|
|
|
|
keepalive-pulse-width-ms:
|
|
type: int
|
|
required: true
|
|
description: Active-high pulse width for the keepalive wakeup GPIO.
|
|
|
|
keepalive-hardware:
|
|
type: boolean
|
|
description: Enable RTC2 plus GPPI plus GPIOTE based hardware keepalive pulses.
|