OpenWrt – Blame information for rev 3
?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 | memory@0 { |
||
13 | device_type = "memory"; |
||
14 | reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
||
15 | }; |
||
16 | |||
17 | chosen { |
||
18 | bootargs = "console=ttyS0,57600"; |
||
19 | }; |
||
20 | |||
3 | office | 21 | gpio-keys-polled { |
1 | office | 22 | compatible = "gpio-keys-polled"; |
3 | office | 23 | #address-cells = <1>; |
24 | #size-cells = <0>; |
||
1 | office | 25 | poll-interval = <20>; |
26 | |||
27 | reset { |
||
28 | label = "reset"; |
||
29 | gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; |
||
30 | linux,code = <KEY_RESTART>; |
||
31 | }; |
||
32 | }; |
||
33 | |||
3 | office | 34 | gpio-leds { |
1 | office | 35 | compatible = "gpio-leds"; |
36 | |||
37 | system { |
||
38 | label = "gb-pc2:green:system"; |
||
39 | gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
||
40 | }; |
||
41 | |||
3 | office | 42 | status { |
1 | office | 43 | label = "gb-pc2:green:status"; |
44 | gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
||
45 | }; |
||
46 | |||
47 | lan1 { |
||
48 | label = "gb-pc2:green:lan1"; |
||
49 | gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; |
||
50 | }; |
||
51 | |||
52 | lan2 { |
||
53 | label = "gb-pc2:green:lan2"; |
||
54 | gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; |
||
55 | }; |
||
56 | |||
57 | lan3-yellow { |
||
58 | label = "gb-pc2:yellow:lan3"; |
||
59 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
||
60 | }; |
||
61 | |||
62 | lan3-green { |
||
63 | label = "gb-pc2:green:lan3"; |
||
64 | gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
||
65 | }; |
||
3 | office | 66 | |
1 | office | 67 | }; |
68 | }; |
||
69 | |||
70 | &sdhci { |
||
71 | status = "okay"; |
||
3 | office | 72 | |
73 | pinctrl-names = "default"; |
||
74 | pinctrl-0 = <&sdhci_pins>; |
||
1 | office | 75 | }; |
76 | |||
77 | &spi0 { |
||
78 | status = "okay"; |
||
79 | |||
80 | m25p80@0 { |
||
3 | office | 81 | #address-cells = <1>; |
82 | #size-cells = <1>; |
||
1 | office | 83 | compatible = "jedec,spi-nor"; |
84 | reg = <0>; |
||
85 | spi-max-frequency = <10000000>; |
||
3 | office | 86 | m25p,chunked-io = <32>; |
1 | office | 87 | |
3 | office | 88 | partition@0 { |
89 | label = "u-boot"; |
||
90 | reg = <0x0 0x30000>; |
||
91 | read-only; |
||
92 | }; |
||
1 | office | 93 | |
3 | office | 94 | partition@30000 { |
95 | label = "u-boot-env"; |
||
96 | reg = <0x30000 0x10000>; |
||
97 | read-only; |
||
98 | }; |
||
1 | office | 99 | |
3 | office | 100 | factory: partition@40000 { |
101 | label = "factory"; |
||
102 | reg = <0x40000 0x10000>; |
||
103 | read-only; |
||
104 | }; |
||
1 | office | 105 | |
3 | office | 106 | partition@50000 { |
107 | label = "firmware"; |
||
108 | reg = <0x50000 0x1fb0000>; |
||
1 | office | 109 | }; |
110 | }; |
||
111 | }; |
||
112 | |||
3 | office | 113 | &cpuclock { |
114 | compatible = "fixed-clock"; |
||
115 | clock-frequency = <900000000>; |
||
116 | }; |
||
117 | |||
1 | office | 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 { |
||
3 | office | 129 | ralink,group = "jtag", "rgmii3", "uart3", "wdt"; |
1 | office | 130 | ralink,function = "gpio"; |
131 | }; |
||
132 | }; |
||
133 | }; |
||
134 |