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