MZK-DP150N.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. / {
  4. compatible = "MZK-DP150N", "ralink,rt5350-soc";
  5. model = "Planex MZK-DP150N";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. power {
  9. label = "mzk-dp150n:green:power";
  10. gpios = <&gpio0 9 1>;
  11. };
  12. };
  13. gpio-keys-polled {
  14. compatible = "gpio-keys-polled";
  15. #address-cells = <1>;
  16. #size-cells = <0>;
  17. poll-interval = <20>;
  18. reset {
  19. label = "reset";
  20. gpios = <&gpio0 10 1>;
  21. linux,code = <0x198>;
  22. };
  23. };
  24. };
  25. &gpio1 {
  26. status = "okay";
  27. };
  28. &spi0 {
  29. status = "okay";
  30. m25p80@0 {
  31. #address-cells = <1>;
  32. #size-cells = <1>;
  33. compatible = "jedec,spi-nor";
  34. reg = <0>;
  35. linux,modalias = "m25p80", "s25fl064k";
  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. };