ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[openwrt/openwrt.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
8 / {
9 model = "D-Link DIR-505";
10 compatible = "dlink,dir-505", "qca,ar9330";
11
12 aliases {
13 serial0 = &uart;
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 label = "green:power";
43 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
44 };
45
46 led_status_red: status {
47 label = "red:status";
48 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
49 };
50 };
51 };
52
53 &uart {
54 status = "okay";
55 };
56
57 &gpio {
58 led_enable {
59 gpio-hog;
60 output-low;
61 gpios = <1 GPIO_ACTIVE_LOW>;
62 line-name = "d-link:power:led";
63 };
64 };
65
66 &usb {
67 dr_mode = "host";
68 status = "okay";
69 };
70
71 &usb_phy {
72 status = "okay";
73 };
74
75 &eth0 {
76 status = "okay";
77
78 gmac-config {
79 device = <&gmac>;
80 switch-phy-addr-swap = <0>;
81 switch-phy-swap = <0>;
82 };
83 };
84
85 &eth1 {
86 compatible = "syscon", "simple-mfd";
87 status = "okay";
88 };
89
90 &spi {
91 status = "okay";
92
93 flash@0 {
94 compatible = "jedec,spi-nor";
95 spi-max-frequency = <50000000>;
96 reg = <0>;
97
98 partitions {
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
101 #size-cells = <1>;
102
103 partition@0 {
104 label = "u-boot";
105 reg = <0x0 0x10000>;
106 read-only;
107 };
108
109 art: partition@10000 {
110 label = "art";
111 reg = <0x10000 0x10000>;
112 read-only;
113 };
114
115 mac: partition@20000 {
116 label = "mac";
117 reg = <0x20000 0x10000>;
118 read-only;
119 };
120
121 partition@30000 {
122 label = "nvram";
123 reg = <0x30000 0x10000>;
124 read-only;
125 };
126
127 partition@40000 {
128 label = "language";
129 reg = <0x40000 0x40000>;
130 read-only;
131 };
132
133 partition@80000 {
134 compatible = "denx,uimage";
135 label = "firmware";
136 reg = <0x80000 0x780000>;
137 };
138 };
139 };
140 };
141
142 &wmac {
143 status = "okay";
144 qca,no-eeprom;
145 };