ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9344_embeddedwireless_balin.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "Embedded Wireless Balin";
11 compatible = "embeddedwireless,balin", "qca,ar9344";
12
13 chosen {
14 stdout-path = "serial0:115200n8";
15 };
16
17 aliases {
18 led-boot = &led_system;
19 led-failsafe = &led_system;
20 led-running = &led_system;
21 led-upgrade = &led_system;
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 led_system: led-0 {
28 color = <LED_COLOR_ID_GREEN>;
29 function = LED_FUNCTION_POWER;
30 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
31 default-state = "on";
32 };
33 };
34
35 keys {
36 compatible = "gpio-keys";
37
38 reset {
39 linux,code = <KEY_RESTART>;
40 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
41 debounce-interval = <60>;
42 };
43 };
44 };
45
46 &ref {
47 clock-frequency = <40000000>;
48 };
49
50 &spi {
51 status = "okay";
52
53 flash@0 {
54 compatible = "jedec,spi-nor";
55 reg = <0>;
56 spi-max-frequency = <50000000>;
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 0xfa0000>;
78 };
79
80 partition@ff0000 {
81 label = "art";
82 reg = <0xff0000 0x010000>;
83 read-only;
84
85 nvmem-layout {
86 compatible = "fixed-layout";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 calibration_art_1000: calibration_data@1000 {
91 reg = <0x1000 0x440>;
92 };
93
94 macaddr_art_1002: macaddr@1002 {
95 compatible = "mac-base";
96 reg = <0x1002 0x6>;
97 #nvmem-cell-cells = <1>;
98 };
99 };
100 };
101 };
102 };
103 };
104
105 &builtin_switch {
106 /delete-property/qca,phy4-mii-enable;
107 };
108
109 &eth1 {
110 status = "okay";
111
112 nvmem-cells = <&macaddr_art_1002 0x400000>;
113 nvmem-cell-names = "mac-address";
114
115 gmac-config {
116 device = <&gmac>;
117 switch-phy-swap = <0>;
118 switch-only-mode = <1>;
119 };
120 };
121
122 &wmac {
123 status = "okay";
124
125 nvmem-cells = <&macaddr_art_1002 0>, <&calibration_art_1000>;
126 nvmem-cell-names = "mac-address", "calibration";
127 };
128
129 &pcie {
130 status = "okay";
131 };