ath79: convert Araknis AN-300-AP-I-N WiFis to nvmem-cells
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_dlink_dir-842-c.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 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 wps {
20 linux,code = <KEY_WPS_BUTTON>;
21 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
22 debounce-interval = <60>;
23 };
24
25 reset {
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 label = "green:power";
37 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
38 };
39
40 wps {
41 label = "green:wps";
42 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
43 };
44
45 wlan {
46 label = "green:wlan";
47 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
49 };
50 };
51 };
52
53 &pcie {
54 status = "okay";
55 };
56
57 &spi {
58 status = "okay";
59
60 flash@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <50000000>;
64
65 partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 partition@0 {
71 label = "u-boot";
72 reg = <0x000000 0x40000>;
73 read-only;
74 };
75
76 partition@40000 {
77 label = "u-boot-env";
78 reg = <0x040000 0x10000>;
79 read-only;
80 };
81
82 partition@50000 {
83 label = "devdata";
84 reg = <0x050000 0x10000>;
85 read-only;
86 };
87
88 partition@60000 {
89 label = "devconf";
90 reg = <0x060000 0x10000>;
91 read-only;
92 };
93
94 partition@70000 {
95 label = "misc";
96 reg = <0x070000 0x10000>;
97 read-only;
98 };
99
100 partition@80000 {
101 compatible = "seama";
102 label = "firmware";
103 reg = <0x080000 0xf50000>;
104 };
105
106 art: partition@fd0000 {
107 label = "art";
108 reg = <0xfd0000 0x010000>;
109 read-only;
110 };
111
112 partition@fe0000 {
113 label = "reserved";
114 reg = <0xfe0000 0x20000>;
115 read-only;
116 };
117 };
118 };
119 };
120
121 &mdio0 {
122 status = "okay";
123
124 phy0: ethernet-phy@0 {
125 reg = <0>;
126 qca,mib-poll-interval = <500>;
127 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
128
129 qca,ar8327-initvals = <
130 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
131 0x10 0x81000080 /* POWER_ON_STRAP */
132 0x50 0xcc35cc35 /* LED_CTRL0 */
133 0x54 0xcb37cb37 /* LED_CTRL1 */
134 0x58 0x00000000 /* LED_CTRL2 */
135 0x5c 0x00f3cf00 /* LED_CTRL3 */
136 0x7c 0x0000007e /* PORT0_STATUS */
137 >;
138 };
139 };
140
141 &eth0 {
142 status = "okay";
143
144 pll-data = <0x03000101 0x00000101 0x00001919>;
145
146 phy-mode = "sgmii";
147 phy-handle = <&phy0>;
148 };
149
150 &wmac {
151 status = "okay";
152
153 qca,no-eeprom;
154 };