From patchwork Tue Jan 3 22:57:12 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: 9495795 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 EB7BD60405 for ; Tue, 3 Jan 2017 22:57:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE45E1FF35 for ; Tue, 3 Jan 2017 22:57:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D1E1D2793A; Tue, 3 Jan 2017 22:57:40 +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 1EF1B1FF35 for ; Tue, 3 Jan 2017 22:57:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761676AbdACW5i (ORCPT ); Tue, 3 Jan 2017 17:57:38 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:32804 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761670AbdACW5e (ORCPT ); Tue, 3 Jan 2017 17:57:34 -0500 Received: by mail-lf0-f68.google.com with SMTP id b14so365863lfg.0; Tue, 03 Jan 2017 14:57:31 -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=/Yox4OP7mQDd7kFZQIuGarjqVIAqxYT72vR837hg0sc=; b=k3kn0xUWa/dPA8a+qg74/chhLojRYLCd+XEvv+g6uXXUd55HdGvvdreRLkgH1v5fMI YSGDE0EvEiehqekmK7OiAGlU4q7Om9VKGgKNYKNgvNZqxdXeszSQ0LDXTvoC5bI+SO9k C+q36TB6QX8s5vKN5ooM1jDkoQPV5F6sD1ObzAFE0RGlTrmQu1QrXGqZdW6/L1iftB9w Djix1LMRv3oZuyA6MtF+R6TKD4AAzSYqq1Lld0bCvHvKou1LPv3u22oJrKSg2wMvmLWO eND1PiYVJy9mSbaZKNr71EYnih7tNj9RE2GdTVy2fHtNTlt/vBgRJsdeoLk2Lu5fCAEY l0mQ== 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=/Yox4OP7mQDd7kFZQIuGarjqVIAqxYT72vR837hg0sc=; b=UG2SeCUIeA/s2lEEGVWookPzqTudA6AgIZoeLPSqB/PXpp5ue/FWdRv6XoZwWNRkGb nmdF1hw/4WSOL3H2Scbwlxl5q1zvPGopd5RzSLD2tchCeR274KA70wdn3iSuaOe7w3XM PNjA1OVcg03kETDUsvZSeoKawJfn7SyJ/ykqZyb0lmmrDkYIYkh6DvKuEwpYp5/h1j4A /ljzXtWSH3ajOSERPtCn8v8uLBsEz907rsaMnuFj7ZJpdUOjw+xjPPpOEWlLUf8MYRp5 P/CLEpKk/Nonsc3wQTCMA59YsSrQguTZE+4L5HamRkxruWobWmB3GNS8c4kV/DoWyi5R Jzng== X-Gm-Message-State: AIkVDXJn4zndkHBJADyV7o7hUgx4zSTlNlNEukheEW0FaxUyrNZyTbsY6osGtKpEarDYuA== X-Received: by 10.25.206.79 with SMTP id e76mr128932lfg.119.1483484250618; Tue, 03 Jan 2017 14:57:30 -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 26sm16783366lji.37.2017.01.03.14.57.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jan 2017 14:57:29 -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, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH V5 1/3] dt-bindings: document common IEEE 802.11 frequency limit property Date: Tue, 3 Jan 2017 23:57:12 +0100 Message-Id: <20170103225715.14072-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 --- 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 --- .../devicetree/bindings/net/wireless/ieee80211.txt | 20 ++++++++++++++++++++ 1 file changed, 20 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..1c82c16 --- /dev/null +++ b/Documentation/devicetree/bindings/net/wireless/ieee80211.txt @@ -0,0 +1,20 @@ +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 to specify extra hardware limitations caused by e.g. used antennas + or power amplifiers. + +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>; + }; +};