Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751307AbdH1MQw (ORCPT ); Mon, 28 Aug 2017 08:16:52 -0400 Received: from lb3-smtp-cloud9.xs4all.net ([194.109.24.30]:48855 "EHLO lb3-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751232AbdH1MQu (ORCPT ); Mon, 28 Aug 2017 08:16:50 -0400 Date: Mon, 28 Aug 2017 14:16:44 +0200 From: Antony Antony To: Code Kipper Cc: Antony Antony , Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , linux-sunxi , linux-arm-kernel , devicetree , Linux Kernel Mailing List Subject: Re: [PATCH v2] arm64: allwinner: h5: add support for NanoPi NEO Plus 2 Message-ID: <20170828121644.p7mknytubsajzctg@AntonyAntony.local> References: <20170824231716.2623-1-antony@phenome.org> <20170825103242.5665-1-antony@phenome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170602 (1.8.3) X-CMAE-Envelope: MS4wfHVnGzMDt1goRU247N2AlqSdbQYUmprvn2sZ8EnFskiylLLd3pTFN94AdDjLRly3wka+qsS2loW1ayF6WhkUK6FrZIz48fU2IaPcs0FIqzMXy3H/dbfH fFgOydZFGCB3AONuahvuljvDQByUwhicr8ByhZ/fpm7wi5Evy60kcTzLznDZZ7vE+pryesEDPoTIVdOnLt51CqKE2WIP9OFwvRqQW+rJ41S9WYnnJYy3px55 Rr5PFdf+g0IoOP/YmBqnU+EvyFpEsq/xjQZXwPRB6CEJE0CNwbI/QkQr2zpvhg5sVraHHsEbAtmk5qn2K09CRPIHzrXjBeqhhGSVi8PJCtT+AbSqjNPgVhjo i9ZPjrRTV5FenPF5KGVaBhXFKEPB3ySLW6ss/omqaY0hVuhu5PqVD1QVM6wU4iUttJgYtsJESnB6zL/CMIDo+AnfadOoIQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1762 Lines: 51 On Fri, Aug 25, 2017 at 03:28:41PM +0200, Code Kipper wrote: > On 25 August 2017 at 12:32, Antony Antony wrote: > > + > > + brcmf: bcrmf@1 { > > + reg = <1>; > > + compatible = "brcm,bcm4329-fmac"; > > + }; > Incorrect wifi chip - just deliver what you've tested. You are right. Now I found the correct chip ID by enabling debug with Broadcom kernel module 'modprobe brcmfmac debug=0x3ffff6' The module is Ampak AP6212A with Broadcom 43430 rev=1 inside it. brcmfmac: brcmf_chip_recognition found AXI chip: BCM43430, rev=1 brcmfmac: brcmf_ops_sdio_probe sdio vendor ID: 0x02d0 brcmfmac: brcmf_ops_sdio_probe sdio device ID: 0xa9a6 IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready This information mostly match with https://wikidevi.com/wiki/AMPAK, except module is actually AP6212A. Some of the modules may not have 'A' printed on them. However the ones that identify as rev=1 is a AP6212A. FYI: there were two things that confused me - bcm4329-fmac also works. - I couldn't configure it to join WiFi network with password. With change I will send a v4. Here is the propssed diff to v3. arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts /* - * WiFi driver support could be incomplete, - * wlan0 is able to see Base Stations, however not able to join. + * AMPAK AP6212A WiFi module with BCM43430, rev=1 inside + * sdio vendor ID: 0x02d0, sdio device ID: 0xa9a6 */ brcmf: wifi@1 { reg = <1>; - compatible = "brcm,bcm4329-fmac"; + compatible = "brcm,bcm43430-fmac"; }; I think now nanopi-neo-plus2.dts, v4, is in a good shape to merge. thanks for the feedback and review. regards, -antony