linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Make AUX gpio pin optional for ktd2692
@ 2022-04-07 11:51 Markuss Broks
  2022-04-07 11:51 ` [PATCH v3 1/2] dt-bindings: leds: convert ktd2692 bindings to yaml Markuss Broks
  2022-04-07 11:51 ` [PATCH v3 2/2] leds: ktd2692: Make aux-gpios optional Markuss Broks
  0 siblings, 2 replies; 4+ messages in thread
From: Markuss Broks @ 2022-04-07 11:51 UTC (permalink / raw)
  To: linux-kernel
  Cc: phone-devel, ~postmarketos/upstreaming, Markuss Broks,
	Pavel Machek, Rob Herring, Christophe JAILLET, Linus Walleij,
	linux-leds, devicetree

Some appliances of ktd2692 don't have the AUX pin connected to
a GPIO. Specifically, Samsung Galaxy J5 (2015), which uses ktd2692
for driving the front flash LED, has the pin not connected anywhere on
schematics. Make specifying the AUX pin optional, since it is additional
functionality and only affects amount of current going through the LED.

Also convert the txt device-tree bindings to yaml and pick up maintainership
over the yaml binding and the driver itself.

v2:
- fix the dt_binding_check
v3:
- set the aux_gpio to NULL to avoid passing ERR_PTR as a gpio

Markuss Broks (2):
  dt-bindings: leds: convert ktd2692 bindings to yaml
  leds: ktd2692: Make aux-gpios optional

 .../bindings/leds/kinetic,ktd2692.yaml        | 87 +++++++++++++++++++
 .../devicetree/bindings/leds/leds-ktd2692.txt | 50 -----------
 MAINTAINERS                                   |  6 ++
 drivers/leds/flash/leds-ktd2692.c             | 18 ++--
 4 files changed, 103 insertions(+), 58 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/leds/kinetic,ktd2692.yaml
 delete mode 100644 Documentation/devicetree/bindings/leds/leds-ktd2692.txt

-- 
2.35.1


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

end of thread, other threads:[~2022-04-08 11:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07 11:51 [PATCH v3 0/2] Make AUX gpio pin optional for ktd2692 Markuss Broks
2022-04-07 11:51 ` [PATCH v3 1/2] dt-bindings: leds: convert ktd2692 bindings to yaml Markuss Broks
2022-04-07 11:51 ` [PATCH v3 2/2] leds: ktd2692: Make aux-gpios optional Markuss Broks
2022-04-08 11:05   ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).