Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 237CAC433EF for ; Mon, 20 Dec 2021 07:50:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234370AbhLTHuZ (ORCPT ); Mon, 20 Dec 2021 02:50:25 -0500 Received: from sender3-op-o11.zoho.com ([136.143.184.11]:17759 "EHLO sender3-op-o11.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbhLTHuY (ORCPT ); Mon, 20 Dec 2021 02:50:24 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1639986612; cv=none; d=zohomail.com; s=zohoarc; b=MWT2lIbW0r6L4oT+UjEjrWzk/0KqnXCr7QQjGcGBSHva2geHqy3njPsDbAaJCcB4asc7DFia9/TDJbCPMJVBFGu4AZQM1SwbUuZoMG0ZCIwTclrFCibc/WcArYP/Jwh/vTFw4REtTbQPecieJzXwGENmnhNAl1LXO4/d4WrO4G8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639986612; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=x0qF+AGPRNXshtzF0HCnO4BO8PR9ntPp15f3WVUfL/M=; b=X9LNC+Cugkk9Paj37HpUbl9JiWBqNc7drYLbGK7tPM12g9morHCSDml+N+Sp51E3xVXhE17ivElTCGAebMQ1szAf4syiz/yaJgXMZZYu7I/g5UN8x//Z8MmciboeBfBedSK4oi62Z5ltjN71I6jR60SWVILSAekQmFj9TpAXIkk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1639986612; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=x0qF+AGPRNXshtzF0HCnO4BO8PR9ntPp15f3WVUfL/M=; b=hGvDCZrDzyeqCErMj4v5KXdXlqGFM1eZGLoDCD7wqOU0Hm+Zl7j5RQOS1MkbG8p7 4/s3LvYMuV25QYZPIUfzrUwgDPIkqzMF59SnvhLVwoG5FBsVUnpyp5hp5Z4/jgHY69Z QAUtd7oR26O44wX9XqmO9pf9DBEJKCRMKSGFsW90= Received: from [10.10.10.216] (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1639986609792943.8818036064553; Sun, 19 Dec 2021 23:50:09 -0800 (PST) Message-ID: Date: Mon, 20 Dec 2021 10:50:03 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH net-next v2 08/13] dt-bindings: net: dsa: realtek-mdio: document new interface Content-Language: en-US From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= To: Luiz Angelo Daros de Luca , netdev@vger.kernel.org Cc: linus.walleij@linaro.org, andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, olteanv@gmail.com, alsi@bang-olufsen.dk References: <20211216201342.25587-1-luizluca@gmail.com> <20211218081425.18722-1-luizluca@gmail.com> <20211218081425.18722-9-luizluca@gmail.com> <7e17c2f1-2868-5e17-7873-a729ddfec1e9@arinc9.com> In-Reply-To: <7e17c2f1-2868-5e17-7873-a729ddfec1e9@arinc9.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 20/12/2021 00:53, Arınç ÜNAL wrote: > On 18/12/2021 11:14, Luiz Angelo Daros de Luca wrote: >> realtek-mdio is a new mdio driver for realtek switches that use >> mdio (instead of SMI) interface. >> >> Reviewed-by: Arınç ÜNAL >> Signed-off-by: Luiz Angelo Daros de Luca >> --- >>   .../bindings/net/dsa/realtek-mdio.txt         | 91 +++++++++++++++++++ >>   MAINTAINERS                                   |  2 +- >>   2 files changed, 92 insertions(+), 1 deletion(-) >>   create mode 100644 >> Documentation/devicetree/bindings/net/dsa/realtek-mdio.txt >> >> diff --git >> a/Documentation/devicetree/bindings/net/dsa/realtek-mdio.txt >> b/Documentation/devicetree/bindings/net/dsa/realtek-mdio.txt >> new file mode 100644 >> index 000000000000..71e0a3d09aeb >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/net/dsa/realtek-mdio.txt >> @@ -0,0 +1,91 @@ >> +Realtek MDIO-based Switches >> +========================== >> + >> +Realtek MDIO-based switches use MDIO protocol as opposed to Realtek >> +SMI-based switches. The realtek-mdio driver is an mdio driver and it >> must >> +be inserted inside an mdio node. >> + >> +Required properties: >> + >> +- compatible: must be exactly one of (same as realtek-smi): >> +      "realtek,rtl8365mb" (4+1 ports) >> +      "realtek,rtl8366"               (not supported yet) >> +      "realtek,rtl8366rb" (4+1 ports) >> +      "realtek,rtl8366s"  (4+1 ports) (not supported yet) >> +      "realtek,rtl8367"               (not supported yet) >> +      "realtek,rtl8367b"              (not supported yet) >> +      "realtek,rtl8368s"  (8 port)    (not supported yet) >> +      "realtek,rtl8369"               (not supported yet) >> +      "realtek,rtl8370"   (8 port)    (not supported yet) >> + >> +Required properties: >> +- reg: MDIO PHY ID to access the switch >> + >> +Optional properties: >> +- realtek,disable-leds: if the LED drivers are not used in the >> +  hardware design this will disable them so they are not turned on >> +  and wasting power. >> + >> +See net/dsa/dsa.txt for a list of additional required and optional >> properties >> +and subnodes of DSA switches. >> + >> +Optional properties of dsa port: >> + >> +- realtek,ext-int: defines the external interface number (0, 1, 2). >> By default, 1. > > You should introduce this with ("net: dsa: realtek: rtl8365mb: rename > extport to extint, add "realtek,ext-int"") instead. Since the RTL8367S example has got to include "realtek,ext-int", you can add the example with ("net: dsa: realtek: rtl8365mb: add RTL8367S support") instead.