From patchwork Mon Jan 2 16:32:07 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: 9493847 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 8353560414 for ; Mon, 2 Jan 2017 16:32:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 75E6B223B2 for ; Mon, 2 Jan 2017 16:32:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6AA4A266F3; Mon, 2 Jan 2017 16:32:31 +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 CE2ED223B2 for ; Mon, 2 Jan 2017 16:32:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933376AbdABQc0 (ORCPT ); Mon, 2 Jan 2017 11:32:26 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:35992 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933373AbdABQcZ (ORCPT ); Mon, 2 Jan 2017 11:32:25 -0500 Received: by mail-lf0-f65.google.com with SMTP id t196so23798641lff.3; Mon, 02 Jan 2017 08:32:24 -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=YdE/ttDnwKMkeEryuhR0Bl98faqCU+nLoVIaI82oUjiXTFDJiaFOsCwqbWdpG5Fmj6 eyA7gYq+o9M+RAHXGn2CEitNzeymazshwBECHqzYMY03wD43fu7pEN/UtTMWoRZWUyjv uZIFxvmykFrN38IGE8C0qvNKfLrmiXvhJu3boGFzW13I2ks/4WAhIAmmY22D3DUbIq63 Vo2C3lSZuMybgAwd7BWRf/dxAd0GnE3/JP9W3Qvym9DTiUX2JYp5xX/9x7WkNXQ7AZ0E XT8KlvAgj+1AgHZKuK917BmOELnz7boynKUUtAtmGnvRl87pisxsQtnws1fRPsr3nXbS n8+g== 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=OYZ7PDXcnCdTUV0fR3fMzFmsuj0dEqH4g45SynZ/WY2ivXT9hITAzE0kHAATZJGFA0 ushcTGfLRh4FJriPn/ngoBy4O2EYLTJr66VRJWT5D0r7D+xdRzabcSZp6xYZ7Qla7mjL j8yxDAF+7dec6nqWchgumifmpc1V0LP1S6AdBzMkrsiJ/MRfGSdJGNYrPPM6Z1YsV7+L ktvGHijaagMGU9dKIVD1SSggcB6sApLj5m3ThJFgjxGZtT0KaMhlR2rnsnN3O+NuD7AX CIqYP4F+WDM7CmyQIH6gg+wmAIrWKgMS7lyXotgjKzz9bJv6ParWfkE+Fk7Tg3AXjcdq kqvA== X-Gm-Message-State: AIkVDXLgOcEYcfRNpuXWnmRa3kaEU0JK7+AFvjPSEmQBVrOamx6DQMP1H4sGyZtaANpCqw== X-Received: by 10.46.21.2 with SMTP id s2mr19823858ljd.19.1483374743096; Mon, 02 Jan 2017 08:32:23 -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 204sm16126252ljj.33.2017.01.02.08.32.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jan 2017 08:32:22 -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 V3 1/2] dt-bindings: document common IEEE 802.11 frequency limit property Date: Mon, 2 Jan 2017 17:32:07 +0100 Message-Id: <20170102163209.2445-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>; + }; +};