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