OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "mt7620a.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "youku,yk1", "ralink,mt7620a-soc"; |
||
10 | model = "YOUKU YK1"; |
||
11 | |||
3 | office | 12 | gpio-leds { |
1 | office | 13 | compatible = "gpio-leds"; |
14 | wan { |
||
15 | label = "youku-yk1:blue:wan"; |
||
16 | gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; |
||
17 | }; |
||
18 | air { |
||
19 | label = "youku-yk1:blue:air"; |
||
20 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
||
21 | }; |
||
22 | usb { |
||
23 | label = "youku-yk1:blue:usb"; |
||
24 | gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
||
25 | }; |
||
3 | office | 26 | power { |
1 | office | 27 | label = "youku-yk1:blue:power"; |
28 | gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
||
29 | }; |
||
30 | }; |
||
31 | |||
3 | office | 32 | gpio-keys-polled { |
1 | office | 33 | compatible = "gpio-keys-polled"; |
3 | office | 34 | #address-cells = <1>; |
35 | #size-cells = <0>; |
||
1 | office | 36 | poll-interval = <20>; |
37 | reset { |
||
38 | label = "reset"; |
||
39 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
||
40 | linux,code = <KEY_RESTART>; |
||
41 | }; |
||
42 | }; |
||
43 | }; |
||
44 | |||
45 | &gpio0 { |
||
46 | status = "okay"; |
||
47 | }; |
||
48 | |||
49 | &gpio1 { |
||
50 | status = "okay"; |
||
51 | }; |
||
52 | |||
53 | &gpio2 { |
||
54 | status = "okay"; |
||
55 | }; |
||
56 | |||
57 | &gpio3 { |
||
58 | status = "okay"; |
||
59 | }; |
||
60 | |||
61 | &spi0 { |
||
62 | status = "okay"; |
||
63 | |||
64 | m25p80@0 { |
||
3 | office | 65 | #address-cells = <1>; |
66 | #size-cells = <1>; |
||
67 | compatible = "jedec,spi-nor"; |
||
1 | office | 68 | reg = <0>; |
3 | office | 69 | spi-max-frequency = <10000000>; |
1 | office | 70 | |
3 | office | 71 | partition@0 { |
72 | label = "u-boot"; |
||
73 | reg = <0x0 0x30000>; |
||
74 | read-only; |
||
75 | }; |
||
1 | office | 76 | |
3 | office | 77 | partition@30000 { |
78 | label = "u-boot-env"; |
||
79 | reg = <0x30000 0x10000>; |
||
80 | read-only; |
||
81 | }; |
||
1 | office | 82 | |
3 | office | 83 | factory: partition@40000 { |
84 | label = "factory"; |
||
85 | reg = <0x40000 0x10000>; |
||
86 | read-only; |
||
87 | }; |
||
1 | office | 88 | |
3 | office | 89 | partition@50000 { |
90 | label = "firmware"; |
||
91 | reg = <0x50000 0x1fb0000>; |
||
1 | office | 92 | }; |
93 | }; |
||
94 | }; |
||
95 | |||
96 | &pinctrl { |
||
97 | state_default: pinctrl0 { |
||
98 | default { |
||
99 | ralink,group = "i2c", "rgmii1", "ephy", "wled"; |
||
100 | ralink,function = "gpio"; |
||
101 | }; |
||
102 | }; |
||
103 | }; |
||
104 | |||
105 | ðernet { |
||
106 | pinctrl-names = "default"; |
||
107 | mtd-mac-address = <&factory 0x4>; |
||
108 | mediatek,portmap = "llllw"; |
||
109 | }; |
||
110 | |||
111 | &wmac { |
||
112 | ralink,mtd-eeprom = <&factory 0>; |
||
113 | }; |
||
114 | |||
115 | &sdhci { |
||
116 | status = "okay"; |
||
117 | }; |
||
118 | |||
119 | &ehci { |
||
120 | status = "okay"; |
||
121 | }; |
||
122 | |||
123 | &ohci { |
||
124 | status = "okay"; |
||
125 | }; |