OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "rt5350.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "dlink,dir-610-a1", "ralink,rt5350-soc"; |
||
10 | model = "D-Link DIR-610 A1"; |
||
11 | |||
12 | aliases { |
||
13 | led-boot = &led_status; |
||
14 | led-failsafe = &led_status; |
||
15 | led-running = &led_status; |
||
16 | led-upgrade = &led_status; |
||
17 | }; |
||
18 | |||
19 | leds { |
||
20 | compatible = "gpio-leds"; |
||
21 | |||
22 | led_status: status { |
||
23 | label = "dir-610-a1:green:status"; |
||
24 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
||
25 | }; |
||
26 | |||
27 | wps { |
||
28 | label = "dir-610-a1:green:wps"; |
||
29 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
||
30 | }; |
||
31 | }; |
||
32 | |||
33 | keys { |
||
34 | compatible = "gpio-keys-polled"; |
||
35 | poll-interval = <20>; |
||
36 | |||
37 | reset { |
||
38 | label = "reset"; |
||
39 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
||
40 | linux,code = <KEY_RESTART>; |
||
41 | }; |
||
42 | |||
43 | wps { |
||
44 | label = "wps"; |
||
45 | gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
||
46 | linux,code = <KEY_WPS_BUTTON>; |
||
47 | }; |
||
48 | }; |
||
49 | }; |
||
50 | |||
51 | &spi0 { |
||
52 | status = "okay"; |
||
53 | |||
54 | m25p80@0 { |
||
55 | compatible = "jedec,spi-nor"; |
||
56 | reg = <0>; |
||
57 | spi-max-frequency = <10000000>; |
||
58 | |||
59 | partitions { |
||
60 | compatible = "fixed-partitions"; |
||
61 | #address-cells = <1>; |
||
62 | #size-cells = <1>; |
||
63 | |||
64 | partition@0 { |
||
65 | label = "u-boot"; |
||
66 | reg = <0x0 0x30000>; |
||
67 | read-only; |
||
68 | }; |
||
69 | |||
70 | devdata: partition@30000 { |
||
71 | label = "devdata"; |
||
72 | reg = <0x30000 0x10000>; |
||
73 | read-only; |
||
74 | }; |
||
75 | |||
76 | factory: partition@40000 { |
||
77 | label = "factory"; |
||
78 | reg = <0x40000 0x10000>; |
||
79 | read-only; |
||
80 | }; |
||
81 | |||
82 | partition@50000 { |
||
83 | compatible = "seama"; |
||
84 | label = "firmware"; |
||
85 | reg = <0x50000 0x3b0000>; |
||
86 | }; |
||
87 | }; |
||
88 | }; |
||
89 | }; |
||
90 | |||
91 | &pinctrl { |
||
92 | state_default: pinctrl0 { |
||
93 | gpio { |
||
94 | ralink,group = "i2c", "jtag", "uartf"; |
||
95 | ralink,function = "gpio"; |
||
96 | }; |
||
97 | }; |
||
98 | }; |
||
99 | |||
100 | ðernet { |
||
101 | mtd-mac-address = <&devdata 0x4004>; |
||
102 | }; |
||
103 | |||
104 | &esw { |
||
105 | status = "okay"; |
||
106 | mediatek,portmap = <0x2f>; |
||
107 | mediatek,led_polarity = <0x17>; |
||
108 | }; |
||
109 | |||
110 | &wmac { |
||
111 | status = "okay"; |
||
112 | ralink,led-polarity = <1>; |
||
113 | ralink,mtd-eeprom = <&devdata 0x4000>; |
||
114 | }; |