From patchwork Tue Jan 3 11:03:38 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: 9494713 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 0341D60405 for ; Tue, 3 Jan 2017 11:03:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAE211FE7A for ; Tue, 3 Jan 2017 11:03:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFAAC268AE; Tue, 3 Jan 2017 11:03:58 +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 969F21FE7A for ; Tue, 3 Jan 2017 11:03:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757921AbdACLD5 (ORCPT ); Tue, 3 Jan 2017 06:03:57 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:36175 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752625AbdACLDz (ORCPT ); Tue, 3 Jan 2017 06:03:55 -0500 Received: by mail-lf0-f67.google.com with SMTP id t196so25494544lff.3; Tue, 03 Jan 2017 03:03:54 -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=zRabyMFUnfCPZidPZgjb9g3auGLr6zowny1DhuAfRzU=; b=j8beYK1p4jIJv1VbVCEGU4fyFhNb79jNT916GMTmE7H/YkK3nEQWh1hZGq5GANcsYw RyrIFL1uPTxWb6kIfFEqwSbjY2xhQ9OhSXxrkKJyoHHnEke2XSwOad4150oPys5uCdVS tD+J3NbTwJXvAbdIh4aQXktrsu3wfSY8qDg7jqr+UofH9bckvtK8cuDJkqL3Zy1XyOgo PuDpTlCKe9cslAjE5hgspo9cJS7OgW/XdwjiQUQGqRijOyHNqdCdZLanBihnaLj03Ov7 QXUpFo7eKIH2uaMiZePscqJlVTBY5bjNJlWN/vcnGF6ahiZrebaTulGIM/VxtkllyFh0 fn4g== 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=zRabyMFUnfCPZidPZgjb9g3auGLr6zowny1DhuAfRzU=; b=b8B1XrzxnpVzOA3YkXZA5k5YjT3m8uPiOOK4TNJJmQ0wqhArI2Csob6j15CFIxhGJI GJQ9BYmoX22Uy6j+k4sQsjFC389U4RuXKS0xj3808XM0AoH4792+UVSYTAtDz9LmG/A8 jcE+NSA1/rZvJLGb7Z1NqzdBFRrxtNAtu4Ol3Ofp0U5rpHGgX1NCvPIt8KlZhNafLqgC J7SJsKx1iecGl+bXn2FEE2Jxt/KknBK/LVJf3CMjqLIv+IsIX6upYR0IagYI4yLB0Cam wTXPx1MNRg3vQkFwjx7Rq1zo6UzPIt843tfAsLJaFHyFOuidQqElRxK4HTMHzTfjmwX1 14Rg== X-Gm-Message-State: AIkVDXI9ST9wHA2ZeFcL68yKf3gO/zBTPCY5qSLGjmB/tCSS9Wtobox4rzP1qwaL1hOaHw== X-Received: by 10.25.157.5 with SMTP id g5mr17141402lfe.112.1483441433153; Tue, 03 Jan 2017 03:03:53 -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 c75sm16594496lfe.28.2017.01.03.03.03.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jan 2017 03:03:52 -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 V4 1/2] dt-bindings: document common IEEE 802.11 frequency limit property Date: Tue, 3 Jan 2017 12:03:38 +0100 Message-Id: <20170103110340.23249-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. --- .../devicetree/bindings/net/wireless/ieee80211.txt | 18 ++++++++++++++++++ 1 file changed, 18 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..0cd1219 --- /dev/null +++ b/Documentation/devicetree/bindings/net/wireless/ieee80211.txt @@ -0,0 +1,18 @@ +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 + +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>; + }; +};