Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1194590rdb; Mon, 19 Feb 2024 07:13:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVeXSh/neQoFSK9d5rpMYvYJJHYDy+eA/I+uFSSb/7hjWiULh2ouE293907Zj+/fhlntXCnpC1vrYyUsCAUR4VlX+gIJWN7Zy7tmXGIuQ== X-Google-Smtp-Source: AGHT+IFqO53N6AbtNtofhLT0Z1hABQPojL175qtQAOrH9KKw/GwIYXO6DUJGEqQ3gDkVpgwgl9RA X-Received: by 2002:a17:903:2304:b0:1dc:248:28d2 with SMTP id d4-20020a170903230400b001dc024828d2mr1457253plh.39.1708355625053; Mon, 19 Feb 2024 07:13:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708355625; cv=pass; d=google.com; s=arc-20160816; b=y4E1ky6HQ8OfQhARPHbiww5mBu6FSt5SAu7SapO3bd9Fh2MFDU+WPjHG1G95DpxakA qZEXrigKdK7BeJd7e/Gk8o4Qh/pCOyC1v+dD7VX6mGbD7m8QWT35d19cB9IAfGTvEcoB Mx2NXn8YQJyCSu21B+ntRFfBMVqhVZqXzmZmBcqD2wgytYb6sKq+A484gntDNZ2Di6NG hNsq1/oYTQn8A+0wAIDzgcIT0M1O+w3DLJcNbAvz5xJ0D2rrwbsALAcLfA5E04iu3snk 2n48iBtmSueD88ff5M2GOLnVuhx0uCEre39P6M0c0/YK1scLi2XjHwFRCQ101xHeNQRr wSHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eNN6UIPNfrJ1n8nrPQY71uZwvaPoNORd3re1EnHmJo4=; fh=alvO7ULsp4B9ryP7CrHIY82rqR9YRS7khhrfFuClmbM=; b=JLG7RNUt9xszL+Q0jm/xpYYDEDeI/PHIaJr36jkdHNvi+X+dmQnqhBLwEs27j+cB4L rmCw5TNaW+9BuPJJkmw3Oi17wohKodEvkBUz7D1GWq7BOBGlOinDPo6iELqvRdJKDmvD Uu7df0Jq4bFK6HJhs+/SMoi0h7HpL4wov/ebblk9L7JAz6sIvQuT26LwkphQbAjnnSDI tK3Z054m0Pcz441EBcQb8Ep2F9cU3FAMn14xXAYB9i8e5N+ogdnh5mOyt08QqIdLZyI/ XubGcxTLH6y68zJlPtJC/WvUOBDoXS3XODFokDBmw21+tOmz2VfttWAxwFndEEvp02n5 49Jw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tDAZdOuO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71565-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71565-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k14-20020a170902d58e00b001dbe5c1f302si2662414plh.419.2024.02.19.07.13.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 07:13:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71565-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tDAZdOuO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71565-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71565-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 C00D528161B for ; Mon, 19 Feb 2024 15:13:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3EF93984D; Mon, 19 Feb 2024 15:13:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tDAZdOuO" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 16D0838DF1; Mon, 19 Feb 2024 15:13:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708355617; cv=none; b=rJB/Hw6B73LhWY3DqKWdm9yfFBxCxfTaAjcvvJ1LmoIU3/rC/ZUgn/YxMJ30QRPXmScglQoL4uGN2VM3AUOywZh0ULMvq2qT6tQvsQz0ZKdPeQjflSBpGpXYJqHxxO6EyNMNnaXJs4Suj0OV11aUEZv7i1BYrBV99nKJyQsXALc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708355617; c=relaxed/simple; bh=219zpRrF+2txenauOR7oz9BE36nHaUCy6d2FitoCx2g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Un33/SIfdJgxYca46ex/BQk/l8xVkL3dEaQ4Cm25+7l0pf8X3yYBNjeD02xdc3jSmSDxv/TH2q0qbjdnhm75sw1NplPR5b86ujeHQFsloIbJhQSLnoZ3SCbQdnrKrBNsd9ZxvaD7acngQBdS45lYygE+OsbRKG85yrPyJcou4OQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tDAZdOuO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 736E5C433F1; Mon, 19 Feb 2024 15:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708355616; bh=219zpRrF+2txenauOR7oz9BE36nHaUCy6d2FitoCx2g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tDAZdOuOzQIXrMYvVzMiSwZnj/SSGXgZlyHXJanaGcX21G/YeZcUyGlI7YMlPRBtl NQjnemVKek/RrRiTZJKpp//I5w31ZtqYpzk56LJ55uYxZWUrQz/1SzVkPvhC6ve9Eo 9dyH6cP1uqO1g3P7NsLI2302ABSS7ZEnK3rNMtAz5KPaiKMCXc/Lnd/pyLPse+6mFq JGcMNTDVNvuAoGRYlUrSQz1AMnzRn1X7axI/8cyxsJBQ7I0NBuL7wYrDkHvR4a5wil sOOrvhQHIJwdjXA5iuCRqt5gnP5GZtbXI3EYP/y3/rgpM6qKjRRTF+1Hbl8IDSTPgc Nh1nlMtQee6fg== Date: Mon, 19 Feb 2024 15:13:32 +0000 From: Lee Jones To: Chris Packham Cc: Pavel Machek , "linux-leds@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: Linux support for a 7 segment LED display Message-ID: <20240219151332.GC10170@google.com> References: <1f598a72-dd9f-4c6c-af7f-29751f84bd23@alliedtelesis.co.nz> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1f598a72-dd9f-4c6c-af7f-29751f84bd23@alliedtelesis.co.nz> On Sun, 11 Feb 2024, Chris Packham wrote: > Hi Blinkenlight enthusiasts, > > I'm looking for something that I figured must exists but maybe it's so > niche that no-one has bothered to upstream a driver for it. > > I have a requirement to support a 7-segment LED display[1] (one that can > display a single digit from 0-9). Hardware wise it's just a bunch of > individual GPIOs connected to each segment (plus an extra one for a > dot). I can't see anything obvious in drivers/leds but maybe I'm looking > in the wrong place. Or maybe it's the kind of thing on PC hardware that > is just driven by the BIOS without the operating system knowing about it. > > Is there an existing in-kernel driver for such a thing? Why would LEDs connected to a bunch of GPIOs in a specific fashion require a hardware driver? Doesn't drivers/leds/leds-gpio.c already provide all the support you need? -- Lee Jones [李琼斯]