Message ID | 20240227212244.262710-1-chris.packham@alliedtelesis.co.nz |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-84026-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2973146dyb; Tue, 27 Feb 2024 13:23:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVnLyuK8DSHckVRhSMgr3mvIO9iqkzOTRHlrpOCrvvPhncUmua4PfCBgDOWAF4ijefYEZ9I7Pb1/LzY+lGLRUn/xmL9Pg== X-Google-Smtp-Source: AGHT+IGRoCDCn/HS4kn9uJEdfJ+xA0uf90t9mdhabaF9Awahz+fIihXl2E4T4Vf8BcqWEEqe1zYR X-Received: by 2002:a05:6808:1387:b0:3c1:add9:5a3a with SMTP id c7-20020a056808138700b003c1add95a3amr3507662oiw.32.1709069027006; Tue, 27 Feb 2024 13:23:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709069026; cv=pass; d=google.com; s=arc-20160816; b=DGgZmqf3ATkdyPu4y6asPJja2bRqEg7Oh7KXk1z2+WJAtriA9Gw4DemGso7sWa9W44 OSV7Jtj7k4Xc3h+epyEIAIrT1XLMmVtsXknb7M/wZNeg3u1K8sL+GGaLrtRyq6XfWHvU P70Guc5ainYdwXF6YbIrdFKO2yWtuasHTjaNbBJqExUpcTqKZfCeWsoW5dxgryz28ALP 93FrbjZv1eXYi2bf7tiWXyeMbfDKzOWHeTQ8i7MLHVVW7gxi8vr/UwfIMisfK8eP1Xek 8HDIU4CiF07cczN6HjEjuswynvRLDhsBqTmLOHaIWIINXoblzIUYWRuIJudi0L/n7XMw kpDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ygxWIzKsHP4UeYc7hlBajpeYIax/JONmXUaLO8DL254=; fh=0E1zKu25rC1dvhxh54JUfQllyJcUtqgw4XThBRPfUNc=; b=c6pQl+0+nr+IW84S/vjq1UsX5Yfq0fo8fnlq0NalNPU1Xlh2IteZk2rqZ04nNXJoVW tXueeX/hC5c/0uqFAlVWymM2BwuHxMTG4IkTCX8g3WXLKgbgQEzXdO6mFaz+4l73+WaW cwpsYfgVBV+oERd/ZsBReFXAiouNE2CDnI6ew9yWkI0m5XhVH3RH5Bw6+DUxq1m591cp 9g8iuqxpPTrpuU1yTmRjl2rqMFihfdhaNnunX7kbVmdzTxr7EjILFGa2VhgghaS1I/ni UTwX65XUDuqzk+H3ItJAUkRCdwsamow+Oo0IcT67komPFC2Hnl6sTamudBqPqZrzyTJS s80A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=s6mFzgQL; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-84026-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84026-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pn17-20020a056214131100b0068ff60adc1csi7698058qvb.444.2024.02.27.13.23.46 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 13:23:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84026-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=s6mFzgQL; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-84026-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84026-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C41201C224F3 for <ouuuleilei@gmail.com>; Tue, 27 Feb 2024 21:23:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4348154C0C; Tue, 27 Feb 2024 21:22:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="s6mFzgQL" Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) (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 0946F14F966 for <linux-kernel@vger.kernel.org>; Tue, 27 Feb 2024 21:22:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.36.163.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709068972; cv=none; b=TZJtmKFLHwwHTgcfxgxHCOtLqR4uDG1xvKBgIoD1C+CIcw1cIyGhOYIeGfOnofKDXfNhKblM+QzpgBTDv6GeLidLvMeAtwJMZ46B3k9+Nlw0rX3js8Mlsp8KivUyO8/wa3V/y80Y11PAmTcrJOWKflbSLuu3ny/CLXitGh/QqV8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709068972; c=relaxed/simple; bh=pFyI+ACVeuRY+r4SFuVf46uerP2mffWO+eexgZC0QNQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=C6SM5waJzgidPFZ3PlseYQjzLDLG7cL1fZAKKNeHcKchtolsI2Sy5nPbX3dO2dLS/bZQ0OBuqektehGygyjujrg7zcHHO8k+b6ROKmJvVKrlpGFYMfuYwz87WEsYAMfczM24TN77vi2H8xS1kVs7XQ5ziwkyBQh4dUztTKS6Dmc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz; spf=pass smtp.mailfrom=alliedtelesis.co.nz; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b=s6mFzgQL; arc=none smtp.client-ip=202.36.163.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alliedtelesis.co.nz 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 <B65de52a60000>; 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 <chris.packham@alliedtelesis.co.nz> 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 <chris.packham@alliedtelesis.co.nz> 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 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-Transfer-Encoding: quoted-printable 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792088764221369360 X-GMAIL-MSGID: 1792088764221369360 |
Series | auxdisplay: 7 segment LED display | |
Message
Chris Packham
Feb. 27, 2024, 9:22 p.m. UTC
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
Comments
On Tue, Feb 27, 2024 at 11:22 PM Chris Packham <chris.packham@alliedtelesis.co.nz> wrote: > > 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. Out of curiosity, why did it happen? gpiod_count() works in an agnostic way.