Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp64168rdb; Mon, 22 Jan 2024 12:02:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGubVNg+2zSaYq0mjrdsLndeBSmFRhWLdyI8W3zw7H5hT1R4CHuhKhqFXY/TK7gus/UFh8a X-Received: by 2002:a05:6a00:a26:b0:6d9:bf50:1c71 with SMTP id p38-20020a056a000a2600b006d9bf501c71mr3107425pfh.48.1705953777065; Mon, 22 Jan 2024 12:02:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705953777; cv=pass; d=google.com; s=arc-20160816; b=NIZlhViyUVkxykZBbXfKlfQQAStZe2WvmkgBgq6VXVdsBdkBi3ciCNghs5rWVxnJSO ZktiIOcmWvC0RQYCkalxSusKloHcYWGyEVB2MLdpcnAJRGUG+8NIzY8pkc3z8nD0CsvM jBCJh4yblh6KHpGeVusdxDawrbdkPlIHicPd2nIz3l9q9ezPKLoi9mJIaTI7hur0Poyv 0FGgCUtjbGZ4Pei4r3JCG0vgOWq1l+yZFKfG++3pie9Eqi0K+Q41KiYcrfuW+C6qTsEY o3taj4B6C8jst1tnoxjNNjqXaZXILGwola5l1F8fEGRH7y+42XdRYrv97f+WItdWGbnf ugUQ== 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=L/5Os67aLdWAxGa9cdq47f/JKXHhWvwB3ciVzjTAY7o=; fh=lO9n7b9mQNj9ZBnDJZOJQdNL2p5f0HxXENzpoxlGpGs=; b=Gf9gVkuM216gs85WAxMF4rhXcTf6m+LpeCJVsE9WQQVKv6D2Cb4qdKUM7D9sryd3sA O1h7cRaeo2EAuyyY4X/1gLHrN5TIgfX8zLDuSPf1QzCL0BcmsrRjbCU26vjENvq1oMnz T0gnKfTpnwJNWGupc7rIXV797CDuCR6K9ZA8TTyZB0KFiiJRDKC5F3amtfVlc6kLHU7k jxpVdhcoz/8e1/irmY+3YjbmS3zIQBYau9pRcD2xk7MRfoEl8dxa6r2230Hy5NPOdelr fqqhEb5dTeevCITtUuNc0MqGJXcbAzVlw+isyXDvPJ1VekEbYXruiwZfpCt0OA0ickr4 QtiA== 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-34087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34087-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c3-20020a634e03000000b005d2264cbb78si107515pgb.247.2024.01.22.12.02.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 12:02:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=skole.hr); spf=pass (google.com: domain of linux-kernel+bounces-34087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34087-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C4CE2291C97 for ; Mon, 22 Jan 2024 19:51:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0085405E4; Mon, 22 Jan 2024 19:51:45 +0000 (UTC) Received: from mx.skole.hr (mx2.hosting.skole.hr [161.53.165.186]) (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 9384E3FB26; Mon, 22 Jan 2024 19:51:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=161.53.165.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705953105; cv=none; b=DvEcR2Igrw0/BHLxYkHQUtoMzOU3oiIcIKOsyeDorGOcbM6BmOl4aF/RSDu/RpJzuREeF5WJ5a4Pi63pMcXCPhfX/0hsN5Stq/DFysEDeb3Vs02ZP1/hhuPPWExTz5QXd6Eh0f0sV0fmAzUWoqvergmKeoJMe1wSF4X9yDuOfbc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705953105; c=relaxed/simple; bh=h3bREyOH1oCNdl7LgneqpfYf+pwYxlqZnL9DAyhGyas=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=DCj2FKa3TBkfvEdHXRvjEyEQo3kPtr2pmTACjXRSX0vEjlWJqd408PXCaJblArZub33d7xgJSEXnOWNjXKjmQlFDupToQ3jr50ieHNKVIWyoh6ajTRS6r5doK8eudz8w6W00HbqyN9/hx6Ti4kCpyjt9MAfgxN3TByD/chhp4uU= 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.186 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 mx2.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id 1CDAC86C45; Mon, 22 Jan 2024 20:51:39 +0100 (CET) From: =?utf-8?q?Duje_Mihanovi=C4=87?= Subject: [PATCH v4 0/3] Kinetic ExpressWire library and KTD2801 backlight driver Date: Mon, 22 Jan 2024 20:50:56 +0100 Message-Id: <20240122-ktd2801-v4-0-33c986a3eb68@skole.hr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIACDHrmUC/13MTQ6CMBCG4auYrq2ZTlssrryHcQH9kQYDpiWNh nB3CwlCXH6Ted6RRBu8jeRyGEmwyUffd3mI44HopuoelnqTN0FAzgAEbQeDChgFx5XiupalAZK /X8E6/15Kt3vejY9DHz5LOLH5ujbkr5FyhgqujZI1FFhW19j2T3tqApkTCVcmgDG1MZwZSu04W jgX5R/jO4awMZ6Zs6jryjlXI9uxaZq+xZcJSAsBAAA= To: Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Helge Deller , Linus Walleij Cc: Karel Balej , ~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_Mihanovi=C4=87?= , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2764; i=duje.mihanovic@skole.hr; h=from:subject:message-id; bh=h3bREyOH1oCNdl7LgneqpfYf+pwYxlqZnL9DAyhGyas=; b=owEBbQKS/ZANAwAIAZoRnrBCLZbhAcsmYgBlrsckvqKcxfItPfeI8JR1dRfffkR6LOBPH6yu4 y44ElntPp6JAjMEAAEIAB0WIQRT351NnD/hEPs2LXiaEZ6wQi2W4QUCZa7HJAAKCRCaEZ6wQi2W 4SueD/4ibIhE/jpzZXN9RJq78NClxp7Rx9uEVxuyFbdEEnIJhnOn7GJUmpFzvAiaIZPQLsx4/1s hkzEQ/ypo+ZM8bjXRRmZBKPmuxLyVgTfM+AbvOd561LQBiukiN6te/xHxNlFpA6TEnHg8VSfvxV DXE6h2Y8qFZJfe8l/IENcSdW+KVq46NWa1zyXdNxwnet6EvnfQkFVqyR5pCJ22f6aja1Nm2xtxn OMCDWMzmmCfclcQhfOJ9nL/AM9sgny9MYoW7TYSmAviZVSuQqNIW6+EX4xRHOfyuhj7VRe1Xf6f ZyZ3NY67CwwshHkW1yEu3B2fQVd3zYCU/+op8WmtYHb/k43ykCJhzE1iq9+LD7rEKDsyMGsBkLU v4fE8Evxlz7XE3BBrLXdfDUn2Mki0rzs9SUDcQSf+R0Z2rU+pN/wjuSwX8WR3ibU5JfHwRMqtRP idFcoJeF5h81NKrEzd+xOVw0vQn4KS3fxTuarSFOSw+Bw94hW7mxA7HNIiC42vVGZ7s/gRbhdF0 OnWzxPO33B+Pb4kitm+zV08jpT3RMcrx4dicRjaoZxvWEjTR4+fkFinuLWJjQySCuAN/J+FbNQT LAn+e60CTtpnIcbHSKw002PCmsv+6+8WarnTKRArFSRWxOXyeeysjRi23iPEasuffO3wgelIALJ 6MaOgn20Vty+x6A== X-Developer-Key: i=duje.mihanovic@skole.hr; a=openpgp; fpr=53DF9D4D9C3FE110FB362D789A119EB0422D96E1 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ć --- Changes in v4: - Drop 'extern' keywords in leds-expresswire.h - Add 'expresswire_write_u8' to leds-expresswire.c and use it in the two drivers - Move GPIOLIB dependency to LEDS_EXPRESSWIRE instead of letting clients handle it - Drop time constant macros - Drop delay.h include in ktd2692 - Drop bits.h and delay.h includes in ktd2801 - Link to v3: https://lore.kernel.org/r/20240120-ktd2801-v3-0-fe2cbafffb21@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 | 4 + drivers/leds/Makefile | 3 + drivers/leds/flash/Kconfig | 2 +- drivers/leds/flash/leds-ktd2692.c | 116 +++++-------------- drivers/leds/leds-expresswire.c | 68 +++++++++++ drivers/video/backlight/Kconfig | 7 ++ drivers/video/backlight/Makefile | 1 + drivers/video/backlight/ktd2801-backlight.c | 128 +++++++++++++++++++++ include/linux/leds-expresswire.h | 36 ++++++ 11 files changed, 334 insertions(+), 90 deletions(-) --- base-commit: 0dd3ee31125508cd67f7e7172247f05b7fd1753a change-id: 20231004-ktd2801-0f3883cb59d0 Best regards, -- Duje Mihanović