OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "mt7628an.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "d-team,pbr-d1", "mediatek,mt7628an-soc"; |
||
10 | model = "PBR-D1"; |
||
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 | chosen { |
||
20 | bootargs = "console=ttyS0,115200"; |
||
21 | }; |
||
22 | |||
23 | aliases { |
||
24 | serial0 = &uart2; |
||
25 | }; |
||
26 | |||
27 | memory@0 { |
||
28 | device_type = "memory"; |
||
29 | reg = <0x0 0x8000000>; |
||
30 | }; |
||
31 | |||
32 | leds { |
||
33 | compatible = "gpio-leds"; |
||
34 | |||
35 | usb { |
||
36 | label = "pbr-d1:orange:usb"; |
||
37 | gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
||
38 | trigger-sources = <&ohci_port1>, <&ehci_port1>; |
||
39 | linux,default-trigger = "usbport"; |
||
40 | }; |
||
41 | |||
42 | led_power: power { |
||
43 | label = "pbr-d1:orange:power"; |
||
44 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
||
45 | default-state = "on"; |
||
46 | }; |
||
47 | }; |
||
48 | |||
49 | keys { |
||
50 | compatible = "gpio-keys-polled"; |
||
51 | poll-interval = <20>; |
||
52 | |||
53 | reset { |
||
54 | label = "reset"; |
||
55 | gpios = <&gpio1 38 GPIO_ACTIVE_LOW>; |
||
56 | linux,code = <KEY_RESTART>; |
||
57 | }; |
||
58 | }; |
||
59 | |||
60 | wgpio: gpio-wifi { |
||
61 | compatible = "mediatek,gpio-wifi"; |
||
62 | #address-cells = <1>; |
||
63 | #size-cells = <0>; |
||
64 | gpio-controller; |
||
65 | #gpio-cells = <2>; |
||
66 | }; |
||
67 | }; |
||
68 | |||
69 | &pinctrl { |
||
70 | state_default: pinctrl0 { |
||
71 | gpio { |
||
72 | ralink,group = "gpio"; |
||
73 | ralink,function = "gpio"; |
||
74 | }; |
||
75 | |||
76 | i2c { |
||
77 | ralink,group = "i2c"; |
||
78 | ralink,function = "gpio"; |
||
79 | }; |
||
80 | |||
81 | i2s { |
||
82 | ralink,group = "i2s"; |
||
83 | ralink,function = "gpio"; |
||
84 | }; |
||
85 | |||
86 | spis { |
||
87 | ralink,group = "spis"; |
||
88 | ralink,function = "gpio"; |
||
89 | }; |
||
90 | |||
91 | wdt { |
||
92 | ralink,group = "wdt"; |
||
93 | ralink,function = "gpio"; |
||
94 | }; |
||
95 | }; |
||
96 | }; |
||
97 | |||
98 | &spi0 { |
||
99 | status = "okay"; |
||
100 | |||
101 | pinctrl-names = "default"; |
||
102 | pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>; |
||
103 | |||
104 | m25p80@0 { |
||
105 | compatible = "jedec,spi-nor"; |
||
106 | reg = <0>; |
||
107 | spi-max-frequency = <40000000>; |
||
108 | |||
109 | partitions { |
||
110 | compatible = "fixed-partitions"; |
||
111 | #address-cells = <1>; |
||
112 | #size-cells = <1>; |
||
113 | |||
114 | partition@0 { |
||
115 | label = "u-boot"; |
||
116 | reg = <0x0 0x30000>; |
||
117 | read-only; |
||
118 | }; |
||
119 | |||
120 | partition@30000 { |
||
121 | label = "u-boot-env"; |
||
122 | reg = <0x30000 0x10000>; |
||
123 | }; |
||
124 | |||
125 | factory: partition@40000 { |
||
126 | label = "factory"; |
||
127 | reg = <0x40000 0x10000>; |
||
128 | read-only; |
||
129 | }; |
||
130 | |||
131 | partition@50000 { |
||
132 | compatible = "denx,uimage"; |
||
133 | label = "firmware"; |
||
134 | reg = <0x50000 0x0fb0000>; |
||
135 | }; |
||
136 | }; |
||
137 | }; |
||
138 | |||
139 | spidev@1 { |
||
140 | #address-cells = <1>; |
||
141 | #size-cells = <1>; |
||
142 | compatible = "linux,spidev"; |
||
143 | reg = <1>; |
||
144 | spi-max-frequency = <40000000>; |
||
145 | }; |
||
146 | }; |
||
147 | |||
148 | &i2c { |
||
149 | status = "okay"; |
||
150 | }; |
||
151 | |||
152 | &uart1 { |
||
153 | status = "okay"; |
||
154 | }; |
||
155 | |||
156 | &uart2 { |
||
157 | status = "okay"; |
||
158 | }; |
||
159 | |||
160 | &pwm { |
||
161 | status = "okay"; |
||
162 | }; |
||
163 | |||
164 | ðernet { |
||
165 | mtd-mac-address = <&factory 0x28>; |
||
166 | }; |
||
167 | |||
168 | &sdhci { |
||
169 | status = "okay"; |
||
170 | mediatek,cd-high; |
||
171 | }; |