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 = "gnubee,gb-pc2", "mediatek,mt7621-soc"; |
||
10 | model = "GB-PC2"; |
||
11 | |||
12 | aliases { |
||
13 | led-boot = &led_status; |
||
14 | led-failsafe = &led_status; |
||
15 | led-running = &led_status; |
||
16 | led-upgrade = &led_status; |
||
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 | keys { |
||
29 | compatible = "gpio-keys-polled"; |
||
30 | poll-interval = <20>; |
||
31 | |||
32 | reset { |
||
33 | label = "reset"; |
||
34 | gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; |
||
35 | linux,code = <KEY_RESTART>; |
||
36 | }; |
||
37 | }; |
||
38 | |||
39 | leds { |
||
40 | compatible = "gpio-leds"; |
||
41 | |||
42 | system { |
||
43 | label = "gb-pc2:green:system"; |
||
44 | gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
||
45 | }; |
||
46 | |||
47 | led_status: status { |
||
48 | label = "gb-pc2:green:status"; |
||
49 | gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
||
50 | }; |
||
51 | |||
52 | lan1 { |
||
53 | label = "gb-pc2:green:lan1"; |
||
54 | gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; |
||
55 | }; |
||
56 | |||
57 | lan2 { |
||
58 | label = "gb-pc2:green:lan2"; |
||
59 | gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; |
||
60 | }; |
||
61 | |||
62 | lan3-yellow { |
||
63 | label = "gb-pc2:yellow:lan3"; |
||
64 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
||
65 | }; |
||
66 | |||
67 | lan3-green { |
||
68 | label = "gb-pc2:green:lan3"; |
||
69 | gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
||
70 | }; |
||
71 | }; |
||
72 | }; |
||
73 | |||
74 | &sdhci { |
||
75 | status = "okay"; |
||
76 | }; |
||
77 | |||
78 | &spi0 { |
||
79 | status = "okay"; |
||
80 | |||
81 | m25p80@0 { |
||
82 | compatible = "jedec,spi-nor"; |
||
83 | reg = <0>; |
||
84 | spi-max-frequency = <10000000>; |
||
85 | |||
86 | partitions { |
||
87 | compatible = "fixed-partitions"; |
||
88 | #address-cells = <1>; |
||
89 | #size-cells = <1>; |
||
90 | |||
91 | partition@0 { |
||
92 | label = "u-boot"; |
||
93 | reg = <0x0 0x30000>; |
||
94 | read-only; |
||
95 | }; |
||
96 | |||
97 | partition@30000 { |
||
98 | label = "u-boot-env"; |
||
99 | reg = <0x30000 0x10000>; |
||
100 | read-only; |
||
101 | }; |
||
102 | |||
103 | factory: partition@40000 { |
||
104 | label = "factory"; |
||
105 | reg = <0x40000 0x10000>; |
||
106 | read-only; |
||
107 | }; |
||
108 | |||
109 | partition@50000 { |
||
110 | compatible = "denx,uimage"; |
||
111 | label = "firmware"; |
||
112 | reg = <0x50000 0x1fb0000>; |
||
113 | }; |
||
114 | }; |
||
115 | }; |
||
116 | }; |
||
117 | |||
118 | &pcie { |
||
119 | status = "okay"; |
||
120 | }; |
||
121 | |||
122 | ðernet { |
||
123 | mtd-mac-address = <&factory 0xe000>; |
||
124 | }; |
||
125 | |||
126 | &pinctrl { |
||
127 | state_default: pinctrl0 { |
||
128 | gpio { |
||
129 | ralink,group = "jtag", "rgmii2", "uart3", "wdt"; |
||
130 | ralink,function = "gpio"; |
||
131 | }; |
||
132 | }; |
||
133 | }; |
||
134 |