ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9330_dlink_dir-505.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9330.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "D-Link DIR-505";
11 compatible = "dlink,dir-505", "qca,ar9330";
12
13 aliases {
14 led-boot = &led_power_green;
15 led-failsafe = &led_status_red;
16 led-running = &led_power_green;
17 led-upgrade = &led_status_red;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 wps {
24 label = "WPS button";
25 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28
29 reset {
30 label = "Reset button";
31 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
32 linux,code = <KEY_RESTART>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38 pinctrl-names = "default";
39 pinctrl-0 = <&jtag_disable_pins>;
40
41 led_power_green: power {
42 function = LED_FUNCTION_POWER;
43 color = <LED_COLOR_ID_GREEN>;
44 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
45 };
46
47 led_status_red: status {
48 function = LED_FUNCTION_STATUS;
49 color = <LED_COLOR_ID_RED>;
50 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
51 };
52 };
53 };
54
55 &gpio {
56 led_enable {
57 gpio-hog;
58 output-low;
59 gpios = <1 GPIO_ACTIVE_LOW>;
60 line-name = "d-link:power:led";
61 };
62 };
63
64 &usb {
65 dr_mode = "host";
66 status = "okay";
67 };
68
69 &usb_phy {
70 status = "okay";
71 };
72
73 &eth0 {
74 status = "okay";
75
76 gmac-config {
77 device = <&gmac>;
78 switch-phy-addr-swap = <0>;
79 switch-phy-swap = <0>;
80 };
81 };
82
83 &eth1 {
84 compatible = "syscon", "simple-mfd";
85 status = "okay";
86 };
87
88 &spi {
89 status = "okay";
90
91 flash@0 {
92 compatible = "jedec,spi-nor";
93 spi-max-frequency = <50000000>;
94 reg = <0>;
95
96 partitions {
97 compatible = "fixed-partitions";
98 #address-cells = <1>;
99 #size-cells = <1>;
100
101 partition@0 {
102 label = "u-boot";
103 reg = <0x0 0x10000>;
104 read-only;
105 };
106
107 art: partition@10000 {
108 label = "art";
109 reg = <0x10000 0x10000>;
110 read-only;
111 };
112
113 mac: partition@20000 {
114 label = "mac";
115 reg = <0x20000 0x10000>;
116 read-only;
117 };
118
119 partition@30000 {
120 label = "nvram";
121 reg = <0x30000 0x10000>;
122 read-only;
123 };
124
125 partition@40000 {
126 label = "language";
127 reg = <0x40000 0x40000>;
128 read-only;
129 };
130
131 partition@80000 {
132 compatible = "denx,uimage";
133 label = "firmware";
134 reg = <0x80000 0x780000>;
135 };
136 };
137 };
138 };
139
140 &wmac {
141 status = "okay";
142 qca,no-eeprom;
143 };