From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryder Lee Subject: Re: Questions about bringing up MT7623 board Date: Mon, 30 Apr 2018 09:42:12 +0800 Message-ID: <1525052532.5013.5.camel@mtkswgap22> References: <6ae4103b-45bf-c427-d0d9-87f6f4eb83b5@phrozen.org> <1518446229.9025.61.camel@mtkswgap22> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+glpam-linux-mediatek=m.gmane.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org To: Kristian Evensen Cc: Matthias Brugger , Sean Wang , linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, John Crispin List-Id: linux-mediatek@lists.infradead.org On Sun, 2018-04-29 at 22:18 +0200, Kristian Evensen wrote: > Hello, > > On Mon, Feb 12, 2018 at 3:49 PM, Kristian Evensen > wrote: > > * My board is equipped with a 2.4GHz and a 5GHz wifi card, both > connected via PCIe. The 2.4 card is connected to a "pure" PCIe-slot > (pcie@1,0), while the 5GHz uses the slot that is shared between PCIe > and USB3.0 (I think this is pcie@2,0). Based on my naive > understanding, in order to enable this slot (as PCIe), I should set > u3phy2 to okay (since phy is u3port1 in dtsi), but not enable usb2. > However, when I set u3phy2 to okay, the 2.4GHz card disappears as well > and I can no long see the PCI bridge (output from lspci is empty). If > I don't add the u3phy2-node, then the 2.4Ghz card appears, but no > 5GHz. Does anyone know how to make this slot work in PCIe-mode? I > tried with pcie@0,0 instead of pcie@2,0 as well, but it did not have > an effect. > We didn't support port2 (pcie@2,0) for mainline version, but if you want to use it you could take a look at - https://patchwork.kernel.org/patch/9747713/ grep: HIF_SYSCFG1 /HIF_SYSCFG1_PHY2_MASK That is, you need to clear these bits to 0 to enable PHY for pcie@2,0. Thanks.