OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 1... Line -...
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT -  
2 /dts-v1/; 1 /dts-v1/;
Line 3... Line 2...
3   2  
Line 4... Line 3...
4 #include "mt7621.dtsi" 3 #include "mt7621.dtsi"
5   4  
Line 6... Line 5...
6 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/gpio/gpio.h>
8   7  
9 / { -  
10 compatible = "mikrotik,rb750gr3", "mediatek,mt7621-soc"; -  
11 model = "MikroTik RouterBOARD 750Gr3"; -  
12   -  
13 aliases { -  
14 led-boot = &led_usr; -  
15 led-failsafe = &led_usr; -  
Line 16... Line 8...
16 led-running = &led_usr; 8 / {
17 led-upgrade = &led_usr; 9 compatible = "mikrotik,rb750gr3", "mediatek,mt7621-soc";
18 }; 10 model = "MikroTik RB750Gr3";
19   11  
Line 20... Line 12...
20 memory@0 { 12 memory@0 {
21 device_type = "memory"; 13 device_type = "memory";
22 reg = <0x0 0x10000000>; 14 reg = <0x0 0x10000000>;
Line 23... Line 15...
23 }; 15 };
24   16  
Line 25... Line 17...
25 chosen { 17 chosen {
26 bootargs = "console=ttyS0,115200"; 18 bootargs = "console=ttyS0,57600";
27 }; 19 };
28   -  
29 leds { 20  
Line 30... Line 21...
30 compatible = "gpio-leds"; 21 gpio-leds {
31   22 compatible = "gpio-leds";
32 pwr { 23  
33 label = "rb750gr3:blue:pwr"; 24 pwr {
34 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; 25 label = "rb750gr3:blue:pwr";
Line 35... Line 26...
35 default-state = "on"; 26 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
36 }; 27 };
-   28  
-   29 usr {
37   30 label = "rb750gr3:green:usr";
Line 38... Line 31...
38 led_usr: usr { 31 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
39 label = "rb750gr3:green:usr"; 32 };
40 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; 33 };
41 }; 34  
42 }; 35 gpio-keys-polled {
Line 43... Line 36...
43   36 compatible = "gpio-keys-polled";
44 keys { 37 #address-cells = <1>;
45 compatible = "gpio-keys-polled"; 38 #size-cells = <0>;
46 poll-interval = <20>; 39 poll-interval = <20>;
47   40  
48 mode { 41 mode {
Line 49... Line -...
49 label = "mode"; -  
50 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; -  
51 linux,code = <BTN_0>; -  
52 }; -  
53   -  
54 reset { 42 label = "mode";
55 label = "reset"; 43 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
56 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; 44 linux,code = <KEY_RFKILL>;
Line 57... Line 45...
57 linux,code = <KEY_RESTART>; 45 };
58 }; 46  
-   47 res {
-   48 label = "res";
-   49 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
-   50 linux,code = <KEY_RESTART>;
-   51 };
-   52 };
59 }; 53  
60   54 gpio_export {
61 beeper { 55 compatible = "gpio-export";
62 compatible = "gpio-beeper"; 56 #size-cells = <0>;
63 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; 57  
Line 64... Line 58...
64 }; 58 buzzer {
65   59 gpio-export,name = "buzzer";
Line 66... Line 60...
66 gpio_export { 60 gpio-export,output = <0>;
-   61 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
-   62 };
67 compatible = "gpio-export"; 63  
68 #size-cells = <0>; 64 usb {
69   65 gpio-export,name = "usb";
-   66 gpio-export,output = <1>;
Line 70... Line -...
70 usb_power { -  
71 gpio-export,name = "usb_power"; -  
72 gpio-export,output = <1>; -  
73 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; -  
74 }; -  
75 }; 67 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
76 }; 68 };
77   69 };
78 &spi0 { 70 };
79 status = "okay"; -  
80   -  
81 flash@0 { -  
82 compatible = "jedec,spi-nor"; -  
83 reg = <0>; -  
84 spi-max-frequency = <20000000>; -  
85   -  
86 partitions { -  
87 compatible = "fixed-partitions"; -  
88 #address-cells = <1>; -  
89 #size-cells = <1>; -  
90   -  
91 partition@0 { -  
92 label = "RouterBoot"; -  
93 reg = <0x0 0x40000>; -  
94 read-only; -  
95 compatible = "fixed-partitions"; -  
96 #address-cells = <1>; -  
97 #size-cells = <1>; -  
98   -  
99 partition@0 { -  
100 label = "bootloader1"; -  
101 reg = <0x0 0xf000>; -  
102 read-only; -  
103 }; -  
104   -  
105 hard_config: partition@f000 { -  
106 label = "hard_config"; -  
107 reg = <0xf000 0x1000>; -  
108 read-only; -  
109 }; -  
110   -  
111 partition@10000 { -  
112 label = "bootloader2"; -  
113 reg = <0x10000 0xf000>; -  
114 read-only; -  
115 }; -  
116   -  
117 partition@20000 { -  
118 label = "soft_config"; 71  
-   72 &spi0 {
-   73 status = "okay";
-   74  
-   75 m25p80@0 {
-   76 #address-cells = <1>;
-   77 #size-cells = <1>;
-   78 compatible = "jedec,spi-nor";
-   79 reg = <0>;
-   80 spi-max-frequency = <10000000>;
-   81 m25p,chunked-io = <32>;
-   82  
-   83 partition@0 {
-   84 label = "u-boot";
-   85 reg = <0x0 0x30000>;
-   86 read-only;
-   87 };
-   88  
-   89 partition@30000 {
119 reg = <0x20000 0x1000>; 90 label = "u-boot-env";
120 }; 91 reg = <0x30000 0x10000>;
Line 121... Line 92...
121   92 read-only;
122 partition@30000 { 93 };
123 label = "bios"; 94  
124 reg = <0x30000 0x1000>; 95 factory: partition@40000 {
Line 125... Line 96...
125 read-only; 96 label = "factory";
126 }; 97 reg = <0x40000 0x10000>;
127 }; 98 read-only;
128   -  
129 partition@40000 { 99 };
130 compatible = "mikrotik,minor"; 100  
131 label = "firmware"; 101 partition@50000 {
132 reg = <0x040000 0xfc0000>; 102 label = "firmware";
133 }; 103 reg = <0x50000 0xfb0000>;