kernel: bump 4.9 to 4.9.65
[oweals/openwrt.git] / target / linux / ramips / dts / PSG1218.dtsi
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7         compatible = "phicomm,psg1218", "ralink,mt7620a-soc";
8
9         gpio-keys-polled {
10                 compatible = "gpio-keys-polled";
11                 #address-cells = <1>;
12                 #size-cells = <0>;
13                 poll-interval = <20>;
14
15                 reset {
16                         label = "reset";
17                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
18                         linux,code = <KEY_RESTART>;
19                 };
20         };
21 };
22
23 &gpio0 {
24         status = "okay";
25 };
26
27 &spi0 {
28         status = "okay";
29
30         m25p80@0 {
31                 #address-cells = <1>;
32                 #size-cells = <1>;
33                 compatible = "jedec,spi-nor";
34                 reg = <0>;
35                 spi-max-frequency = <10000000>;
36
37                 partition@0 {
38                         label = "u-boot";
39                         reg = <0x0 0x30000>;
40                         read-only;
41                 };
42
43                 partition@20000 {
44                         label = "u-boot-env";
45                         reg = <0x30000 0x10000>;
46                         read-only;
47                 };
48
49                 factory: partition@30000 {
50                         label = "factory";
51                         reg = <0x40000 0x10000>;
52                         read-only;
53                 };
54
55                 partition@40000 {
56                         label = "firmware";
57                         reg = <0x50000 0x7b0000>;
58                 };
59         };
60 };
61
62 &pcie {
63         status = "okay";
64
65         pcie-bridge {
66                 mt76@0,0 {
67                         reg = <0x0000 0 0 0 0>;
68                         device_type = "pci";
69                         mediatek,mtd-eeprom = <&factory 0x8000>;
70                         ieee80211-freq-limit = <5000000 6000000>;
71                 };
72         };
73 };
74
75 &wmac {
76         ralink,mtd-eeprom = <&factory 0>;
77 };