kernel: bump 4.9 to 4.9.65
[oweals/openwrt.git] / target / linux / ramips / dts / SK-WB8.dts
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
20         gpio-leds {
21                 compatible = "gpio-leds";
22
23                 wps {
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
34         gpio-keys-polled {
35                 compatible = "gpio-keys-polled";
36                 #address-cells = <1>;
37                 #size-cells = <0>;
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 {
56                 #address-cells = <1>;
57                 #size-cells = <1>;
58                 compatible = "jedec,spi-nor";
59                 reg = <0>;
60                 spi-max-frequency = <10000000>;
61                 m25p,chunked-io = <32>;
62
63                 partition@0 {
64                         label = "u-boot";
65                         reg = <0x0 0x30000>;
66                         read-only;
67                 };
68
69                 partition@30000 {
70                         label = "u-boot-env";
71                         reg = <0x30000 0x10000>;
72                 };
73
74                 factory: partition@40000 {
75                         label = "factory";
76                         reg = <0x40000 0x10000>;
77                         read-only;
78                 };
79
80                 partition@50000 {
81                         label = "firmware";
82                         reg = <0x50000 0xfb0000>;
83                 };
84
85         };
86 };
87
88 &pcie {
89         status = "okay";
90
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                 };
98         };
99
100         pcie1 {
101                 mt76@1,0 {
102                         reg = <0x0000 0 0 0 0>;
103                         device_type = "pci";
104                         mediatek,mtd-eeprom = <&factory 0x0000>;
105                 };
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 };