From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Blumenstingl Date: Sun, 10 Jul 2016 01:28:31 +0200 Subject: [ath9k-devel] [PATCH v4 0/3] add devicetree support to ath9k In-Reply-To: <20160624123430.4097-1-martin.blumenstingl@googlemail.com> References: <20160624123430.4097-1-martin.blumenstingl@googlemail.com> Message-ID: <20160709232834.31654-1-martin.blumenstingl@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org This series adds support for configuring ath9k based devices via devicetree. This was tested on PCI(e) based devices. This should work for AHB based devices as well as soon as the ath79 platform is ready to populate the ath9k wmac via devicetree. Changes since v3: - dropped RFC status - dropped all GPIO and LED related devicetree properties (namely: qca,gpio-mask, qca,gpio-val, qca,led-pin, qca,led-active-high). These are only needed as long as ath9k doesn't register itself as a GPIO controller. However, patches for this are already available in LEDE and OpenWrt. Instead of adding new "legacy" properties we should try to get the GPIO controller patches upstream. - rewording of large parts of the documentation which now makes clear when specific properties should be set (or not set) any the reason behind it. Thanks to everyone who suggested improvements or pointed out typos. - use an array for accessing the string representation of the bus types (as suggested by Felix) Martin Blumenstingl (3): Documentation: dt: net: add ath9k wireless device binding ath9k: add a helper to get the string representation of ath_bus_type ath9k: parse the device configuration from an OF node .../devicetree/bindings/net/wireless/qca,ath9k.txt | 59 ++++++++++++++++++++++ drivers/net/wireless/ath/ath.h | 6 +++ drivers/net/wireless/ath/ath9k/init.c | 55 ++++++++++++++++++++ drivers/net/wireless/ath/main.c | 7 +++ 4 files changed, 127 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/wireless/qca,ath9k.txt -- 2.9.0