Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3270079imw; Mon, 11 Jul 2022 05:34:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t8LWmdpMckKT8T1v5fToj3Gcnud5gvnAGOuNRqO2TY5Y2lMirGZkBCxvdCTLeuEuvm9Sca X-Received: by 2002:a17:907:2d8b:b0:72b:7152:aa8e with SMTP id gt11-20020a1709072d8b00b0072b7152aa8emr83490ejc.377.1657542856151; Mon, 11 Jul 2022 05:34:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657542856; cv=none; d=google.com; s=arc-20160816; b=SWi/zx/DD3XPr809sTi1I1i08OvuDPFHYsyHyNMlfpt4uUowzN9aFdzq8Lt9ejXiIV gv67YQMOFnJs069nZwMu+aA+8iT+lpZXuOJQ3R9CBEX8ilxdz8hyhTnMySGSeqf+z8AN KTs2+quMzauwon/U1qu+2FuXb/gncLP91bILhXoSTm00Kpy23HuwXRQoGwPTAPopv5fv jpUoVylrOdZU0x493Ufig8SuLAxlCjXE6XrIPET7G6Ll3vKkhec0zifcqDTuykO0mxKn tN/ahEO14UfXrTOMnV9NY6s6pRmuOL31rrTkfSFIpLHwi164vdQw8nansL4qKvh1NNqd ctBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3SasMWyrhlBVoSPa/+DazZ+0uAy40h1yJmXYnejMTE8=; b=hvJxyKgmXkPK7YMojSncujtR5Qu1AIOb4ce/5p7YbzFwGIWnMS9bjyF4uE47jT9IDc YC+52JRfvbJ3M98qI0Hh5B0K6yb806ajhKrDwJTakZEgmbxpDgmFjMHPSdGQIYaf0PFD RE2p8w2BvJIiqh2uKiBFbwGseY5s26ndIoN4sGs1R27grILx2JSWFt/6GJ8K3RJVPYsp qhg9dscipRV1SfXHc9TE41AQl11AuqJshSX1FgnbMsoVAhfGfWRhnzXucgudEC4mouwY 9tV5T36roeQGxSu/uKZnYeNkdWGXS+8LAydg35/MsKSrPkFgno4e9GuXM4HA/w8IOfFs DIhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=N4yE70WY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd42-20020a17090796aa00b0072b64ce28b4si2061918ejc.394.2022.07.11.05.33.58; Mon, 11 Jul 2022 05:34:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=N4yE70WY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230395AbiGKMax (ORCPT + 64 others); Mon, 11 Jul 2022 08:30:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229708AbiGKMau (ORCPT ); Mon, 11 Jul 2022 08:30:50 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D82C64E61E for ; Mon, 11 Jul 2022 05:30:48 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id h23so8512075ejj.12 for ; Mon, 11 Jul 2022 05:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqrs.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3SasMWyrhlBVoSPa/+DazZ+0uAy40h1yJmXYnejMTE8=; b=N4yE70WYcr4oloa6HIttGo0wZVN+ExaRyrNGxu+F2x71xPMEROMnfM7ZtJjPpNJWzQ 9qblc5lYP2gIStYvRC+cov9MgXUnrouDI6+o066Gu604Wucr4asA9bt8BLpR+Qt6ueEJ sKjSbHNzRaUjJuQqt2wU32S1EYuCA4jGY4jyA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3SasMWyrhlBVoSPa/+DazZ+0uAy40h1yJmXYnejMTE8=; b=C7mAZctJhOpc811BFIgwBgCiLf2vA/VvgVRVhINSkEVaGhBejYP9D3RoMDWXeyYqgo weXMLUO4Mi0vGAlVEZid7LnmR/kBnC92PS9NALiLrQ2ONyp3gGqJcsHQ/1tLTHjPNWXi E91+aOtbxvmteBWNcOE6JfIYLMUlg35+XHvUBJqdndI0jmvq61O56nBumUiwVkgVHpZF uGLKWC8X9JcrrSvZnLJoDEaidUUTH1sOYGQil76reY0aU0kbDCBjXzMDSChWC/ltsN/z 8+d7Ve0oHgBbLVCGNLlaFncW/pCRMKvZ6/PjUNwpbjIi1zsJIZbALr5Rl7vdBtk0jmEF /w3g== X-Gm-Message-State: AJIora8RG95lHvoywGbNkwBwG17tFB0wvP3mF/DU7CsAJdiBvRW+Ox19 34b6gwFc6fr0HIL3rer0yo8RjQ== X-Received: by 2002:a17:907:2c47:b0:6d7:31b0:e821 with SMTP id hf7-20020a1709072c4700b006d731b0e821mr17675287ejc.334.1657542647462; Mon, 11 Jul 2022 05:30:47 -0700 (PDT) Received: from localhost.localdomain (80.71.142.18.ipv4.parknet.dk. [80.71.142.18]) by smtp.gmail.com with ESMTPSA id g1-20020a17090604c100b0072b16a57cdcsm738785eja.118.2022.07.11.05.30.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 05:30:47 -0700 (PDT) From: =?UTF-8?q?Alvin=20=C5=A0ipraga?= To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Arend van Spriel , Franky Lin , Hante Meuleman , van Spriel Cc: Ahmad Fatoum , =?UTF-8?q?Alvin=20=C5=A0ipraga?= , 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: [PATCH 1/2] dt-bindings: bcm4329-fmac: add optional brcm,ccode-map-trivial Date: Mon, 11 Jul 2022 14:30:03 +0200 Message-Id: <20220711123005.3055300-2-alvin@pqrs.dk> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220711123005.3055300-1-alvin@pqrs.dk> References: <20220711123005.3055300-1-alvin@pqrs.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Alvin Šipraga The bindings already offer a brcm,ccode-map property to describe the mapping between the kernel's ISO3166 alpha 2 country code string and the firmware's country code string and revision number. This is a board-specific property and determined by the CLM blob firmware provided by the hardware vendor. However, in some cases the firmware will also use ISO3166 country codes internally, and the revision will always be zero. This implies a trivial mapping: cc -> { cc, 0 }. For such cases, add an optional property brcm,ccode-map-trivial which obviates the need to describe every trivial country code mapping in the device tree with the existing brcm,ccode-map property. The new property is subordinate to the more explicit brcm,ccode-map property. Signed-off-by: Alvin Šipraga --- .../bindings/net/wireless/brcm,bcm4329-fmac.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml index c11f23b20c4c..53b4153d9bfc 100644 --- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml @@ -75,6 +75,16 @@ properties: items: pattern: '^[A-Z][A-Z]-[A-Z][0-9A-Z]-[0-9]+$' + brcm,ccode-map-trivial: + description: | + Use a trivial mapping of ISO3166 country codes to brcmfmac firmware + country code and revision: cc -> { cc, 0 }. In other words, assume that + the CLM blob firmware uses ISO3166 country codes as well, and that all + revisions are zero. This property is mutually exclusive with + brcm,ccode-map. If both properties are specified, then brcm,ccode-map + takes precedence. + type: boolean + required: - compatible - reg -- 2.37.0