Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1800875pxb; Wed, 9 Feb 2022 04:57:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2ffqATEVsPTzSmTz8fv6Zd82W+USOAJUdYgTRXe3TZGulyjC8mZxO6WWIiLRBtYR63ulB X-Received: by 2002:a65:6e07:: with SMTP id bd7mr1786270pgb.457.1644411448741; Wed, 09 Feb 2022 04:57:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644411448; cv=none; d=google.com; s=arc-20160816; b=tCc7I4vi95Vs1/WobBeQFiIrJ3VY80uWBDzLhSE/kTfEITu3gW5ipWZW0CXeHyL/TX mmVLI6hivf9qX0xxa5V0bMK8i32WCUf18dEs3xCvuNXEeGwDbZZ1zDtep1X+UGL/RuDo EfOei1h999f9D0N4JsgFhx/yQi4HyEj0rU2H7mZtdYWmKsLOE3cAl5xHVqIiw248GV3U mkwYS7/rjsR7aFxMXfKSyyp1LXDU3OQYXQkDq62oSI7J+4VAR9Dete1SZeaTG1KFl2NC ptQMbqxVREaUa0WQimMnVLcrruDXY3tn8HFeOpmu/JlcB155W4u6asX970bJv7rbeiv/ lXfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=22Xi1z/ScqVSExlbxCk1GGbcWjUYoCEzTiIBgifbR8k=; b=lDWdrLzWxcRXmxab28bRNJ+s6T66Hz9ZPauU+ptv0+wHB/JE3eUXqz/kXdQINYCeWM ic82tSHSYELxcazIDj2cqyJj66VFBC1XTHsPyy5zcBNekLYOrASUC2jlPtl2u32gnaIj AlB8dPMD2E2yVtDt/Llhxo7WCE7aBvW/EnNYdRFyhygXH40s1tDln9pyr+extHClLtPp L7/w6aIJXA8EL1pO+lPn/56G7P12yMudPHAu3JRb3eHLrSS4t1nHlKV4N0PeJRWeW7QK FNfWEVJTBL7sB2Hfyh2FG991mO/1bgn3huYUJZ/zfxu5I4SRYw8NJ014BrTij/u0orHd 2hfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XYCAQTI4; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d191si15453081pgc.412.2022.02.09.04.57.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 04:57:28 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XYCAQTI4; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BEB43E13E299; Wed, 9 Feb 2022 02:32:49 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234097AbiBIIiF (ORCPT + 99 others); Wed, 9 Feb 2022 03:38:05 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:40058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232550AbiBIIiD (ORCPT ); Wed, 9 Feb 2022 03:38:03 -0500 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDA65C094CB0; Wed, 9 Feb 2022 00:38:00 -0800 (PST) Received: by mail-pf1-x42f.google.com with SMTP id d187so3013710pfa.10; Wed, 09 Feb 2022 00:38:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=22Xi1z/ScqVSExlbxCk1GGbcWjUYoCEzTiIBgifbR8k=; b=XYCAQTI45l9GPO+hXmMbN+HqvTO6Luiwt337miZ/r8Qj8Hld+/3tuyT2zYGQhNOCvv 80AceUYqEdoJHxmnmIo8Er6kBSjMvZX/RDTqUt536+uYcmJ1LkX5yrv+iYBQPZJ1zgHf kcFjiPAKN2rA7olq5IT7pl8frpdXSyTpKpfdJTIGKwPfz0CVa2MloGKQr7aSPdOTEmml Bmba8grwjsbSaIYnmjQAe07ua+OqBkarVDtnKBGxR1ZaFDyK4eOtp7Oo/mn+vItvi4hN fSgMX5H4CZv0wAXyvccIzuVp9XQx8mWAtmNZtHGaDkEr7NX/UiLpmBU1XZAld1IVNIr3 bHkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=22Xi1z/ScqVSExlbxCk1GGbcWjUYoCEzTiIBgifbR8k=; b=3N7fstn8mh45s1IbgpGeH3brIZlVnDKBZOEEl52ctWk2MXpv+pVLV6LiDB/p9+qq6s QTzGakTarbXoYJPjYu2C/K3wq7AfK+7eooin1BvreoGZ+oFZgzE01mqdrdlj/9275+f/ CL2ltxlzBdxtOY/Yotrs3FjJcOuru7y/z7E0R/P+OoMrvwj4WiIqII8oUxR3nHNl8jCM PBM9HwQYdMvqfEMl8z07LqC+2BEK/G8ieFMoT0WT5gJ/5NGzGsRS2Qt4TjogfKusuBd5 TScWMBF7G4expMjVwXNax1X/xvgqgfRGBz7b888Y922/J7J2lfNRnz2RXSR1uoaMlFBe NN5Q== X-Gm-Message-State: AOAM530LEE3aqw4FuFWqBpXci6oa2ZqGoo/xy9vrbGNK1j99opH2DJwu ouiZb+IzTxdX2whtYsDnIGRoWe2TnHw7WfU/Axg= X-Received: by 2002:a63:6c84:: with SMTP id h126mr1043241pgc.456.1644395877349; Wed, 09 Feb 2022 00:37:57 -0800 (PST) MIME-Version: 1.0 References: <20211228072645.32341-1-luizluca@gmail.com> <7d6231f1-a45d-f53e-77d9-3e8425996662@arinc9.com> In-Reply-To: From: Luiz Angelo Daros de Luca Date: Wed, 9 Feb 2022 05:37:46 -0300 Message-ID: Subject: Re: [PATCH] dt-bindings: net: dsa: realtek-smi: convert to YAML schema To: Florian Fainelli Cc: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= , Rob Herring , =?UTF-8?Q?Alvin_=C5=A0ipraga?= , Linus Walleij , devicetree@vger.kernel.org, Arnd Bergmann , Olof Johansson , Stephen Rothwell , Andrew Lunn , Vivien Didelot , Vladimir Oltean , "David S . Miller" , Jakub Kicinski , "open list:NETWORKING DRIVERS" , open list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > If there > are properties that only apply to SPI or MDIO, you can make use of > conditionals within the YAML file to enforce those. Having a single > binding file would be very helpful to make sure all eggs are in the same > basket. Sorry Florian but I failed to find a way to test the parent node (platform or mdio) and conditionally offer properties. What I did was to guess if it is an mdio driver or not by checking the "reg" property. Is there a better way to solve it? Luiz PS: I might post the merged v2 doc soon.