Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp352623ybh; Mon, 20 Jul 2020 19:02:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA91OwK+zPSLYWV4R5BS6s9ubfwp2u3SprOUh7M6Wyc3K8FVAmIjF5nZ/79p3cHfZG6KrB X-Received: by 2002:a17:906:fa92:: with SMTP id lt18mr22958928ejb.534.1595296936380; Mon, 20 Jul 2020 19:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595296936; cv=none; d=google.com; s=arc-20160816; b=eexnHcqAV3XfZ0fWdOHI5d4BxlIZq6DrwrzqG0nbTPO9DGYjnjNw09Q+A+M+y0hQ3P +zUZ8avZREirntVOPV2H7HFcpAoHNJHZwq1zQeEVzPTQ6MCrJQEnwYoLbJBv4dg6QZZI XpDn+vMsZRP1c1nTkcfub0TX6KyeG7jEYQQycnBa/f3Yy/JOJRZ2uCBRxFPFPX/s/K+F dl37sD9/TkpNdYgegi9NkfNk0xE9j2m6Vwf1ZYonw99Jk505B+awie7vuAbUX709Wdsa jiou5CMEnMiuJ6baX8+gXZe24IJy0Dy4zK5rqGvjjXFDt0tcXcg42vMM3sclieb7vNyt Tl9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=wnc7YVfPETMY6OwZSSKyjxvpm6CL442HL8Evb64Bao0=; b=GS/gwUGNs4KCRvegYRGWgSsc0DTtxLLOEr8wrbAyG9S2Gmbb52dKnjN32eiNnY5yVn C3EzORe3U5kndrsLpAGNaiWuxnaHEQehI1+Hb9//y7RpUI2Rzo1Y61rcBdxeYAUXe3SZ sLM+O6j7wuUmFRj0WduEoaxf5CLHucb05kpn5cE0U9YuJ9hR41Ls/bmAl9U8gVYzXGW2 7Upor32vg7q7oruGbsd6rqAOEQ2VtEYRyUreYFwzRumD4NOiLA8DzBD93rqcLRqvva8K FAlG2RGGoo6OqRmh1cwjxfUwlROXn4VzFz4epCdN8NqVXkizgDJsAxSqtUFPPpsew9CJ 2Dxg== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id op20si7790149ejb.717.2020.07.20.19.01.48; Mon, 20 Jul 2020 19:02:16 -0700 (PDT) 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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727940AbgGUB7e (ORCPT + 99 others); Mon, 20 Jul 2020 21:59:34 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:43740 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726962AbgGUB7e (ORCPT ); Mon, 20 Jul 2020 21:59:34 -0400 Received: by mail-io1-f65.google.com with SMTP id k23so19710424iom.10; Mon, 20 Jul 2020 18:59:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wnc7YVfPETMY6OwZSSKyjxvpm6CL442HL8Evb64Bao0=; b=ObDkZUCkUiIaGolGkqSsZKx1s5D0ohTz62PZZc+i+3bawVSOMebEEsJahX91MQgjxn Lw7PdCN5bQlUXBYBvAxQpEqMSdZOtTbR5CNhnj1+ZXZbo5l42xj5Od+9zxKd0R3Mmp9y RiJNsY4SzrVFPOOyjmoqIf3AThrrlG9XvsbnD/4EhpaFJ4evjbfd1c9Uo+9YVsBADCyh e5lBAp7dIwqFjm4hcsUMHZdgJR+ImPC7onVQaj1bya0EMg4DkRiBCO2lHj43LfglzXHn /ZBJPlbaYS4KT7LCHnYROP6jzVYYBBvxDXNPzgvdHGcI8jD3wE8ZYvpqNwiUE1LE0XX0 yDSA== X-Gm-Message-State: AOAM530dz9Th/EoAHozCdFh1sMTM5+exb38Ga6g+Hgb48wDPBZmYNBmd yazyqVDWhxDhgsTp0o0oow== X-Received: by 2002:a02:2401:: with SMTP id f1mr29054327jaa.66.1595296772813; Mon, 20 Jul 2020 18:59:32 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id p124sm9810465iod.32.2020.07.20.18.59.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 18:59:32 -0700 (PDT) Received: (nullmailer pid 3370741 invoked by uid 1000); Tue, 21 Jul 2020 01:59:30 -0000 Date: Mon, 20 Jul 2020 19:59:30 -0600 From: Rob Herring To: Matthew Hagan Cc: Andrew Lunn , Jakub Kicinski , Vivien Didelot , Florian Fainelli , "David S. Miller" , linux@armlinux.org.uk, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, John Crispin , Jonathan McDowell , devicetree@vger.kernel.org Subject: Re: [PATCH 2/2] dt-bindings: net: dsa: qca8k: Add PORT0_PAD_CTRL properties Message-ID: <20200721015930.GA3363310@bogus> References: <2e1776f997441792a44cd35a16f1e69f848816ce.1594668793.git.mnhagan88@gmail.com> <20200716150925.0f3e01b8@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200716223236.GA1314837@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 17, 2020 at 08:26:02PM +0100, Matthew Hagan wrote: > > > On 16/07/2020 23:32, Andrew Lunn wrote: > > On Thu, Jul 16, 2020 at 03:09:25PM -0700, Jakub Kicinski wrote: > >> On Mon, 13 Jul 2020 21:50:26 +0100 Matthew Hagan wrote: > >>> Add names and decriptions of additional PORT0_PAD_CTRL properties. > >>> > >>> Signed-off-by: Matthew Hagan > >>> --- > >>> Documentation/devicetree/bindings/net/dsa/qca8k.txt | 8 ++++++++ > >>> 1 file changed, 8 insertions(+) > >>> > >>> diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.txt b/Documentation/devicetree/bindings/net/dsa/qca8k.txt > >>> index ccbc6d89325d..3d34c4f2e891 100644 > >>> --- a/Documentation/devicetree/bindings/net/dsa/qca8k.txt > >>> +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.txt > >>> @@ -13,6 +13,14 @@ Optional properties: > >>> > >>> - reset-gpios: GPIO to be used to reset the whole device > >>> > >>> +Optional MAC configuration properties: > >>> + > >>> +- qca,exchange-mac0-mac6: If present, internally swaps MAC0 and MAC6. > >> > >> Perhaps we can say a little more here? > >> > >>> +- qca,sgmii-rxclk-falling-edge: If present, sets receive clock phase to > >>> + falling edge. > >>> +- qca,sgmii-txclk-falling-edge: If present, sets transmit clock phase to > >>> + falling edge. > >> > >> These are not something that other vendors may implement and therefore > >> something we may want to make generic? Andrew? > > > > I've never seen any other vendor implement this. Which to me makes me > > think this is a vendor extension, to Ciscos vendor extension of > > 1000BaseX. > > > > Matthew, do you have a real use cases of these? I don't see a DT patch > > making use of them. And if you do, what is the PHY on the other end > > which also allows you to invert the clocks? > > > The use case I am working on is the Cisco Meraki MX65 which requires bit > 18 set (qca,sgmii-txclk-falling-edge). On the other side is a BCM58625 > SRAB with ports 4 and 5 in SGMII mode. There is no special polarity > configuration set on this side though I do have very limited info on > what is available. The settings I have replicate the vendor > configuration extracted from the device. > > The qca,sgmii-rxclk-falling-edge option (bit 19) is commonly used > according to the device trees found in the OpenWrt, which is still using > the ar8216 driver. With a count through the ar8327-initvals I see bit 19 > set on 18 of 22 devices using SGMII on MAC0. Can't you identify the device and configure the setting based on that? After all, MDIO devices are discoverable. Or there's no MDIO here? Rob