aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar7242_buffalo_wzr-hp-g450h.dts
blob: 4f186c2c11d6b87fa9137afc5f1a834b2d0c19ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "ar7242_buffalo_wzr-bhr.dtsi"

/ {
	compatible = "buffalo,wzr-hp-g450h", "qca,ar7242";
	model = "Buffalo WZR-HP-G450H/WZR-450HP";

	aliases {
		label-mac-device = &eth0;
	};

	ath9k-leds {
		compatible = "gpio-leds";

		led_movie_engine {
			label = "blue:movie_engine";
			gpios = <&ath9k 13 GPIO_ACTIVE_LOW>;
		};

		router {
			label = "green:router";
			gpios = <&ath9k 14 GPIO_ACTIVE_LOW>;
		};

		wireless {
			label = "green:wireless";
			gpios = <&ath9k 15 GPIO_ACTIVE_LOW>;
			linux,default-trigger = "phy0tpt";
		};
	};
};

&keys {
	movie_engine {
		label = "movie_engine";
		linux,code = <BTN_6>;
		linux,input-type = <EV_SW>;
		gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
		debounce-interval = <60>;
	};

	aoss {
		label = "aoss";
		linux,code = <KEY_WPS_BUTTON>;
		gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
		debounce-interval = <60>;
	};

	router_off {
		label = "router_off";
		linux,code = <BTN_5>;
		linux,input-type = <EV_SW>;
		gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
		debounce-interval = <60>;
	};
};

&leds {
	sec_vpn {
		label = "orange:security";
		gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
	};
};

&eth0 {
	mtd-mac-address = <&art 0x1002>;
};

&pcie {
	status = "okay";

	ath9k: wifi@0,0 {
		compatible = "pci168c,0030";
		reg = <0x0000 0 0 0 0>;
		mtd-mac-address = <&art 0x1002>;
		qca,no-eeprom;
		#gpio-cells = <2>;
		gpio-controller;
	};
};