ath79: WNDR3700 v1/v2: make u-boot env partition writable
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7240_netgear_wnr612-v2.dtsi
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 "ar7240.dtsi"
8
9 / {
10 aliases {
11 led-boot = &power;
12 led-failsafe = &power;
13 led-running = &power;
14 led-upgrade = &power;
15 };
16
17 keys {
18 compatible = "gpio-keys-polled";
19 poll-interval = <20>;
20
21 reset {
22 label = "reset";
23 linux,code = <KEY_RESTART>;
24 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31 power: power {
32 label = "netgear:green:power";
33 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
34 };
35
36 lan1 {
37 label = "netgear:green:lan1";
38 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
39 };
40
41 lan2 {
42 label = "netgear:green:lan2";
43 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
44 };
45
46 wan {
47 label = "netgear:green:wan";
48 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
49 };
50
51 wlan: wlan {
52 label = "netgear:green:wlan";
53 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy0tpt";
55 };
56 };
57 };
58
59 &spi {
60 status = "okay";
61 num-cs = <1>;
62
63 flash@0 {
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <25000000>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 uboot: partition@0 {
74 reg = <0x0 0x40000>;
75 label = "u-boot";
76 read-only;
77 };
78
79 partition@40000 {
80 reg = <0x40000 0x10000>;
81 label = "u-boot-env";
82 };
83
84 partition@50000 {
85 compatible = "netgear,uimage";
86 reg = <0x50000 0x3a0000>;
87 label = "firmware";
88 };
89
90 partition@3f0000 {
91 reg = <0x3f0000 0x10000>;
92 label = "art";
93 read-only;
94 };
95 };
96 };
97 };
98
99 &eth0 {
100 status = "okay";
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 &pcie {
114 status = "okay";
115
116 ath9k: wifi@0,0 {
117 compatible = "pci168c,002b";
118 reg = <0x0000 0 0 0 0>;
119 qca,no-eeprom;
120 #gpio-cells = <2>;
121 gpio-controller;
122 };
123 };
124
125 &uart {
126 status = "okay";
127 };