* Power domain configuration for a i2c module
@ 2019-06-20 22:18 Philip Molloy
0 siblings, 0 replies; only message in thread
From: Philip Molloy @ 2019-06-20 22:18 UTC (permalink / raw)
I could use a little help understanding how to set up a power domain for a i2c module. I have corresponding drivers for each i2c device on the module. The i2c devices are all behind a i2c-mux-gpio and a physical i2c mux due to some interesting hardware design choices. I have written a module power driver that hooks up a power GPIO pin to the runtime power management subsystem by implementing dev_pm_ops, calling pm_runtime_enable(), etc.
In the device tree node corresponding to the module power driver I have added `#power-domain-cells = <0>;` to configure it as a provider. And for each i2c device on the module I've added `power-domains` and `power-domains-names` to configure them as consumers.
I'm stuck on what I need to implement to hook this all up. I've done a fair amount of reading, debugging and looking for examples, but it still isn't evident to me what is done automatically and what I need to implement. For example, i2c-mux-gpio is a platform driver and dev_pm_domain_attach(dev, true) is called from platform_drv_probe() so I thought the domain might just power on when i2c-mux-gpio is probed, but that's not what I experienced. Note, my module power driver is also a platform driver.
Any help would be greatly appreciated.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, back to index
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-20 22:18 Power domain configuration for a i2c module Philip Molloy
Linux-PM Archive on lore.kernel.org
Archives are clonable:
git clone --mirror https://lore.kernel.org/linux-pm/0 linux-pm/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 linux-pm linux-pm/ https://lore.kernel.org/linux-pm \
Newsgroup available over NNTP:
AGPL code for this site: git clone https://public-inbox.org/ public-inbox