Browse Source

wifi: nrf70: configurable IOVDD settling delay

Make the IOVDD settling delay configurable, instead of hardcoding a
delay that happens to work for the dev kits. For example, the nPM1300
load switches have a soft-start time of 1.8 ms.

Signed-off-by: Jordan Yates <jordan@embeint.com>
pull/88645/head
Jordan Yates 3 months ago committed by Benjamin Cabé
parent
commit
b7542f17fa
  1. 7
      dts/bindings/wifi/nordic,nrf70.yaml
  2. 4
      modules/nrf_wifi/bus/rpu_hw_if.c

7
dts/bindings/wifi/nordic,nrf70.yaml

@ -22,3 +22,10 @@ properties:
description: | description: |
GPIO of the RF Switch to control SR RF output to either SR Antenna GPIO of the RF Switch to control SR RF output to either SR Antenna
or shared Antenna with Wi-Fi or shared Antenna with Wi-Fi
iovdd-power-up-delay-ms:
type: int
default: 1
description: |
Duration to wait after enabling IOVDD before attempting communications.
Default value of 1 comes from the nRF7002 DK/EK switch (TCK106AG): ~600us

4
modules/nrf_wifi/bus/rpu_hw_if.c

@ -239,8 +239,8 @@ static int rpu_pwron(void)
gpio_pin_set_dt(&bucken_spec, 0); gpio_pin_set_dt(&bucken_spec, 0);
return ret; return ret;
} }
/* Settling time for iovdd nRF7002 DK/EK - switch (TCK106AG): ~600us */ /* Settling time for IOVDD */
k_msleep(1); k_msleep(DT_PROP(NRF7002_NODE, iovdd_power_up_delay_ms));
if ((bucken_spec.port == iovdd_ctrl_spec.port) && if ((bucken_spec.port == iovdd_ctrl_spec.port) &&
(bucken_spec.pin == iovdd_ctrl_spec.pin)) { (bucken_spec.pin == iovdd_ctrl_spec.pin)) {

Loading…
Cancel
Save