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