ath79: enable UART in SoC DTSI files
[openwrt/staging/mkresin.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 led-boot = &led_power_green;
14 led-failsafe = &led_status_red;
15 led-running = &led_power_green;
16 led-upgrade = &led_status_red;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 wps {
23 label = "WPS button";
24 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_WPS_BUTTON>;
26 };
27
28 reset {
29 label = "Reset button";
30 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
31 linux,code = <KEY_RESTART>;
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37 pinctrl-names = "default";
38 pinctrl-0 = <&jtag_disable_pins>;
39
40 led_power_green: power {
41 label = "green:power";
42 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
43 };
44
45 led_status_red: status {
46 label = "red:status";
47 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
48 };
49 };
50 };
51
52 &gpio {
53 led_enable {
54 gpio-hog;
55 output-low;
56 gpios = <1 GPIO_ACTIVE_LOW>;
57 line-name = "d-link:power:led";
58 };
59 };
60
61 &usb {
62 dr_mode = "host";
63 status = "okay";
64 };
65
66 &usb_phy {
67 status = "okay";
68 };
69
70 &eth0 {
71 status = "okay";
72
73 gmac-config {
74 device = <&gmac>;
75 switch-phy-addr-swap = <0>;
76 switch-phy-swap = <0>;
77 };
78 };
79
80 &eth1 {
81 compatible = "syscon", "simple-mfd";
82 status = "okay";
83 };
84
85 &spi {
86 status = "okay";
87
88 flash@0 {
89 compatible = "jedec,spi-nor";
90 spi-max-frequency = <50000000>;
91 reg = <0>;
92
93 partitions {
94 compatible = "fixed-partitions";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 partition@0 {
99 label = "u-boot";
100 reg = <0x0 0x10000>;
101 read-only;
102 };
103
104 art: partition@10000 {
105 label = "art";
106 reg = <0x10000 0x10000>;
107 read-only;
108 };
109
110 mac: partition@20000 {
111 label = "mac";
112 reg = <0x20000 0x10000>;
113 read-only;
114 };
115
116 partition@30000 {
117 label = "nvram";
118 reg = <0x30000 0x10000>;
119 read-only;
120 };
121
122 partition@40000 {
123 label = "language";
124 reg = <0x40000 0x40000>;
125 read-only;
126 };
127
128 partition@80000 {
129 compatible = "denx,uimage";
130 label = "firmware";
131 reg = <0x80000 0x780000>;
132 };
133 };
134 };
135 };
136
137 &wmac {
138 status = "okay";
139 qca,no-eeprom;
140 };