Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1978374lqp; Sat, 23 Mar 2024 19:11:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDWAg5cA+ZG9CQZN0X7EuspuuuoGExnh1Zz+S0bKsteIq3IlS/In76wDPwmYFna+G8/zZ3y5P9IdfgX5BTQ6MykK5PD0hXO9gos4HNcA== X-Google-Smtp-Source: AGHT+IGZPTTETSBGReWiC4k+HUYKVNnSOwWTmme+giSp7HKFLV/Xt/Mut39J3kqPRfn5IUNdA4rc X-Received: by 2002:a05:6358:9386:b0:17f:5c83:cdd6 with SMTP id h6-20020a056358938600b0017f5c83cdd6mr4709077rwb.2.1711246283287; Sat, 23 Mar 2024 19:11:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711246283; cv=pass; d=google.com; s=arc-20160816; b=QwWQEmdoZ2JktkuY/loRmTzZS6qdNXaLCAMh5F2ufxCpg0eQrdnD4E1zkZiZ+yV3kp wB8Wbt4EJsWMwt6yTbQhDjg0psMVFFFLJkhEC4czx7JAhD/lmyY/aRtFV3ah6ttzL/f/ TWFFD5x1QSQ5iOhikGazu1BJREhEZ87CoZfEEP/z0LCl8QnpfM8gK0SnkbOWCMAh0TmT r237SI/g/3H2t0PsGR3uTFsVo8D8NHOH9PzQo+68RZk+H2U1ziPBer4PTIv04SNeVpYg JZxeHm/x5MxFi5JhV0Lc9kJVX0fkD5wd6Zg1fZGp3rbOMWRQXcMLKdEU/VfUOJ0CtBg6 puYA== 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=Y9wMu56cuKN3w+mxBDS/FvXc6kf2qXtgJwy0PKkso6k=; fh=DjLNPnS/ruaPPJf5RXBWmQSR5GqwwrOVR23Dp2pFqVE=; b=NCTpcu8rs4FTJ+VesdwMsS3GE4fx1mpq0NDgs0oszS+QYKNS14ebCFOA3wVuZwmpNJ Aw0Mx1Ud6ohSgvXIKyMoWTZc3ZZfy5nRMmzmZZLyxshu8Nwf762Irx/0fBlt7uL9p+Wh 09FreYAVRUAYZkDey5xq6+ko91FMSfeMjDwgLTl41rHdnPWue/hxoXeR8dQfDBHBcIjy QGHp0bBIHGvfVkqtuzYbulzHiMGbI4pXJEAAzAt+sVS1IUMdOVBTUe+cwRNoTML8yTE4 5wZGR3y5ndJQyjTvTbOJiPqMNsL2l6GCsFsTa5qruXtYjdoBKg32y2sglOIM7xmkreE4 KrZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jfRclf39; 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-112546-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id hv15-20020a17090ae40f00b002a03fca83e0si3653553pjb.24.2024.03.23.19.11.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 19:11:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112546-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jfRclf39; 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-112546-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112546-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id BF4BAB21A74 for ; Sun, 24 Mar 2024 02:11:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 86F7B33D5; Sun, 24 Mar 2024 02:11:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jfRclf39" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 0649981E; Sun, 24 Mar 2024 02:11:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711246267; cv=none; b=HJRim6hDMnmmM4AOlQC+tQQdx8SRe/ogPdWYE5KNNIWOWk/YoEscS8Kb5XNx4hAZtxVn7prjgnxcP7o7u/BYy+88CyKVn52Z/DoNW6BJhQAkwrUJ61VKUDfcZof5s4cDePBXoFHDKPuuIsimLSsWZYDDeqyP0LRcKUevRh79DHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711246267; c=relaxed/simple; bh=O4mxWIZtqaCaa6tGkopSI4pdla5nDON3z7rbb6/L1r0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=LZDUS7Kqa3nOaSE8Ru+Qhrv5iaNuZ3Yqb+lkcYz3mA03YCW/GRnuJbzlKIf4LTxv0QInE9cRmv8ccyfqTzIZlO8HmlMWKjRHfg5DTQqFfRbUjSt/mebIRWvGjrYAnjW1Qwf4Yhkf4pQiVzJge2Eb92mbJHBDWTrXHXGcJoU2qsE= 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=jfRclf39; arc=none smtp.client-ip=209.85.167.47 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-f47.google.com with SMTP id 2adb3069b0e04-513e10a4083so3777936e87.1; Sat, 23 Mar 2024 19:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711246264; x=1711851064; 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=Y9wMu56cuKN3w+mxBDS/FvXc6kf2qXtgJwy0PKkso6k=; b=jfRclf398hU7aTyO7NtvZCVMKolLLjtNA39qTjKiqvgvEk13vpdGBzFkAzvgldCYWa M9Ex0K4w9B15L1SEyDENr+u2gTv8vAIImOhnNVOgmTZmum+Suc6Z+OVKB97DLF1EmXBP VFmTbugOwthsrkT8M4q0ilrBrwZ7PY84vtOvknoisczX9ul6Gc4ZJqiUzaXuISc+GyDg wnPd57sUqrvCpY1SL8R+2tpQm8cQtNLxtEe2tdffVkou6pfogGe33OJty5l5vUFLyg9N zSBPukXPYytekGjG/h7dG9o12codxKLUNfHcZVhLu+FQZgwGHSwHOkRxtmVIjh7ookeU rEXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711246264; x=1711851064; 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=Y9wMu56cuKN3w+mxBDS/FvXc6kf2qXtgJwy0PKkso6k=; b=hE3qFeSVk5la2ruGbPrKc5r6l6rwhtJ2oIHY1vtHR7H8/u6OfgaOBKkC3CWezHgcfY O+LnIY/tHqllQk83J1oqcUu0zUKEuMm4fU1bzs7lE4FvlZ9/i5wcpfPbRov8yEKoIMRN 69KSVWgWt2sSrSzOSDYeOTXNLjcelVGuyYKbmHeozF6jRgM1tZ2U6hyxRactvQAFglrB bibcQNx2LTCA6Wv+LVPW/6NM5zERwQpp4W6jdMD3+kKC8A1TiJ7cZJwhFY+p/6o/ND0C GbUr85a5KfkIJPEqVkgvSBsm1wA3g4f38CCmz6CrP1nKPFw6JvdRUJS+CsqzOOrZK7WX Saig== X-Forwarded-Encrypted: i=1; AJvYcCXxe3JyREYhVGUD6GozFAtGaL+bGQD2co3QoIy4p9EbD7zSi0C+kdlP6Zy149tFt/oAs1lkehTHxA8fqQdv/4ZsGO6lNk3d7r+P22qTeMU01YrTYBvYGN1ZAJdWEma/LTYf0GdPFART0PWiARL4Vo70DIM1umwVM9pjKY+iHx+iOQ== X-Gm-Message-State: AOJu0YyJ1DPvxsO4d19sUCe/mUhvnEcf19IHem1YIdjJXX+fR577Zgld AAHWIK7rS4hA7MqQe52aZ+6G3sSIvY/FDnriqOIFN6YB/X0JIQ2scxsDIGUkAL1rnfsTMba3CV2 F+RBL1hxqBr9+wblTS8CAUnM+H8o= X-Received: by 2002:a05:6512:1ce:b0:513:cf5a:f872 with SMTP id f14-20020a05651201ce00b00513cf5af872mr2003294lfp.69.1711246263889; Sat, 23 Mar 2024 19:11:03 -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: Sat, 23 Mar 2024 23:10:52 -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, > >> > >>> + > >>> + 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. > > Where is the restriction, in your original patch? I tried to limit the led index to [0-3] (from the original '^led@[a-f0-9]+$') and reg also to [0-3] (originally not constrained). > > > These suggestions will redefine the leds property, forcing me to > > How? I really do not see it. I thought it was including the previous object definition when I mentioned the same property again. However, the "unevaluatedProperties: false" made it clear that it is actually replacing the previous declaration. Sorry for my lack of experience. > > 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? > > I don't follow. I would like to somehow add a restriction without replacing the existing subnode definition. I'm not sure if the YAML scheme can modify an heritaged sub-sub-property without redefining it all over again or if the parent object requires a specific subobject property. Anyway, the discussion ended up concluding that it was not worth it to add such complexity for this situation. Thank you for your time. > > > > >> > >>> + 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. > Best regards, > Krzysztof > Regards, Luiz