MZK-DP150N.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "MZK-DP150N", "ralink,rt5350-soc";
  6. model = "Planex MZK-DP150N";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. power {
  10. label = "mzk-dp150n:green:power";
  11. gpios = <&gpio0 9 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. &gpio1 {
  27. status = "okay";
  28. };
  29. &spi0 {
  30. status = "okay";
  31. m25p80@0 {
  32. #address-cells = <1>;
  33. #size-cells = <1>;
  34. compatible = "jedec,spi-nor";
  35. reg = <0>;
  36. linux,modalias = "m25p80", "s25fl064k";
  37. spi-max-frequency = <10000000>;
  38. partition@0 {
  39. label = "uboot";
  40. reg = <0x0 0x30000>;
  41. read-only;
  42. };
  43. partition@30000 {
  44. label = "uboot-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 0x3b0000>;
  56. };
  57. };
  58. };
  59. &spi1 {
  60. spidev@0 {
  61. compatible = "linux,spidev";
  62. spi-max-frequency = <10000000>;
  63. reg = <0>;
  64. };
  65. };
  66. &pinctrl {
  67. state_default: pinctrl0 {
  68. gpio {
  69. ralink,group = "jtag", "uartf", "led";
  70. ralink,function = "gpio";
  71. };
  72. };
  73. };
  74. &ethernet {
  75. mtd-mac-address = <&factory 0x4>;
  76. };
  77. &esw {
  78. mediatek,portmap = <0x17>;
  79. };
  80. &wmac {
  81. ralink,mtd-eeprom = <&factory 0>;
  82. ralink,led-polarity = <1>;
  83. };