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