OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "mt7621.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "d-team,pbr-m1", "mediatek,mt7621-soc"; |
||
10 | model = "PBR-M1"; |
||
11 | |||
12 | memory@0 { |
||
13 | device_type = "memory"; |
||
14 | reg = <0x0 0x10000000>; |
||
15 | }; |
||
16 | |||
17 | chosen { |
||
18 | bootargs = "console=ttyS0,115200"; |
||
19 | }; |
||
20 | |||
21 | palmbus: palmbus@1E000000 { |
||
22 | i2c: i2c@900 { |
||
23 | status = "okay"; |
||
24 | |||
25 | pcf8563: rtc@51 { |
||
26 | status = "okay"; |
||
27 | compatible = "nxp,pcf8563"; |
||
28 | reg = <0x51>; |
||
29 | }; |
||
30 | }; |
||
31 | }; |
||
32 | |||
3 | office | 33 | gpio-leds { |
1 | office | 34 | compatible = "gpio-leds"; |
35 | |||
36 | power { |
||
37 | label = "pbr-m1:blue:power"; |
||
38 | gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; |
||
39 | }; |
||
40 | |||
3 | office | 41 | sys { |
1 | office | 42 | label = "pbr-m1:blue:sys"; |
43 | gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; |
||
44 | }; |
||
45 | |||
46 | internet { |
||
47 | label = "pbr-m1:blue:internet"; |
||
48 | gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; |
||
49 | }; |
||
50 | |||
51 | wlan2g { |
||
52 | label = "pbr-m1:blue:wlan2g"; |
||
53 | gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; |
||
54 | }; |
||
55 | |||
56 | wlan5g { |
||
57 | label = "pbr-m1:blue:wlan5g"; |
||
58 | gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; |
||
59 | }; |
||
60 | }; |
||
61 | |||
3 | office | 62 | gpio-keys-polled { |
1 | office | 63 | compatible = "gpio-keys-polled"; |
3 | office | 64 | #address-cells = <1>; |
65 | #size-cells = <0>; |
||
1 | office | 66 | poll-interval = <20>; |
67 | |||
68 | reset { |
||
69 | label = "reset"; |
||
70 | gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
||
71 | linux,code = <KEY_RESTART>; |
||
72 | }; |
||
73 | }; |
||
74 | |||
75 | gpio_export { |
||
76 | compatible = "gpio-export"; |
||
77 | #size-cells = <0>; |
||
78 | |||
79 | power_usb2 { |
||
80 | gpio-export,name = "power_usb2"; |
||
81 | gpio-export,output = <1>; |
||
82 | gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>; |
||
83 | }; |
||
84 | |||
85 | power_usb3 { |
||
86 | gpio-export,name = "power_usb3"; |
||
87 | gpio-export,output = <1>; |
||
88 | gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; |
||
89 | }; |
||
90 | |||
91 | power_sata { |
||
92 | gpio-export,name = "power_sata"; |
||
93 | gpio-export,output = <1>; |
||
94 | gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>; |
||
95 | }; |
||
96 | }; |
||
97 | |||
98 | beeper: beeper { |
||
99 | compatible = "gpio-beeper"; |
||
100 | gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; |
||
101 | }; |
||
102 | }; |
||
103 | |||
104 | &sdhci { |
||
105 | status = "okay"; |
||
3 | office | 106 | pinctrl-names = "default"; |
107 | pinctrl-0 = <&sdhci_pins>; |
||
1 | office | 108 | }; |
109 | |||
110 | &spi0 { |
||
111 | status = "okay"; |
||
112 | |||
113 | m25p80@0 { |
||
3 | office | 114 | #address-cells = <1>; |
115 | #size-cells = <1>; |
||
1 | office | 116 | compatible = "jedec,spi-nor"; |
117 | reg = <0>; |
||
118 | spi-max-frequency = <10000000>; |
||
3 | office | 119 | m25p,chunked-io = <32>; |
1 | office | 120 | |
3 | office | 121 | partition@0 { |
122 | label = "u-boot"; |
||
123 | reg = <0x0 0x30000>; |
||
124 | read-only; |
||
125 | }; |
||
1 | office | 126 | |
3 | office | 127 | partition@30000 { |
128 | label = "u-boot-env"; |
||
129 | reg = <0x30000 0x10000>; |
||
130 | read-only; |
||
131 | }; |
||
1 | office | 132 | |
3 | office | 133 | factory: partition@40000 { |
134 | label = "factory"; |
||
135 | reg = <0x40000 0x10000>; |
||
136 | read-only; |
||
137 | }; |
||
1 | office | 138 | |
3 | office | 139 | partition@50000 { |
140 | label = "firmware"; |
||
141 | reg = <0x50000 0xfb0000>; |
||
1 | office | 142 | }; |
143 | }; |
||
144 | }; |
||
145 | |||
146 | &pcie { |
||
147 | status = "okay"; |
||
148 | |||
3 | office | 149 | pcie0 { |
150 | mt76@0,0 { |
||
151 | reg = <0x0000 0 0 0 0>; |
||
152 | device_type = "pci"; |
||
153 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
154 | ieee80211-freq-limit = <5000000 6000000>; |
||
155 | }; |
||
1 | office | 156 | }; |
157 | |||
3 | office | 158 | pcie1 { |
159 | mt76@1,0 { |
||
160 | reg = <0x0000 0 0 0 0>; |
||
161 | device_type = "pci"; |
||
162 | mediatek,mtd-eeprom = <&factory 0x0000>; |
||
163 | }; |
||
1 | office | 164 | }; |
165 | }; |
||
166 | |||
167 | ðernet { |
||
168 | mtd-mac-address = <&factory 0xe000>; |
||
169 | }; |
||
170 | |||
171 | &pinctrl { |
||
172 | state_default: pinctrl0 { |
||
173 | gpio { |
||
174 | ralink,group = "wdt", "rgmii2", "jtag", "mdio"; |
||
175 | ralink,function = "gpio"; |
||
176 | }; |
||
177 | }; |
||
178 | }; |