Hi,
I have successfully run the nPM1300_ek sample code on the nRF52832 by connecting GND and i2c lines, and I am now trying to use the nRF54H20... As this board does not have arduino_i2c label and guided by this post ( Working around missing shield labels (on the nRF9160 DK)) I decided to copy the overlay from "C:\ncs\v2.7.0\zephyr\boards\shields\npm1300_ek" to my overlay file:
&i2c132 {
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;
pinctrl-0 = <&i2c_132_default>;
pinctrl-1 = <&i2c_132_sleep>;
pinctrl-names = "default", "sleep";
npm1300_ek_pmic: ...
I am also adding the following to pinctrl:
i2c_132_default: i2c_132_default {
group1 {
psels = <NRF_PSEL(TWIM_SCL, 2, 1)>,
<NRF_PSEL(TWIM_SDA, 2, 7)>;
bias-pull-up;
};
};
i2c_132_sleep: i2c_132_sleep {
group1 {
psels = <NRF_PSEL(TWIM_SCL, 2, 1)>,
<NRF_PSEL(TWIM_SDA, 2, 7)>;
bias-pull-up;
low-power-enable;
};
};
And the prj has the following:
CONFIG_REGULATOR=y
CONFIG_SENSOR=y
CONFIG_LED=y
CONFIG_I2C=y
When the code calls device_is_ready() for leds, pmic, regulators and charger, they all give that the device is not ready... I can see that they are defined in the generated dts file...
What could I be missing?
Is there something I can do to troubleshoot this?
Thanks!