From patchwork Sun Aug 21 14:31:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9292181 X-Patchwork-Delegate: kvalo@adurom.com 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 6986460574 for ; Sun, 21 Aug 2016 14:31:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BA3228851 for ; Sun, 21 Aug 2016 14:31:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4EDE82887C; Sun, 21 Aug 2016 14:31:30 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 E03D728851 for ; Sun, 21 Aug 2016 14:31:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753176AbcHUOb1 (ORCPT ); Sun, 21 Aug 2016 10:31:27 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33221 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752877AbcHUObZ (ORCPT ); Sun, 21 Aug 2016 10:31:25 -0400 Received: by mail-wm0-f68.google.com with SMTP id o80so9849557wme.0; Sun, 21 Aug 2016 07:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZOQOrcIPODcelYhcIYnonJA7MlFZcTg4sKFdCEaIGc0=; b=frZNdretBjO4Au/t2WOwtzxbIbb/H4xr/e5pFe5h5zxbDh8Bz2SW47194FrwvRajOG EERfDAXV5R7awkXszySsmQqLo07YA5ObCPDuFu2BIEiId8KuMDtpusFi5cZhEpFywAKM b9deUFX9SlkirayjQ3fnUmeveJ6INLJvtxMZHBLiXwKxv5IPWJld4mw+K0HhYKvuESwz epxEfMAbQ8z0+Ix0loI4nyr2kN8/7zQKDRFmzGjZDxEdnU9vWoVPZNhM5AutwaG8HYMd gdQr3zOmq8Wv6jywG9oyT/8goxfDYXYp93H5alz3DFc4e/bM+AzOWl8WhF22YadRNwPd yfaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZOQOrcIPODcelYhcIYnonJA7MlFZcTg4sKFdCEaIGc0=; b=OWS1Gv9Lha+imrDZk+X2/VRAsw4Z5SZztnJt7Wu4pBUwfS70aS9Mp+BAF0ULLjeKyt cDkYtYdPhBQh4skfsRkmxqjggI+n4QeYIqcmFI4hsUM3aO72gv+4JZ+Ewd91uUdEbvoH K45D2nQ1truwf4OPfMeLOWlpGfGkYoud3qGFDpa5pbIuv6FlpvbTTx+Vl+YpwyYiHILT df+O3Gnh26hhTZtxj8kFdrNalKFftz/UHtBvDqxZvcy53I5x/+cACx/v0DEyCbGx1Wga AVBr4Zhs9lZj3UL180ajKQiHcCUDT1SdpTd0ngHMlFOaGt6ve9k4oHhKcbz4mokrO3qx AlAQ== X-Gm-Message-State: AEkoouv36ydnOCUpv0rO5/2bR6B6dsUNXLpN7dsmAYioinNS+pZm+npRrG4BkVvbQ8IAOw== X-Received: by 10.28.230.205 with SMTP id e74mr11155010wmi.42.1471789884151; Sun, 21 Aug 2016 07:31:24 -0700 (PDT) Received: from blackbox.darklights.net (p5DE388BA.dip0.t-ipconnect.de. [93.227.136.186]) by smtp.googlemail.com with ESMTPSA id d7sm18119527wjg.13.2016.08.21.07.31.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Aug 2016 07:31:23 -0700 (PDT) From: Martin Blumenstingl To: ath9k-devel@lists.ath9k.org, devicetree@vger.kernel.org, linux-wireless@vger.kernel.org, ath9k-devel@qca.qualcomm.com Cc: mcgrof@do-not-panic.com, mark.rutland@arm.com, robh+dt@kernel.org, kvalo@codeaurora.org, chunkeey@googlemail.com, arend.vanspriel@broadcom.com, julian.calaby@gmail.com, bjorn@mork.no, linux@rempel-privat.de, Martin Blumenstingl Subject: [PATCH v5 1/3] Documentation: dt: net: add ath9k wireless device binding Date: Sun, 21 Aug 2016 16:31:03 +0200 Message-Id: <20160821143105.27487-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160821143105.27487-1-martin.blumenstingl@googlemail.com> References: <20160709232834.31654-1-martin.blumenstingl@googlemail.com> <20160821143105.27487-1-martin.blumenstingl@googlemail.com> 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 Add documentation how devicetree can be used to configure ath9k based devices. Signed-off-by: Martin Blumenstingl --- .../devicetree/bindings/net/wireless/qca,ath9k.txt | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/wireless/qca,ath9k.txt diff --git a/Documentation/devicetree/bindings/net/wireless/qca,ath9k.txt b/Documentation/devicetree/bindings/net/wireless/qca,ath9k.txt new file mode 100644 index 0000000..98065ad --- /dev/null +++ b/Documentation/devicetree/bindings/net/wireless/qca,ath9k.txt @@ -0,0 +1,47 @@ +* Qualcomm Atheros ath9k wireless devices + +This node provides properties for configuring the ath9k wireless device. The +node is expected to be specified as a child node of the PCI controller to +which the wireless chip is connected. + +Required properties: +- compatible: For PCI and PCIe devices this should be an identifier following + the format as defined in "PCI Bus Binding to Open Firmware" + Revision 2.1. One of the possible formats is "pciVVVV,DDDD" + where VVVV is the PCI vendor ID and DDDD is PCI device ID. + +Optional properties: +- reg: Address and length of the register set for the device. +- qca,clk-25mhz: Defines that a 25MHz clock is used +- qca,no-eeprom: Indicates that there is no physical EEPROM connected to the + ath9k wireless chip (in this case the calibration / + EEPROM data will be loaded from userspace using the + kernel firmware loader). +- qca,disable-2ghz: Overrides the settings from the EEPROM and disables the + 2.4GHz band. Setting this property is only needed + when the RF circuit does not support the 2.4GHz band + while it is enabled nevertheless in the EEPROM. +- qca,disable-5ghz: Overrides the settings from the EEPROM and disables the + 5GHz band. Setting this property is only needed when + the RF circuit does not support the 5GHz band while + it is enabled nevertheless in the EEPROM. +- mac-address: See ethernet.txt in the parent directory +- local-mac-address: See ethernet.txt in the parent directory + +In this example, the node is defined as child node of the PCI controller. + +pci { + pcie@0 { + reg = <0 0 0 0 0>; + #interrupt-cells = <1>; + #size-cells = <2>; + #address-cells = <3>; + device_type = "pci"; + + ath9k@0,0 { + compatible = "pci168c,0030"; + reg = <0 0 0 0 0>; + qca,disable-5ghz; + }; + }; +};