FREESTATION5.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. partitions {
  17. compatible = "fixed-partitions";
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. partition@0 {
  21. label = "u-boot";
  22. reg = <0x0 0x30000>;
  23. read-only;
  24. };
  25. partition@30000 {
  26. label = "u-boot-env";
  27. reg = <0x30000 0x10000>;
  28. read-only;
  29. };
  30. factory: partition@40000 {
  31. label = "factory";
  32. reg = <0x40000 0x10000>;
  33. read-only;
  34. };
  35. partition@50000 {
  36. compatible = "denx,uimage";
  37. label = "firmware";
  38. reg = <0x50000 0x7b0000>;
  39. };
  40. };
  41. };
  42. gpio-export {
  43. compatible = "gpio-export";
  44. /*
  45. * Used to enable power-over-ethernet passthrough from port0 to port1.
  46. * Disable passthrough by default to prevent accidental equipment damage.
  47. */
  48. poe {
  49. gpio-export,name = "poe-passthrough";
  50. gpio-export,output = <1>;
  51. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  52. };
  53. };
  54. leds {
  55. compatible = "gpio-leds";
  56. /*
  57. * The following leds are defined in the ArcOS firmware, but reportedly
  58. * not present in the Freestation5 device.
  59. */
  60. wifi {
  61. label = "freestation5:unknown:wifi";
  62. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  63. };
  64. powerg {
  65. label = "freestation5:unknown:powerg";
  66. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  67. };
  68. usb {
  69. label = "freestation5:unknown:usb";
  70. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  71. };
  72. };
  73. };
  74. &pinctrl {
  75. state_default: pinctrl0 {
  76. gpio {
  77. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  78. ralink,function = "gpio";
  79. };
  80. };
  81. };
  82. &ethernet {
  83. mtd-mac-address = <&factory 0x4>;
  84. };
  85. &esw {
  86. mediatek,portmap = <0x01>;
  87. };
  88. &wmac {
  89. ralink,mtd-eeprom = <&factory 0>;
  90. };
  91. &otg {
  92. status = "okay";
  93. };