ramips: fix power LED DTB for wt3020
[openwrt/staging/wigyori.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 default-state = "on";
19 };
20
21 yellow {
22 label = "psg1218a:yellow:status";
23 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
24 default-state = "off";
25 };
26
27 red {
28 label = "psg1218a:red:status";
29 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
30 default-state = "off";
31 };
32 };
33 };
34
35 &pinctrl {
36 state_default: pinctrl0 {
37 gpio {
38 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
39 ralink,function = "gpio";
40 };
41 };
42 };
43
44 &ethernet {
45 pinctrl-names = "default";
46 pinctrl-0 = <&ephy_pins>;
47 mtd-mac-address = <&factory 0x28>;
48 mediatek,portmap = "llllw";
49 };
50
51 &wmac {
52 pinctrl-names = "default";
53 pinctrl-0 = <&pa_pins>;
54 };