All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/4] media: i2c: imx412: Add regulator control to imx412
@ 2022-04-15 11:59 Bryan O'Donoghue
  2022-04-15 11:59 ` [PATCH v5 1/4] media: i2c: imx412: Fix reset GPIO polarity Bryan O'Donoghue
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Bryan O'Donoghue @ 2022-04-15 11:59 UTC (permalink / raw)
  To: sakari.ailus, jacopo, paul.j.murphy, daniele.alessandrelli,
	mchehab, linux-media, devicetree
  Cc: robert.foss, hfink, jgrahsl, dmitry.baryshkov,
	vladimir.zapolskiy, bryan.odonoghue

V5:
- Adds in a fix for the GPIO reset. I was a bit worried that this change
  would negatively affect the Intel people. Looking around on Google I
  found that the imx412 is/was used on a system called Keem Bay which is a
  DTS based system so TL;DR its both safe and right to make this change.
- Front loads the clock/gpio ordering fix.
- Adds "Fixes" and Cc: stable for the two associated fixes
- Changes num_supplies to ARRAY_SIZE(supplies) - Jacopo

V4:
- Further asks on placing arguments on the same line - Saraki
- Moves regulator_bulk_disable() to common error path - Saraki
- Fixes power_off ordering so that power_off and power_on have the same
  flow - Bryan

V3:
- int num_supplies -> unsigned int num_supplied - Saraki
- Move imx412->num_supplies to same line as devm_regulator_bulk_get - Saraki
- Return ret on regulator_bulk_enable() - Saraki
- Remember to regulator_bulk_disable() on !clk_prepare_enable() - Saraki

V2:
- Drops redundant verbage "Definition of the" from each of the newly defined
  regulators - Krzysztof Kozlowski
- Adds Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
- "description: thing described" to the same line in new additions
  following the established way of doing it in this file - bod

V1:
The imx412 has three regulators which depending on platform may need to be
individually enabled.

- dovdd
- avdd
- dvdd

Existing code for an Intel platform doesn't appear to need to enable these
rails directly. On my reference hardware, a Qualcomm Thundercomm RB5 some
of these rails do need to be enabled individually.

Add in the above named rails as optional in the YAML in the first patch
along with code to switch them on in the second patch.

Existing imx412 users should get dummy regulators populated which the
regulator_bulk_enable()/regulator_bulk_disable() code can safely ignore.

Bryan O'Donoghue (4):
  media: i2c: imx412: Fix reset GPIO polarity
  media: i2c: imx412: Fix power_off ordering
  media: dt-bindings: imx412: Add regulator descriptions
  media: i2c: imx412: Add bulk regulator support

 .../bindings/media/i2c/sony,imx412.yaml       |  9 +++++
 drivers/media/i2c/imx412.c                    | 38 +++++++++++++++++--
 2 files changed, 43 insertions(+), 4 deletions(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-05-06 14:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-15 11:59 [PATCH v5 0/4] media: i2c: imx412: Add regulator control to imx412 Bryan O'Donoghue
2022-04-15 11:59 ` [PATCH v5 1/4] media: i2c: imx412: Fix reset GPIO polarity Bryan O'Donoghue
2022-04-25 14:41   ` Alessandrelli, Daniele
2022-04-15 11:59 ` [PATCH v5 2/4] media: i2c: imx412: Fix power_off ordering Bryan O'Donoghue
2022-04-25 14:43   ` Alessandrelli, Daniele
2022-04-15 11:59 ` [PATCH v5 3/4] media: dt-bindings: imx412: Add regulator descriptions Bryan O'Donoghue
2022-04-15 11:59 ` [PATCH v5 4/4] media: i2c: imx412: Add bulk regulator support Bryan O'Donoghue
2022-04-15 15:12   ` Jacopo Mondi
2022-04-26 16:52   ` Alessandrelli, Daniele
2022-05-06 14:26   ` Sakari Ailus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.