Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp347525ybh; Sat, 18 Jul 2020 06:01:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbUjEJSCyVsGNObgAeAYfddpBtIIUmYpIGSI3B2dzOc5Xcleuxcpd2IIUDxIUl8ZzCL07p X-Received: by 2002:a50:cf43:: with SMTP id d3mr14157800edk.40.1595077289212; Sat, 18 Jul 2020 06:01:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595077289; cv=none; d=google.com; s=arc-20160816; b=T3jrd2C4RiX+V5RvN/ul5AgfL9x9NYYLRN/sRRfSCzSIV+g+B9izWw/rIgNbcMAEbx FLgqROdbvY+Eixu1AEP3bpM9t7dVbzblDQ/5nWBq2iRQ8+Pc4MKljPy4OZu/PXKF9gp/ MQRmBHHNOzUfJ4d+b0TIGU0O/u+Z5QM1pYNNx+Zv4rbgIE0+a9DP2X63LJDW1eRu+9k9 sFtX8zSsejsFmIRU2NyC6vPZSW1uTTy3ueUkN9tkvFI6GHceEWyfy0GSq6FXI6PsSL3Z og13zs5zybng0aRptCDd9O6Ao7jcljvMzGxqpvf2sb6js/vDPvP28xAM7DY79dVxXdyC iyzA== 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 :dkim-signature; bh=wvwI7PG7u4WygVMxMuxpjuz1VVodNa3mr+jTYDKQqdY=; b=RwEjO8PvZrh+zapkXzclpf1wx6IU5jyvY8EcxMdUnG2KPUxbJJsjJFOohTV6EUHBuK PIXZjF0LUSowG3ECIBsC0GKvkKS6iDVZeySG4tIlrIX+M6aj4N1JdWFZYGxiCe370Spp hMlKJ4ZA24c4bijz3hSFySCezar992nc51garJa0hFCoBsjCMgfsOptEM36mTyA3oRYY Hf13+XOdh1tCJwuff+McqYx16HQHMpex5eZbfNG27zHevndFS4gFh/Qv/U562TfNuf5T r/fOc670Jxli40QHrQT7FgYXSu9VqnZCqdTTYLIqb/pr7S9UEwexWoxaOdXrU/nj//uG pdyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PWs6+JA6; 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 y19si6799266ejm.324.2020.07.18.06.01.05; Sat, 18 Jul 2020 06:01:29 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PWs6+JA6; 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 S1726780AbgGRNAy (ORCPT + 99 others); Sat, 18 Jul 2020 09:00:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726569AbgGRNAx (ORCPT ); Sat, 18 Jul 2020 09:00:53 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C16DC0619D2; Sat, 18 Jul 2020 06:00:53 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id by13so9699406edb.11; Sat, 18 Jul 2020 06:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=wvwI7PG7u4WygVMxMuxpjuz1VVodNa3mr+jTYDKQqdY=; b=PWs6+JA67ELakxN1UAnD7KrD3/Q2cHKbsFKL6dvuaAid/KCFX9VN9x8FJXQpB6HRlO b6e19bzchrCJTDbAofYwDuqGFtpIiUOCETcX5X06oTkK3EfBog5n3GVsYwe/SY0IeD6R JfaIePYi1MpapOQFdAqSCr+KMJ57aX0+6PSYxeyk8Wop/15FyLxSd77jBAjyJlHC9hjc W5BGzFKV5Z9faFiLUvLHGb2u2q6siGMbj7MgeyK/ozVPHJiLFP9Krzh5CftJOzEx9tcT m1wJ1D0/uOJYCDnc4IBqNxXyXjlitdZr646tO763+CYA6pW2W+SdYjKdeaxoQn4ang6D 7IUg== 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=wvwI7PG7u4WygVMxMuxpjuz1VVodNa3mr+jTYDKQqdY=; b=aPsQ6sdhw5VfczrtBltcLkSlTkemgYzW3+j4R2dCpgcjxWxQSPp+dUYvosh273FrIx C8PTBj0pd/JTZbLOOKbWQzsQxHTWThQxxDpOebxtOFCDZBjqK28ycSjxI/FDRHnAslC9 cnYrBZep/dkRnMmYQYu0ux+L3m8EyFofZKoZku7xzmws8kuDarxBcLn5F7Z5a7BkhWIX F0T2D3ETLftqZiGkr3WtMD6CuSIOxIdBtSl4sOuRY1SklG4IUKZtFKh2B43IKq3MKg4W 7fBbATVn2k9J5OrTk8oTFbUlWX0WC5PCRRaUAH7jNuDaMYRfMmqHHFvipOaosedPVq+C cZnA== X-Gm-Message-State: AOAM532VbVHkPvbdwUrYtJfJQzDiFAjowItCRCFDfC2HbJ4mUYplDvHu npiHhyd0D0sLZxpiTcJoyg4= X-Received: by 2002:a50:e689:: with SMTP id z9mr13702222edm.131.1595077252055; Sat, 18 Jul 2020 06:00:52 -0700 (PDT) Received: from skbuf ([188.25.219.134]) by smtp.gmail.com with ESMTPSA id t2sm11191692eds.60.2020.07.18.06.00.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jul 2020 06:00:51 -0700 (PDT) Date: Sat, 18 Jul 2020 16:00:49 +0300 From: Vladimir Oltean 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 , Rob Herring , devicetree@vger.kernel.org Subject: Re: [PATCH 2/2] dt-bindings: net: dsa: qca8k: Add PORT0_PAD_CTRL properties Message-ID: <20200718130049.jqw4ckfmnld5jcdd@skbuf> 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. > > Andrew > > > > Matthew Let's say I'm a user. When would I need to set qca,sgmii-txclk-falling-edge and/or qca,sgmii-rxclk-falling-edge, and wwhen would I need not to? Thanks, -Vladimir