Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp655564imj; Wed, 13 Feb 2019 15:06:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IYBbWfOdOmPgqwWNOHB04I8cISk2emqs0Y18/vYE8/1x6yTnwzfuvgGFM2hEXpQ+5K2v/dP X-Received: by 2002:a63:2882:: with SMTP id o124mr615987pgo.446.1550099161779; Wed, 13 Feb 2019 15:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550099161; cv=none; d=google.com; s=arc-20160816; b=dJ/uuar2AVE103Cwbv2jLP5aK0Ftt+Epztc20BGoe3Xj/0nzW9LXwtOGYHiNIJNcKo YyFvCb8so6X/edZVw1Mp/kP19pbWJmWDkhv43uCSflpZRBnvzZ6+hktRzyDn52564Qvs kUh/uLop+4BXh2Zkot7sHwfYCdaJ0bnOpemOjVGYcumAzXNE2S9ZR3LMF3pe45M8N7QE m5lUsdOerYH7DSg3BvMPBMGj+lFtdTd4tL6PIkVX6JltfVeOSfwo2ntZtqUYNBoKbXwk F0QNjYksF4BTSVwMzZ0hwH2Uc/ZH7erhDUSHyuBU7TqDXNQ0AwxnfHnjITj/p1WCq4a3 8Iug== 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; bh=tg0wqevx6W7ZMY5x/CJFj4fx8BvWdWVk8GTaSGdDvUo=; b=pOFr7QxAh/3uRrouBC566PvgFf2lm6UlZCc+ovIpcibhXsWqd0rOXniJaNw9vyvXtD ///j1vlG3/N8VG7Qq271PUEYp6OPe/zBmt860H0qKZPR+bHN3U1DBrMyw3qLJblxtKcn FOUGXgkYBD1YdKuOIZQK0q3QJ28ci0/k8+mULKaj6a7hxyUSwryV5l/3Qvmh/hp+6DeQ taaK7Gpr6lmixSN7JFA3cf6ZKyL7ZvyTeBFdXZrJ3yo/Pif8CffmPEA+POXKuXFS+24Q 3Bha6zuF4NdhPzqfLzQu/3k0XV1wOHQOOtQ3O8Xm7JruT7mpiLEr5B6E/1UGtOQOSt0A JfGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=fClHDp+c; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t14si560628pgv.125.2019.02.13.15.05.44; Wed, 13 Feb 2019 15:06:01 -0800 (PST) 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=@broadcom.com header.s=google header.b=fClHDp+c; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392811AbfBMRYf (ORCPT + 99 others); Wed, 13 Feb 2019 12:24:35 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:47089 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388351AbfBMRYf (ORCPT ); Wed, 13 Feb 2019 12:24:35 -0500 Received: by mail-ed1-f65.google.com with SMTP id f2so2594422edy.13 for ; Wed, 13 Feb 2019 09:24:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=tg0wqevx6W7ZMY5x/CJFj4fx8BvWdWVk8GTaSGdDvUo=; b=fClHDp+cbtYqOrK0V2124KYyZ9jWZe6mo5OYSmfna7+tHXmVdeCiACPAJ4FL2f5aM6 vUCma7VeYu9p3cbtU2qSphoDUUo6tv5wo+Nh2cIU0i2kli/Y852og7aHQO1YjjeNygZj bhHeUz1POl76F4FoONi1V2rUJfa7D0zPDhIGE= 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=tg0wqevx6W7ZMY5x/CJFj4fx8BvWdWVk8GTaSGdDvUo=; b=SqOdudTdeKO/BwJytk2oWMh7gWKKD5h5xrRiNV1S845VksJVnYsxLEi5YtgRMFhn58 CNwmMArDHl6Tp0l4sMtOsek3b6JxbDWNMBx0sdUy/2MSsJd10uM1pq0LdzSMQ7/WAgq5 uNaT2fxP2APk+5K/fIK7vJACIkbQWxbc2J4gFMK8GF/TYoszjKrXMGwwUoddR9wizGKd 7ePaNbS7hgfQGFApfbz0NrotdHWBJa3hGtm9E1LMh9m6EaAVU2+HZyMfjJE2K83lUszg 0StDN7MtX6LU9COEwKsECel/qUcdg2/wl0S9Cb4/FfmMorugdshpDsa3A8nUqMBw6Hfg eIhA== X-Gm-Message-State: AHQUAuYhe4FOvTbi7yQ6qeQl9RYnkbYAP30sWEk4BDile9DW/wZ2LlvL Mw9maomb4raLgjuJuOV8FitfL2CgdouLLZyG4CEGp5tFs31cWN+A56EHocjD3VJo2bqQO0USR7v AVIDEfGo2O/LdeYypIymMjjJjErYv05jlomhcdqvwdXfgMKHbrDcJP2Yf9XLu7vF+K/aSUl6xiA noHml7rDkK9Q== X-Received: by 2002:a17:906:4344:: with SMTP id z4mr1144782ejm.27.1550078672263; Wed, 13 Feb 2019 09:24:32 -0800 (PST) Received: from [10.67.48.220] ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id k13-v6sm3887600ejk.50.2019.02.13.09.24.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 09:24:31 -0800 (PST) Subject: Re: [PATCH] ARM: dts: BCM5301X: Change Ethernet switch management port To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Florian Fainelli , linux-arm-kernel@lists.infradead.org Cc: Hauke Mehrtens , "maintainer:BROADCOM BCM5301X ARM ARCHITECTURE" , Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list References: <20190213042600.27729-1-f.fainelli@gmail.com> <43f75739-b592-35d3-e711-13f05218133d@gmail.com> From: Florian Fainelli Openpgp: preference=signencrypt Autocrypt: addr=florian.fainelli@broadcom.com; prefer-encrypt=mutual; keydata= mQENBFPAG8ABCAC3EO02urEwipgbUNJ1r6oI2Vr/+uE389lSEShN2PmL3MVnzhViSAtrYxeT M0Txqn1tOWoIc4QUl6Ggqf5KP6FoRkCrgMMTnUAINsINYXK+3OLe7HjP10h2jDRX4Ajs4Ghs JrZOBru6rH0YrgAhr6O5gG7NE1jhly+EsOa2MpwOiXO4DE/YKZGuVe6Bh87WqmILs9KvnNrQ PcycQnYKTVpqE95d4M824M5cuRB6D1GrYovCsjA9uxo22kPdOoQRAu5gBBn3AdtALFyQj9DQ KQuc39/i/Kt6XLZ/RsBc6qLs+p+JnEuPJngTSfWvzGjpx0nkwCMi4yBb+xk7Hki4kEslABEB AAG0MEZsb3JpYW4gRmFpbmVsbGkgPGZsb3JpYW4uZmFpbmVsbGlAYnJvYWRjb20uY29tPokB xAQQAQIArgUCW382iBcKAAG/SMv+fS3xUQWa0NryPuoRGjsA3SAUAAAAAAAWAAFrZXktdXNh Z2UtbWFza0BwZ3AuY29tjjAUgAAAAAAgAAdwcmVmZXJyZWQtZW1haWwtZW5jb2RpbmdAcGdw LmNvbXBncG1pbWUICwkIBwMCAQoFF4A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AhKnRfzFqX1iGENYRH3Zgtis7ZvodzZLfWUC6nN8LDyWZmw/U9HPUaYX8qY MP0n039vwh6GFZCqsFCMyOfYrZeS83vkecAwcoVh8dlHdke0rnZk/VytXtMe1u2uc9dUOr68 7hA+Z0L5IQAKCRCBMbXEKbxmoLoHCACXeRGHuijOmOkbyOk7x6fkIG1OXcb46kokr2ptDLN0 Ky4nQrWp7XBk9ls/9j5W2apKCcTEHONK2312uMUEryWI9BlqWnawyVL1LtyxLLpwwsXVq5m5 sBkSqma2ldqBu2BHXZg6jntF5vzcXkqG3DCJZ2hOldFPH+czRwe2OOsiY42E/w7NUyaN6b8H rw1j77+q3QXldOw/bON361EusWHdbhcRwu3WWFiY2ZslH+Xr69VtYAoMC1xtDxIvZ96ps9ZX pUPJUqHJr8QSrTG1/zioQH7j/4iMJ07MMPeQNkmj4kGQOdTcsFfDhYLDdCE5dj5WeE6fYRxE Q3up0ArDSP1L Message-ID: <56eae00a-0090-0b57-8615-0a331bc1c984@broadcom.com> Date: Wed, 13 Feb 2019 09:24:11 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <43f75739-b592-35d3-e711-13f05218133d@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/13/19 12:07 AM, Rafał Miłecki wrote: > On 13.02.2019 05:25, Florian Fainelli wrote: >> BCM5301X has 3 Ethernet controllers: GMAC0, 1, 2 which map to ports 5, 7 >> and 8 respectively of the internal switch. Future changes will turn on >> management mode in the Ethernet switch driver (b53) which will require >> us to use port 8. >> >> Signed-off-by: Florian Fainelli >> --- >>   arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 11 ++++++++--- >>   1 file changed, 8 insertions(+), 3 deletions(-) >> >> diff --git a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts >> b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts >> index 3fced3b7f1a8..affa9cc7422d 100644 >> --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts >> +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts >> @@ -150,10 +150,15 @@ >>               label = "wan"; >>           }; >>   -        port@5 { >> -            reg = <5>; >> +        port@8 { >> +            reg = <8>; >>               label = "cpu"; >> -            ethernet = <&gmac0>; >> +            ethernet = <&gmac2>; >> + >> +            fixed-link { >> +                speed = <1000>; >> +                full-duplex; >> +            }; >>           }; >>       }; >>   }; > > I'm not exactly sure how Linux switch driver works, but from DT > perspective I think we should rather have *hardware* described instead > of a common Linux case. > > If I'm right, we should rather have all 3 switch ports described (5, 7, > 8) and have Linux just use the one it needs. Yes, let's do that. -- Florian