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