Skip to content

Commit 89916cc

Browse files
author
Kalle Valo
committed
Merge ath-next from ath.git
ath.git patches for 4.6. Major changes: ath10k * dt: add bindings for ipq4019 wifi block * start adding support for qca4019 chip ath9k * add device ID for Toshiba WLM-20U2/GN-1080 * allow more than one interface on DFS channels
2 parents 0a44b22 + 25c0f30 commit 89916cc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2614
-475
lines changed

Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt

Lines changed: 84 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,46 @@
11
* Qualcomm Atheros ath10k wireless devices
22

3-
For ath10k devices the calibration data can be provided through Device
4-
Tree. The node is a child node of the PCI controller.
5-
63
Required properties:
7-
-compatible : Should be "qcom,ath10k"
4+
- compatible: Should be one of the following:
5+
* "qcom,ath10k"
6+
* "qcom,ipq4019-wifi"
7+
8+
PCI based devices uses compatible string "qcom,ath10k" and takes only
9+
calibration data via "qcom,ath10k-calibration-data". Rest of the properties
10+
are not applicable for PCI based devices.
11+
12+
AHB based devices (i.e. ipq4019) uses compatible string "qcom,ipq4019-wifi"
13+
and also uses most of the properties defined in this doc.
814

915
Optional properties:
16+
- reg: Address and length of the register set for the device.
17+
- resets: Must contain an entry for each entry in reset-names.
18+
See ../reset/reseti.txt for details.
19+
- reset-names: Must include the list of following reset names,
20+
"wifi_cpu_init"
21+
"wifi_radio_srif"
22+
"wifi_radio_warm"
23+
"wifi_radio_cold"
24+
"wifi_core_warm"
25+
"wifi_core_cold"
26+
- clocks: List of clock specifiers, must contain an entry for each required
27+
entry in clock-names.
28+
- clock-names: Should contain the clock names "wifi_wcss_cmd", "wifi_wcss_ref",
29+
"wifi_wcss_rtc".
30+
- interrupts: List of interrupt lines. Must contain an entry
31+
for each entry in the interrupt-names property.
32+
- interrupt-names: Must include the entries for MSI interrupt
33+
names ("msi0" to "msi15") and legacy interrupt
34+
name ("legacy"),
35+
- qcom,msi_addr: MSI interrupt address.
36+
- qcom,msi_base: Base value to add before writing MSI data into
37+
MSI address register.
1038
- qcom,ath10k-calibration-data : calibration data as an array, the
1139
length can vary between hw versions
1240

41+
Example (to supply the calibration data alone):
1342

14-
Example:
43+
In this example, the node is defined as child node of the PCI controller.
1544

1645
pci {
1746
pcie@0 {
@@ -28,3 +57,53 @@ pci {
2857
};
2958
};
3059
};
60+
61+
Example (to supply ipq4019 SoC wifi block details):
62+
63+
wifi0: wifi@a000000 {
64+
compatible = "qcom,ipq4019-wifi";
65+
reg = <0xa000000 0x200000>;
66+
resets = <&gcc WIFI0_CPU_INIT_RESET>,
67+
<&gcc WIFI0_RADIO_SRIF_RESET>,
68+
<&gcc WIFI0_RADIO_WARM_RESET>,
69+
<&gcc WIFI0_RADIO_COLD_RESET>,
70+
<&gcc WIFI0_CORE_WARM_RESET>,
71+
<&gcc WIFI0_CORE_COLD_RESET>;
72+
reset-names = "wifi_cpu_init",
73+
"wifi_radio_srif",
74+
"wifi_radio_warm",
75+
"wifi_radio_cold",
76+
"wifi_core_warm",
77+
"wifi_core_cold";
78+
clocks = <&gcc GCC_WCSS2G_CLK>,
79+
<&gcc GCC_WCSS2G_REF_CLK>,
80+
<&gcc GCC_WCSS2G_RTC_CLK>;
81+
clock-names = "wifi_wcss_cmd",
82+
"wifi_wcss_ref",
83+
"wifi_wcss_rtc";
84+
interrupts = <0 0x20 0x1>,
85+
<0 0x21 0x1>,
86+
<0 0x22 0x1>,
87+
<0 0x23 0x1>,
88+
<0 0x24 0x1>,
89+
<0 0x25 0x1>,
90+
<0 0x26 0x1>,
91+
<0 0x27 0x1>,
92+
<0 0x28 0x1>,
93+
<0 0x29 0x1>,
94+
<0 0x2a 0x1>,
95+
<0 0x2b 0x1>,
96+
<0 0x2c 0x1>,
97+
<0 0x2d 0x1>,
98+
<0 0x2e 0x1>,
99+
<0 0x2f 0x1>,
100+
<0 0xa8 0x0>;
101+
interrupt-names = "msi0", "msi1", "msi2", "msi3",
102+
"msi4", "msi5", "msi6", "msi7",
103+
"msi8", "msi9", "msi10", "msi11",
104+
"msi12", "msi13", "msi14", "msi15",
105+
"legacy";
106+
qcom,msi_addr = <0x0b006040>;
107+
qcom,msi_base = <0x40>;
108+
qcom,ath10k-calibration-data = [ 01 02 03 ... ];
109+
};

drivers/net/wireless/ath/ath10k/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ config ATH10K_PCI
1515
---help---
1616
This module adds support for PCIE bus
1717

18+
config ATH10K_AHB
19+
bool "Atheros ath10k AHB support"
20+
depends on ATH10K_PCI && OF && RESET_CONTROLLER
21+
---help---
22+
This module adds support for AHB bus
23+
1824
config ATH10K_DEBUG
1925
bool "Atheros ath10k debugging"
2026
depends on ATH10K

drivers/net/wireless/ath/ath10k/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ obj-$(CONFIG_ATH10K_PCI) += ath10k_pci.o
2525
ath10k_pci-y += pci.o \
2626
ce.o
2727

28+
ath10k_pci-$(CONFIG_ATH10K_AHB) += ahb.o
29+
2830
# for tracing framework to find trace.h
2931
CFLAGS_trace.o := -I$(src)

0 commit comments

Comments
 (0)