1
0

X8.dts 1.4 KB

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