OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | /dts-v1/; |
1 | /dts-v1/; |
|
2 | |
2 | |
|
3 | #include "rt3050.dtsi" |
3 | #include "rt3050.dtsi" |
|
4 | |
4 | |
|
5 | #include <dt-bindings/gpio/gpio.h> |
5 | #include <dt-bindings/gpio/gpio.h> |
|
6 | #include <dt-bindings/input/input.h> |
6 | #include <dt-bindings/input/input.h> |
|
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "belkin,f5d8235-v2", "ralink,rt3052-soc"; |
9 | compatible = "belkin,f5d8235-v2", "ralink,rt3052-soc"; |
|
10 | model = "Belkin F5D8235 v2"; |
10 | model = "Belkin F5D8235 v2"; |
|
11 | |
- | ||
12 | aliases { |
- | ||
13 | led-boot = &led_router; |
- | ||
14 | led-failsafe = &led_router; |
- | ||
15 | led-running = &led_router; |
- | ||
16 | led-upgrade = &led_router; |
- | ||
17 | }; |
- | ||
18 | |
11 | |
|
19 | cfi@1f000000 { |
12 | cfi@1f000000 { |
|
20 | compatible = "cfi-flash"; |
13 | compatible = "cfi-flash"; |
|
21 | reg = <0x1f000000 0x800000>; |
14 | reg = <0x1f000000 0x800000>; |
|
22 | bank-width = <2>; |
15 | bank-width = <2>; |
|
23 | device-width = <2>; |
16 | device-width = <2>; |
|
- | 17 | #address-cells = <1>; |
||
- | 18 | #size-cells = <1>; |
||
- | 19 | |
||
- | 20 | uboot: partition@0 { |
||
- | 21 | label = "uboot"; |
||
- | 22 | reg = <0x0 0x50000>; |
||
- | 23 | read-only; |
||
- | 24 | }; |
||
- | 25 | |
||
- | 26 | partition@50000 { |
||
- | 27 | label = "firmware"; |
||
- | 28 | reg = <0x50000 0x790000>; |
||
- | 29 | }; |
||
- | 30 | |
||
- | 31 | partition@7e0000 { |
||
- | 32 | label = "nvram"; |
||
- | 33 | reg = <0x7e0000 0x10000>; |
||
- | 34 | }; |
||
24 | |
- | ||
25 | partitions { |
- | ||
26 | compatible = "fixed-partitions"; |
- | ||
27 | #address-cells = <1>; |
- | ||
28 | #size-cells = <1>; |
- | ||
29 | |
- | ||
30 | uboot: partition@0 { |
- | ||
31 | label = "uboot"; |
- | ||
32 | reg = <0x0 0x50000>; |
- | ||
33 | read-only; |
- | ||
34 | }; |
- | ||
35 | |
- | ||
36 | partition@50000 { |
- | ||
37 | compatible = "denx,uimage"; |
- | ||
38 | label = "firmware"; |
- | ||
39 | reg = <0x50000 0x790000>; |
- | ||
40 | }; |
- | ||
41 | |
- | ||
42 | partition@7e0000 { |
- | ||
43 | label = "nvram"; |
- | ||
44 | reg = <0x7e0000 0x10000>; |
- | ||
45 | }; |
- | ||
46 | |
35 | |
|
47 | factory: partition@7f0000 { |
36 | factory: partition@7f0000 { |
|
48 | label = "factory"; |
37 | label = "factory"; |
|
49 | reg = <0x7f0000 0x10000>; |
- | ||
50 | }; |
38 | reg = <0x7f0000 0x10000>; |
|
51 | }; |
39 | }; |
|
52 | }; |
40 | }; |
|
53 | |
41 | |
|
54 | rtl8366rb { |
42 | rtl8366rb { |
|
55 | compatible = "realtek,rtl8366rb"; |
43 | compatible = "realtek,rtl8366rb"; |
|
56 | gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
44 | gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
|
57 | gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
45 | gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
|
58 | }; |
46 | }; |
|
59 | |
47 | |
|
60 | leds { |
48 | gpio-leds { |
|
61 | compatible = "gpio-leds"; |
49 | compatible = "gpio-leds"; |
|
62 | |
50 | |
|
63 | internet { |
51 | internet { |
|
64 | label = "f5d8235-v2:blue:internet"; |
52 | label = "f5d8235-v2:blue:internet"; |
|
65 | gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; |
53 | gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; |
|
66 | }; |
54 | }; |
|
67 | |
55 | |
|
68 | internet2 { |
56 | internet2 { |
|
69 | label = "f5d8235-v2:amber:internet"; |
57 | label = "f5d8235-v2:amber:internet"; |
|
70 | gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
58 | gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
|
71 | }; |
59 | }; |
|
72 | |
60 | |
|
73 | modem { |
61 | modem { |
|
74 | label = "f5d8235-v2:blue:modem"; |
62 | label = "f5d8235-v2:blue:modem"; |
|
75 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
63 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
|
76 | }; |
64 | }; |
|
77 | |
65 | |
|
78 | modem2 { |
66 | modem2 { |
|
79 | label = "f5d8235-v2:amber:modem"; |
67 | label = "f5d8235-v2:amber:modem"; |
|
80 | gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
68 | gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
|
81 | }; |
69 | }; |
|
82 | |
70 | |
|
83 | led_router: router { |
71 | router { |
|
84 | label = "f5d8235-v2:blue:router"; |
72 | label = "f5d8235-v2:blue:router"; |
|
85 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
73 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
|
86 | }; |
74 | }; |
|
87 | |
75 | |
|
88 | storage { |
76 | storage { |
|
89 | label = "f5d8235-v2:blue:storage"; |
77 | label = "f5d8235-v2:blue:storage"; |
|
90 | gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; |
78 | gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; |
|
91 | trigger-sources = <&otg_port1>; |
- | ||
92 | linux,default-trigger = "usbport"; |
- | ||
93 | }; |
79 | }; |
|
94 | |
80 | |
|
95 | storage2 { |
81 | storage2 { |
|
96 | label = "f5d8235-v2:amber:storage"; |
82 | label = "f5d8235-v2:amber:storage"; |
|
97 | gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; |
83 | gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; |
|
98 | }; |
84 | }; |
|
99 | |
85 | |
|
100 | security { |
86 | security { |
|
101 | label = "f5d8235-v2:blue:security"; |
87 | label = "f5d8235-v2:blue:security"; |
|
102 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
88 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
|
103 | }; |
89 | }; |
|
104 | |
90 | |
|
105 | security2 { |
91 | security2 { |
|
106 | label = "f5d8235-v2:amber:security"; |
92 | label = "f5d8235-v2:amber:security"; |
|
107 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
93 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
|
108 | }; |
94 | }; |
|
109 | }; |
95 | }; |
|
110 | }; |
96 | }; |
|
111 | |
97 | |
|
112 | &pinctrl { |
98 | &pinctrl { |
|
113 | state_default: pinctrl0 { |
99 | state_default: pinctrl0 { |
|
114 | gpio { |
100 | gpio { |
|
115 | ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; |
101 | ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
|
116 | ralink,function = "gpio"; |
102 | ralink,function = "gpio"; |
|
117 | }; |
103 | }; |
|
118 | }; |
104 | }; |
|
119 | }; |
105 | }; |
|
120 | |
106 | |
|
121 | ðernet { |
107 | ðernet { |
|
122 | mtd-mac-address = <&uboot 0x40004>; |
108 | mtd-mac-address = <&uboot 0x40004>; |
|
123 | pinctrl-names = "default"; |
- | ||
124 | pinctrl-0 = <&rgmii_pins>; |
- | ||
125 | }; |
109 | }; |
|
126 | |
110 | |
|
127 | &esw { |
111 | &esw { |
|
128 | ralink,rgmii = <1>; |
- | ||
129 | mediatek,portmap = <0x3f>; |
112 | mediatek,portmap = <0x3f>; |
|
130 | ralink,fct2 = <0x0002500c>; |
- | ||
131 | /* |
- | ||
132 | * ext phy base addr 31, rx/tx clock skew 0, |
- | ||
133 | * turbo mii off, rgmi 3.3v off, port 5 polling off |
- | ||
134 | * port5: enabled, gige, full-duplex, rx/tx-flow-control |
- | ||
135 | * port6: enabled, gige, full-duplex, rx/tx-flow-control |
- | ||
136 | */ |
- | ||
137 | ralink,fpa2 = <0x1f003fff>; |
- | ||
138 | }; |
113 | }; |
|
139 | |
114 | |
|
140 | &wmac { |
115 | &wmac { |
|
141 | ralink,mtd-eeprom = <&uboot 0x40000>; |
116 | ralink,mtd-eeprom = <&uboot 0x40000>; |
|
142 | }; |
117 | }; |
|
143 | |
118 | |
|
144 | &otg { |
119 | &otg { |
|
145 | status = "okay"; |
120 | status = "okay"; |
|
146 | }; |
121 | }; |
|
147 | |
122 | |