1
0

MZK-DP150N.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. spi-max-frequency = <10000000>;
  37. partition@0 {
  38. label = "uboot";
  39. reg = <0x0 0x30000>;
  40. read-only;
  41. };
  42. partition@30000 {
  43. label = "uboot-env";
  44. reg = <0x30000 0x10000>;
  45. read-only;
  46. };
  47. factory: partition@40000 {
  48. label = "factory";
  49. reg = <0x40000 0x10000>;
  50. read-only;
  51. };
  52. partition@50000 {
  53. label = "firmware";
  54. reg = <0x50000 0x3b0000>;
  55. };
  56. };
  57. };
  58. &spi1 {
  59. spidev@0 {
  60. compatible = "linux,spidev";
  61. spi-max-frequency = <10000000>;
  62. reg = <0>;
  63. };
  64. };
  65. &pinctrl {
  66. state_default: pinctrl0 {
  67. gpio {
  68. ralink,group = "jtag", "uartf", "led";
  69. ralink,function = "gpio";
  70. };
  71. };
  72. };
  73. &ethernet {
  74. mtd-mac-address = <&factory 0x4>;
  75. };
  76. &esw {
  77. mediatek,portmap = <0x17>;
  78. };
  79. &wmac {
  80. ralink,mtd-eeprom = <&factory 0>;
  81. ralink,led-polarity = <1>;
  82. };