Message ID | 20240120-ktd2801-v3-0-fe2cbafffb21@skole.hr |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-31923-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp1809111dyb; Sat, 20 Jan 2024 13:28:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IG14eH2d2HfvVWFrIFmxTo6nG9r/8U7Lckc1RaND34AK0jv/2UpyuueyffRdusKWvVUxFAe X-Received: by 2002:a05:600c:4452:b0:40e:70e8:5cca with SMTP id v18-20020a05600c445200b0040e70e85ccamr1155071wmn.185.1705786086754; Sat, 20 Jan 2024 13:28:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705786086; cv=pass; d=google.com; s=arc-20160816; b=qf6NqU45biq7Bqi2guFPSjc+PkUFPV0OzB9bPQ1iivdd28F/G+uuOZRNwuR6ZWDube ligCVffyM76oDaHNyMUQ/mZVLXJe9CfPSwp5dnCbyHtXFDKUoflH/riogaC0+SMto5C1 USezEZAwasM3QiMm8i6sgpY5N1GIyodBJaK5EbT01f1hn+fPvlRLHUtBMH3uMs+BSLJs x/XLXZT5dMuED46nTCSIZzJcxw/hwMSe2YaTat7jMr+8P/gtL1n1/uM79vumKwpJ8ztG wt2fU5YaVpF2fktj+mlBrU7UWDqMdzLDbpIsDtRPZejiEy4oUXoCX+MJdxd0+QY0uYcG LQog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from; bh=qWM2vk/MdxQShaTnWCUcd/q85Y5uA7r3gMABNN1Zqt0=; fh=lO9n7b9mQNj9ZBnDJZOJQdNL2p5f0HxXENzpoxlGpGs=; b=n3XxfYeV60pHHN0s0QzMWB9HAORKWmKeRFkZO69E+U9RdG1NWDK4AOKV2y/43eGwjm qILgZuyU+zgNqKxWd8JvFDgM9a+7GY2YtU4bE3VSENXgW/Hc8DxBnye+uW0hFzYBkeUb FMOBcgsDXBLpyBjFmYDtpS9vs8fIcZfEsXJCATHBrC0AfM4/+fyu8EtrpxkUZNuXqhwg CWrPx0WC/wbzSSfm+hbtcOa1wyf/A1ERjeo5ZFGRSvpFhTTTOgJ0ocKe5n6PzwrV975K 1Jb+jsLm86k99ghXG/vFPp/zN1lBN4bsI0VMEBEJ7AV01g4KeOlNgh8XvEb+mFY9Rexb P1iA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=skole.hr); spf=pass (google.com: domain of linux-kernel+bounces-31923-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31923-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gh7-20020a170906e08700b00a2fe1b326aesi814183ejb.831.2024.01.20.13.28.06 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 13:28:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31923-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=skole.hr); spf=pass (google.com: domain of linux-kernel+bounces-31923-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31923-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 60A691F2149D for <ouuuleilei@gmail.com>; Sat, 20 Jan 2024 21:28:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8915B15492; Sat, 20 Jan 2024 21:27:31 +0000 (UTC) Received: from mx.skole.hr (mx1.hosting.skole.hr [161.53.165.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C03F112E5F; Sat, 20 Jan 2024 21:27:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=161.53.165.185 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705786049; cv=none; b=Y8d0a7gtw74ZoTafuxV88YSYa5L/LoIFoXdb0r217uYDo7uM331+7g6hUg8KxMONlGjshcWSYnPAlhfCQLB/nvL0khVDVPWKn3Q4rrUVs9MAEQ1raBWfbtBHOdg1AU1N5OTlM7L1+826mtn0n4W490XyOkq2kYzL2l99ct2IUSk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705786049; c=relaxed/simple; bh=wUqtxI1FSpcpCqfPkwEhcve6CkyStV415xdTZekKd5c=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=luFsp8K/vnnrfGLvWCIlzoxR2qvLD2N75WyEB5euBb/qArO8lZENmWQWRNpnU3xlX4Z1izhgzun8+y6SgeZTheUI4KFXLIdx/77fi+pjPFu4lkdUPLYYBwzk6G0iJC5zTEm13lwfDKXNWp2I/BaTrYGeolaNlKaZNEIsTNNoJSg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=skole.hr; spf=pass smtp.mailfrom=skole.hr; arc=none smtp.client-ip=161.53.165.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=skole.hr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=skole.hr Received: from mx1.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id 6344D858F6; Sat, 20 Jan 2024 22:27:24 +0100 (CET) From: =?utf-8?q?Duje_Mihanovi=C4=87?= <duje.mihanovic@skole.hr> Subject: [PATCH v3 0/3] Kinetic ExpressWire library and KTD2801 backlight driver Date: Sat, 20 Jan 2024 22:26:42 +0100 Message-Id: <20240120-ktd2801-v3-0-fe2cbafffb21@skole.hr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAJI6rGUC/03MQQ6CMBCF4auQWVsznVIsrryHcQFtkQZDTUsaD eHuFhLU5ZvM/80QbXA2wrmYIdjkovNjHuJQgO6b8W6ZM3kDIQmOWLJhMqSQM+yEUkK3sjYI+fs ZbOdem3S95d27OPnw3uDE1+tuyK+RMsNKoY2SLVZUN5c4+Ic99gFWItGelci5+mW0ZiR1J8jiq ar/smVZPnZlwOrUAAAA To: Lee Jones <lee@kernel.org>, Daniel Thompson <daniel.thompson@linaro.org>, Jingoo Han <jingoohan1@gmail.com>, Pavel Machek <pavel@ucw.cz>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Helge Deller <deller@gmx.de>, Linus Walleij <linus.walleij@linaro.org> Cc: Karel Balej <balejk@matfyz.cz>, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, =?utf-8?q?Duje_M?= =?utf-8?q?ihanovi=C4=87?= <duje.mihanovic@skole.hr>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2318; i=duje.mihanovic@skole.hr; h=from:subject:message-id; bh=wUqtxI1FSpcpCqfPkwEhcve6CkyStV415xdTZekKd5c=; b=owEBbQKS/ZANAwAIAZoRnrBCLZbhAcsmYgBlrDqXO1xcPWa+CH+urwK0NvcRf1j9ADUaEYL3q Z0+Lp2SODSJAjMEAAEIAB0WIQRT351NnD/hEPs2LXiaEZ6wQi2W4QUCZaw6lwAKCRCaEZ6wQi2W 4WDxD/9C7pKu8/wuladiEQq90adnWZCAYzen10KGjYQBYJEXSHlFDm2pePOnghvI52wc31JdByK E62TJwaSmJnFzpHw0efPbFRQAjwjBOS1BS0em/wQ1qRy3b4VTdlvaH7VBW4CT0Z4OYd8Y/gWElU g6RuW7Z+JC6d2V6Cc0NvDOfHrttiKM84SRAgNN69fOe96HUKcJxazbvfjFKwNM0NeYQutlml7dB FviZZ7WIoIqT7c8T1CP7JiMuRYYGNSGLe9ZNMQkP+XlMv+XPQYrHmESunSUTND+rh9JLQnQ1pBK nyy/oyLLOk3g0YIbgAcX3MhVudzZzk8ql6bRgf0MJQbgBrqqeYfTKiteRpxf1FF/nSJyOVGgL+K xMWYuXIVKIB/vbhfKugHWCWhKlyFobQo+zFhyV79Sk9uD4djAtt5WwpjRwfxJUAzICzSz4zMc4X +ncqASI0zOBZI0hJpYIwComSqOIYAxf/L6jIx9MIINXVTnuAXAXV5x4onDy4AJHkxVZ3yGXYzg+ O+PGGAibXT2VGwowdsnNKkOKKKvAfT2J9ckKPMp2E2WGGK1QQrKa+vtIXUHT3+oezLcx/JfH6qn F6ZaGsxGIgHENFtzr+lHWSubVBGyTF1zue/KM645It3AuM0TfNdoCHcizYZm7rsgqIj2h3Bn5Sc Syyfrd1xwQ4K9uw== X-Developer-Key: i=duje.mihanovic@skole.hr; a=openpgp; fpr=53DF9D4D9C3FE110FB362D789A119EB0422D96E1 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788646351361138140 X-GMAIL-MSGID: 1788646351361138140 |
Series |
Kinetic ExpressWire library and KTD2801 backlight driver
|
|
Message
Duje Mihanović
Jan. 20, 2024, 9:26 p.m. UTC
Hello,
This series adds support for the Kinetic KTD2801 LED backlight driver
IC found in samsung,coreprimevelte.
Support is already upstream for the somewhat similar KTD2692 flash
driver, and this series since v3 also moves its ExpressWire code into a
separate library and converts the KTD2692 driver to use that library.
Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
---
Changes in v3:
- Split ExpressWire code into library (and convert KTD2692 to use this
library)
- Rewrite commit messages
- Add link to datasheet
- Drop of.h include in ktd2801
- Use _cansleep and usleep_range when powering off
- Clean up bitwise operation in update_status
- Link to v2: https://lore.kernel.org/r/20240118-ktd2801-v2-0-425cf32e0769@skole.hr
Changes in v2:
- Address maintainer comments:
- Drop MODULE_ALIAS
- Rename enable-gpios to ctrl-gpios
- Rename ktd2801_backlight->desc to ktd2801_backlight->gpiod
- Give time constants more descriptive names and note their origins in
Samsung driver
- Convert to GPIO_ACTIVE_HIGH
- Update trailers
- Link to v1: https://lore.kernel.org/r/20231005-ktd2801-v1-0-43cd85b0629a@skole.hr
---
Duje Mihanović (3):
leds: ktd2692: move ExpressWire code to library
dt-bindings: backlight: add Kinetic KTD2801 binding
backlight: Add Kinetic KTD2801 backlight support
.../bindings/leds/backlight/kinetic,ktd2801.yaml | 46 +++++++
MAINTAINERS | 13 ++
drivers/leds/Kconfig | 3 +
drivers/leds/Makefile | 3 +
drivers/leds/flash/Kconfig | 1 +
drivers/leds/flash/leds-ktd2692.c | 91 ++++---------
drivers/leds/leds-expresswire.c | 59 +++++++++
drivers/video/backlight/Kconfig | 8 ++
drivers/video/backlight/Makefile | 1 +
drivers/video/backlight/ktd2801-backlight.c | 143 +++++++++++++++++++++
include/linux/leds-expresswire.h | 35 +++++
11 files changed, 336 insertions(+), 67 deletions(-)
---
base-commit: 0dd3ee31125508cd67f7e7172247f05b7fd1753a
change-id: 20231004-ktd2801-0f3883cb59d0
Best regards,