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 = "poray,x5", "ralink,rt5350-soc"; |
||
10 | model = "Poray X5"; |
||
11 | |||
12 | aliases { |
||
13 | led-boot = &led_power; |
||
14 | led-failsafe = &led_power; |
||
15 | led-running = &led_power; |
||
16 | led-upgrade = &led_power; |
||
17 | }; |
||
18 | |||
19 | leds { |
||
20 | compatible = "gpio-leds"; |
||
21 | |||
22 | led_power: power { |
||
23 | label = "x5:green:power"; |
||
24 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
||
25 | }; |
||
26 | |||
27 | 20 { |
||
28 | label = "x5:green:20"; |
||
29 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
||
30 | }; |
||
31 | |||
32 | 50 { |
||
33 | label = "x5:green:50"; |
||
34 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
||
35 | }; |
||
36 | |||
37 | 80 { |
||
38 | label = "x5:green:80"; |
||
39 | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
||
40 | }; |
||
41 | }; |
||
42 | |||
43 | keys { |
||
44 | compatible = "gpio-keys-polled"; |
||
45 | poll-interval = <20>; |
||
46 | |||
47 | bat { |
||
48 | label = "bat"; |
||
49 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
||
50 | linux,code = <KEY_WPS_BUTTON>; |
||
51 | }; |
||
52 | |||
53 | reset { |
||
54 | label = "reset"; |
||
55 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
||
56 | linux,code = <KEY_RESTART>; |
||
57 | }; |
||
58 | |||
59 | mode { |
||
60 | label = "mode"; |
||
61 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
||
62 | linux,code = <BTN_0>; |
||
63 | linux,input-type = <EV_SW>; |
||
64 | }; |
||
65 | }; |
||
66 | |||
67 | gpio_export { |
||
68 | compatible = "gpio-export"; |
||
69 | #size-cells = <0>; |
||
70 | |||
71 | usb-mode { |
||
72 | gpio-export,name = "usb-mode"; |
||
73 | gpio-export,output = <0>; |
||
74 | gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
||
75 | }; |
||
76 | }; |
||
77 | }; |
||
78 | |||
79 | &spi0 { |
||
80 | status = "okay"; |
||
81 | |||
82 | m25p80@0 { |
||
83 | compatible = "jedec,spi-nor"; |
||
84 | reg = <0>; |
||
85 | spi-max-frequency = <10000000>; |
||
86 | |||
87 | partitions { |
||
88 | compatible = "fixed-partitions"; |
||
89 | #address-cells = <1>; |
||
90 | #size-cells = <1>; |
||
91 | |||
92 | partition@0 { |
||
93 | label = "u-boot"; |
||
94 | reg = <0x0 0x30000>; |
||
95 | read-only; |
||
96 | }; |
||
97 | |||
98 | partition@30000 { |
||
99 | label = "u-boot-env"; |
||
100 | reg = <0x30000 0x10000>; |
||
101 | read-only; |
||
102 | }; |
||
103 | |||
104 | factory: partition@40000 { |
||
105 | label = "factory"; |
||
106 | reg = <0x40000 0x10000>; |
||
107 | read-only; |
||
108 | }; |
||
109 | |||
110 | partition@50000 { |
||
111 | compatible = "denx,uimage"; |
||
112 | label = "firmware"; |
||
113 | reg = <0x50000 0x7b0000>; |
||
114 | }; |
||
115 | }; |
||
116 | }; |
||
117 | }; |
||
118 | |||
119 | &pinctrl { |
||
120 | state_default: pinctrl0 { |
||
121 | gpio { |
||
122 | ralink,group = "i2c", "jtag", "uartf"; |
||
123 | ralink,function = "gpio"; |
||
124 | }; |
||
125 | }; |
||
126 | }; |
||
127 | |||
128 | ðernet { |
||
129 | mtd-mac-address = <&factory 0x4>; |
||
130 | }; |
||
131 | |||
132 | &esw { |
||
133 | mediatek,portmap = <0x2f>; |
||
134 | mediatek,led_polarity = <1>; |
||
135 | }; |
||
136 | |||
137 | &wmac { |
||
138 | ralink,mtd-eeprom = <&factory 0>; |
||
139 | ralink,led-polarity = <1>; |
||
140 | }; |
||
141 | |||
142 | &ehci { |
||
143 | status = "okay"; |
||
144 | }; |
||
145 | |||
146 | &ohci { |
||
147 | status = "okay"; |
||
148 | }; |