ath79: add support for Netgear WNR1000 v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_glinet_gl-ar300m.dtsi
1 /dts-v1/;
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "qca953x.dtsi"
7
8 / {
9 aliases {
10 led-boot = &led_status;
11 led-failsafe = &led_status;
12 led-running = &led_status;
13 led-upgrade = &led_status;
14 label-mac-device = &eth0;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 pinctrl-names = "default";
21 pinctrl-0 = <&jtag_disable_pins>;
22
23 button0 {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
27 };
28
29 button1 {
30 label = "button right";
31 linux,code = <BTN_0>;
32 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
33 };
34
35 button3 {
36 label = "button left";
37 linux,code = <BTN_1>;
38 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
39 };
40 };
41
42 leds {
43 compatible = "gpio-leds";
44
45 // Colors from non-Lite versions
46
47 led_status: status {
48 label = "gl-ar300m:green:status";
49 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
50 };
51
52 led_lan: lan {
53 label = "gl-ar300m:green:lan";
54 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
55 };
56
57 led_wlan: wlan {
58 label = "gl-ar300m:red:wlan";
59 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy0tpt";
61 };
62 };
63 };
64
65 &pcie0 {
66 status = "okay";
67 };
68
69 &spi {
70 status = "okay";
71 num-cs = <0>;
72
73 flash@0 {
74 compatible = "winbond,w25q128", "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <25000000>;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 label = "u-boot";
85 reg = <0x000000 0x040000>;
86 read-only;
87 };
88
89 partition@1 {
90 label = "u-boot-env";
91 reg = <0x040000 0x010000>;
92 };
93
94 partition@2 {
95 compatible = "denx,uimage";
96 label = "firmware";
97 reg = <0x050000 0xfa0000>;
98 };
99
100 art: partition@3 {
101 label = "art";
102 reg = <0xff0000 0x010000>;
103 read-only;
104 };
105 };
106 };
107 };
108
109 &uart {
110 status = "okay";
111 };
112
113 &usb0 {
114 #address-cells = <1>;
115 #size-cells = <0>;
116 status = "okay";
117 };
118
119 &usb_phy {
120 status = "okay";
121 };
122
123 &eth0 {
124 status = "okay";
125 mtd-mac-address = <&art 0x0>;
126 phy-handle = <&swphy4>;
127 };
128
129 &eth1 {
130 mtd-mac-address = <&art 0x0>;
131 mtd-mac-address-increment = <1>;
132 };
133
134 &wmac {
135 status = "okay";
136 mtd-cal-data = <&art 0x1000>;
137 mtd-mac-address = <&art 0x1002>;
138 };