ath79: enable UART in SoC DTSI files
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca955x_engenius_ecb1xxx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 debounce-interval = <60>;
22 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 };
25 };
26
27 leds {
28 compatible = "gpio-leds";
29
30 led_power: power {
31 label = "amber:power";
32 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
33 default-state = "on";
34 };
35
36 wifi2g {
37 label = "blue:wifi2g";
38 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "phy1tpt";
40 };
41
42 wifi5g {
43 label = "blue:wifi5g";
44 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "phy0tpt";
46 };
47 };
48 };
49
50 &spi {
51 status = "okay";
52
53 flash@0 {
54 compatible = "jedec,spi-nor";
55 reg = <0>;
56 spi-max-frequency = <40000000>;
57
58 partitions {
59 compatible = "fixed-partitions";
60 #address-cells = <1>;
61 #size-cells = <1>;
62
63 partition@0 {
64 label = "u-boot";
65 reg = <0x000000 0x040000>;
66 read-only;
67 };
68
69 partition@40000 {
70 label = "u-boot-env";
71 reg = <0x040000 0x010000>;
72 };
73
74 partition@50000 {
75 compatible = "denx,uimage";
76 label = "firmware";
77 reg = <0x050000 0xf50000>;
78 };
79
80 partition@fa0000 {
81 label = "userconfig";
82 reg = <0xfa0000 0x050000>;
83 read-only;
84 };
85
86 partition@ff0000 {
87 label = "art";
88 reg = <0xff0000 0x010000>;
89 read-only;
90 };
91 };
92 };
93 };
94
95 &mdio0 {
96 status = "okay";
97
98 phy5: ethernet-phy@5 {
99 reg = <5>;
100 eee-broken-100tx;
101 eee-broken-1000t;
102 };
103 };
104
105 &eth0 {
106 status = "okay";
107
108 phy-handle = <&phy5>;
109 phy-mode = "rgmii-id";
110
111 pll-data = <0x82000000 0x80000101 0x80001313>;
112
113 gmac-config {
114 device = <&gmac>;
115 rgmii-enabled = <1>;
116 };
117 };
118
119 &pcie0 {
120 status = "okay";
121
122 wifi@0,0,0 {
123 compatible = "qcom,ath10k";
124 reg = <0x0 0 0 0 0>;
125 qca,no-eeprom;
126 };
127 };
128
129 &wmac {
130 status = "okay";
131
132 qca,no-eeprom;
133 };