Return-path: Received: from mail-qk0-f194.google.com ([209.85.220.194]:33319 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751793AbcGAC04 (ORCPT ); Thu, 30 Jun 2016 22:26:56 -0400 Date: Thu, 30 Jun 2016 21:08:36 -0500 From: Rob Herring To: Hans de Goede Cc: "John W . Linville" , devicetree , linux-wireless@vger.kernel.org, linux-sunxi@googlegroups.com, Chen-Yu Tsai , Arend van Spriel , Maxime Ripard , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/4] brcmfmac: Add brcm,nvram_file_name dt property Message-ID: <20160701020836.GA1722@rob-hp-laptop> (sfid-20160701_042701_212592_A62C681A) References: <1467209074-15634-1-git-send-email-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1467209074-15634-1-git-send-email-hdegoede@redhat.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, Jun 29, 2016 at 04:04:31PM +0200, Hans de Goede wrote: > Add a brcm,nvram_file_name dt property to allow overruling the default > nvram filename for sdio devices. The idea is that we can specify a > board specific nvram file, e.g. brcmfmac43362-ap6210.txt for boards > with an ap6210 wifi sdio module and ship this in linux-firmware, so > that wifi will work out of the box, without requiring users to find > and then manually install the right nvram file for their board. What about putting its contents directly into DT? It's just text key/value pairs so it would match up well. Also, I have to wonder how all the non-SDIO based cards don't need this file. > Signed-off-by: Hans de Goede > --- > .../devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt | 2 ++ > drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c | 2 ++ > drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 6 ++++++ > include/linux/platform_data/brcmfmac.h | 2 ++ > 4 files changed, 12 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt b/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt > index 5dbf169..2ba13a6 100644 > --- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt > +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt > @@ -11,6 +11,7 @@ Required properties: > Optional properties: > - brcm,drive-strength : drive strength used for SDIO pins on device in mA > (default = 6). > + - brcm,nvram_file_name : name of the nvram file to load The need for firmware file names has come up several times though nothing merged to yet. There has been at least some level of agreement to use "firmware-name" here. > - interrupt-parent : the phandle for the interrupt controller to which the > device interrupts are connected. > - interrupts : specifies attributes for the out-of-band interrupt (host-wake). > @@ -34,6 +35,7 @@ mmc3: mmc@01c12000 { > brcmf: bcrmf@1 { > reg = <1>; > compatible = "brcm,bcm4329-fmac"; > + brcm,nvram_file_name = "brcm/brcmfmac43362-ap6210.txt"; > interrupt-parent = <&pio>; > interrupts = <10 8>; /* PH10 / EINT10 */ > interrupt-names = "host-wake";