ramips: Change all '/include/' clauses to '#include' so preprocessing can be done...
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / PSG1208.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 / {
6 compatible = "PSG1208", "ralink,mt7620a-soc";
7 model = "Phicomm PSG1208";
8
9 palmbus@10000000 {
10 gpio1: gpio@638 {
11 status = "okay";
12 };
13
14 gpio3: gpio@688 {
15 status = "okay";
16 };
17
18 spi@b00 {
19 status = "okay";
20
21 m25p80@0 {
22 #address-cells = <1>;
23 #size-cells = <1>;
24 compatible = "jedec,spi-nor";
25 reg = <0 0>;
26 linux,modalias = "m25p80", "en25q64";
27 spi-max-frequency = <10000000>;
28
29 partition@0 {
30 label = "u-boot";
31 reg = <0x0 0x30000>;
32 read-only;
33 };
34
35 partition@20000 {
36 label = "u-boot-env";
37 reg = <0x30000 0x10000>;
38 read-only;
39 };
40
41 factory: partition@30000 {
42 label = "factory";
43 reg = <0x40000 0x10000>;
44 read-only;
45 };
46
47 partition@40000 {
48 label = "firmware";
49 reg = <0x50000 0x7b0000>;
50 };
51 };
52 };
53 };
54
55 pinctrl {
56 state_default: pinctrl0 {
57 gpio {
58 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";
59 ralink,function = "gpio";
60 };
61 };
62 };
63
64 ethernet@10100000 {
65 pinctrl-names = "default";
66 pinctrl-0 = <&ephy_pins>;
67 mtd-mac-address = <&factory 0x4>;
68 mediatek,portmap = "llllw";
69 };
70
71 pcie@10140000 {
72 status = "okay";
73
74 pcie-bridge {
75 mt76@0,0 {
76 reg = <0x0000 0 0 0 0>;
77 device_type = "pci";
78 mediatek,mtd-eeprom = <&factory 0x8000>;
79 mediatek,2ghz = <0>;
80 };
81 };
82 };
83
84 wmac@10180000 {
85 ralink,mtd-eeprom = <&factory 0>;
86 };
87
88 gpio-leds {
89 compatible = "gpio-leds";
90
91 wan {
92 label = "psg1208:white:wps";
93 gpios = <&gpio1 15 1>;
94 };
95
96 wlan {
97 label = "psg1208:white:wlan2g";
98 gpios = <&gpio3 0 1>;
99 };
100 };
101
102 gpio-keys-polled {
103 compatible = "gpio-keys-polled";
104 #address-cells = <1>;
105 #size-cells = <0>;
106 poll-interval = <20>;
107
108 reset {
109 label = "reset";
110 gpios = <&gpio0 1 1>;
111 linux,code = <0x198>;
112 };
113 };
114 };