Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp435376pxb; Tue, 1 Feb 2022 03:17:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyb7pIOMtBUDQZdmOcmB8bd8moxCvillliG36GByUbFmfloat0dGUsnHzpARVGiPvGa2b0o X-Received: by 2002:a17:907:a40a:: with SMTP id sg10mr21206946ejc.44.1643714232522; Tue, 01 Feb 2022 03:17:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643714232; cv=none; d=google.com; s=arc-20160816; b=0bqrCXWRdFJNmPSz+QPpdjQ4ZK+eLxJQ+H6UKEWhGSD2lKANhSqM0iNkpgDm+/eTfK A7kXp0KH81N6Sn+blv6oKRDeaaJZfmB+ve5DMcpAyvc1E37Iy9jaPltau5AozyJXfQnz 8u3ezsdwQ/zSfod2pXpZ4N7VjPxveQtzMin5Puz7S55osncOR1Vm/vssCtCdc0ggu0Fo W/An8D4cmOCyeoUZozsPIdag0v6EQoz39N2WT5wheOHMVreo5qgHxFz/+BDpiiCqabwe 2/A4ellRUQra/oq8NsWU7d7hlrcp5O4mzjQyQDcRRo4fdxppEabc693UR/IJBKMLnxl0 j6ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CzSjPpfTopj6ntF5tKbbTI4PqBmUQrwkOXKtWWFpnX0=; b=ZIB35/LXSQeNfrwZrMdqPvd2ORlolnw9WnCsYniMd6nBWGnPxVkgNCPljansWRrf+o Ty7Ext99SACJU1pzx1LhtjRSu6lWtCljjrNwYW/o+3YEKOqXjG00SqxNaVIUEOcQ/d4+ AOZ4MdxZo0xYiD1w8mZa8cVgLEwncdxgFPL3AY0jEXP7NB3DjM2yXB1PQwZaYsfCLDky gWg0c8iBxor26SUbcYBloHAniLLFiRTczcT2uwS75U+sZRyi+rNMwzP1FD5T3Whkh01M g+oUYc3U3QwZpugezLb9CPnB+fi19I6gt41luukrwFEO/mJniTPMFy9DtND8a8Axsx3b uhWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GNv1cYfj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 3si8735695ejr.609.2022.02.01.03.16.47; Tue, 01 Feb 2022 03:17:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GNv1cYfj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355743AbiA3Rfo (ORCPT + 99 others); Sun, 30 Jan 2022 12:35:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355732AbiA3Rfn (ORCPT ); Sun, 30 Jan 2022 12:35:43 -0500 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06AE3C061714; Sun, 30 Jan 2022 09:35:42 -0800 (PST) Received: by mail-pf1-x436.google.com with SMTP id d187so10830533pfa.10; Sun, 30 Jan 2022 09:35:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=CzSjPpfTopj6ntF5tKbbTI4PqBmUQrwkOXKtWWFpnX0=; b=GNv1cYfjv36lkUDfimT6iNIcygcJjl46Vg4MJDOy07VkD5iJPBrgJdXTIIypmyQ7jP puZK/Y6bnECQt0p5VSHp0qe/+Ikv5MDCy6i4xj60DKi7GufSfLBrIGzWiCpFYFD+lX/4 /sbcMtiEnSAHoknfu8/HlhRJuKrD+WRG7o139PIsj/5zhhNQIjWB88IdNMnN8WEAl+oX cFyn+Ml3r3RImtQ3V+wgg79uWvI7iHwwc/Aw9q989q3cEQ1y+xRaLdsbjNQbUEgv6uvn gc6uuNk7VMluoFKEvfkbBEs+e6VZUbnhWBK8YHyNW3p6yVAn7JFwFcISizcwEvy5iG74 BVgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=CzSjPpfTopj6ntF5tKbbTI4PqBmUQrwkOXKtWWFpnX0=; b=BvIJWwvH1NEvu80cnp+PfqqRTO3Ykhrps451OZhFHuSjA5ZsQnngUTtB+KUxJyYvAr 9qPfwK3MLKB3VstnI0nYwjecuryec5Wyld0o7BU+Hhg+q3QpDfN7JikHI3iX5OKLWERP BuSnbRT1jEAoKySUv8LKNHyT7KtRqMWBPutu7H85Y9c5SgRM2PKTzmWh+g/yjFgTgZLx aOHrwmihDNoH3Bbn1pOBhMfJFLt9fOD/InRnNAwA+bFMbEW0N4/5bH+kmliCLIXP80ub vPq0OgX1eyR92CnfCBe3euQ/YdnHRz2gIOY9Y5dCJxwJ26JQZPO1wFoADxngSU5mhDC+ UjQg== X-Gm-Message-State: AOAM531ap6Pk/vjLDeHZ05Qh7ogRcfZATQQZRtCMR5Ge4e9laM2t9t6y KfRkG1KhUkvuvC/HNwpA2DL++TujWwU= X-Received: by 2002:a63:6c83:: with SMTP id h125mr1096510pgc.342.1643564142358; Sun, 30 Jan 2022 09:35:42 -0800 (PST) Received: from ?IPV6:2600:8802:b00:4a48:31be:19f8:e4b4:84c8? ([2600:8802:b00:4a48:31be:19f8:e4b4:84c8]) by smtp.gmail.com with ESMTPSA id w12sm27221063pgj.40.2022.01.30.09.35.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 30 Jan 2022 09:35:41 -0800 (PST) Message-ID: Date: Sun, 30 Jan 2022 09:35:39 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] dt-bindings: net: dsa: realtek-smi: convert to YAML schema Content-Language: en-US To: Luiz Angelo Daros de Luca , =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: 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 References: <20211228072645.32341-1-luizluca@gmail.com> <7d6231f1-a45d-f53e-77d9-3e8425996662@arinc9.com> From: Florian Fainelli In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/29/2022 12:52 PM, Luiz Angelo Daros de Luca wrote: >> Why not turn realtek-smi.yaml into realtek.yaml which would also contain >> information for the mdio interface? The things different with using MDIO >> are that we don't use the [mdc,mdio,reset]-gpios properties and don't >> handle the PHYs to the DSA ports. Couldn't you present these differences >> on a single YAML file? > > Hello, Arinç > > realtek-mdio is an mdio driver with a couple of less properties. They > do share a lot of stuff. But I don't know if I can fit the schema > validation into a single file. > YAML files are not simply documentation. They are used to validate DTS > files. But that's still off-topic. Let's finish SMI version first and > then discuss > if the MDIO version should be standalone or merged with SMI. Your YAML file can cover both types of electrical bus, what you are defining is the layout and the properties of the Ethernet switch Device Tree node which is exactly the same whether the switch is the children of a SPI controller or the children of a MDIO bus controller. 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. -- Florian