OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #include "mt7620a.dtsi" |
2 | |||
3 | #include <dt-bindings/gpio/gpio.h> |
||
4 | #include <dt-bindings/input/input.h> |
||
5 | |||
6 | / { |
||
7 | compatible = "lenovo,newifi-y1", "ralink,mt7620a-soc"; |
||
8 | |||
9 | chosen { |
||
10 | bootargs = "console=ttyS0,115200"; |
||
11 | }; |
||
12 | |||
3 | office | 13 | gpio-keys-polled { |
1 | office | 14 | compatible = "gpio-keys-polled"; |
3 | office | 15 | #address-cells = <1>; |
16 | #size-cells = <0>; |
||
1 | office | 17 | poll-interval = <20>; |
18 | |||
19 | reset { |
||
20 | label = "reset"; |
||
21 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
||
22 | linux,code = <KEY_RESTART>; |
||
23 | }; |
||
24 | }; |
||
25 | }; |
||
3 | office | 26 | |
1 | office | 27 | &gpio0 { |
28 | status = "okay"; |
||
29 | }; |
||
30 | |||
31 | &gpio2 { |
||
32 | status = "okay"; |
||
33 | }; |
||
34 | |||
35 | &gpio3 { |
||
36 | status = "okay"; |
||
37 | }; |
||
38 | |||
39 | &spi0 { |
||
40 | status = "okay"; |
||
41 | |||
42 | m25p80@0 { |
||
3 | office | 43 | #address-cells = <1>; |
44 | #size-cells = <1>; |
||
1 | office | 45 | compatible = "jedec,spi-nor"; |
46 | reg = <0>; |
||
47 | spi-max-frequency = <10000000>; |
||
48 | |||
3 | office | 49 | partition@0 { |
50 | label = "u-boot"; |
||
51 | reg = <0x0 0x30000>; |
||
52 | read-only; |
||
53 | }; |
||
1 | office | 54 | |
3 | office | 55 | partition@30000 { |
56 | label = "u-boot-env"; |
||
57 | reg = <0x30000 0x10000>; |
||
58 | read-only; |
||
59 | }; |
||
1 | office | 60 | |
3 | office | 61 | factory: partition@40000 { |
62 | label = "factory"; |
||
63 | reg = <0x40000 0x10000>; |
||
64 | read-only; |
||
65 | }; |
||
1 | office | 66 | |
3 | office | 67 | partition@50000 { |
68 | label = "firmware"; |
||
69 | reg = <0x50000 0xfb0000>; |
||
1 | office | 70 | }; |
71 | }; |
||
72 | }; |
||
73 | |||
74 | &ehci { |
||
75 | status = "okay"; |
||
76 | }; |
||
77 | |||
78 | &ohci { |
||
79 | status = "okay"; |
||
80 | }; |
||
81 | |||
82 | &pcie { |
||
83 | status = "okay"; |
||
84 | |||
3 | office | 85 | pcie-bridge { |
86 | mt76@0,0 { |
||
87 | reg = <0x0000 0 0 0 0>; |
||
88 | device_type = "pci"; |
||
89 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
90 | ieee80211-freq-limit = <5000000 6000000>; |
||
91 | }; |
||
1 | office | 92 | }; |
93 | }; |
||
3 | office | 94 | |
1 | office | 95 | &wmac { |
96 | ralink,mtd-eeprom = <&factory 0>; |
||
97 | pinctrl-names = "default"; |
||
98 | pinctrl-0 = <&pa_pins>; |
||
99 | }; |
||
100 | |||
101 | &pinctrl { |
||
102 | state_default: pinctrl0 { |
||
103 | gpio { |
||
104 | ralink,group = "uartf", "wled", "nd_sd"; |
||
105 | ralink,function = "gpio"; |
||
106 | }; |
||
107 | }; |
||
108 | }; |