ath79: add firmware partition compatible for OCEDO
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9330_glinet_ar150.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 "ar9330.dtsi"
8
9 / {
10 model = "GL.iNet GL-AR150";
11 compatible = "glinet,ar150", "qca,ar9330";
12
13 aliases {
14 serial0 = &uart;
15 led-boot = &wlan;
16 led-failsafe = &wlan;
17 led-upgrade = &wlan;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 wlan: wlan {
24 label = "gl-ar150:orange:wlan";
25 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
26 default-state = "off";
27 linux,default-trigger = "phy0tpt";
28 };
29
30 lan {
31 label = "gl-ar150:green:lan";
32 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
33 default-state = "off";
34 };
35
36 wan {
37 label = "gl-ar150:green:wan";
38 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
39 default-state = "off";
40 };
41 };
42
43 keys {
44 compatible = "gpio-keys-polled";
45 poll-interval = <100>;
46
47 manual {
48 label = "manual";
49 linux,code = <BTN_7>;
50 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
51 };
52
53 auto {
54 label = "auto";
55 linux,code = <BTN_8>;
56 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
57 };
58
59 reset {
60 label = "reset";
61 linux,code = <KEY_RESTART>;
62 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
63 };
64 };
65 };
66
67 &uart {
68 status = "okay";
69 };
70
71 &gpio {
72 status = "okay";
73 };
74
75 &usb {
76 dr_mode = "host";
77 status = "okay";
78 };
79
80 &usb_phy {
81 status = "okay";
82 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
83 };
84
85 &spi {
86 num-chipselects = <1>;
87 status = "okay";
88
89 flash@0 {
90 compatible = "jedec,spi-nor";
91 spi-max-frequency = <104000000>;
92 reg = <0>;
93
94 partitions {
95 compatible = "fixed-partitions";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 partition@0 {
100 label = "u-boot";
101 reg = <0x000000 0x040000>;
102 read-only;
103 };
104
105 partition@1 {
106 label = "u-boot-env";
107 reg = <0x040000 0x010000>;
108 };
109
110 partition@2 {
111 label = "firmware";
112 reg = <0x050000 0xfa0000>;
113 };
114
115 art: partition@3 {
116 label = "ART";
117 reg = <0xff0000 0x010000>;
118 read-only;
119 };
120 };
121 };
122 };
123
124 &eth0 {
125 status = "okay";
126
127 mtd-mac-address = <&art 0x0>;
128 };
129
130 &eth1 {
131 status = "okay";
132
133 mtd-mac-address = <&art 0x0>;
134
135 gmac-config {
136 device = <&gmac>;
137
138 switch-phy-addr-swap = <0>;
139 switch-phy-swap = <0>;
140 };
141 };
142
143 &wmac {
144 status = "okay";
145 mtd-cal-data = <&art 0x1000>;
146 mtd-mac-address = <&art 0x0>;
147 };