Received: by 2002:ab2:c01:0:b0:1ef:a04a:229c with SMTP id b1csp30819lqb; Sun, 10 Mar 2024 00:34:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXZmovU7RQUT22ToqeUnlK+1yGvo84oPEf8t9OwmXbQbDaQBpTjcyUBTw8UAEV+HDklhTOXsgZr6oZeh9YWWQkOVcz3FcoItUCBeFd8hw== X-Google-Smtp-Source: AGHT+IFxSnnLzXUQNE0LryQardpu0egAXN5VaEOZIuAWRfY65b1hr+K/3B+ZBBh32P417HgTe6KO X-Received: by 2002:a17:907:a706:b0:a43:86f3:af37 with SMTP id vw6-20020a170907a70600b00a4386f3af37mr2407939ejc.53.1710059670467; Sun, 10 Mar 2024 00:34:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1710059670; cv=pass; d=google.com; s=arc-20160816; b=lPOuvz/EFN4fc0c8EfkH/yZJmO4YBuVoGGOTWo4dqL2ANMgFqAr7EKAgylmuFmno2n 5btt/CgN/Z/fhJIoSif0mSM8x9RL82x9h8CDuGPeXPx4TgL9Kf5d5GxOSuLlNRoLrLuF E0oepnZlgrj0QAvVT+9COWjqM2QzwjEwuLWN7phoWazrEQwNqo5awo4WOBbLby2tQwfS qJQuP2JS9eZOpsS8xFU+M8BoUroyJisRPneAU1f7aZJpYzipcFMHU4mteN+jfazTXfNH KDKL7pZhZygxubrexxvsR5YrrztwdBu3FEE2k4qgOLtfLv5i4aKChLa6erz04ZPtzZiC ODEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=nlOJlaxXUko7k+dFozJVYucgoOzQO4lrHgsKNnGOdww=; fh=cjqcwI5UHQcYWvBLMlpsVNNmxY0ogOadMte+CW/9uZQ=; b=Kl1d3f29I/VJwIGKhfPKU1sYrJ4Q80wVQUozU1E13jslJfhr96p4AshuH4+k9ZP+Zo noFQmV3IZSq9C82JXd3WAbkQiRiJkBnkQY3ykIX7Gy42hI9AjsGCFzfu6uHlJn+wieJt uD55JB959FJFJHzYVx3iko2AtN8pCCEjZ6UfTFbkXPhbsHAFx2fjQBDngwLzUjknM3EF Xny190ursDB3VcXwV2qegpHoT2ws2/IYNLAL+hmqQDk6XwS8Af3jLxDvKFxCsamfGcxe hQd2u9aSLEijA70afeYQchZ4JBjUP1R93I0naRBq+bzopKuhIECq/26yNv7dHN23m28z H/SA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9n6DKZa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-98158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98158-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v11-20020a170906338b00b00a461e6ed857si328001eja.781.2024.03.10.00.34.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 00:34:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9n6DKZa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-98158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98158-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0AE541F22AE8 for ; Sun, 10 Mar 2024 08:34:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC41B1D6AE; Sun, 10 Mar 2024 08:34:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o9n6DKZa" 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 D158C3D8E; Sun, 10 Mar 2024 08:34:17 +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=1710059657; cv=none; b=u3R5a6lg2DRVb/C3c4XIXzQ6vyByVMeq2n7Mtq/0GCmrPf3S/Xbk4AlSIcFdvAYYwljSl3ebwjLQe8GbBLdEY7wLf0NKct7C98e005914f+0hQmCBXCOq+muZAVP93ImFDVKFrYeb6BKc8GeCsZwVechEUxfi/SEOuvZiUNa9ys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710059657; c=relaxed/simple; bh=gcfTwszRAmyvo21KCTyIC/nvbRn944T+nd3HA1Ic3V4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jhfqkVi8NspURokxz/YJVFKmjp9hWDjJbmo1+Baox8m8oakCJ3mVaNwV83IZ0U1nlxDe9BfiDODEG404Gn4RmZXdSsxMnEHe3ieqZjsK5LCr2M0XVSTvZWd+b3ISAw9gElurqcU/zcSauM2gbFNoOYVI6ZWCeNV+8q5BECtlCik= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o9n6DKZa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87A90C433C7; Sun, 10 Mar 2024 08:34:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710059657; bh=gcfTwszRAmyvo21KCTyIC/nvbRn944T+nd3HA1Ic3V4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=o9n6DKZaKoyEEvItgDo0DyiD1szehUfFk3FXrevYmgOneMQTbupoaIQ24ScJWbjjk Aej5y0DewhUZ3jeOmZm2LHjWYI2cg0g080DT9ro8t45s7qjlUcY/CgPyMusqP+4OBB e8UooycTp3Mo12ZpWW448AhIcGzyzFR8vQTqlcnkQiv6Ja04HelidMTZNYQo0GShY0 6kCcaCE3QvVEFzd+WqPT4eq4USvP7HlWkdn8giLRuDWVsS6WdUX+h1G7pf9gDvakyK UaYk4hlz097z+DqzmLHwtX1wvXvvG5vUbmt36OQ360jlnYnWJQoxL0e8ImqL+VkDei 9b/qUGpILWCxw== Message-ID: Date: Sun, 10 Mar 2024 09:34:09 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next 1/4] dt-bindings: net: dsa: realtek: describe LED usage Content-Language: en-US To: Luiz Angelo Daros de Luca , Linus Walleij , =?UTF-8?Q?Alvin_=C5=A0ipraga?= , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20240310-realtek-led-v1-0-4d9813ce938e@gmail.com> <20240310-realtek-led-v1-1-4d9813ce938e@gmail.com> From: Krzysztof Kozlowski Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TYeTVXGSyDsuZjHvj+FRP+ gZaEIYSw2Yf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charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/03/2024 05:51, Luiz Angelo Daros de Luca wrote: > Each port can have up to 4 LEDs (3 for current rtl8365mb devices). The > LED reg property will indicate its LED group. > Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. Tools like b4 or scripts/get_maintainer.pl provide you proper list of people, so fix your workflow. Tools might also fail if you work on some ancient tree (don't, instead use mainline), work on fork of kernel (don't, instead use mainline) or you ignore some maintainers (really don't). Just use b4 and everything should be fine, although remember about `b4 prep --auto-to-cc` if you added new patches to the patchset. > An example of LED usage was included in an existing switch example. > > Cc: devicetree@vger.kernel.org Please drop the autogenerated scripts/get_maintainer.pl CC-entries from commit msg. There is no single need to store automated output of get_maintainers.pl in the git log. It can be easily re-created at any given time, thus its presence in the git history is redundant and obfuscates the log. If you need it for your own patch management purposes, keep it under the --- separator. > Signed-off-by: Luiz Angelo Daros de Luca > --- > .../devicetree/bindings/net/dsa/realtek.yaml | 46 ++++++++++++++++++++++ > 1 file changed, 46 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/dsa/realtek.yaml b/Documentation/devicetree/bindings/net/dsa/realtek.yaml > index 70b6bda3cf98..45c1656b3fae 100644 > --- a/Documentation/devicetree/bindings/net/dsa/realtek.yaml > +++ b/Documentation/devicetree/bindings/net/dsa/realtek.yaml > @@ -108,6 +108,32 @@ properties: > compatible: > const: realtek,smi-mdio > > +patternProperties: > + '^(ethernet-)?ports$': > + type: object > + additionalProperties: true > + > + patternProperties: > + '^(ethernet-)?port@[0-6]$': > + type: object > + additionalProperties: true > + > + properties: > + leds: type: object additionalProperties: false > + description: > + "LEDs associated with this port" Drop quotes. > + > + patternProperties: > + '^led@[a-f0-9]+$': [0-3] > + type: object > + additionalProperties: true This cannot be 'true'. Which then will point you to errors and missing ref to leds schema and need to use unevaluatedProperties: false. > + > + properties: > + reg: > + description: > + "reg indicates the LED group for this LED" Drop quotes Best regards, Krzysztof