ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9331_onion_omega.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9331.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "Onion Omega";
10 compatible = "onion,omega", "qca,ar9331";
11
12 aliases {
13 serial0 = &uart;
14 label-mac-device = &wmac;
15 led-boot = &led_system;
16 led-failsafe = &led_system;
17 led-running = &led_system;
18 led-upgrade = &led_system;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_system: system {
25 label = "amber:system";
26 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 reset {
34 label = "reset";
35 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
37 debounce-interval = <60>;
38 };
39 };
40
41 reg_usb_vbus: reg_usb_vbus {
42 compatible = "regulator-fixed";
43 regulator-name = "usb_vbus";
44 regulator-min-microvolt = <5000000>;
45 regulator-max-microvolt = <5000000>;
46 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
47 enable-active-high;
48 };
49 };
50
51 &ref {
52 clock-frequency = <25000000>;
53 };
54
55 &usb {
56 status = "okay";
57
58 vbus-supply = <&reg_usb_vbus>;
59 dr_mode = "host";
60 };
61
62 &usb_phy {
63 status = "okay";
64 };
65
66 &eth0 {
67 status = "okay";
68
69 compatible = "syscon", "simple-mfd";
70 };
71
72 &eth1 {
73 status = "okay";
74
75 nvmem-cells = <&macaddr_uboot_1fc00 (-1)>;
76 nvmem-cell-names = "mac-address";
77
78 gmac-config {
79 device = <&gmac>;
80 switch-phy-addr-swap = <4>;
81 switch-phy-swap = <4>;
82 };
83 };
84
85 &spi {
86 status = "okay";
87
88 flash@0 {
89 compatible = "jedec,spi-nor";
90 spi-max-frequency = <25000000>;
91 reg = <0>;
92
93 partitions {
94 compatible = "fixed-partitions";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 uboot: partition@0 {
99 label = "u-boot";
100 reg = <0x000000 0x020000>;
101 read-only;
102
103 nvmem-layout {
104 compatible = "fixed-layout";
105 #address-cells = <1>;
106 #size-cells = <1>;
107
108 macaddr_uboot_1fc00: macaddr@1fc00 {
109 compatible = "mac-base";
110 reg = <0x1fc00 0x6>;
111 #nvmem-cell-cells = <1>;
112 };
113 };
114 };
115
116 partition@20000 {
117 compatible = "tplink,firmware";
118 label = "firmware";
119 reg = <0x020000 0xfd0000>;
120 };
121
122 art: partition@ff0000 {
123 label = "art";
124 reg = <0xff0000 0x010000>;
125 read-only;
126 };
127 };
128 };
129 };
130
131 &wmac {
132 status = "okay";
133
134 mtd-cal-data = <&art 0x1000>;
135
136 nvmem-cells = <&macaddr_uboot_1fc00 0>;
137 nvmem-cell-names = "mac-address";
138 };