Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp985471rbb; Sun, 25 Feb 2024 13:35:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWjdNJIuKmZsFmn5aHThXfh7NvI0ry0Oc+VlQatDSDlhUI74Eye1x+K5uDFbLU3vSVJlnuQ0ESTH74TGSI/5xyBn1okefnarEhG75vbiA== X-Google-Smtp-Source: AGHT+IE0oKgW8pdWULM0ukCwIffsumeDLi+Mol3KfS4n8zMKJ6RTV5U9nXxuk+4Bl+TuBA6JLUJa X-Received: by 2002:a17:906:f74f:b0:a43:4ddb:ed5a with SMTP id jp15-20020a170906f74f00b00a434ddbed5amr563620ejb.19.1708896902768; Sun, 25 Feb 2024 13:35:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708896902; cv=pass; d=google.com; s=arc-20160816; b=PLgjhGM677Q/m0Nhyko65EGRr/OLwJDT6bWHVyBvVKvLyW31HrbBCQvnLGeEBx2QFM /MQjJeAdGmYuGBi20tLc2hhprXNPcxXtsDLGZex3+wzCg0LEYxrdfyr4cDD4xsnE0gZ2 tvOGXSx6jaKqA0qIZLUFTZuW50PT+I7EFQJZZPHqXDKTmvrBLhIRPsC2VT7NLX2o+UUe F+qJkuFmD5Jn8AQu+4S+VxWfJ2okC7l2W5x0iMCvrdpGMh0WIXqbuIXZaM1JIEmSFZ7k xpbPGvXwj6fytL+CYBzRFEALWqpUBvb0j5Kz+G363GVS02kVZ9C1i15z2cnDA0NG9BSs LuvQ== 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=mOUZ+TwkiAjRh9ZNzvyYfCdGmY+q2Lr2Qp5dtz9LG/w=; fh=pEzhTg0ac/4WJHIRlAVeJCsnBpFrwMBCjOZhAIgfYzs=; b=CNe0BJLnARX9uqNAgGLsOW8yG4giHRyi2Zfbd8Eo7uj5sHHpZ+pd4lCR4GLT1grZC3 EC1QtQUKLy181OqGzL3DZHcNmkjXWBozxvTNxPWfsWijlj4he9FFyJYMEsJbZ+qOZrb/ susJrOVnIJM+VyOlb9nMgABxpDBdKmfcwzQhCyKbJiEFxkN4ynZHiVFpwCTrEBXrfJkJ NAtXTMUsQ+8etZ7UPr2FtqG83iGvbwDULyEhiCF17k4e0YNXVBfTHSaSV++BCRPKd3Av GTjALaK3Vi2Tto7zXfkdWYE+GoMtin1M7au/lanUb92bsGM3uFPk0MralrqEDDeMXgDr LFIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=mm+T4MLb; 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-80308-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80308-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gt39-20020a1709072da700b00a3e50678318si1555482ejc.238.2024.02.25.13.35.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 13:35:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80308-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=mm+T4MLb; 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-80308-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80308-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 461881F21825 for ; Sun, 25 Feb 2024 21:35:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 817451BC4E; Sun, 25 Feb 2024 21:34:47 +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="mm+T4MLb" 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 D82071B949 for ; Sun, 25 Feb 2024 21:34:43 +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=1708896886; cv=none; b=oFr+dy0xKpw0U7DPQXZrC28N8asFzq8bE5hZn7WRWMe0L2ccQPeNBaadNrMv9v8iVAskfKTFoMjoII5Y3hu18ncXWLie4URYVUKtNqqGoY+wYKzENrwLjBwe07bmXDDULYaL2JNcfZu8f+PUStcgyJiNqtYkmPnkliFf6M6+K/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708896886; c=relaxed/simple; bh=QQsvhwDj8VEU6K1KjI/knaY7wpikZJpWMS+4htoOu/A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qJ2eja2mKo+dDNDPT5zjIXm8T4szc9xOdHQmSzgkit4E13V9p4I3Z/sOWzkA1ldTVHTlrfFADc0MJjgdIlXWfsCDjtDAfDfBSGa811pIdSzlnFxTA9FN0bCZhXE+c+50AD1VTqK49Ydxfl62tc+Xa0Qh8oalIT1AI+pK7j7rbUs= 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=mm+T4MLb; 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 EE0AD2C07CB; 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=mOUZ+TwkiAjRh9ZNzvyYfCdGmY+q2Lr2Qp5dtz9LG/w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mm+T4MLbSCX7nTfRotXb1RXaplysCTOGH3rL1HjPxD2PGcZ6/hE0horowEWSgXa7a wu5JPrKxRnSUhXY93xTmAyCdqu7yFtTKNzIGBkAm1YLENk7GPuTAtcOsjpTzqJpLyK ljr84ELkDdTYImvtfKb4jkkTETWlc4WVZWit2/SMr3GSinY69zbnsnMfn6d5oxu78M gC7qMI+ex5pZ4hO3803hTUeARaXyMRYXFwcXjaXuwbw2UhYlwaqO0IbP08PvJYD/V8 FiHOaIPHQHg9nTTAI2//EE+6bOEumuy/TsCM8xh5vGByCgqQxkR0aLKSTsZq54eVQK Q2EgyJj0jL9YA== 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 A29B413EE8E; Mon, 26 Feb 2024 10:34:35 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 9FFD3280808; 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 3/3] ARM: dts: marvell: Add 7 segment LED display on x530 Date: Mon, 26 Feb 2024 10:34:23 +1300 Message-ID: <20240225213423.690561-4-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240225213423.690561-1-chris.packham@alliedtelesis.co.nz> References: <20240225213423.690561-1-chris.packham@alliedtelesis.co.nz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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=65dbb26b a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=k7vzHIieQBIA:10 a=75wrGpN2Od3tzqupbDsA:9 a=3ZKOabzyN94A:10 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat 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 --- arch/arm/boot/dts/marvell/armada-385-atl-x530.dts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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..088b77987081 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 =3D "generic,gpio-7seg"; + segment-gpios =3D <&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>; + }; }; =20 &pciec { @@ -149,7 +160,7 @@ i2c@3 { #size-cells =3D <0>; reg =3D <3>; =20 - gpio@20 { + led_7seg_gpio: gpio@20 { compatible =3D "nxp,pca9554"; gpio-controller; #gpio-cells =3D <2>; --=20 2.43.2