From patchwork Tue Feb 27 21:22:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 13574447 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 C299FC54798 for ; Tue, 27 Feb 2024 21:23:17 +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=8WWcP1NYXfR1H73CD7mUitQ6H/WzQzHGZUviZdebx+M=; b=PQCGIa/U7zKcCG DucfjPWhAao9hWe2zL/+I49D0HJ/rDyag6f4G5epN4acGRIPXxabhWNvN/ebm8ehpzBfu96Xndjel QRU8y1Zn8p7Tai+ISceHlAeJhIQ6/3ngIg2jo0NSJp6VVPXvfUyplrybkwfbLV3ubPgZiTgpWYcfj V5ThUQwJwJlTdcT7W7c4GTlcDJlPSz9AQ0o4P1Sb6W1UvZRhGUZRHwGcSvpCR7goZiEi73iyjK8hh RJpNb2Nxaf72Q8gHpP83tYpnb8S2MFGCDbToRqtBYgeLqrEf/djDx0TdlCprW/WvjmWMzqnD63Kp3 xKKc05RuRukEQ9fRGvug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rf4ug-00000006swR-3hqy; Tue, 27 Feb 2024 21:22:58 +0000 Received: from gate2.alliedtelesis.co.nz ([2001:df5:b000:5::4]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rf4ub-00000006ss4-2UnC for linux-arm-kernel@lists.infradead.org; Tue, 27 Feb 2024 21:22:55 +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 9AFE22C01B2; Wed, 28 Feb 2024 10:22:46 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1709068966; bh=ygxWIzKsHP4UeYc7hlBajpeYIax/JONmXUaLO8DL254=; h=From:To:Cc:Subject:Date:From; b=s6mFzgQLuYaqnEIkimWVOTZJgm7xufkJmEGV+5hgDEYudiR1bsusdsc2Ynk+pdZ1V CTeM+yZy17D1hEfHqsmEucQkE46WtLTUFwVAnpp8gAM/pNKKAoSrrSQPiNynPYBfrj /Qok5cJnNLIzpRX+k8XxjNeR1izk1EZKqt7wu4riXinvALbmtAJ4h2VqqN9UbRXNEK DN9CEuyKMRVvtUs6TbRYiPQ359/djRMnc9cXfbqjFse6g1hoUdKpG7YuvG7T3ThLvj XH9LRrzT7R8+v7UsOecXPYx+f33jTKIb/3SPyZHAMEFLDWdeob9g7zwuS8GTFraLCA 2LvVRTAPmmmCQ== 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 ; Wed, 28 Feb 2024 10:22:46 +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 5E6FA13EDA8; Wed, 28 Feb 2024 10:22:46 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 59024280AFE; Wed, 28 Feb 2024 10:22:46 +1300 (NZDT) From: Chris Packham To: andy@kernel.org, geert@linux-m68k.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, ojeda@kernel.org, tzimmermann@suse.de, javierm@redhat.com, robin@protonic.nl, lee@kernel.org, pavel@ucw.cz Cc: devicetree@vger.kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chris Packham Subject: [PATCH v2 0/4] auxdisplay: 7 segment LED display Date: Wed, 28 Feb 2024 10:22:40 +1300 Message-ID: <20240227212244.262710-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=65de52a6 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=k7vzHIieQBIA:10 a=VwQbUJbxAAAA:8 a=FaJi64VH8NIIOk5AOAcA: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-20240227_132254_131917_97BDD8DA X-CRM114-Status: UNSURE ( 9.90 ) X-CRM114-Notice: Please train this message. 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. At this point I've decided not to pursue supporting >1 character. I had a look at what would be required to add a devm_fwnode_gpiod_get_array() and got bogged down in OF and ACPI code for counting GPIOs. --- [1] - https://lore.kernel.org/lkml/2a8d19ee-b18b-4b7c-869f-7d601cea30b6@alliedtelesis.co.nz/ Chris Packham (4): 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 ARM: dts: marvell: Indicate USB activity on x530 .../auxdisplay/generic-gpio-7seg.yaml | 40 ++++++ .../boot/dts/marvell/armada-385-atl-x530.dts | 22 +++- drivers/auxdisplay/Kconfig | 10 ++ drivers/auxdisplay/Makefile | 1 + drivers/auxdisplay/seg-led.c | 119 ++++++++++++++++++ 5 files changed, 191 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/auxdisplay/generic-gpio-7seg.yaml create mode 100644 drivers/auxdisplay/seg-led.c