Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp394988lqp; Thu, 21 Mar 2024 04:56:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVNCXum79L1K95N6SFKMzxE29Xvwjg4Kt3ZAVLpAp5wmWc5fTyLZD7JFgXDIicO5wW49ea//XELeEOkL7cxO62MDxnH/LQ/vobJQUPoxQ== X-Google-Smtp-Source: AGHT+IEw4Q3pUgHZbi/fAwhp6mg4VIZzX5qRxwUwPoXXz6snpjazCiNHnZuf+IjE3uzSrEowAxzY X-Received: by 2002:a05:6a20:d707:b0:1a3:8195:17 with SMTP id iz7-20020a056a20d70700b001a381950017mr5377415pzb.42.1711022214743; Thu, 21 Mar 2024 04:56:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711022214; cv=pass; d=google.com; s=arc-20160816; b=AYYcGESAq9JfhbzSXe57DdAxO978YUEUMvxat7qnXrTy3ekefyBOOR3/+JQa689I4D 559BKbk7IQwqwV8HWzKjM6+/vqZegp/Br9QkX+XZQ6DrE1KJk/PR2ThHqDrHF+PX9/ML DtNhIgGoQd7FKDuDDOQXRthuZ4rBVpGqpz1sv2oPj9jVSDMtutQBEHF70TzuPVdwSRaa Tju3M0ZpszsgfJ7XEmA3lOSMhhAjZdvQpche9AtveGMNSDyvhYtrQMHFfhhm/YZu67U7 JdyG9J9GrP9pTcjv8GcWhASC1AzXWnoa8itbHWjL05jrjw1xoNsn92T/gWvYwzNQki0R NQKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=qroAAFcs7TC1tOdTn1sB37AUBpgXbN1aHENpqRPoyEw=; fh=ZojQkKOxnywhE1IXSwvVZov/hp+oITjlbMUjUUQU9+I=; b=f+H1CKc9OciK6G7mZ2rbt45aKt1qTBGQQLfTMLduy0S5iOudlpaxk4RAYJhWy2JOg5 xF8IW9BYNo0HrYio3MVa+56ItHxYV+uzedNbfvxG9hYd0B7DHbWupaevgtuBovs6b0gf Kuq/FLNrgXwY2649ceYbP+ocAabF6PTRgI10rEGvv+fJj427SN3zgl8Kq2xRWsc+NXaB yB83Tc/k6aOBz6wReSKjYKFl06tkysF7o4k2YUUYen8Ahi5vGJzTq+WIWGgwOmP1B7Sn uoMCs4BR4eLjCK4NXfGMeD7Xg6Ud/UaintbZD8eX+9QOBtzH+uDgKGsF/aS3O+DKsPrR O/3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=itpAkv0S; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-109988-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bo8-20020a17090b090800b0029ddfc11ccesi3377242pjb.78.2024.03.21.04.56.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 04:56:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109988-linux.lists.archive=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=@gmail.com header.s=20230601 header.b=itpAkv0S; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-109988-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 6AA87281F7F for ; Thu, 21 Mar 2024 11:56:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D06B05F466; Thu, 21 Mar 2024 11:56:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="itpAkv0S" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4401758AAF; Thu, 21 Mar 2024 11:56:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711022203; cv=none; b=REmNzSYE4z8pioBMe/aMD2zIaq3Dasad4v/Aw2C+nCaAeGYB+G1QoLMxyBmNAW/FqFfsZk93pH8kBED+pqjPy8LCOj9/joEmeEXt0eVAdMe4RTInC8tuNhA12v+/hRWzISQCnfUvGvFsKG52ST1LvdPsb4mANx9dP8Hsy1MRX6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711022203; c=relaxed/simple; bh=ClOpV1tUHPrV9xbbPmCV71AFRJniHeEgt5+wDpHdPuI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=oLlkUKUK2s0VUt1U34uN+CBjF50CgFhBkQq0yOzbNpi/Zo0Y0BC4K2bLAhzTCeF7Swgx4dHclVRrCHipYeMJlSOPfjhTZEZGaRDPkLUjJlEbwPutgALngFr1Nltc+rU7q3mQCDWLZX5BbLZVK4rAnxujt4ZdQBSsN/kwtwhe2xM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=itpAkv0S; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-512f54fc2dbso910903e87.1; Thu, 21 Mar 2024 04:56:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711022199; x=1711626999; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qroAAFcs7TC1tOdTn1sB37AUBpgXbN1aHENpqRPoyEw=; b=itpAkv0SePTYNevgPlq4Ns4hfmR8925Z4mz1eYaF7VZiPy9+ThNzBkC9aHnkUmEFcx PCD/gof8HJvnrgNM6lheFsDVrVsUp17EELTW03Zx761R0Y8wO+XO64ubt6jOuaRwLKkg k3l9ij4FfC1BwOP79tyq10SbX6/UwXSpUn4xbiV7MQ6UtBOmCTYOuH4dqnuisgq+C+x+ K5ZCV+IMq6dZnggvcHWgICdSJPXR7kQDnOz4kJ9WB6kwLMF3AHzdlKanv0pDbD+Zq91r eHMyH5FYzw2J9x5x70UcPywJ96MO9xQb6RZKU7Mfs/9S1EZAEzz+CxbQccnJ8vn2OFjF sWcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711022199; x=1711626999; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qroAAFcs7TC1tOdTn1sB37AUBpgXbN1aHENpqRPoyEw=; b=oeedb5k08ClJOAYbHjM5oBI+h4VIwWNuSXHEl9Y6KfWOWW+aOakpqAsUi87nZzUr5s YgUfY3Fj5efWufxceHrMD7glqSFkRI2tiG9Elxq7oK2trSuGUfFD2uYP9IOABXqXHQmh 35n/HIo+L8oAh8GV3827JyTIBWEBwSrEd3lSjdeKFQPW4kJnht0dvSiEM0GkXmVnECzW ouoVZ6TeSfhzkVoO3lO9ZR2f8iKbELGCm9HBn2jAYDBX/s8DnbkylvB8/JLqzzAskOll TqK/Nk3oku9UZBdt86W6YnPpxkKYouxHt/4BFKbOj7RsWgeUpX1KRrTjHtvjSLYV/5x/ 2ssQ== X-Forwarded-Encrypted: i=1; AJvYcCVUI6LcleibY41khsjPOelNfELVzEJWTJ5CYE8EJY03FukNKPuhRp5qo0SqwBt/uuFI3nxkVfweRlDiWHFO+/6A33K2gvumN5PzOQzMKGJ8YcEhiUGB/aA0ejsq1InLKzjKWtJPdQnk005/YF/8qJ+jyXp/yG9mnq7ak8fGjjSkcw== X-Gm-Message-State: AOJu0Yw2MIVZsKJ62yp0qD3sxFZdo2AUDbTbIpDTHUUU+Gg3G07LtYYe YIseVuOZOV6WP+cROZ7H1hDLfdyE9pVC7EryW5l8LNMtYvccdqBiRVcjTWzE3g/HCpW+k9BDmm4 vUgCSkLTJGD56LI9A3qtBkt3LypQ= X-Received: by 2002:a19:ca5a:0:b0:515:9479:a997 with SMTP id h26-20020a19ca5a000000b005159479a997mr691094lfj.10.1711022199188; Thu, 21 Mar 2024 04:56:39 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240310-realtek-led-v1-0-4d9813ce938e@gmail.com> <20240310-realtek-led-v1-1-4d9813ce938e@gmail.com> In-Reply-To: From: Luiz Angelo Daros de Luca Date: Thu, 21 Mar 2024 08:56:27 -0300 Message-ID: Subject: Re: [PATCH net-next 1/4] dt-bindings: net: dsa: realtek: describe LED usage To: Krzysztof Kozlowski Cc: Linus Walleij , =?UTF-8?Q?Alvin_=C5=A0ipraga?= , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Hi Krzysztof > 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. It is a left-over before I adopted b4. I'll do the cleanup. > > > +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. At some in my frequent system upgrades (rolling release), it uninstalled the yamllint warning: python package 'yamllint' not installed, skipping It should have catched that before. > > > + > > + patternProperties: > > + '^led@[a-f0-9]+$': > > [0-3] leds are already defined for a port. I'm just trying to add a restriction to allow only 0-3 leds and use that to identify the group. These suggestions will redefine the leds property, forcing me to declare #address-cells, #size-cells for leds and reference the led schema in led@[0-3]. Is there a way to just add a constraint to what is already present? > > > + 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 >