OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /dts-v1/;
2  
3 #include "mt7621.dtsi"
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
6  
7 / {
8 compatible = "samknows,whitebox-v8", "mediatek,mt7621-soc";
9 model = "SamKnows Whitebox 8";
10  
11 memory@0 {
12 device_type = "memory";
13 reg = <0x0 0x8000000>;
14 };
15  
16 chosen {
17 bootargs = "console=ttyS0,57600";
18 };
19  
3 office 20 gpio-leds {
1 office 21 compatible = "gpio-leds";
22  
3 office 23 wps {
1 office 24 label = "sk-wb8:green:wps";
25 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
26 };
27  
28 usb {
29 label = "sk-wb8:green:usb";
30 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
31 };
32 };
33  
3 office 34 gpio-keys-polled {
1 office 35 compatible = "gpio-keys-polled";
3 office 36 #address-cells = <1>;
37 #size-cells = <0>;
1 office 38 poll-interval = <20>;
39 wps {
40 label = "wps";
41 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
43 };
44 reset {
45 label = "reset";
46 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 };
49 };
50 };
51  
52 &spi0 {
53 status = "okay";
54  
55 m25p80@0 {
3 office 56 #address-cells = <1>;
57 #size-cells = <1>;
1 office 58 compatible = "jedec,spi-nor";
59 reg = <0>;
60 spi-max-frequency = <10000000>;
3 office 61 m25p,chunked-io = <32>;
1 office 62  
3 office 63 partition@0 {
64 label = "u-boot";
65 reg = <0x0 0x30000>;
66 read-only;
67 };
1 office 68  
3 office 69 partition@30000 {
70 label = "u-boot-env";
71 reg = <0x30000 0x10000>;
72 };
1 office 73  
3 office 74 factory: partition@40000 {
75 label = "factory";
76 reg = <0x40000 0x10000>;
77 read-only;
78 };
1 office 79  
3 office 80 partition@50000 {
81 label = "firmware";
82 reg = <0x50000 0xfb0000>;
83 };
1 office 84  
85 };
86 };
87  
88 &pcie {
89 status = "okay";
90  
3 office 91 pcie0 {
92 mt76@0,0 {
93 reg = <0x0000 0 0 0 0>;
94 device_type = "pci";
95 mediatek,mtd-eeprom = <&factory 0x8000>;
96 ieee80211-freq-limit = <5000000 6000000>;
97 };
1 office 98 };
99  
3 office 100 pcie1 {
101 mt76@1,0 {
102 reg = <0x0000 0 0 0 0>;
103 device_type = "pci";
104 mediatek,mtd-eeprom = <&factory 0x0000>;
105 };
1 office 106 };
107 };
108  
109 &ethernet {
110 mtd-mac-address = <&factory 0xe000>;
111 };
112  
113 &pinctrl {
114 state_default: pinctrl0 {
115 gpio {
116 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
117 ralink,function = "gpio";
118 };
119 };
120 };