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