mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-14 19:01:55 +00:00
Lower the priority of the npm1300 gpio driver. The GPIOs are used by some regulator nodes in the default shield config, but regulators are initialized before the gpios. Lowering the GPIO priority to sort thigs out. Found with the build time priority checking feature: $ west build -p -b nrf52dk_nrf52832 samples/shields/npm1300_ek \ -DCONFIG_CHECK_INIT_PRIORITIES=y ... ERROR: /soc/i2c@40003000/pmic@6b/regulators/LDO2 POST_KERNEL 76 < /soc/i2c@40003000/pmic@6b/gpio-controller POST_KERNEL 80 ERROR: /soc/i2c@40003000/pmic@6b/regulators/LDO1 POST_KERNEL 76 < /soc/i2c@40003000/pmic@6b/gpio-controller POST_KERNEL 80 ERROR: /soc/i2c@40003000/pmic@6b/regulators/BUCK2 POST_KERNEL 76 < /soc/i2c@40003000/pmic@6b/gpio-controller POST_KERNEL 80 ERROR: /soc/i2c@40003000/pmic@6b/regulators POST_KERNEL 75 < /soc/i2c@40003000/pmic@6b/gpio-controller POST_KERNEL 80 ERROR: /soc/i2c@40003000/pmic@6b/regulators POST_KERNEL 75 < /soc/i2c@40003000/pmic@6b/gpio-controller POST_KERNEL 80 ERROR: /soc/i2c@40003000/pmic@6b/regulators POST_KERNEL 75 < /soc/i2c@40003000/pmic@6b/gpio-controller POST_KERNEL 80 Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
20 lines
502 B
Plaintext
20 lines
502 B
Plaintext
# Copyright (c) 2023 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config GPIO_NPM1300
|
|
bool "nPM1300 GPIO driver"
|
|
default y
|
|
depends on DT_HAS_NORDIC_NPM1300_GPIO_ENABLED
|
|
select I2C
|
|
select MFD
|
|
help
|
|
Enable the nPM1300 GPIO driver.
|
|
|
|
config GPIO_NPM1300_INIT_PRIORITY
|
|
int "nPM1300 GPIO driver initialization priority"
|
|
depends on GPIO_NPM1300
|
|
default 70
|
|
help
|
|
Initialization priority for the nPM1300 GPIO driver. It must be
|
|
greater than the I2C controller init priority.
|