ath79: Add missing read-only properties
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9531_glinet_gl-ar300m.dtsi
1 /dts-v1/;
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "qca953x.dtsi"
7
8 / {
9         aliases {
10                 led-boot = &led_status;
11                 led-failsafe = &led_status;
12                 led-running = &led_status;
13                 led-upgrade = &led_status;
14         };
15
16         keys {
17                 compatible = "gpio-keys-polled";
18                 poll-interval = <20>;
19                 pinctrl-names = "default";
20                 pinctrl-0 = <&jtag_disable_pins>;
21
22                 button0 {
23                         label = "reset";
24                         linux,code = <KEY_RESTART>;
25                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
26                 };
27
28                 button1 {
29                         label = "button right";
30                         linux,code = <BTN_0>;
31                         gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
32                 };
33
34                 button3 {
35                         label = "button left";
36                         linux,code = <BTN_1>;
37                         gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
38                 };
39         };
40
41         leds {
42                 compatible = "gpio-leds";
43
44                 // Colors from non-Lite versions
45
46                 led_status: status {
47                         label = "gl-ar300m:green:status";
48                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
49                 };
50
51                 led_lan: lan {
52                         label = "gl-ar300m:green:lan";
53                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
54                 };
55
56                 led_wlan: wlan {
57                         label = "gl-ar300m:red:wlan";
58                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
59                         linux,default-trigger = "phy0tpt";
60                 };
61         };
62 };
63
64 &pcie0 {
65         status = "okay";
66 };
67
68 &spi {
69         status = "okay";
70         num-cs = <0>;
71
72         flash@0 {
73                 compatible = "winbond,w25q128", "jedec,spi-nor";
74                 reg = <0>;
75                 spi-max-frequency = <25000000>;
76
77                 partitions {
78                         compatible = "fixed-partitions";
79                         #address-cells = <1>;
80                         #size-cells = <1>;
81
82                         partition@0 {
83                                 label = "u-boot";
84                                 reg = <0x000000 0x040000>;
85                                 read-only;
86                         };
87
88                         partition@1 {
89                                 label = "u-boot-env";
90                                 reg = <0x040000 0x010000>;
91                         };
92
93                         partition@2 {
94                                 compatible = "denx,uimage";
95                                 label = "firmware";
96                                 reg = <0x050000 0xfa0000>;
97                         };
98
99                         art: partition@3 {
100                                 label = "art";
101                                 reg = <0xff0000 0x010000>;
102                                 read-only;
103                         };
104                 };
105         };
106 };
107
108 &uart {
109         status = "okay";
110 };
111
112 &usb0 {
113         #address-cells = <1>;
114         #size-cells = <0>;
115         status = "okay";
116 };
117
118 &usb_phy {
119         status = "okay";
120 };
121
122 &eth0 {
123         status = "okay";
124         mtd-mac-address = <&art 0x0>;
125         phy-handle = <&swphy4>;
126 };
127
128 &eth1 {
129         mtd-mac-address = <&art 0x0>;
130         mtd-mac-address-increment = <1>;
131 };
132
133 &wmac {
134         status = "okay";
135         mtd-cal-data = <&art 0x1000>;
136         mtd-mac-address = <&art 0x1002>;
137 };