Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2275098ybh; Fri, 17 Jul 2020 13:49:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4sgdByXgZ6O0WEdnJelJ6W5uDeA59E524KRCFM6h9Wcz7XlMbQ5ia+DFAoXVoz89L2sxz X-Received: by 2002:a17:906:3c42:: with SMTP id i2mr11034620ejg.14.1595018950571; Fri, 17 Jul 2020 13:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595018950; cv=none; d=google.com; s=arc-20160816; b=WhDyVRxaqNygc8yBfIWf/NKAPjyXs8hdhqTm2x8OI/dd3B/wYIP3+ownZ17UTsuLy/ XjtvcpKd2erES0jwUkCXs+joskjtDr+Jr8UiTD6rQYzaXwlci66JQCCc+n8th/6X5kNP 2WUE/YT0yRpZKrp3YkmRoU2BggEZ3KvYSHjpRNszozbEgknD/b7TjCB8kG2S4I5243/w mvSw2ltlqm42FuFKbyz0LA+zQXMa/EIkpsI7vEkhwdHpGo+PorNFmNiK1i8xUG+6a41i 1Soy6b4Q/jphFukUjxDt3vChwH9Le+Vy8Dp4g6e/znqs+uZ1iGwv49AIkz0zJKg4jlkp mItA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=QYt5+3TMaC7IxDyK8vYB5SNsjjId44XcbCvaS016oFg=; b=HKtCoo5mLBs1jIbSK48ib3A1exYZ1JcCHAX8mm2Q3ZmqFUn/hGMA1pmGWXukbbQcsq gndyofL4hkke5otryaMGvYXI1GaRkqCqD8DN4XPO1eABeTzlOczkTe9wzw3ykcMJqFfL 3//fjVP9mgrF98yVYNAkjFei2Pn1tUWYhkLBX/574Ab1Iwrsw1vH0bh36oH4eA3w2ifc lcB6VlmUSykI0LWuep0cZ4AJN8R8Qwod37tVYt5lUIxmQBuseNI3QTTIHN1Z+AgsbQKo xl1ocDrDGJ365IVyfcFoAcmhRWtSCNNXlJTgYn9ncgJCJklGNMoTefdaPo3v//fIVtzD MAIg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si5856130edr.395.2020.07.17.13.48.47; Fri, 17 Jul 2020 13:49:10 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728495AbgGQUsM (ORCPT + 99 others); Fri, 17 Jul 2020 16:48:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbgGQUsL (ORCPT ); Fri, 17 Jul 2020 16:48:11 -0400 X-Greylist: delayed 211 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 17 Jul 2020 13:48:11 PDT Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 900B9C0619D2; Fri, 17 Jul 2020 13:48:11 -0700 (PDT) Received: from [2a04:4540:1402:e200:f4bc:edb0:b75b:df61] by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jwXH3-0005wm-4o; Fri, 17 Jul 2020 22:48:05 +0200 Subject: Re: [PATCH 2/2] dt-bindings: net: dsa: qca8k: Add PORT0_PAD_CTRL properties To: Florian Fainelli , Matthew Hagan , Jakub Kicinski , Andrew Lunn Cc: Vivien Didelot , "David S. Miller" , linux@armlinux.org.uk, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan McDowell , Rob Herring , devicetree@vger.kernel.org References: <2e1776f997441792a44cd35a16f1e69f848816ce.1594668793.git.mnhagan88@gmail.com> <20200716150925.0f3e01b8@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: John Crispin Message-ID: <64bbedb0-d985-668e-fb50-ffefdf3050e4@phrozen.org> Date: Fri, 17 Jul 2020 22:48:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17.07.20 22:39, Florian Fainelli wrote: > > On 7/17/2020 1:29 PM, Matthew Hagan wrote: >> >> On 16/07/2020 23:09, 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? >>> >> From John's patch: >> "The switch allows us to swap the internal wirering of the two cpu ports. >> For the HW offloading to work the ethernet MAC conencting to the LAN >> ports must be wired to cpu port 0. There is HW in the wild that does not >> fulfill this requirement. On these boards we need to swap the cpu ports." >> >> This option is somewhat linked to instances where both MAC0 and MAC6 are >> used as CPU ports. I may omit this for now since support for this hasn't >> been added and MAC0 is hard-coded as the CPU port. The initial intention >> here was to cover options commonly set by OpenWrt devices, based upon >> their ar8327-initvals, to allow migration to qca8k. > If you update the description of the property, I do not see a reason why > this should not be supported as of today, sooner or later you will need > it to convert more devices to qca8k as you say. correct, there will be patches soonish to make qcom dakota and hawkeye/cypress use qca8k as their switch fabric is 95% identical.  we already started working on it. it is mmio based rather than mdio based, so the patch is quite a large rework right now.     John