ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9331_pisen_wmm003n.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 = "Pisen WMM003N";
10 compatible = "pisen,wmm003n", "qca,ar9331";
11
12 aliases {
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 reset {
23 label = "reset";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 led_system: system {
34 label = "blue:system";
35 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
36 };
37 };
38
39 reg_usb_vbus: reg_usb_vbus {
40 compatible = "regulator-fixed";
41 regulator-name = "usb_vbus";
42 regulator-min-microvolt = <5000000>;
43 regulator-max-microvolt = <5000000>;
44 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
45 enable-active-high;
46 };
47 };
48
49 &spi {
50 status = "okay";
51
52 flash@0 {
53 compatible = "jedec,spi-nor";
54 reg = <0>;
55 spi-max-frequency = <25000000>;
56
57 partitions {
58 compatible = "fixed-partitions";
59 #address-cells = <1>;
60 #size-cells = <1>;
61
62 uboot: partition@0 {
63 reg = <0x0 0x20000>;
64 label = "u-boot";
65 read-only;
66
67 nvmem-layout {
68 compatible = "fixed-layout";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 macaddr_uboot_1fc00: macaddr@1fc00 {
73 reg = <0x1fc00 0x6>;
74 };
75 };
76 };
77
78 firmware: partition@20000 {
79 compatible = "tplink,firmware";
80 reg = <0x20000 0x7d0000>;
81 label = "firmware";
82 };
83
84 art: partition@7f0000 {
85 reg = <0x7f0000 0x10000>;
86 label = "art";
87 read-only;
88 };
89 };
90 };
91 };
92
93 &eth0 {
94 status = "okay";
95
96 nvmem-cells = <&macaddr_uboot_1fc00>;
97 nvmem-cell-names = "mac-address";
98
99 gmac-config {
100 device = <&gmac>;
101
102 switch-phy-addr-swap = <0>;
103 switch-phy-swap = <0>;
104 };
105 };
106
107 &eth1 {
108 status = "okay";
109 compatible = "syscon", "simple-mfd";
110 };
111
112 &usb {
113 dr_mode = "host";
114 vbus-supply = <&reg_usb_vbus>;
115 status = "okay";
116 };
117
118 &usb_phy {
119 status = "okay";
120 };
121
122 &wmac {
123 status = "okay";
124 mtd-cal-data = <&art 0x1000>;
125 nvmem-cells = <&macaddr_uboot_1fc00>;
126 nvmem-cell-names = "mac-address";
127 };