From patchwork Wed Jan 4 17:58:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9497117 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 77FD6606B4 for ; Wed, 4 Jan 2017 18:02:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B7E32816B for ; Wed, 4 Jan 2017 18:02:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6027628174; Wed, 4 Jan 2017 18:02:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B899428173 for ; Wed, 4 Jan 2017 18:02:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761450AbdADSAe (ORCPT ); Wed, 4 Jan 2017 13:00:34 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:34630 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751469AbdADR7g (ORCPT ); Wed, 4 Jan 2017 12:59:36 -0500 Received: by mail-lf0-f66.google.com with SMTP id d16so33312079lfb.1; Wed, 04 Jan 2017 09:58:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pf+r3ZUW+g2bMzLVGw/VY6+CYgcNdDTumvABd+Xuox0=; b=GgpDJ48RAuQyDuX4FTW9gtuAHIAeJeLwH06UDI0R1iZd/z6aM/4wPQecsaji0BPksC r7PRSe4Hp1pMS9roqWDw0GGKQdGwgK4M6B8GHyuCLRmA5hIxu5sDVUFTj57bBX7cyioK 6ndp5+/JVS3/ONyxD+6zEpHAfPyMDNOD0Iv/mpELIVtk6hxwxcC7IU854vG4Z4GHomfl UNhmRJvV7uNvXO97mr7PigGrSax594nV1yfgAMYjOR+kiccF3T/ujJrFFvgCVIxAi3qX nWE9k3vPFOircXqx5B6gcjRgX8Cjv9WVK/nir4dDhJOEqZdwbotPMU5CH94idui5zU+p 2FSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pf+r3ZUW+g2bMzLVGw/VY6+CYgcNdDTumvABd+Xuox0=; b=V55YNMd5gtjV0xXcYaAJFaroGM8zCm1sHKjnoTjIQ5MWVKSTCOjz7nbFCvJ7aWfl6W 60101/Qna26oe/2MUUIAhlsqHGm1Qo/7MquiHa918BkUJwOPYGCC4Zokq3ofqh00ZrVN sQVivZfvpcMAKBQUY/DShaaA080wHYD4nXdF2z84ntWe75GnrFjh1S5o70gTj7h87tzA zz+e6aepeJvMq73hXrDGf8UmV5tia5QHDsRhMeJA9QSza8Or03UHkuqKADuSobC1jDdR ythranh2okjwSI6GkFSOo9Iequ9mJj9Vcl/PL1hQe1yiaRSyJjGFsifZJbDlNxaS+t5+ V2VA== X-Gm-Message-State: AIkVDXJzjlmN0yuIwBjzxVZxzepxjkBWAT/egm1ZeaqTE8aT23oV81/BAanuAKXBOU6qoQ== X-Received: by 10.25.196.136 with SMTP id u130mr23894052lff.62.1483552721582; Wed, 04 Jan 2017 09:58:41 -0800 (PST) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id c78sm17694967lfc.39.2017.01.04.09.58.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jan 2017 09:58:40 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Johannes Berg , linux-wireless@vger.kernel.org Cc: Martin Blumenstingl , Felix Fietkau , Arend van Spriel , Arnd Bergmann , devicetree@vger.kernel.org, Rob Herring , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH V6 1/3] dt-bindings: document common IEEE 802.11 frequency limit property Date: Wed, 4 Jan 2017 18:58:29 +0100 Message-Id: <20170104175832.25996-1-zajec5@gmail.com> X-Mailer: git-send-email 2.10.1 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rafał Miłecki This new file should be used for properties that apply to all wireless devices. Signed-off-by: Rafał Miłecki Acked-by: Rob Herring --- V2: Switch to a single ieee80211-freq-limit property that allows specifying *multiple* ranges. This resolves problem with more complex rules as pointed by Felx. Make description implementation agnostic as pointed by Arend. Rename node to wifi as suggested by Martin. V3: Use more real-life frequencies in the example. V5: Describe hardware design as possible use for this property V6: Even better property description, thanks Rob for your help! --- .../devicetree/bindings/net/wireless/ieee80211.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/wireless/ieee80211.txt diff --git a/Documentation/devicetree/bindings/net/wireless/ieee80211.txt b/Documentation/devicetree/bindings/net/wireless/ieee80211.txt new file mode 100644 index 0000000..f6442b1 --- /dev/null +++ b/Documentation/devicetree/bindings/net/wireless/ieee80211.txt @@ -0,0 +1,24 @@ +Common IEEE 802.11 properties + +This provides documentation of common properties that are valid for all wireless +devices. + +Optional properties: + - ieee80211-freq-limit : list of supported frequency ranges in KHz. This can be + used for devices that in a given config support less channels than + normally. It may happen chipset supports a wide wireless band but it is + limited to some part of it due to used antennas or power amplifier. + An example case for this can be tri-band wireless router with two + identical chipsets used for two different 5 GHz subbands. Using them + incorrectly could not work or decrease performance noticeably. + +Example: + +pcie@0,0 { + reg = <0x0000 0 0 0 0>; + wifi@0,0 { + reg = <0x0000 0 0 0 0>; + ieee80211-freq-limit = <2402000 2482000>, + <5170000 5250000>; + }; +};