| From: |
| Nick Chan <towinchenmi-AT-gmail.com> |
| To: |
| Hector Martin <marcan-AT-marcan.st>, Sven Peter <sven-AT-svenpeter.dev>, Alyssa Rosenzweig <alyssa-AT-rosenzweig.io>, Lee Jones <lee-AT-kernel.org>, Daniel Thompson <danielt-AT-kernel.org>, Jingoo Han <jingoohan1-AT-gmail.com>, Pavel Machek <pavel-AT-ucw.cz>, Rob Herring <robh-AT-kernel.org>, Krzysztof Kozlowski <krzk+dt-AT-kernel.org>, Conor Dooley <conor+dt-AT-kernel.org>, Helge Deller <deller-AT-gmx.de>, Nick Chan <towinchenmi-AT-gmail.com>, asahi-AT-lists.linux.dev, linux-arm-kernel-AT-lists.infradead.org, dri-devel-AT-lists.freedesktop.org, linux-leds-AT-vger.kernel.org, devicetree-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, linux-fbdev-AT-vger.kernel.org |
| Subject: |
| [PATCH v4 RESEND 0/3] Apple DWI backlight driver |
| Date: |
| Sun, 29 Dec 2024 19:11:16 +0800 |
| Message-ID: |
| <20241229111322.4139-1-towinchenmi@gmail.com> |
| Archive-link: |
| Article |
Apple SoCs come with a 2-wire interface named DWI. On some iPhones, iPads
and iPod touches the backlight controller is connected via this interface.
This series adds a backlight driver for backlight controllers connected
this way.
Changes since v3:
- $ref to common.yaml in bindings
- (and then additionalProperties is changed to unevaluatedProperties)
- Use hex everywhere in bindings example
- Use sizeof(*dwi_bl) instead of the type of the struct when doing
devm_kzalloc()
- Use devm_platform_get_and_ioremap_resource() in driver
- Fix sorting in drivers/video/backlight/Makefile
- In drivers/video/backlight/Kconfig, move config to right after
BACKLIGHT_APPLE
- Explain this driver being completely different from apple_bl
v3: https://lore.kernel.org/asahi/20241209075908.140014-1-tow...
Changes since v2:
- Add missing includes in driver
- Fix file path in MAINTAINERS
v2: https://lore.kernel.org/asahi/20241207130433.30351-1-towi...
Changes since v1:
- Fixed dt-bindings $id.
- Make power-domains an optional property in dt-bindings.
- Added missing error checking after devm_ioremap_resource() in
dwi_bl_probe().
v1: https://lore.kernel.org/asahi/20241206172735.4310-1-towin...
Nick Chan
---
Nick Chan (3):
dt-bindings: leds: backlight: apple,dwi-bl: Add Apple DWI backlight
backlight: dwi_bl: Add Apple DWI backlight driver
MAINTAINERS: Add entries for Apple DWI backlight controller
.../bindings/leds/backlight/apple,dwi-bl.yaml | 57 ++++++++
MAINTAINERS | 2 +
drivers/video/backlight/Kconfig | 12 ++
drivers/video/backlight/Makefile | 1 +
drivers/video/backlight/dwi_bl.c | 122 ++++++++++++++++++
5 files changed, 194 insertions(+)
create mode 100644 Documentation/devicetree/bindings/leds/backlight/apple,dwi-bl.yaml
create mode 100644 drivers/video/backlight/dwi_bl.c
base-commit: 4bbf9020becbfd8fc2c3da790855b7042fad455b
--
2.47.1