From patchwork Thu Jun 23 17:45:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9195655 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 2137C6075A for ; Thu, 23 Jun 2016 17:45:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14D482844E for ; Thu, 23 Jun 2016 17:45:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 09A8C28465; Thu, 23 Jun 2016 17:45:56 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 AA61C2844E for ; Thu, 23 Jun 2016 17:45:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751911AbcFWRpx (ORCPT ); Thu, 23 Jun 2016 13:45:53 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35457 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751743AbcFWRpw (ORCPT ); Thu, 23 Jun 2016 13:45:52 -0400 Received: by mail-wm0-f66.google.com with SMTP id a66so12814659wme.2 for ; Thu, 23 Jun 2016 10:45:51 -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=l7n/dbajmevCVZ5Uh1MzTNLEUBNk60FlKwtwDDysFzg=; b=VFVtWlPh1f9Khq0n5meRa+c0gefuHav2tsWHbYITw6bC1O5E63lyjqRVILrK/nLExe /P/j5CsUoJ1fNt5S8AoIwPhq2z5nhkLbNrPC6y7KfDLEUMNzT3IgD0ocZy4EIPT6DuB9 VThctYqlM5/QUx6cB0uNvCZDGE3xZ1zW0gePu0ls3Q4yvaLOwhBhBcPLM2mzoPJoBBPg W02Alfw3uJSPsmVxt8XXHF+YGMgODDZeZn6vWkSk1PJx+2516edkIpGuFbv0KnDgxxfR sm+1IXw1Ti7mxcsSQE9UfOi75z7CIDAYz9Odvui0OK0jXffgZzEHO+LoqDXwmWRjdPRF xyqw== 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=l7n/dbajmevCVZ5Uh1MzTNLEUBNk60FlKwtwDDysFzg=; b=RdL5KiiIPxrKfmqv81t2SKZXPRr4VKSMtV9kWHc6T/LLc4mo1FcgpMNgDyaSKmfC69 fK3TShWy2uq1wYVpjHYnyXdrFA6cb+BAoIG45UVWDN/99ViA7l+YNHVZtg/St6Efd8me NL0HGMDDpxldkeyv2QXLExa/mcEHBlDy8D5/1nR6SQ9X3LrvRx6iIar6BNymBKK3coKh a0W+nsPYs9HQIC7g0TC8vulPlIS8ZgESPHtpHsPPXZXQQ5whCwpJL0JDxRjeNGSyHwvw aqiva7kasmQqRSHyQwOMLP4T4xDddFnZ4q/pX3fkWhh4bOMYVdV1jls1nHCKhi7v+iv2 WtDQ== X-Gm-Message-State: ALyK8tJt7rIIPxJ6kflMsDPL6i/whSr/u+8LPDz7itLaH6FjUwTmeuTa9uuuQyJtE2CWsQ== X-Received: by 10.194.113.104 with SMTP id ix8mr20577139wjb.2.1466703950598; Thu, 23 Jun 2016 10:45:50 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3CD1B0478F6703992958538.dip0.t-ipconnect.de. [2003:dc:d3cd:1b04:78f6:7039:9295:8538]) by smtp.googlemail.com with ESMTPSA id ue1sm1117188wjc.44.2016.06.23.10.45.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jun 2016 10:45:49 -0700 (PDT) From: Martin Blumenstingl To: ath9k-devel@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath9k-devel@lists.ath9k.org Cc: nbd@nbd.name, chunkeey@googlemail.com, mark.rutland@arm.com, robh+dt@kernel.org, Martin Blumenstingl Subject: [PATCH RFC v2 1/2] Documentation: dt: net: add ath9k wireless device binding Date: Thu, 23 Jun 2016 19:45:35 +0200 Message-Id: <20160623174536.5967-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160623174536.5967-1-martin.blumenstingl@googlemail.com> References: <20160623174536.5967-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 --- changes in v1 -> v2: - use vendor prefix "qca" instead of "ath" - extend the example so it includes the "compatible" property .../devicetree/bindings/net/wireless/qca,ath9k.txt | 41 ++++++++++++++++++++++ 1 file changed, 41 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..bb78f68 --- /dev/null +++ b/Documentation/devicetree/bindings/net/wireless/qca,ath9k.txt @@ -0,0 +1,41 @@ +* 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: Should be "qca,ath9k" + +Optional properties: +- reg: Address and length of the register set for the device. +- qca,gpio-mask: The GPIO mask +- qca,gpio-val: The GPIO value +- qca,led-pin: The GPIO number to which the LED is connected +- qca,led-active-high: The LED is active when the GPIO is HIGH +- qca,clk-25mhz: Defines that at 25MHz clock is used +- qca,eeprom-name: The name of the file which contains the EEPROM data (which + will be loaded via request_firmware) +- qca,check-eeprom-endianness: Allow checking the EEPROM endianness and + swapping of the EEPROM data if required +- qca,disable-2ghz: Disables the 2.4GHz band, even if enabled in the EEPROM +- qca,disable-5ghz: Disables the 5GHz band, even if enabled in the EEPROM + +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 = "qca,ath9k"; + reg = <0 0 0 0 0>; + device_type = "pci"; + qca,disable-5ghz; + }; + }; +};