Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1394135pxb; Sun, 11 Apr 2021 18:26:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAoWxULqNd3Yq+gfwtJFqrvB/jKlLpoiQtjK7rb/bbzV6sHNlqr3bE7iGeckypMqGhuAkc X-Received: by 2002:a17:906:384:: with SMTP id b4mr2474917eja.49.1618190792220; Sun, 11 Apr 2021 18:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618190792; cv=none; d=google.com; s=arc-20160816; b=V9QuuH4bBIGgtk8iUeYsbiVLoNhCN7c4ykZmsBNNqN7FUmZDnfxRpsDIK2IJTLk4AI s5Mz/Ep3Ei0H0lpg/+CIABW8RZ2bVoSB/g7QSDMP7l1CNeBRuDbPtxpFo7koJfb9lYV5 W4xUvnEyYeZhAD/toDxaLnqimbg3N5bvqf6fKHa1gbju5yebjUine9sZVZEgmujri57Q rOiTBJiwi1OhIhUz9XNpWQAhQqsfHKUqA75clikVTYBkDuibxeKaKvYItU6hzJDPcYxE braqW+kIp0oIM4pgEGCsoAZ9rp6hlCp1l+Qjy8O12ovhlNxTNTXsSinERDF+f0hYo5sF m2ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=6UWOIGtqeOeXuUvHOjCb1jTlJLlUgyBDQUb3NqK9hjs=; b=fpBrOLTH35OFCtBIPGxX7j47fVRpCCpIOtw/U7cvxAcAu7X7YCTwLPdmg9qbfy44S+ sdEl38R9xqIFcgI3J6ZWH/W/3DBuSS8adSjYldxQddjHyoQS48X0MA5gkbtShNWUXLW2 8juen+tOGH15NQQe83Th5Cq/On9475bL70fmpRc179f/uXgnqzQUqhNyWS2E/sXd6y/P I2RNeZ2CnzckeLo/xt4bvTxdZaoCxk0gSrVbgd1g+8vWYZceuHCIP2cLStBwjwS4ddzk J6Lu3pSTOJxiUh8Sp8vb6m25bl8k3PtM4pzpfMVsKn4NSL0p719lrhBU0cVd49CZOis/ LGRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SzSdZEYQ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cy6si6790161edb.67.2021.04.11.18.26.09; Sun, 11 Apr 2021 18:26:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SzSdZEYQ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236521AbhDLBZx (ORCPT + 99 others); Sun, 11 Apr 2021 21:25:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236329AbhDLBZx (ORCPT ); Sun, 11 Apr 2021 21:25:53 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88E7DC06138C for ; Sun, 11 Apr 2021 18:25:36 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id b17so8143521pgh.7 for ; Sun, 11 Apr 2021 18:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6UWOIGtqeOeXuUvHOjCb1jTlJLlUgyBDQUb3NqK9hjs=; b=SzSdZEYQrxdEvWA2xFeyuX4kQNz4i53+4NSl/wYOSiZbjIXKqWbUS8Xa1zenkUCxsf h5tNXMbgXWvIvWD5/jGXoRJCDJqqBoKlsNftMJdWNeL8inpJIKBBKuIeTJOXzdfOHsRW a8LxX1o3yiNFyV0r7++xO3pSrtcQd9GBOA7iThaiPngO5gDi94SGiVnj5Cfu72xEdonk t+BL5+EwUt3MFZtFbpNPD5Bw44ThjDg4gKNMBznERTvYX0tqyX76rBv7suQ9Ai3Gaw7D uqeFM/WjhHUZAZ0esBNsNwuJgoRjzZCUhEmjCFEi0XACSEaVrxq1dyC6m1Z0u2SgKVB4 /3dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6UWOIGtqeOeXuUvHOjCb1jTlJLlUgyBDQUb3NqK9hjs=; b=frfvT7t++NImsEibueJuAu0YWGy/3X3CPUWScNr/bensw54vlYzkrxnepo11oNNPGV 6q2xkMFQ935b6pbKZkS0llI9paAZ2bxD2wZGD6p67U1egr+cMFt4Ax6jLufs/YOXMi3y OUMZ/NCElrUfEkPIw1NLBu8bmqFr6Ok2RddN7uQOX6yyjPK1M0r/obaojHnOw8BiWHCK QOvCEaFKzQwsGxVt4ePjk5sBo6KhO2hRpSA39963UNAky8lQwpjitp09IsoRSlw9XcLZ /ScCZEWuBr/dCiGTjDlKAiHaY3ZLPDr4Sz4wMwYPqiMXN6SpaCWXI+6PRwfkVdsDXgKE Mr8g== X-Gm-Message-State: AOAM532C+WltsR4qXZ+q0fveiqD2x1nPZaRgNxorf39hgIzBL060elfv lUlJGqY5T/5xV5aPbN1nkHcpS37O+1yyGJ50 X-Received: by 2002:a05:6a00:1c67:b029:215:6f93:d220 with SMTP id s39-20020a056a001c67b02902156f93d220mr21655362pfw.36.1618190736003; Sun, 11 Apr 2021 18:25:36 -0700 (PDT) Received: from dragon (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id g21sm9050908pjl.28.2021.04.11.18.25.32 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Apr 2021 18:25:35 -0700 (PDT) Date: Mon, 12 Apr 2021 09:25:29 +0800 From: Shawn Guo To: Kalle Valo Cc: Rob Herring , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Arend van Spriel , Franky Lin , Hante Meuleman , Chi-hsien Lin , Wright Feng , Chung-hsien Hsu , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com Subject: Re: [PATCH 1/2] dt-binding: bcm43xx-fmac: add optional brcm,ccode-map Message-ID: <20210412012528.GB15093@dragon> References: <20210408113022.18180-1-shawn.guo@linaro.org> <20210408113022.18180-2-shawn.guo@linaro.org> <87k0p9mewt.fsf@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k0p9mewt.fsf@codeaurora.org> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sun, Apr 11, 2021 at 10:57:54AM +0300, Kalle Valo wrote: > Shawn Guo writes: > > > Add optional brcm,ccode-map property to support translation from ISO3166 > > country code to brcmfmac firmware country code and revision. > > > > Signed-off-by: Shawn Guo > > --- > > .../devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt b/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt > > index cffb2d6876e3..a65ac4384c04 100644 > > --- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt > > +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt > > @@ -15,6 +15,12 @@ Optional properties: > > When not specified the device will use in-band SDIO interrupts. > > - interrupt-names : name of the out-of-band interrupt, which must be set > > to "host-wake". > > + - brcm,ccode-map : multiple strings for translating ISO3166 country code to > > + brcmfmac firmware country code and revision. Each string must be in > > + format "AA-BB-num" where: > > + AA is the ISO3166 country code which must be 2 characters. > > + BB is the firmware country code which must be 2 characters. > > + num is the revision number which must fit into signed integer. > > > > Example: > > > > @@ -34,5 +40,6 @@ mmc3: mmc@1c12000 { > > interrupt-parent = <&pio>; > > interrupts = <10 8>; /* PH10 / EINT10 */ > > interrupt-names = "host-wake"; > > + brcm,ccode-map = "JP-JP-78", "US-Q2-86"; > > The commit log does not answer "Why?". Why this needs to be in device > tree and, for example, not hard coded in the driver? Thanks for the comment, Kalle. Actually, this is something I need some input from driver maintainers. I can see this country code mapping table is chipset specific, and can be hard coded in driver per chip id and revision. But on the other hand, it makes some sense to have this table in device tree, as the country code that need to be supported could be a device specific configuration. Shawn