Re: how to describe a peripheral with power enable pin


Peter A. Bigot
 

The regulators API was designed for this purpose.  For a simple GPIO you should just be able to use a supply-gpios property in the devicetree node.  See https://docs.zephyrproject.org/latest/reference/peripherals/regulators.html

Peter

Join devel@lists.zephyrproject.org to automatically receive all group messages.