PSG1218B.dts 980 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /dts-v1/;
  2. #include "PSG1218.dtsi"
  3. / {
  4. compatible = "phicomm,psg1218b", "phicomm,psg1218", "ralink,mt7620a-soc";
  5. model = "Phicomm PSG1218 rev.B";
  6. aliases {
  7. led-boot = &led_blue;
  8. led-failsafe = &led_blue;
  9. led-running = &led_blue;
  10. led-upgrade = &led_blue;
  11. };
  12. gpio-leds {
  13. compatible = "gpio-leds";
  14. led_blue: blue {
  15. label = "psg1218b:blue:status";
  16. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  17. default-state = "on";
  18. };
  19. yellow {
  20. label = "psg1218b:yellow:status";
  21. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  22. default-state = "off";
  23. };
  24. red {
  25. label = "psg1218b:red:status";
  26. gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
  27. default-state = "off";
  28. };
  29. };
  30. };
  31. &pinctrl {
  32. state_default: pinctrl0 {
  33. gpio {
  34. ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "pa";
  35. ralink,function = "gpio";
  36. };
  37. };
  38. };
  39. &ethernet {
  40. pinctrl-names = "default";
  41. pinctrl-0 = <&ephy_pins>;
  42. mtd-mac-address = <&factory 0x28>;
  43. mediatek,portmap = "llllw";
  44. };