From patchwork Sun Feb 25 21:34:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 13571047 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 47FB9C54E49 for ; Sun, 25 Feb 2024 21:35:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=w0SXJOvg0rNZ+SB/+WAW46Abs5FTsTlvAb/wFPYLl2A=; b=co/49hYuLycEJ7 FMNplo+PFJoMZlhAsr4gkGJttUOj0kSVYxhpcULWMH2tEgjGa/Y7JVhkRx+fEW3u3JAPpVNu9u/Wp shBgur9Rli5P2aEljpajI7n+Xjg87uayjfU6xOHNE27AFIuZ9w56CiNHSORsDm9ThWb7H51HEVsPY DYDtY3TAhNoNhKR6nuZK9pqGFwCNgWEx3ruQ01sFTzvMsxLJ9w9LVrFGb24g30X/2iR4KZEXTGslc p1+27H2Zu/VSssUqiqPa+kyJWkAE6Qi/uJnjfH6ODY0lWm/1rmF5APjOsmlnu9ni+QQurTTHniFKs h7oXJ0pEF7fFLiEYj62A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1reM9L-0000000Fli8-0y7W; Sun, 25 Feb 2024 21:35:07 +0000 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1reM8z-0000000FlXx-1FQX for linux-arm-kernel@lists.infradead.org; Sun, 25 Feb 2024 21:34:48 +0000 Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id CC9C42C0271; Mon, 26 Feb 2024 10:34:35 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1708896875; bh=dYKwYg9jFPCTvhHfnHRuamLyYbyHrNi847yiy9x7npg=; h=From:To:Cc:Subject:Date:From; b=Ag6eyl5z+oYCkDn07RZHWIrsq+RJoFXQ4DnFWtqvGivt2F6Lssg+kLb4GFQ2htr/m 6LIr3JJlfK4ysLIZAn5DB+QzCT0bcNxPCxMKAnjwLWN0R+DHemijzQPVoHOaku8wKD za3x8FjVFuDa3q2UeOozYkJ1vgdU9xhjvJUt2QRljkslkVkN/IL+9m18VF+yEv0jWB qOBuCmiwWrvFndDA0+05vpKgSavhnsSYaS7ykRRgNEn549t6TiYJdIzfg+ivo8biqN I7yr9O6cK1o5aXfZZGXBhsCKXuoCJlCToU40/RgkeVaVYRWbQXrZEytkYDcg9DUDJz 5Eu/5yHMN20IA== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Mon, 26 Feb 2024 10:34:35 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 9B26113EDA8; Mon, 26 Feb 2024 10:34:35 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 935FF280808; Mon, 26 Feb 2024 10:34:35 +1300 (NZDT) From: Chris Packham To: ojeda@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, andy.shevchenko@gmail.com, geert@linux-m68k.org, pavel@ucw.cz, lee@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-leds@vger.kernel.org, Chris Packham Subject: [PATCH 0/3] auxdisplay: 7 segment LED display Date: Mon, 26 Feb 2024 10:34:20 +1300 Message-ID: <20240225213423.690561-1-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.43.2 MIME-Version: 1.0 X-SEG-SpamProfiler-Analysis: v=2.4 cv=BKkQr0QG c=1 sm=1 tr=0 ts=65dbb26b a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=k7vzHIieQBIA:10 a=VwQbUJbxAAAA:8 a=BcuUNpNrl9xOKT-QDWIA:9 a=3ZKOabzyN94A:10 a=AjGcO6oz07-iQ99wixmX:22 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240225_133445_844274_2BA4689B X-CRM114-Status: GOOD ( 14.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series adds a driver for a 7 segment LED display. I'd like to get some feedback on how this could be extended to support >1 character. The driver as presented is sufficient for my hardware which only has a single character display but I can see that for this to be generically useful supporting more characters would be desireable. Earlier I posted an idea that the characters could be represended by sub-nodes[1] but there doesn't seem to be a way of having that and keeping the convenience of using devm_gpiod_get_array() (unless I've missed something). [1] - https://lore.kernel.org/lkml/2a8d19ee-b18b-4b7c-869f-7d601cea30b6@alliedtelesis.co.nz/ Chris Packham (3): auxdisplay: Add 7 segment LED display driver dt-bindings: auxdisplay: Add bindings for generic 7 segment LED ARM: dts: marvell: Add 7 segment LED display on x530 .../auxdisplay/generic,gpio-7seg.yaml | 40 +++++ .../boot/dts/marvell/armada-385-atl-x530.dts | 13 +- drivers/auxdisplay/Kconfig | 7 + drivers/auxdisplay/Makefile | 1 + drivers/auxdisplay/seg-led.c | 152 ++++++++++++++++++ 5 files changed, 212 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/auxdisplay/generic,gpio-7seg.yaml create mode 100644 drivers/auxdisplay/seg-led.c