mac80211: brcmfmac: backport scheduled scan cleanup and chip support
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 326-Documentation-dt-net-add-ath9k-wireless-device-bindi.patch
1 From b263e0bb9d4585ca3ec04d7257ca5308d21333bb Mon Sep 17 00:00:00 2001
2 From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
3 Date: Sun, 16 Oct 2016 22:59:05 +0200
4 Subject: [PATCH 1/3] Documentation: dt: net: add ath9k wireless device binding
5
6 Add documentation how devicetree can be used to configure ath9k based
7 devices.
8
9 Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
10 Acked-by: Rob Herring <robh@kernel.org>
11 Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
12 ---
13 .../devicetree/bindings/net/wireless/qca,ath9k.txt | 48 ++++++++++++++++++++++
14 1 file changed, 48 insertions(+)
15 create mode 100644 Documentation/devicetree/bindings/net/wireless/qca,ath9k.txt
16
17 --- /dev/null
18 +++ b/Documentation/devicetree/bindings/net/wireless/qca,ath9k.txt
19 @@ -0,0 +1,48 @@
20 +* Qualcomm Atheros ath9k wireless devices
21 +
22 +This node provides properties for configuring the ath9k wireless device. The
23 +node is expected to be specified as a child node of the PCI controller to
24 +which the wireless chip is connected.
25 +
26 +Required properties:
27 +- compatible: For PCI and PCIe devices this should be an identifier following
28 + the format as defined in "PCI Bus Binding to Open Firmware"
29 + Revision 2.1. One of the possible formats is "pciVVVV,DDDD"
30 + where VVVV is the PCI vendor ID and DDDD is PCI device ID.
31 + Typically QCA's PCI vendor ID 168c is used while the PCI device
32 + ID depends on the chipset - see the following (possibly
33 + incomplete) list:
34 + - 0023 for AR5416
35 + - 0024 for AR5418
36 + - 0027 for AR9160
37 + - 0029 for AR9220 and AR9223
38 + - 002a for AR9280 and AR9283
39 + - 002b for AR9285
40 + - 002c for AR2427
41 + - 002d for AR9227
42 + - 002e for AR9287
43 + - 0030 for AR9380, AR9381 and AR9382
44 + - 0032 for AR9485
45 + - 0033 for AR9580 and AR9590
46 + - 0034 for AR9462
47 + - 0036 for AR9565
48 + - 0037 for AR9485
49 +- reg: Address and length of the register set for the device.
50 +
51 +Optional properties:
52 +- qca,no-eeprom: Indicates that there is no physical EEPROM connected to the
53 + ath9k wireless chip (in this case the calibration /
54 + EEPROM data will be loaded from userspace using the
55 + kernel firmware loader).
56 +- mac-address: See ethernet.txt in the parent directory
57 +- local-mac-address: See ethernet.txt in the parent directory
58 +
59 +
60 +In this example, the node is defined as child node of the PCI controller:
61 +&pci0 {
62 + wifi@168c,002d {
63 + compatible = "pci168c,002d";
64 + reg = <0x7000 0 0 0 0x1000>;
65 + qca,no-eeprom;
66 + };
67 +};