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 = "afoundry,ew1200", "mediatek,mt7621-soc"; |
||
10 | model = "EW1200"; |
||
11 | |||
12 | memory@0 { |
||
13 | device_type = "memory"; |
||
14 | reg = <0x0 0x8000000>; |
||
15 | }; |
||
16 | |||
17 | chosen { |
||
18 | bootargs = "console=ttyS0,57600"; |
||
19 | }; |
||
20 | |||
21 | palmbus: palmbus@1E000000 { |
||
22 | i2c@900 { |
||
23 | status = "okay"; |
||
24 | }; |
||
25 | }; |
||
26 | |||
3 | office | 27 | gpio-keys-polled { |
1 | office | 28 | compatible = "gpio-keys-polled"; |
3 | office | 29 | #address-cells = <1>; |
30 | #size-cells = <0>; |
||
1 | office | 31 | poll-interval = <20>; |
32 | |||
33 | reset { |
||
34 | label = "reset"; |
||
35 | gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
||
36 | linux,code = <KEY_RESTART>; |
||
37 | }; |
||
38 | }; |
||
39 | |||
3 | office | 40 | gpio-leds { |
1 | office | 41 | compatible = "gpio-leds"; |
42 | |||
3 | office | 43 | status { |
1 | office | 44 | label = "ew1200:green:run"; |
45 | gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; |
||
46 | }; |
||
47 | |||
48 | usb { |
||
49 | label = "ew1200:green:usb"; |
||
50 | gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; |
||
51 | }; |
||
52 | }; |
||
53 | }; |
||
54 | |||
55 | &sdhci { |
||
56 | status = "okay"; |
||
57 | }; |
||
58 | |||
59 | &spi0 { |
||
60 | status = "okay"; |
||
61 | |||
62 | m25p80@0 { |
||
3 | office | 63 | #address-cells = <1>; |
64 | #size-cells = <1>; |
||
1 | office | 65 | compatible = "jedec,spi-nor"; |
66 | reg = <0>; |
||
67 | spi-max-frequency = <10000000>; |
||
3 | office | 68 | m25p,chunked-io = <32>; |
1 | office | 69 | |
3 | office | 70 | partition@0 { |
71 | label = "u-boot"; |
||
72 | reg = <0x0 0x30000>; |
||
73 | read-only; |
||
74 | }; |
||
1 | office | 75 | |
3 | office | 76 | partition@30000 { |
77 | label = "u-boot-env"; |
||
78 | reg = <0x30000 0x10000>; |
||
79 | read-only; |
||
80 | }; |
||
1 | office | 81 | |
3 | office | 82 | factory: partition@40000 { |
83 | label = "factory"; |
||
84 | reg = <0x40000 0x10000>; |
||
85 | read-only; |
||
86 | }; |
||
1 | office | 87 | |
3 | office | 88 | partition@50000 { |
89 | label = "firmware"; |
||
90 | reg = <0x50000 0xfb0000>; |
||
1 | office | 91 | }; |
92 | }; |
||
93 | }; |
||
94 | |||
95 | &pcie { |
||
96 | status = "okay"; |
||
97 | |||
3 | office | 98 | pcie0 { |
99 | mt76@0,0 { |
||
100 | reg = <0x0000 0 0 0 0>; |
||
101 | device_type = "pci"; |
||
102 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
103 | ieee80211-freq-limit = <5000000 6000000>; |
||
104 | }; |
||
1 | office | 105 | }; |
106 | |||
3 | office | 107 | pcie1 { |
108 | mt76@1,0 { |
||
109 | reg = <0x0000 0 0 0 0>; |
||
110 | device_type = "pci"; |
||
111 | mediatek,mtd-eeprom = <&factory 0x0000>; |
||
112 | ieee80211-freq-limit = <2400000 2500000>; |
||
113 | }; |
||
1 | office | 114 | }; |
115 | }; |
||
116 | |||
117 | ðernet { |
||
118 | mtd-mac-address = <&factory 0xe000>; |
||
119 | }; |
||
120 | |||
121 | &pinctrl { |
||
122 | state_default: pinctrl0 { |
||
123 | gpio { |
||
124 | ralink,group = "wdt", "rgmii2", "jtag", "mdio"; |
||
125 | ralink,function = "gpio"; |
||
126 | }; |
||
127 | }; |
||
128 | }; |