86b1194b7a00045fc29a88ac9252bf4af3a2d328
[openwrt/openwrt.git] / target / linux / ramips / dts / PSG1218B.dts
1 /dts-v1/;
2
3 #include "PSG1218.dtsi"
4
5 / {
6 compatible = "phicomm,psg1218b", "phicomm,psg1218", "ralink,mt7620a-soc";
7 model = "Phicomm PSG1218 rev.B";
8
9 aliases {
10 led-status = &led_blue;
11 };
12
13 gpio-leds {
14 compatible = "gpio-leds";
15 led_blue: blue {
16 label = "psg1218b:blue:status";
17 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
18 };
19
20 yellow {
21 label = "psg1218b:yellow:status";
22 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
23 };
24
25 red {
26 label = "psg1218b: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", "pa";
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 };