FREESTATION5.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "arcwireless,freestation5", "ralink,rt3050-soc";
  7. model = "ARC FreeStation5";
  8. chosen {
  9. bootargs = "console=ttyS0,115200";
  10. };
  11. cfi@1f000000 {
  12. compatible = "cfi-flash";
  13. reg = <0x1f000000 0x800000>;
  14. bank-width = <2>;
  15. device-width = <2>;
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. partition@0 {
  19. label = "u-boot";
  20. reg = <0x0 0x30000>;
  21. read-only;
  22. };
  23. partition@30000 {
  24. label = "u-boot-env";
  25. reg = <0x30000 0x10000>;
  26. read-only;
  27. };
  28. factory: partition@40000 {
  29. label = "factory";
  30. reg = <0x40000 0x10000>;
  31. read-only;
  32. };
  33. partition@50000 {
  34. label = "firmware";
  35. reg = <0x50000 0x7b0000>;
  36. };
  37. };
  38. gpio-export {
  39. compatible = "gpio-export";
  40. // Used to enable power-over-ethernet passthrough from port0 to port1.
  41. // Disable passthrough by default to prevent accidental equipment damage.
  42. poe {
  43. gpio-export,name = "poe-passthrough";
  44. gpio-export,output = <1>; // OUT_INIT_HIGH
  45. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; // GPIO 11, ACTIVE_LOW
  46. };
  47. };
  48. gpio-leds {
  49. compatible = "gpio-leds";
  50. // The following leds are defined in the ArcOS firmware, but reportedly
  51. // not present in the Freestation5 device.
  52. wifi {
  53. label = "freestation5:unknown:wifi";
  54. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  55. };
  56. powerg {
  57. label = "freestation5:unknown:powerg";
  58. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  59. };
  60. usb {
  61. label = "freestation5:unknown:usb";
  62. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  63. };
  64. };
  65. };
  66. &pinctrl {
  67. state_default: pinctrl0 {
  68. gpio {
  69. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  70. ralink,function = "gpio";
  71. };
  72. };
  73. };
  74. &ethernet {
  75. mtd-mac-address = <&factory 0x4>;
  76. };
  77. &esw {
  78. mediatek,portmap = <0x01>;
  79. };
  80. &wmac {
  81. ralink,mtd-eeprom = <&factory 0>;
  82. };
  83. &otg {
  84. status = "okay";
  85. };