OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "mt7621.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "firefly,firewrt", "mediatek,mt7621-soc"; |
||
10 | model = "Firefly FireWRT"; |
||
11 | |||
12 | aliases { |
||
13 | led-boot = &led_power; |
||
14 | led-failsafe = &led_power; |
||
15 | led-running = &led_power; |
||
16 | led-upgrade = &led_power; |
||
17 | }; |
||
18 | |||
19 | memory@0 { |
||
20 | device_type = "memory"; |
||
21 | reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
||
22 | }; |
||
23 | |||
24 | chosen { |
||
25 | bootargs = "console=ttyS0,57600"; |
||
26 | }; |
||
27 | |||
28 | leds { |
||
29 | compatible = "gpio-leds"; |
||
30 | |||
31 | led_power: power { |
||
32 | label = "firewrt:green:power"; |
||
33 | gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; |
||
34 | }; |
||
35 | }; |
||
36 | |||
37 | keys { |
||
38 | compatible = "gpio-keys-polled"; |
||
39 | poll-interval = <20>; |
||
40 | |||
41 | wps { |
||
42 | label = "wps"; |
||
43 | gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
||
44 | linux,code = <KEY_WPS_BUTTON>; |
||
45 | }; |
||
46 | |||
47 | power { |
||
48 | label = "power"; |
||
49 | gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; |
||
50 | linux,code = <KEY_POWER>; |
||
51 | }; |
||
52 | }; |
||
53 | }; |
||
54 | |||
55 | &sdhci { |
||
56 | status = "okay"; |
||
57 | }; |
||
58 | |||
59 | &spi0 { |
||
60 | status = "okay"; |
||
61 | |||
62 | m25p80@0 { |
||
63 | compatible = "jedec,spi-nor"; |
||
64 | reg = <0>; |
||
65 | spi-max-frequency = <10000000>; |
||
66 | |||
67 | partitions { |
||
68 | compatible = "fixed-partitions"; |
||
69 | #address-cells = <1>; |
||
70 | #size-cells = <1>; |
||
71 | |||
72 | partition@0 { |
||
73 | label = "u-boot"; |
||
74 | reg = <0x0 0x30000>; |
||
75 | read-only; |
||
76 | }; |
||
77 | |||
78 | partition@30000 { |
||
79 | label = "u-boot-env"; |
||
80 | reg = <0x30000 0x10000>; |
||
81 | read-only; |
||
82 | }; |
||
83 | |||
84 | factory: partition@40000 { |
||
85 | label = "factory"; |
||
86 | reg = <0x40000 0x10000>; |
||
87 | read-only; |
||
88 | }; |
||
89 | |||
90 | partition@50000 { |
||
91 | compatible = "denx,uimage"; |
||
92 | label = "firmware"; |
||
93 | reg = <0x50000 0xfb0000>; |
||
94 | }; |
||
95 | }; |
||
96 | }; |
||
97 | }; |
||
98 | |||
99 | &pcie { |
||
100 | status = "okay"; |
||
101 | }; |
||
102 | |||
103 | &pcie0 { |
||
104 | mt76@0,0 { |
||
105 | reg = <0x0000 0 0 0 0>; |
||
106 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
107 | ieee80211-freq-limit = <5000000 6000000>; |
||
108 | }; |
||
109 | }; |
||
110 | |||
111 | &pcie1 { |
||
112 | mt76@0,0 { |
||
113 | reg = <0x0000 0 0 0 0>; |
||
114 | mediatek,mtd-eeprom = <&factory 0x0000>; |
||
115 | ieee80211-freq-limit = <2400000 2500000>; |
||
116 | }; |
||
117 | }; |
||
118 | |||
119 | ðernet { |
||
120 | mtd-mac-address = <&factory 0xe000>; |
||
121 | }; |
||
122 | |||
123 | &pinctrl { |
||
124 | state_default: pinctrl0 { |
||
125 | gpio { |
||
126 | ralink,group = "wdt", "rgmii2"; |
||
127 | ralink,function = "gpio"; |
||
128 | }; |
||
129 | }; |
||
130 | }; |