net: wireless: bcmdhd: Use DTB to get MAC address
[linux-3.10.git] / arch / arm64 / boot / dts / tegra210-platforms / tegra210-loki-e-comms.dtsi
1 #include <dt-bindings/gpio/tegra-gpio.h>
2
3 / {
4         gpio: gpio@6000d000 {
5                 gpio-init-1 = <&wlan_default>;
6
7                 wlan_default: wlan-default {
8                         gpio-input = <
9                                 TEGRA_GPIO(H, 2)
10                                 >;
11                         gpio-output-high = <
12                                 TEGRA_GPIO(H, 0)
13                                 >;
14                 };
15         };
16
17         bluedroid_pm {
18                 compatible = "nvidia,tegra-bluedroid_pm";
19                 id = <0>;
20                 bluedroid_pm,reset-gpio = <&gpio TEGRA_GPIO(H, 4) 0>;
21                 bluedroid_pm,host-wake-gpio = <&gpio TEGRA_GPIO(H, 5) 0>;
22                 bluedroid_pm,ext-wake-gpio = <&gpio TEGRA_GPIO(H, 3) 0>;
23                 interrupt-parent = <&gpio>;
24                 interrupts = <TEGRA_GPIO(H, 5) 0x01>;
25         };
26
27         bcmdhd_wlan {
28                 compatible = "android,bcmdhd_wlan";
29                 interrupt-parent = <&gpio>;
30                 interrupts = <TEGRA_GPIO(H, 2) 0x14>;
31                 wlan-pwr-gpio = <&gpio TEGRA_GPIO(H, 0) 0>;
32                 status = "okay";
33                 /* wifi MAC address */
34                 mac-address-chosen-dtb-node = "nvidia,wifi-mac";
35                 mac-address-file = "/mnt/factory/wifi/wifi_mac.txt";
36         };
37
38         bcm4329_wlan2_ {
39                 compatible = "nvidia,tegra-bcmdhd2-wlan";
40                 interrupt-parent = <&gpio>;
41                 interrupts = <TEGRA_GPIO(I, 1) 0x14>;
42                 wlan-pwr-gpio = <&gpio TEGRA_GPIO(I, 0) 0>;
43 /*
44                 wlan-rst-gpio = <&gpio TEGRA_GPIO(I, xxx) 0>;
45 */
46                 status = "disabled";
47         };
48 };