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