X8.dts 1.5 KB

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