ramips: set F5D8235 v1 usb led trigger via devicetree
[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 default-state = "on";
19 };
20
21 yellow {
22 label = "psg1218b:yellow:status";
23 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
24 default-state = "off";
25 };
26
27 red {
28 label = "psg1218b: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", "pa";
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 };