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,m3", "ralink,rt5350-soc"; |
||
10 | model = "Poray M3"; |
||
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 = "m3:blue:status"; |
||
24 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
||
25 | }; |
||
26 | }; |
||
27 | |||
28 | keys { |
||
29 | compatible = "gpio-keys-polled"; |
||
30 | poll-interval = <20>; |
||
31 | |||
32 | reset { |
||
33 | label = "reset"; |
||
34 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
||
35 | linux,code = <KEY_RESTART>; |
||
36 | }; |
||
37 | |||
38 | mode { |
||
39 | label = "mode"; |
||
40 | gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
||
41 | linux,code = <BTN_0>; |
||
42 | linux,input-type = <EV_SW>; |
||
43 | }; |
||
44 | }; |
||
45 | }; |
||
46 | |||
47 | &spi0 { |
||
48 | status = "okay"; |
||
49 | |||
50 | m25p80@0 { |
||
51 | compatible = "jedec,spi-nor"; |
||
52 | reg = <0>; |
||
53 | spi-max-frequency = <10000000>; |
||
54 | |||
55 | partitions { |
||
56 | compatible = "fixed-partitions"; |
||
57 | #address-cells = <1>; |
||
58 | #size-cells = <1>; |
||
59 | |||
60 | partition@0 { |
||
61 | label = "u-boot"; |
||
62 | reg = <0x0 0x30000>; |
||
63 | read-only; |
||
64 | }; |
||
65 | |||
66 | partition@30000 { |
||
67 | label = "u-boot-env"; |
||
68 | reg = <0x30000 0x10000>; |
||
69 | read-only; |
||
70 | }; |
||
71 | |||
72 | factory: partition@40000 { |
||
73 | label = "factory"; |
||
74 | reg = <0x40000 0x10000>; |
||
75 | read-only; |
||
76 | }; |
||
77 | |||
78 | partition@50000 { |
||
79 | compatible = "denx,uimage"; |
||
80 | label = "firmware"; |
||
81 | reg = <0x50000 0x3b0000>; |
||
82 | }; |
||
83 | }; |
||
84 | }; |
||
85 | }; |
||
86 | |||
87 | &pinctrl { |
||
88 | state_default: pinctrl0 { |
||
89 | gpio { |
||
90 | ralink,group = "i2c", "jtag", "uartf"; |
||
91 | ralink,function = "gpio"; |
||
92 | }; |
||
93 | }; |
||
94 | }; |
||
95 | |||
96 | ðernet { |
||
97 | mtd-mac-address = <&factory 0x4>; |
||
98 | }; |
||
99 | |||
100 | &esw { |
||
101 | mediatek,portmap = <0x2f>; |
||
102 | mediatek,led_polarity = <1>; |
||
103 | }; |
||
104 | |||
105 | &wmac { |
||
106 | ralink,mtd-eeprom = <&factory 0>; |
||
107 | ralink,led-polarity = <1>; |
||
108 | }; |
||
109 | |||
110 | &ehci { |
||
111 | status = "okay"; |
||
112 | }; |
||
113 | |||
114 | &ohci { |
||
115 | status = "okay"; |
||
116 | }; |