Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4428789imm; Mon, 30 Jul 2018 14:40:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcdxC2LBIE/6xJVtVNtqQANRsJKyqtZ5C8c4Dzj0t+p32WLNikq1sdbdLH1NAT72pyAyxg2 X-Received: by 2002:a62:3f55:: with SMTP id m82-v6mr19471714pfa.51.1532986855174; Mon, 30 Jul 2018 14:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532986855; cv=none; d=google.com; s=arc-20160816; b=YeXTQx2+pHoAvWmySL3R1IkHR8ZbbS0eaEWJ8clfPccxQK7XX6POQXfiN5W2ocG6kY YlsIrEmt5egkWInaiEVIEb3H0mURv8vf7b8UHFOaXhDC5B29df6tCauNNd9J+L/WqTRx 7sdhcipIBZBSAsXJQYvZWE2tSvqwOOUxZIkT2pOWpVgCgi4zHLoZSi1RzsrfCqUK3q0g oz9pscuo8qFUvgELkKprTDyZ5dzS7hsRH0l3UaKulwTLIxwXaSi89M4IN1Zp5u3AzpDX HN2DiJInfqVkMHZ/OBboaxb9wdR637mXg3tJ6Jb1PXQBrnzKXntSJUaSAoNNZtx3hlXJ d42g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=xLRTzG3IH4CWymWhETQY8fS7tdzUNeRZ8kYA1Ty5o+M=; b=LVt93K1L0+qhjdGyHrCeB255bE2U+ulqmdYpR0USpeOfEqE/WHgP/TbtLy7M4A5ksS 1bSLcMjSSoXhB6TzyiXupXg9diigvFG4fZhO/Z07YFDJaEeW0koQCZm/XiOGIwpcPOcR tgWIkm7jpXp1aQhr14Hth+jrcrytYTYPkfOhOGVVqrqDEcZfsLm0evAsKfI+JZkA24bg CH0leoF4P1JNaz2ziIaMjVhMPm8OHYwBpm1EbCLHnzXFW+L0BWa0yliuwYMpD/IXno4g SuupeNIdxj/c4M/xT8M7NoIutd9SdNnfHz3MRTx+vLtkUfzJjstbJhfq2KAr0wpIDQkW 3xeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k7nF7k6y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id g6-v6si10176290plo.280.2018.07.30.14.40.40; Mon, 30 Jul 2018 14:40:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k7nF7k6y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1731899AbeG3XQo (ORCPT + 99 others); Mon, 30 Jul 2018 19:16:44 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54679 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726867AbeG3XQn (ORCPT ); Mon, 30 Jul 2018 19:16:43 -0400 Received: by mail-wm0-f65.google.com with SMTP id c14-v6so850477wmb.4; Mon, 30 Jul 2018 14:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xLRTzG3IH4CWymWhETQY8fS7tdzUNeRZ8kYA1Ty5o+M=; b=k7nF7k6yvK8ExcBjziumt8mgFa1sM72T3RCOEGAo5K8mkq31Sy309qNE1thrtlQwr7 15RisSoeCp3RG+cg/KmbVgg+ergOR9HFwmhpzRfCc4gQIvXX/WZr0il83G0sMWSvKrsy oSRtnA/BScgbFJxuKju+gSSrwOSDxwINixh1lPmT/wzvzAZF1gQaensXYMVHPt8F07ch +4QvWYVa/SVgWMWUb2RVIsXa9RKpk9ZR3+SrHeCSSviW9l4w7wHzxu9w5CGCRp8H6Jc1 ZzXIsSWvnYoj9BvVBizkiQ0KRqX5xju8bwFMLNXl+SPL/1DoDWAzfyUZ5Ar8fpUQ1nKy GlWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=xLRTzG3IH4CWymWhETQY8fS7tdzUNeRZ8kYA1Ty5o+M=; b=HryCzXYYMxZxflPielP4JKuuk5h3fjjP/51UFFkt5giYRhA0Y316Q3R8wp+YcM1Da9 bbesSd+4XHOvnMjSokKe1G9wM5wH+ODVL1b0yrD4CEO+XODBhyzUnDd7SpqfXIta0ulF czEI/AROUDp5pYs2Ez6ht4OH5t/tStQqlRyn0L41UMYZBktaqR39f4cJq6iMbnoU8I5Q RVMM9GJSPOhreB9KMvr4IDWPADpn4zmsnHAB3CoDGXkTmdC1ntsPrO/M5CnRAXsssJnh BNTpgd6l9NrVFE5RUK8eDX+kSQOO7dy+MhWMHk4Ox22InZTpTMChu+6g8ZoDlUSYQEF6 GAnQ== X-Gm-Message-State: AOUpUlGQwj2l8dlDwiIgHsRtSIWYdFWxrAddNGf3yOTUh0paeiApVbc9 4M+gPal7PjlSCc72CLRfJSM= X-Received: by 2002:a1c:30c3:: with SMTP id w186-v6mr515209wmw.153.1532986785567; Mon, 30 Jul 2018 14:39:45 -0700 (PDT) Received: from [10.69.41.93] ([192.19.223.250]) by smtp.googlemail.com with ESMTPSA id w4-v6sm10621848wrl.46.2018.07.30.14.39.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jul 2018 14:39:44 -0700 (PDT) Subject: Re: [PATCH 07/10] dt-bindings: phy: add DT binding for Microsemi Ocelot SerDes muxing To: Quentin Schulz , alexandre.belloni@bootlin.com, ralf@linux-mips.org, paul.burton@mips.com, jhogan@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, davem@davemloft.net Cc: kishon@ti.com, andrew@lunn.ch, linux-mips@linux-mips.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, allan.nielsen@microsemi.com, thomas.petazzoni@bootlin.com References: From: Florian Fainelli Openpgp: preference=signencrypt Autocrypt: addr=f.fainelli@gmail.com; prefer-encrypt=mutual; keydata= xsDiBEjPuBIRBACW9MxSJU9fvEOCTnRNqG/13rAGsj+vJqontvoDSNxRgmafP8d3nesnqPyR xGlkaOSDuu09rxuW+69Y2f1TzjFuGpBk4ysWOR85O2Nx8AJ6fYGCoeTbovrNlGT1M9obSFGQ X3IzRnWoqlfudjTO5TKoqkbOgpYqIo5n1QbEjCCwCwCg3DOH/4ug2AUUlcIT9/l3pGvoRJ0E AICDzi3l7pmC5IWn2n1mvP5247urtHFs/uusE827DDj3K8Upn2vYiOFMBhGsxAk6YKV6IP0d ZdWX6fqkJJlu9cSDvWtO1hXeHIfQIE/xcqvlRH783KrihLcsmnBqOiS6rJDO2x1eAgC8meAX SAgsrBhcgGl2Rl5gh/jkeA5ykwbxA/9u1eEuL70Qzt5APJmqVXR+kWvrqdBVPoUNy/tQ8mYc nzJJ63ng3tHhnwHXZOu8hL4nqwlYHRa9eeglXYhBqja4ZvIvCEqSmEukfivk+DlIgVoOAJbh qIWgvr3SIEuR6ayY3f5j0f2ejUMYlYYnKdiH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b6GTrtxIUDQeOBNuQC/gyyx3nbL/lVlHbxr4tb6YkhkO6shjXhQh7nQb33FjGO4P WU11Nr9i/qoV8QCo12MQEo244RRA6VMud06y/E449rWZFSTwGqb0FS0seTcYNvxt8PB2izX+ HZA8SL54j479ubxhfuoTu5nXdtFYFj5Lj5x34LKPx7MpgAmj0H7SDhpFWF2FzcC1bjiW9mjW HaKaX23Awt97AqQZXegbfkJwX2Y53ufq8Np3e1542lh3/mpiGSilCsaTahEGrHK+lIusl6mz Joil+u3k01ofvJMK0ZdzGUZ/aPMZ16LofjFA+MNxWrZFrkYmiGdv+LG45zSlZyIvzSiG2lKy kuVag+IijCIom78P9jRtB1q1Q5lwZp2TLAJlz92DmFwBg1hyFzwDADjZ2nrDxKUiybXIgZp9 aU2d++ptEGCVJOfEW4qpWCCLPbOT7XBr+g/4H3qWbs3j/cDDq7LuVYIe+wchy/iXEJaQVeTC y5arMQorqTFWlEOgRA8OP47L9knl9i4xuR0euV6DChDrguup2aJVU8JPBBgRAgAPAhsMBQJU X9LxBQkeXB3fAAoJEGFXmRW1Y3YOj4UAn3nrFLPZekMeqX5aD/aq/dsbXSfyAKC45Go0YyxV HGuUuzv+GKZ6nsysJw== Message-ID: Date: Mon, 30 Jul 2018 14:39:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/30/2018 05:43 AM, Quentin Schulz wrote: > Signed-off-by: Quentin Schulz > --- > Documentation/devicetree/bindings/phy/phy-ocelot-serdes.txt | 42 +++++++- > 1 file changed, 42 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/phy-ocelot-serdes.txt > > diff --git a/Documentation/devicetree/bindings/phy/phy-ocelot-serdes.txt b/Documentation/devicetree/bindings/phy/phy-ocelot-serdes.txt > new file mode 100644 > index 0000000..25b102d > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/phy-ocelot-serdes.txt > @@ -0,0 +1,42 @@ > +Microsemi Ocelot SerDes muxing driver > +------------------------------------- > + > +On Microsemi Ocelot, there is a handful of registers in HSIO address > +space for setting up the SerDes to switch port muxing. > + > +A SerDes X can be "muxed" to work with switch port Y or Z for example. > +One specific SerDes can also be used as a PCIe interface. > + > +Hence, a SerDes represents an interface, be it an Ethernet or a PCIe one. > + > +There are two kinds of SerDes: SERDES1G supports 10/100Mbps in > +half/full-duplex and 1000Mbps in full-duplex mode while SERDES6G supports > +10/100Mbps in half/full-duplex and 1000/2500Mbps in full-duplex mode. > + > +Also, SERDES6G number (aka "macro") 0 is the only interface supporting > +QSGMII. > + > +Required properties: > + > +- compatible: should be "mscc,vsc7514-serdes" > +- #phy-cells : from the generic phy bindings, must be 3. The first number > + defines the kind of Serdes (1 for SERDES1G_X, 6 for > + SERDES6G_X), the second defines the macros in the specified > + kind of Serdes (X for SERDES1G_X or SERDES6G_X) and the > + last one defines the input port to use for a given SerDes > + macro, It would probably be more natural to reverse some of this and have the 1st cell be the input port, while the 2nd and 3rd cell are the serdes kind and the serdes macro type. Same comment as Andrew, can you please define the 2nd and 3rd cells possible values in a header file that you can include from both the DTS and the driver making use of that? -- Florian