X8.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "poray,x8", "ralink,rt5350-soc";
  7. model = "Poray X8";
  8. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. gpio-leds {
  15. compatible = "gpio-leds";
  16. led_power: power {
  17. label = "x8:green:power";
  18. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  19. };
  20. };
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. poll-interval = <20>;
  24. reset {
  25. label = "reset";
  26. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  27. linux,code = <KEY_RESTART>;
  28. };
  29. };
  30. };
  31. &spi0 {
  32. status = "okay";
  33. m25p80@0 {
  34. compatible = "jedec,spi-nor";
  35. reg = <0>;
  36. spi-max-frequency = <10000000>;
  37. partitions {
  38. compatible = "fixed-partitions";
  39. #address-cells = <1>;
  40. #size-cells = <1>;
  41. partition@0 {
  42. label = "u-boot";
  43. reg = <0x0 0x30000>;
  44. read-only;
  45. };
  46. partition@30000 {
  47. label = "u-boot-env";
  48. reg = <0x30000 0x10000>;
  49. read-only;
  50. };
  51. factory: partition@40000 {
  52. label = "factory";
  53. reg = <0x40000 0x10000>;
  54. read-only;
  55. };
  56. partition@50000 {
  57. label = "firmware";
  58. reg = <0x50000 0x7b0000>;
  59. };
  60. };
  61. };
  62. };
  63. &pinctrl {
  64. state_default: pinctrl0 {
  65. gpio {
  66. ralink,group = "i2c", "jtag", "uartf";
  67. ralink,function = "gpio";
  68. };
  69. };
  70. };
  71. &ethernet {
  72. mtd-mac-address = <&factory 0x4>;
  73. };
  74. &esw {
  75. mediatek,portmap = <0x2f>;
  76. mediatek,led_polarity = <1>;
  77. };
  78. &wmac {
  79. ralink,mtd-eeprom = <&factory 0>;
  80. ralink,led-polarity = <1>;
  81. };
  82. &ehci {
  83. status = "okay";
  84. };
  85. &ohci {
  86. status = "okay";
  87. };