I'm currently writing a zephyr device driver for an accelerometer (ST lis2dux12). In our design this accelerometer is powered using a gpio port to make hard reboots of the sensor possible. The corresponding gpio is specified using supply-gpios:
lis2dux12: lis2dux12@0 { compatible = "st,lis2dux12"; reg = <0>; spi-max-frequency = <10000000>; irq-gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>, <&gpio0 30 GPIO_ACTIVE_HIGH>; range = <2>; power-mode = <0>; odr = <2>; supply-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>; };
My question: Is Zephyr power management already doing something with this supply-gpios parameter, like setting it high during the boot of the device? Or should all the power-up logic be implemented in the driver itself? I could not find any documentation about this.