ath79: remove bs-partition ro-flag for UniFi AC devices
[oweals/openwrt.git] / target / linux / ath79 / dts / ar7241_tp-link.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "ar7241.dtsi"
7
8 / {
9         aliases {
10                 led-status = &led_system;
11         };
12
13         gpio-keys-polled {
14                 compatible = "gpio-keys-polled";
15                 #address-cells = <1>;
16                 #size-cells = <0>;
17                 poll-interval = <20>;
18
19                 reset {
20                         label = "reset";
21                         linux,code = <KEY_RESTART>;
22                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
23                         debounce-interval = <60>;
24                 };
25
26                 qss {
27                         label = "qss";
28                         linux,code = <KEY_WPS_BUTTON>;
29                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
30                         debounce-interval = <60>;
31                 };
32         };
33
34         gpio_leds: gpio-leds {
35                 compatible = "gpio-leds";
36
37                 led_system: system {
38                         label = "tp-link:green:system";
39                         gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
40                 };
41
42                 qss {
43                         label = "tp-link:green:qss";
44                         gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
45                 };
46         };
47 };
48
49 &spi {
50         status = "okay";
51         num-cs = <1>;
52
53         flash@0 {
54                 #address-cells = <1>;
55                 #size-cells = <1>;
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                         partition@20000 {
72                                 reg = <0x20000 0x3d0000>;
73                                 label = "firmware";
74                         };
75
76                         partition@3f0000 {
77                                 reg = <0x3f0000 0x10000>;
78                                 label = "art";
79                                 read-only;
80                         };
81                 };
82         };
83 };
84
85 &pcie {
86         status = "okay";
87
88         ath9k: wifi@0 {
89                 reg = <0x0000 0 0 0 0>;
90                 #gpio-cells = <2>;
91                 gpio-controller;
92                 qca,no-eeprom;
93                 mtd-mac-address = <&uboot 0x1fc00>;
94         };
95 };
96
97 &eth0 {
98         status = "okay";
99
100         phy-handle = <&phy4>;
101
102         mtd-mac-address = <&uboot 0x1fc00>;
103         mtd-mac-address-increment = <(-1)>;
104 };
105
106 &eth1 {
107         status = "okay";
108
109         mtd-mac-address = <&uboot 0x1fc00>;
110         mtd-mac-address-increment = <1>;
111 };
112
113 &mdio0 {
114         status = "okay";
115
116         phy4: ethernet-phy@4 {
117                 reg = <4>;
118                 phy-mode = "mii";
119         };
120 };
121
122 &gpio {
123         status = "okay";
124 };
125
126 &uart {
127         status = "okay";
128 };