X8.dts 1.4 KB

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