f48ac1deb6351e5d0e7e95598fe762d6d596ab5a
[openwrt/openwrt.git] / target / linux / ramips / dts / PSG1218A.dts
1 /dts-v1/;
2
3 #include "PSG1218.dtsi"
4
5 / {
6 compatible = "phicomm,psg1218a", "phicomm,psg1218", "ralink,mt7620a-soc";
7 model = "Phicomm PSG1218 rev.A";
8
9 aliases {
10 led-status = &led_blue;
11 };
12
13 gpio-leds {
14 compatible = "gpio-leds";
15 led_blue: blue {
16 label = "psg1218a:blue:status";
17 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
18 };
19
20 yellow {
21 label = "psg1218a:yellow:status";
22 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
23 };
24
25 red {
26 label = "psg1218a:red:status";
27 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
28 };
29 };
30 };
31
32 &pinctrl {
33 state_default: pinctrl0 {
34 gpio {
35 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
36 ralink,function = "gpio";
37 };
38 };
39 };
40
41 &ethernet {
42 pinctrl-names = "default";
43 pinctrl-0 = <&ephy_pins>;
44 mtd-mac-address = <&factory 0x28>;
45 mediatek,portmap = "llllw";
46 };
47
48 &wmac {
49 pinctrl-names = "default";
50 pinctrl-0 = <&pa_pins>;
51 };