ath79: WNDR3700 v1/v2: make u-boot env partition writable
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_engenius_ecb1750.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 "qca9557.dtsi"
8
9 / {
10 compatible = "engenius,ecb1750", "qca,qca9557";
11 model = "EnGenius ECB1750";
12
13 chosen {
14 bootargs = "console=ttyS0,115200n8";
15 };
16
17 aliases {
18 led-boot = &power_orange;
19 led-failsafe = &power_orange;
20 led-running = &power_orange;
21 led-upgrade = &power_orange;
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 power_orange: power_orange {
28 label = "ecb1750:orange:power";
29 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
30 default-state = "on";
31 };
32
33 wlan2g {
34 label = "ecb1750:blue:wlan2g";
35 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy1tpt";
37 };
38
39 wlan5g {
40 label = "ecb1750:blue:wlan5g";
41 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
43 };
44
45 lan {
46 label = "ecb1750:blue:lan";
47 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
48 };
49 };
50
51 keys {
52 compatible = "gpio-keys";
53
54 reset {
55 label = "reset";
56 linux,code = <KEY_RESTART>;
57 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
58 };
59 };
60 };
61
62 &pcie0 {
63 status = "okay";
64 };
65
66 &uart {
67 status = "okay";
68 };
69
70 &spi {
71 status = "okay";
72 num-cs = <1>;
73
74 flash@0 {
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 spi-max-frequency = <25000000>;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 uboot: partition@0 {
85 label = "u-boot";
86 reg = <0x000000 0x040000>;
87 read-only;
88 };
89
90 partition@40000 {
91 label = "u-boot-env";
92 reg = <0x040000 0x010000>;
93 };
94
95 partition@50000 {
96 compatible = "denx,uimage";
97 label = "firmware";
98 reg = <0x050000 0xf50000>;
99 };
100
101 partition@fa0000 {
102 label = "userconfig";
103 reg = <0xfa0000 0x050000>;
104 read-only;
105 };
106
107 art: partition@ff0000 {
108 label = "art";
109 reg = <0xff0000 0x010000>;
110 read-only;
111 };
112
113 };
114 };
115 };
116
117 &wmac {
118 status = "okay";
119
120 qca,no-eeprom;
121 };
122
123 &mdio0 {
124 status = "okay";
125
126 phy5: ethernet-phy@5 {
127 reg = <5>;
128 at803x-disable-smarteee;
129 };
130 };
131
132 &eth0 {
133 status = "okay";
134
135 pll-data = <0x9a000000 0x80000101 0x80001313>;
136
137 phy-handle = <&phy5>;
138 phy-mode = "rgmii";
139
140 gmac-config {
141 device = <&gmac>;
142 rgmii-gmac0 = <1>;
143 rxd-delay = <3>;
144 rxdv-delay = <3>;
145 };
146 };