Message ID | 20240227212244.262710-4-chris.packham@alliedtelesis.co.nz |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-84028-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2973185dyb; Tue, 27 Feb 2024 13:23:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVUmP5Tn2t/QPFJc1aLvWSQrV79HGa1dzmUs8T+dGMPct4g10Pd+OkNahapmGdOggx3LH1fJ6FFdktcM70rs+oeryguZA== X-Google-Smtp-Source: AGHT+IHccLDVnXkqHvLrYDEF2qpmJJRoS3ENKQKtU/V7UoVvW/+uP50yeB+uuVvOmU2lPa7WiUdn X-Received: by 2002:ad4:5cc7:0:b0:690:690:a5e2 with SMTP id iu7-20020ad45cc7000000b006900690a5e2mr3199364qvb.10.1709069031896; Tue, 27 Feb 2024 13:23:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709069031; cv=pass; d=google.com; s=arc-20160816; b=Kqcw64QSOlNDpZ+5dtEcoKjZkY6ENhewx4L8E0qeQUKzsoWogudjR6LLiSdtzUZkSJ HMAQ44g5IrjdR/LihyMNk9VL3dtEcUf2ls/o+gsgQBpWVux/UgzPuMGUaokUHuOmYXmI n/o6hzVA7F+bw9pb/3VpN4fswl58J/cAoc/gL46p9CxFwUTB6HVX2sBJCSZSjQHdtQnN NaXyT4m7xh4ZRIVlo248R2szzraZlE7GUjWTYSmYfO+46Cv7cLA5QtqyexT+nX0kNhIE QKOhz11YrBRZbVs/i0cwVxFTsKB+0FOfOO+tKoc8l7m1WspimfdhNETUrfx83xJpV6FD J1EQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=2s9FjwQ0X7gd+sc4hj1WiFxP/hCuXY9HchgOBuvK4lM=; fh=0E1zKu25rC1dvhxh54JUfQllyJcUtqgw4XThBRPfUNc=; b=iT+Qrn3vMklxHm9U+aIEyCl5Nb16NgGkvq7PK5j0KA6JI2ZbzxAu8rDetTDwJpvrVy 0rpK6XsRY15BOx4ViQI3RE8HB5+WOcmrksT2oqnEaz49DuHU0agSfR6n26ckRcWlwJF/ a/18vuBew9FDYCXk+FdtlhS1BiyR4PcKvpRhyubWm/yEvHaZPuT1FUUqSoyOKWDP/K3k NRdMTjEwlvIrEVPNDOodcl7sPkUdgEzH+k3R7X32dYK/Iz2Xsp3PEddJBBIdtA4WZbh9 dGDB7bbfCdfbVcm3nSkSTgY3wfv+jj0fr8iCDOWxXCAtTTx18jKTPsZ1LTo6VsyYTqu8 H6aQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=rgEa11Ft; 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-84028-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84028-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q6-20020a056214194600b0068edf63c212si8609617qvk.152.2024.02.27.13.23.51 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 13:23:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84028-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=rgEa11Ft; 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-84028-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84028-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 866121C227F9 for <ouuuleilei@gmail.com>; Tue, 27 Feb 2024 21:23:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2655215531C; Tue, 27 Feb 2024 21:22:55 +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="rgEa11Ft" 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 0D7D314F96A 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=TfJ9dFv4Qvq0/33KQG29ajHavAwJChrc7fGW0fH6DSwMznkhyTnojGzHafoVaFjASqUoXMCPKw5hhZCZPN/PzJU5lUH/RZiXBSb/xLFYVOvYi+a4MsFgoVOvdD6EsbvjUI4bS33xaRHOLfgC9NiKFQUt/n2FAq8PpthMHiVyHVQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709068972; c=relaxed/simple; bh=Gnh3JrvCtbi+RZ0t2Ao7E//MKtGp49YaGLcT5DciouM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FryWVUIiUF8bfaU35HMQGbk4z0AxT3C0RnNzLHZG4oGE7cCw5UO3FGaKwakD5zlL9P+JHd5nWgqIKpXixvtTMUxJr41U/1U9D3ZV+WVaHKWefSQXK/KQalDUDbEuOmA0nTo5/A7JNtG2gMBVK34MspUCJPAqpcLEpNjWYNfhOvI= 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=rgEa11Ft; 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 C222F2C03C7; 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=2s9FjwQ0X7gd+sc4hj1WiFxP/hCuXY9HchgOBuvK4lM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rgEa11Ftr7fgvz9hYjHPOASvy38xJ/ROkDCEO4Z0Nfqz29hujzLrwjx2M8jLH7OG4 8lcu3zNEUH8MKvauWk4CblJgab/tW7/nmZ0eGw4tsZcLuRV+pyl2TsR7gtAdOn9aKo sWHO6r+yLmu1VkzCS/QTno3DI812xSEbzpYal0Mth4Plxg2uWYwAU4hwRtTozP5XGR MQJ48AFgb6fnvtoSkac8bVlmBa7zzlotAQCloWpGiuAyrvKcC7IPsYw8/Eenbmi+wg gPbmWxqQVqPI8hC19cKGqqApsvPrv5atiEFxdDCXObosVqTD0ytorXG1dg/Fn/7JAk Ez7S1LpwWY5dQ== 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 <B65de52a60003>; 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 6940813EE8E; Wed, 28 Feb 2024 10:22:46 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 67145280AFE; 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 3/4] ARM: dts: marvell: Add 7 segment LED display on x530 Date: Wed, 28 Feb 2024 10:22:43 +1300 Message-ID: <20240227212244.262710-4-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240227212244.262710-1-chris.packham@alliedtelesis.co.nz> References: <20240227212244.262710-1-chris.packham@alliedtelesis.co.nz> 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=75wrGpN2Od3tzqupbDsA:9 a=3ZKOabzyN94A:10 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792088769230102315 X-GMAIL-MSGID: 1792088769230102315 |
Series |
auxdisplay: 7 segment LED display
|
|
Commit Message
Chris Packham
Feb. 27, 2024, 9:22 p.m. UTC
The Allied Telesis x530 products have a 7 segment LED display which is
used for node identification when the devices are stacked. Represent
this as a gpio-7seg device.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
Notes:
Changes in v2:
- Use compatible = "generic-gpio=7seg" to keep checkpatch.pl happy
arch/arm/boot/dts/marvell/armada-385-atl-x530.dts | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
Comments
On Tue, Feb 27, 2024 at 11:22 PM Chris Packham <chris.packham@alliedtelesis.co.nz> wrote: > > The Allied Telesis x530 products have a 7 segment LED display which is > used for node identification when the devices are stacked. Represent > this as a gpio-7seg device. Please, be consistent with naming and references. I think the compatible / driver name are the only two that should be used. This also needs an Ack from the respective maintainer (I don't know who that is, you might find in MAINTAINERS, though).
diff --git a/arch/arm/boot/dts/marvell/armada-385-atl-x530.dts b/arch/arm/boot/dts/marvell/armada-385-atl-x530.dts index 5a9ab8410b7b..f55a3dc6b6de 100644 --- a/arch/arm/boot/dts/marvell/armada-385-atl-x530.dts +++ b/arch/arm/boot/dts/marvell/armada-385-atl-x530.dts @@ -43,6 +43,17 @@ uart0: serial@12000 { }; }; }; + + led-7seg { + compatible = "generic-gpio-7seg"; + segment-gpios = <&led_7seg_gpio 0 GPIO_ACTIVE_LOW + &led_7seg_gpio 1 GPIO_ACTIVE_LOW + &led_7seg_gpio 2 GPIO_ACTIVE_LOW + &led_7seg_gpio 3 GPIO_ACTIVE_LOW + &led_7seg_gpio 4 GPIO_ACTIVE_LOW + &led_7seg_gpio 5 GPIO_ACTIVE_LOW + &led_7seg_gpio 6 GPIO_ACTIVE_LOW>; + }; }; &pciec { @@ -149,7 +160,7 @@ i2c@3 { #size-cells = <0>; reg = <3>; - gpio@20 { + led_7seg_gpio: gpio@20 { compatible = "nxp,pca9554"; gpio-controller; #gpio-cells = <2>;