Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp18640lqa; Fri, 26 Apr 2024 12:52:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdmWWoYB/Vgt2RAkVqCMUR+mwGKls+So1dSGUhs7EwH45i18+NFaHYEJewfzoyxWicDRA8qga6C9fjh8b50dAWQ3wsaDs1eAJu6vzTCw== X-Google-Smtp-Source: AGHT+IGxc6kmOzG+TWcL674otBAcVWAs1CgiFq15ggl/CWuv+Y2cy4Rrpz+AORweeDPkqH/Q1t2w X-Received: by 2002:a05:6a00:390e:b0:6ec:db05:36c3 with SMTP id fh14-20020a056a00390e00b006ecdb0536c3mr4583622pfb.4.1714161157962; Fri, 26 Apr 2024 12:52:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714161157; cv=pass; d=google.com; s=arc-20160816; b=Wgi5//AU7x3ytdg1dX/DoV23OKEYF6bF/6NO5R8b26l+acN0p/z5FBMxA53W6MlWUS O4gVQ4ZxU+wuNM/7Ddz6Cqimr0x/VPaIVNglooscOrrDRRRzH6170rpzGNWTTFFs/Nci CpK2WY0INyT8/fW5qPUngwLqSzvMQKeO1qIHTn8+1Wlu6RPSxRrWJsEqO850Zb6S+c/U Uc0oHVZbeI/citwn9oJsH5CljoAYQtRnjcewuk277B45eoGS/TqzFZxJCT3I6ZXpTZ2f qmJxnL1yifMx9Gndse0XyUs0UDWs9W24vFMDnAF4ELonGYGLdFQCG3miaUNaZYWm0+3h Yd4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=o6y2LJ14txpTdXHbp38HomD5dRIYV/HuQPJ4h1ryQbI=; fh=hGVRZCkMh8UxaAX2Rwhsw9G34dp4nkP7sPLCebdVTk8=; b=fyub1goKVppX4tQm9yCl3AyQj3SaTQTzJ5ki8nQJNV+K6iQHe8UaJdQRgDlP9EKn6c b/g5wVym5riLdyiCQWeybBTvVwTPJ61P2+ZjoPUz8NQfzBZBdW6Vxr1fhaXSg48WhY9d 2k2NFz6zs3ut+FKNkfaQraBK7I8SpsQOscyZREr0eGvxhvAyQPzhJyoF38MCMbefVRTr nZ/Lava75thUof/Qh5+kZIchRpUVWPkxky0i8d6JDhj6upEghLt7ufT/FyoA6umNFSxS hzMW+BsZvYU8EZaVzPYKDem5ObmCFfRQaWC17eedXlqg9E6y7AUH2DtRCwDSn+221PHw f2jw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="09/7GHIC"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-160625-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160625-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x4-20020a056a00188400b006ecf44aa7bdsi15886508pfh.30.2024.04.26.12.52.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 12:52:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160625-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="09/7GHIC"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-160625-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160625-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 36E7E28555A for ; Fri, 26 Apr 2024 19:44:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E9EA1CFA9; Fri, 26 Apr 2024 19:43:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="09/7GHIC" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 09D5018C19; Fri, 26 Apr 2024 19:43:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714160635; cv=none; b=g3riy1gPEAqbOkFDDjLsxdCEJhEcjWgRHHdVzSg9ALY9I777wgMEsoaZWeVnnEOj4uEbt8Rrq75LhFJrBp8vPoWCuxcq2b00BfSSrmEtNOHoAdjgJcUZazgHtku3KYWLB6MrjQHOgqpssIGvj6pGKEg6jvTe0P+nkqb2ygk4ExU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714160635; c=relaxed/simple; bh=1m2KZnSkE8Z9rLOvusGPzukGeEbYzq7AQEGoOjvrcvg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=T5UnbClfUb8oYoHTGxjAQI2kqS/ogeMaW8MDlCeHgxj5dCdx4D6O2YUl1CXfxrdyF9jXuFAWD5WDRqx8ZHKNx//lDgUOpwnlhTc2CfgadiVgYRAJF6dLZ868zOOsHOVfxWd3B9J1hMUKhNJsmq762uD0U9TixvNuI++uy1cwnJo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=09/7GHIC; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=o6y2LJ14txpTdXHbp38HomD5dRIYV/HuQPJ4h1ryQbI=; b=09/7GHICi894+Vn1EAB+6+3+A4 tQBIFsrsvyf9k1FIR7QcIBJXkc3Gz3u6pitSWD94UQiGtqeY12M2u9AbwMgslV8VAlNw/OPqqN7kg oKOVYcTEFHay4kevOmcCxx0QGPhMT4zca1Z+b3eU+R3c6MBoUicpECCv/JVukM4Ey4tc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s0RTy-00E6Pj-I9; Fri, 26 Apr 2024 21:43:42 +0200 Date: Fri, 26 Apr 2024 21:43:42 +0200 From: Andrew Lunn To: Josua Mayer Cc: Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rob Herring , Yazan Shhady , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 4/4] arm64: dts: add description for solidrun cn9131 solidwan board Message-ID: <053fff95-4a7d-4d00-ad38-17ffe76a4525@lunn.ch> References: <20240414-cn9130-som-v3-0-350a67d44e0a@solid-run.com> <20240414-cn9130-som-v3-4-350a67d44e0a@solid-run.com> <3958052d-fc09-4c4c-a9e3-4923871cff44@solid-run.com> <15b79794-41f4-43e0-888e-286ca1fc4321@solid-run.com> <32ec3ef4-0ecc-4ae2-bf76-c7b10f54a583@solid-run.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <32ec3ef4-0ecc-4ae2-bf76-c7b10f54a583@solid-run.com> On Fri, Apr 26, 2024 at 06:51:02PM +0000, Josua Mayer wrote: > Am 26.04.24 um 20:18 schrieb Andrew Lunn: > >>>> Colours are similar to RJ45 connectors (yellow, green), > >>>> and are intended for the same purpose: link, activity. > >>> For the switch LEDs you used label = "LED10"; Does the silk screen > >>> have similar numbers for these LEDs? > >> Correct, on CN9130 Clearfog Pro DSA switch, all LEDs are labeled > >> individually on the silk screen. > >> > >> The SolidWAN SFP leds are dual-colour leds with 3 terminals: > >> anode to 3.3V, 2x cathode to gpio-controlled transistors. > >> They are labeled on the silk-screen as "LED9", "LED10". > >> > >> Duplicate labels are not great, is there a better way? > >> old style "LED9:green" e.g. ...? > > So you have copper LEDs and SFP LEDs, each with the same silk screen > > label? Maybe put 'copper' and 'sfp' as a prefix into the label? > > No, not quite. > > We have 2x SFP Connectors. > On the bottom side of PCB immediately below each connector is > a single LED (as in physical component), each with a silk-screen label. > > "J28"/"SFP 0": "LED10" > "J42"/"SFP 1": "LED9" > > The problem is that these leds are each two leds in single-package, Ah! Sorry, you clearly said they were dual-colour. > which is why I put 4 led nodes in dts, two labeled "sfp-0", > other two "sfp-1". > But I don't think this duplication of label in dts is a good idea. Agreed. Then i would use the colour as a postfix. Andrew