ath79: use caldata partition label consistently
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_pisen_wmm003n.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9331.dtsi"
8
9 / {
10 model = "Pisen WMM003N";
11 compatible = "pisen,wmm003n", "qca,ar9331";
12
13 aliases {
14 serial0 = &uart;
15 led-boot = &led_system;
16 led-failsafe = &led_system;
17 led-running = &led_system;
18 led-upgrade = &led_system;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_system: system {
36 label = "pisen:blue:system";
37 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
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 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
47 enable-active-high;
48 };
49 };
50
51 &spi {
52 status = "okay";
53 num-cs = <1>;
54
55 flash@0 {
56 compatible = "jedec,spi-nor";
57 reg = <0>;
58 spi-max-frequency = <25000000>;
59
60 partitions {
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 uboot: partition@0 {
66 reg = <0x0 0x20000>;
67 label = "u-boot";
68 read-only;
69 };
70
71 firmware: partition@20000 {
72 compatible = "tplink,firmware";
73 reg = <0x20000 0x7d0000>;
74 label = "firmware";
75 };
76
77 art: partition@7f0000 {
78 reg = <0x7f0000 0x10000>;
79 label = "art";
80 read-only;
81 };
82 };
83 };
84 };
85
86 &eth0 {
87 status = "okay";
88
89 mtd-mac-address = <&uboot 0x1fc00>;
90
91 gmac-config {
92 device = <&gmac>;
93
94 switch-phy-addr-swap = <0>;
95 switch-phy-swap = <0>;
96 };
97 };
98
99 &eth1 {
100 status = "okay";
101 compatible = "syscon", "simple-mfd";
102 };
103
104 &gpio {
105 status = "okay";
106 };
107
108 &uart {
109 status = "okay";
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 mtd-mac-address = <&uboot 0x1fc00>;
126 };