OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Only display areas with differencesIgnore whitespace
Rev 2 Rev 3
1 /* 1 /*
2 * Device Tree file for the Netgear EX2700 2 * Device Tree file for the Netgear EX2700
3 * 3 *
4 * Copyright (C) 2016 Joseph C. Lehner <joseph.c.lehner@gmail.com> 4 * Copyright (C) 2016 Joseph C. Lehner <joseph.c.lehner@gmail.com>
5 * 5 *
6 * This file is licensed under the terms of the GNU General Public 6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any 7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied. 8 * warranty of any kind, whether express or implied.
9 */ 9 */
10   10  
11 /dts-v1/; 11 /dts-v1/;
12   12  
13 #include "mt7620a.dtsi" 13 #include "mt7620a.dtsi"
14   14  
15 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/input/input.h>
17   17  
18 / { 18 / {
19 compatible = "netgear,ex2700", "ralink,mt7620a-soc"; 19 compatible = "netgear,ex2700", "ralink,mt7620a-soc";
20 model = "Netgear EX2700"; 20 model = "Netgear EX2700";
21   -  
22 aliases { -  
23 led-boot = &led_power_green; -  
24 led-failsafe = &led_power_green; -  
25 led-running = &led_power_green; -  
26 led-upgrade = &led_power_green; -  
27 }; -  
28   21  
29 chosen { 22 chosen {
30 bootargs = "console=ttyS0,57600"; 23 bootargs = "console=ttyS0,57600";
31 }; 24 };
32   25  
33 leds { 26 gpio-leds {
34 compatible = "gpio-leds"; 27 compatible = "gpio-leds";
35   28  
36 led_power_green: power_g { 29 power_g {
37 label = "ex2700:green:power"; 30 label = "ex2700:green:power";
38 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; 31 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
39 default-state = "on"; 32 default-state = "on";
40 }; 33 };
41   34  
42 power_r { 35 power_r {
43 label = "ex2700:red:power"; 36 label = "ex2700:red:power";
44 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; 37 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
45 }; 38 };
46   39  
47 device_g { 40 device_g {
48 label = "ex2700:green:device"; 41 label = "ex2700:green:device";
49 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; 42 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
50 }; 43 };
51   44  
52 device_r { 45 device_r {
53 label = "ex2700:red:device"; 46 label = "ex2700:red:device";
54 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; 47 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
55 }; 48 };
56   49  
57 router_g { 50 router_g {
58 label = "ex2700:green:router"; 51 label = "ex2700:green:router";
59 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; 52 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
60 }; 53 };
61   54  
62 router_r { 55 router_r {
63 label = "ex2700:red:router"; 56 label = "ex2700:red:router";
64 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 57 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
65 }; 58 };
66   59  
67 wps { 60 wps {
68 label = "ex2700:green:wps"; 61 label = "ex2700:green:wps";
69 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; 62 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
70 }; 63 };
71 }; 64 };
72   65  
73 keys { 66 gpio-keys-polled {
-   67 compatible = "gpio-keys-polled";
-   68 #address-cells = <1>;
74 compatible = "gpio-keys-polled"; 69 #size-cells = <0>;
75 poll-interval = <20>; 70 poll-interval = <20>;
76   71  
77 reset { 72 reset {
78 label = "reset"; 73 label = "reset";
79 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; 74 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>; 75 linux,code = <KEY_RESTART>;
81 }; 76 };
82   77  
83 wps { 78 wps {
84 label = "wps"; 79 label = "wps";
85 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; 80 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_WPS_BUTTON>; 81 linux,code = <KEY_WPS_BUTTON>;
87 }; 82 };
88 }; 83 };
89 }; 84 };
90   85  
91 &gpio0 { 86 &gpio0 {
92 status = "okay"; 87 status = "okay";
93 }; 88 };
94   89  
95 &gpio1 { 90 &gpio1 {
96 status = "okay"; 91 status = "okay";
97 }; 92 };
98   93  
99 &spi0 { 94 &spi0 {
100 status = "okay"; 95 status = "okay";
101   96  
102 m25p80@0 { 97 m25p80@0 {
-   98 #address-cells = <1>;
-   99 #size-cells = <1>;
103 compatible = "jedec,spi-nor"; 100 compatible = "jedec,spi-nor";
104 reg = <0>; 101 reg = <0>;
105 spi-max-frequency = <10000000>; 102 spi-max-frequency = <10000000>;
106   -  
107 partitions { -  
108 compatible = "fixed-partitions"; -  
109 #address-cells = <1>; -  
110 #size-cells = <1>; -  
111   103  
112 partition@0 { 104 partition@0 {
113 label = "u-boot"; 105 label = "u-boot";
114 reg = <0x0 0x30000>; 106 reg = <0x0 0x30000>;
115 read-only; 107 read-only;
116 }; 108 };
117   109  
118 partition@30000 { 110 partition@30000 {
119 label = "u-boot-env"; 111 label = "u-boot-env";
120 reg = <0x30000 0x10000>; 112 reg = <0x30000 0x10000>;
121 read-only; 113 read-only;
122 }; 114 };
123   115  
124 partition@40000 { -  
125 compatible = "denx,uimage"; 116 partition@40000 {
126 label = "firmware"; 117 label = "firmware";
127 reg = <0x40000 0x3b0000>; 118 reg = <0x40000 0x3b0000>;
128 }; 119 };
129   120  
130 art: partition@3f0000 { 121 art: partition@3f0000 {
131 label = "art"; 122 label = "art";
132 reg = <0x3f0000 0x10000>; 123 reg = <0x3f0000 0x10000>;
133 read-only; -  
134 }; 124 read-only;
135 }; 125 };
136 }; 126 };
137 }; 127 };
138   128  
139 &ethernet { 129 &ethernet {
140 mtd-mac-address = <&art 0x0>; 130 mtd-mac-address = <&art 0x0>;
141 }; 131 };
142   132  
143 &wmac { 133 &wmac {
144 mtd-mac-address = <&art 0x6>; 134 mtd-mac-address = <&art 0x6>;
145 ralink,mtd-eeprom = <&art 0x1000>; 135 ralink,mtd-eeprom = <&art 0x1000>;
146 }; 136 };
147   137  
148 &pinctrl { 138 &pinctrl {
149 state_default: pinctrl0 { 139 state_default: pinctrl0 {
150 default { 140 default {
151 ralink,group = "i2c", "uartf", "spi refclk"; 141 ralink,group = "i2c", "uartf", "spi refclk";
152 ralink,function = "gpio"; 142 ralink,function = "gpio";
153 }; 143 };
154 }; 144 };
155 }; 145 };
156   146