Message ID | 20240227212244.262710-5-chris.packham@alliedtelesis.co.nz |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-84024-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2980618dyb; Tue, 27 Feb 2024 13:41:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVum0h/N0lx5sTWgeMXCZjwDwzjfwFDvBmoDd8w2BF9jQbzJjWt7XX2wIQ8sbuXtr6xwudFDd/swTtOw+M2yo6JsR96fg== X-Google-Smtp-Source: AGHT+IEygkFtZlu6Z+SsF7Qm1MoH7s1SxeQbtc0uVqLOrLYdQI/UvL6pakmp5NEG6cWfd1+U2dHl X-Received: by 2002:a05:6808:144f:b0:3c1:861d:765c with SMTP id x15-20020a056808144f00b003c1861d765cmr3666200oiv.54.1709070088210; Tue, 27 Feb 2024 13:41:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709070088; cv=pass; d=google.com; s=arc-20160816; b=bnTiJKDQT0nWZ4QqR4zamurcN5Unglh74D01rgX2B8LYFcBzOuA1MZvVz5NuIiY1m4 76MDt5HG4i/xAuNLJY3VuS1Qu62cW7HlNS/Ghnvx2ETwKbHkKIm3pdryNa5vG8ExSo6K /RlKySIfX4NiSThgGpN0WSu44olIEaQh0GkwepDAgPnqzhAqYTHIUxrtM2nZmP6hRU+i qQW6HJsanKFfurecvp9G3DRZgImCo4r1f8TD12dQnQAmFtdAWqCzv1NL73z2vrGxxtG6 nvlnfEogU96KlG0b2cMnHJVSpXYt8S+Nk0Bxdb5rurPwvF6+uM65gykNebzk6OPiPZ2Z 36sQ== 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=3gVimorvGq76t5HgY8x6KoiKr8dAvSvtX0ygiIDP6To=; fh=0E1zKu25rC1dvhxh54JUfQllyJcUtqgw4XThBRPfUNc=; b=TSi70BVDKMujvik1QGCXmr5nkfkWB+EaeHkGQ/EU5u4buvMUbUdWKrqz7Q8Vvc20E+ ftkPPf2eEDAkBWpeUoWdi3oBk6VtZe2+AGLLCf9uWERyftT6vDEIUZIL+l8eFkUgoLUV NArJh2hyhp26p3ykDYIoUqOW7F1YsURrQDrHvvxB5BKCKy2aIcRMZO2jQZRk9RgFIyNr b1dGqxabDx+eBTEIpwjyFwI+3MHqjezTF4vX1GUFzBqdNNCFwduBPAukt7vzGI+FNBzT v1CSa5XOu88j8Q2s8DWpH71GZdr57vxQbS96aTv2dHmnefZR6SsP8E4s44HVFyIxQiMw ZAiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=VT8BiIwW; 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-84024-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84024-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k64-20020a638443000000b005dc528d603bsi5997723pgd.675.2024.02.27.13.41.27 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 13:41:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84024-ouuuleilei=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=@alliedtelesis.co.nz header.s=mail181024 header.b=VT8BiIwW; 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-84024-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84024-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BDFAC28EE84 for <ouuuleilei@gmail.com>; Tue, 27 Feb 2024 21:23:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24842153512; 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="VT8BiIwW" 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 0541514EFF0 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=1709068971; cv=none; b=jNtauTh00F8IKBw8yRCpBCwIPpLLHyRK+U7qRWYOj7WWwlwyWWlDE6MmRuYKNMTvBw9BpnomnipJYA/rpLapin1nDvoHbkH9wYkafjKoS/xzQi6qhYSST4y+GLS90Od27ORmkF1ymNDx1QhNt1KBYKyg4MCj2w+0CNuKZLiNxUg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709068971; c=relaxed/simple; bh=VZaJSLBAvjIIjiBkUk207ZF5DNLe5yVrF+Vh/8Da/yU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Nj2J2PTZKZ7LeUmw2n0QzEA75gg2DSyhUgSQXGWyqPdNd0gps17iuAOOWmT48ePQWqLaHvj60uTn/Zyl4PADcIGhLV1rwXg74iSpovOQzTjdaFoCYQ8I0oOLbqsualwzS6r4fSS4soSkyNxKhsx/uYjSCi3b4AXET+mMiGOtYaY= 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=VT8BiIwW; 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 E72852C05E7; 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=3gVimorvGq76t5HgY8x6KoiKr8dAvSvtX0ygiIDP6To=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VT8BiIwWMqGHBPBvp7nGS5j8sIWMEtYSUijWWSDfg+LjY6N2ul8KQnVS1Lh4EEqzQ v06ALVAHcWXBwyuYmOnH3SN00os7rZrlnDYGY4YdKo22rxUzOl/35Jfdfthp7e2qj7 QZLgNsmQ4ZV6l448JAsQfhkm80IJphryAjzHATsmUYw3fCQpdM1Cy6IDBR6oXaDVpB w++cThZC1uTq3GxetQndkAtrfNfNbf3WnJs5RFnLY8vaWdgAVWL4R4FriTTDGgPVwL C3kj1pXRFoHRDvrtcc+kbrby0IK9tY56kNdEQx/BJjkTuKPvhrFWAGYJXHxb56pVcF CE6OSCKDOYG1Q== 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 <B65de52a60004>; 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 6DEE713EDA8; Wed, 28 Feb 2024 10:22:46 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 6B9E0280AFE; 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 4/4] ARM: dts: marvell: Indicate USB activity on x530 Date: Wed, 28 Feb 2024 10:22:44 +1300 Message-ID: <20240227212244.262710-5-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=f9q4IQp7et2z0Ui1RocA:9 a=3ZKOabzyN94A:10 a=zZCYzV9kfG8A:10 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792089876651315734 X-GMAIL-MSGID: 1792089876651315734 |
Series |
auxdisplay: 7 segment LED display
|
|
Commit Message
Chris Packham
Feb. 27, 2024, 9:22 p.m. UTC
Use the dot on the 7 segment LED block to indicate USB access on the
x530.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
Notes:
Change in v2:
- New
arch/arm/boot/dts/marvell/armada-385-atl-x530.dts | 9 +++++++++
1 file changed, 9 insertions(+)
Comments
On Tue, Feb 27, 2024 at 11:22 PM Chris Packham <chris.packham@alliedtelesis.co.nz> wrote: > > Use the dot on the 7 segment LED block to indicate USB access on the > x530. Not sure if it's a good idea. I have some plans for the compressed format, i.e. use DP for dots (or compatible pieces) so we may print up to double characters with that (e.g., '6.4.5.3.' as a single string on a 4-digit display). That said, I would like to defer this for a while.
On 28/02/24 13:09, Andy Shevchenko wrote: > On Tue, Feb 27, 2024 at 11:22 PM Chris Packham > <chris.packham@alliedtelesis.co.nz> wrote: >> Use the dot on the 7 segment LED block to indicate USB access on the >> x530. > Not sure if it's a good idea. I have some plans for the compressed > format, i.e. use DP for dots (or compatible pieces) so we may print up > to double characters with that (e.g., '6.4.5.3.' as a single string on > a 4-digit display). > > That said, I would like to defer this for a while. > In our case this is how we've matched up other devices which have a 3 LED tower for "power", "fault" and "usb" with devices which have a 7-segment LED instead. I just wanted to reflect reality in the upstream dts. It also answers the question "what about the DP LED"?
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 f55a3dc6b6de..94ae9f4ebe1c 100644 --- a/arch/arm/boot/dts/marvell/armada-385-atl-x530.dts +++ b/arch/arm/boot/dts/marvell/armada-385-atl-x530.dts @@ -54,6 +54,15 @@ &led_7seg_gpio 4 GPIO_ACTIVE_LOW &led_7seg_gpio 5 GPIO_ACTIVE_LOW &led_7seg_gpio 6 GPIO_ACTIVE_LOW>; }; + + leds { + compatible = "gpio-leds"; + led-0 { + label = "usb"; + gpios = <&led_7seg_gpio 7 GPIO_ACTIVE_LOW>; + linux,default-trigger = "usb-host"; + }; + }; }; &pciec {