OpenWrt – Blame information for rev 2
?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 = "hiwifi,hc5x61", "ralink,mt7620a-soc"; |
||
8 | |||
9 | chosen { |
||
10 | bootargs = "console=ttyS0,115200"; |
||
11 | }; |
||
12 | |||
13 | keys { |
||
14 | compatible = "gpio-keys-polled"; |
||
15 | poll-interval = <20>; |
||
16 | |||
17 | reset { |
||
18 | label = "reset"; |
||
19 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
||
20 | linux,code = <KEY_RESTART>; |
||
21 | }; |
||
22 | }; |
||
23 | |||
24 | gpio_export { |
||
25 | compatible = "gpio-export"; |
||
26 | #size-cells = <0>; |
||
27 | |||
28 | usbpower { |
||
29 | gpio-export,name = "usbpower"; |
||
30 | gpio-export,output = <1>; |
||
31 | gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
||
32 | }; |
||
33 | }; |
||
34 | }; |
||
35 | |||
36 | &sysc { |
||
37 | ralink,gpiomux = "i2c", "jtag"; |
||
38 | ralink,uartmux = "gpio"; |
||
39 | ralink,wdtmux = <1>; |
||
40 | }; |
||
41 | |||
42 | &gpio0 { |
||
43 | status = "okay"; |
||
44 | }; |
||
45 | |||
46 | &gpio2 { |
||
47 | status = "okay"; |
||
48 | }; |
||
49 | |||
50 | &gpio3 { |
||
51 | status = "okay"; |
||
52 | }; |
||
53 | |||
54 | &spi0 { |
||
55 | status = "okay"; |
||
56 | |||
57 | m25p80@0 { |
||
58 | compatible = "jedec,spi-nor"; |
||
59 | reg = <0>; |
||
60 | spi-max-frequency = <10000000>; |
||
61 | |||
62 | partitions { |
||
63 | compatible = "fixed-partitions"; |
||
64 | #address-cells = <1>; |
||
65 | #size-cells = <1>; |
||
66 | |||
67 | partition@0 { |
||
68 | label = "u-boot"; |
||
69 | reg = <0x0 0x30000>; |
||
70 | read-only; |
||
71 | }; |
||
72 | |||
73 | partition@30000 { |
||
74 | label = "u-boot-env"; |
||
75 | reg = <0x30000 0x10000>; |
||
76 | read-only; |
||
77 | }; |
||
78 | |||
79 | factory: partition@40000 { |
||
80 | label = "factory"; |
||
81 | reg = <0x40000 0x10000>; |
||
82 | read-only; |
||
83 | }; |
||
84 | |||
85 | partition@50000 { |
||
86 | compatible = "denx,uimage"; |
||
87 | label = "firmware"; |
||
88 | reg = <0x50000 0xf80000>; |
||
89 | }; |
||
90 | |||
91 | partition@fd0000 { |
||
92 | label = "hwf_config"; |
||
93 | reg = <0xfd0000 0x10000>; |
||
94 | read-only; |
||
95 | }; |
||
96 | |||
97 | bdinfo: partition@fe0000 { |
||
98 | label = "bdinfo"; |
||
99 | reg = <0xfe0000 0x10000>; |
||
100 | read-only; |
||
101 | }; |
||
102 | |||
103 | partition@ff0000 { |
||
104 | label = "backup"; |
||
105 | reg = <0xff0000 0x10000>; |
||
106 | read-only; |
||
107 | }; |
||
108 | }; |
||
109 | }; |
||
110 | }; |
||
111 | |||
112 | ðernet { |
||
113 | pinctrl-names = "default"; |
||
114 | pinctrl-0 = <&ephy_pins>; |
||
115 | mtd-mac-address = <&factory 0x4>; |
||
116 | mediatek,portmap = "wllll"; |
||
117 | }; |
||
118 | |||
119 | &sdhci { |
||
120 | status = "okay"; |
||
121 | }; |
||
122 | |||
123 | &wmac { |
||
124 | ralink,mtd-eeprom = <&factory 0>; |
||
125 | pinctrl-names = "default"; |
||
126 | pinctrl-0 = <&pa_pins>; |
||
127 | }; |
||
128 | |||
129 | &pinctrl { |
||
130 | state_default: pinctrl0 { |
||
131 | gpio { |
||
132 | ralink,group = "uartf", "wled"; |
||
133 | ralink,function = "gpio"; |
||
134 | }; |
||
135 | }; |
||
136 | }; |