OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "rt3883.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "omnima,hpm", "ralink,rt3883-soc"; |
||
10 | model = "Omnima HPM"; |
||
11 | |||
12 | chosen { |
||
13 | bootargs = "console=ttyS0,115200"; |
||
14 | }; |
||
15 | |||
3 | office | 16 | gpio-keys-polled { |
1 | office | 17 | compatible = "gpio-keys-polled"; |
3 | office | 18 | #address-cells = <1>; |
19 | #size-cells = <0>; |
||
1 | office | 20 | poll-interval = <100>; |
21 | |||
22 | reset { |
||
23 | label = "reset"; |
||
24 | gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; |
||
25 | linux,code = <KEY_RESTART>; |
||
26 | }; |
||
27 | }; |
||
28 | |||
3 | office | 29 | gpio-leds { |
1 | office | 30 | compatible = "gpio-leds"; |
31 | |||
32 | power { |
||
33 | label = "hpm:orange:power"; |
||
34 | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
||
35 | }; |
||
36 | |||
3 | office | 37 | status { |
1 | office | 38 | label = "hpm:green:status"; |
39 | gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; |
||
40 | }; |
||
41 | |||
42 | eth { |
||
43 | label = "hpm:green:eth"; |
||
44 | gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
||
45 | }; |
||
46 | |||
47 | eth2 { |
||
48 | label = "hpm:red:eth"; |
||
49 | gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
||
50 | }; |
||
51 | |||
52 | wifi { |
||
53 | label = "hpm:green:wifi"; |
||
54 | gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
||
55 | }; |
||
56 | |||
57 | wifi2 { |
||
58 | label = "hpm:red:wifi"; |
||
59 | gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; |
||
60 | }; |
||
61 | }; |
||
62 | |||
63 | gpio_export { |
||
64 | compatible = "gpio-export"; |
||
65 | #size-cells = <0>; |
||
66 | /* gpio 12 and 13 handle the OC input */ |
||
67 | |||
68 | usb0 { |
||
69 | gpio-export,name = "usb0"; |
||
70 | gpio-export,output = <1>; |
||
71 | gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
||
72 | }; |
||
73 | |||
74 | usb1 { |
||
75 | gpio-export,name = "usb1"; |
||
76 | gpio-export,output = <1>; |
||
77 | gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
||
78 | }; |
||
79 | }; |
||
80 | }; |
||
81 | |||
82 | &spi0 { |
||
83 | status = "okay"; |
||
84 | |||
85 | m25p80@0 { |
||
86 | compatible = "jedec,spi-nor"; |
||
87 | spi-max-frequency = <25000000>; |
||
88 | reg = <0>; |
||
3 | office | 89 | #address-cells = <1>; |
90 | #size-cells = <1>; |
||
1 | office | 91 | |
3 | office | 92 | partition@0 { |
93 | reg = <0x0 0x0030000>; |
||
94 | label = "u-boot"; |
||
95 | read-only; |
||
96 | }; |
||
1 | office | 97 | |
3 | office | 98 | partition@30000 { |
99 | reg = <0x00030000 0x00010000>; |
||
100 | label = "config"; |
||
101 | read-only; |
||
102 | }; |
||
1 | office | 103 | |
3 | office | 104 | factory: partition@40000 { |
105 | reg = <0x00040000 0x00010000>; |
||
106 | label = "factory"; |
||
107 | read-only; |
||
108 | }; |
||
1 | office | 109 | |
3 | office | 110 | partition@50000 { |
111 | reg = <0x00050000 0x00fb0000>; |
||
112 | label = "firmware"; |
||
1 | office | 113 | }; |
114 | }; |
||
115 | }; |
||
116 | |||
117 | &pinctrl { |
||
118 | state_default: pinctrl0 { |
||
119 | gpio { |
||
120 | ralink,group = "i2c", "jtag", "uartf"; |
||
121 | ralink,function = "gpio"; |
||
122 | }; |
||
123 | }; |
||
124 | }; |
||
125 | |||
126 | ðernet { |
||
127 | phy-handle = <&phy0>; |
||
128 | phy-mode = "rgmii"; |
||
129 | mtd-mac-address = <&factory 0x28>; |
||
130 | |||
131 | mdio-bus { |
||
132 | status = "okay"; |
||
133 | |||
134 | phy0: ethernet-phy@4 { |
||
135 | reg = <4>; |
||
136 | }; |
||
137 | }; |
||
138 | }; |
||
139 | |||
140 | &wmac { |
||
141 | ralink,mtd-eeprom = <&factory 0>; |
||
142 | }; |
||
143 | |||
144 | &ehci { |
||
145 | status = "okay"; |
||
146 | }; |
||
147 | |||
148 | &ohci { |
||
149 | status = "okay"; |
||
150 | }; |