a4f7be3e1cd6ffeb1256534357339360eff31105
[openwrt/staging/dangole.git] / target / linux / ath79 / dts / qca9563_qxwlan_e1700ac.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &eth0;
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
25 };
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 led_system: system {
32 label = "green:system";
33 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
34 default-state = "on";
35 };
36
37 usb {
38 label = "green:usb";
39 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
40 trigger-sources = <&hub_port0>;
41 linux,default-trigger = "usbport";
42 };
43
44 wlan2g {
45 label = "green:wlan2g";
46 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy1tpt";
48 };
49 };
50 };
51
52 &pcie {
53 status = "okay";
54 };
55
56 &spi {
57 status = "okay";
58
59 flash@0 {
60 compatible = "jedec,spi-nor";
61 reg = <0>;
62 spi-max-frequency = <25000000>;
63
64 partitions: partitions {
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 partition@0 {
70 label = "u-boot";
71 reg = <0x000000 0x040000>;
72 read-only;
73 };
74
75 partition@40000 {
76 label = "u-boot-env";
77 reg = <0x040000 0x010000>;
78 read-only;
79 };
80
81 pridata: partition@50000 {
82 label = "pri-data";
83 reg = <0x050000 0x010000>;
84 read-only;
85
86 nvmem-layout {
87 compatible = "fixed-layout";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 macaddr_pridata_400: macaddr@400 {
92 reg = <0x400 0x6>;
93 };
94 };
95 };
96
97 art: partition@60000 {
98 label = "art";
99 reg = <0x060000 0x010000>;
100 read-only;
101 };
102 };
103 };
104 };
105
106 &mdio0 {
107 status = "okay";
108
109 phy0: ethernet-phy@0 {
110 reg = <0>;
111 phy-mode = "sgmii";
112 qca,mib-poll-interval = <500>;
113
114 qca,ar8327-initvals = <
115 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
116 0x7c 0x0000007e /* PORT0_STATUS */
117 >;
118 };
119 };
120
121 &eth0 {
122 status = "okay";
123
124 pll-data = <0x03000101 0x00000101 0x00001919>;
125
126 phy-mode = "sgmii";
127 phy-handle = <&phy0>;
128
129 nvmem-cells = <&macaddr_pridata_400>;
130 nvmem-cell-names = "mac-address";
131 };
132
133 &usb_phy0 {
134 status = "okay";
135 };
136
137 &usb0 {
138 status = "okay";
139 };
140
141 &usb_phy1 {
142 status = "okay";
143 };
144
145 &usb1 {
146 status = "okay";
147 };
148
149 &wmac {
150 status = "okay";
151
152 mtd-cal-data = <&art 0x1000>;
153 };