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