MZK-750DHP.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /dts-v1/;
  2. /include/ "mt7620a.dtsi"
  3. / {
  4. compatible = "ralink,mt7620a-soc";
  5. model = "Planex MZK-750DHP";
  6. palmbus@10000000 {
  7. gpio1: gpio@638 {
  8. status = "okay";
  9. };
  10. spi@b00 {
  11. status = "okay";
  12. m25p80@0 {
  13. #address-cells = <1>;
  14. #size-cells = <1>;
  15. compatible = "en25q64";
  16. reg = <0 0>;
  17. linux,modalias = "m25p80", "mx25l6405d";
  18. spi-max-frequency = <10000000>;
  19. partition@0 {
  20. label = "u-boot";
  21. reg = <0x0 0x30000>;
  22. read-only;
  23. };
  24. partition@30000 {
  25. label = "u-boot-env";
  26. reg = <0x30000 0x10000>;
  27. read-only;
  28. };
  29. factory: partition@40000 {
  30. label = "factory";
  31. reg = <0x40000 0x10000>;
  32. read-only;
  33. };
  34. partition@50000 {
  35. label = "firmware";
  36. reg = <0x50000 0x7b0000>;
  37. };
  38. };
  39. };
  40. };
  41. pinctrl {
  42. state_default: pinctrl0 {
  43. gpio {
  44. ralink,group = "i2c", "spi refclk", "rgmii1";
  45. ralink,function = "gpio";
  46. };
  47. };
  48. };
  49. ethernet@10100000 {
  50. pinctrl-names = "default";
  51. pinctrl-0 = <&ephy_pins>;
  52. mtd-mac-address = <&factory 0x4>;
  53. ralink,port-map = "llllw";
  54. };
  55. gsw@10110000 {
  56. ralink,port4 = "ephy";
  57. };
  58. wmac@10180000 {
  59. ralink,mtd-eeprom = <&factory 0>;
  60. };
  61. pcie@10140000 {
  62. status = "okay";
  63. };
  64. gpio-leds {
  65. compatible = "gpio-leds";
  66. wps {
  67. label = "mzk750:green:wps";
  68. gpios = <&gpio1 11 1>;
  69. };
  70. power {
  71. label = "mzk750:green:power";
  72. gpios = <&gpio1 15 1>;
  73. };
  74. };
  75. gpio-keys-polled {
  76. compatible = "gpio-keys-polled";
  77. #address-cells = <1>;
  78. #size-cells = <0>;
  79. poll-interval = <20>;
  80. s1 {
  81. label = "reset";
  82. gpios = <&gpio0 1 1>;
  83. linux,code = <0x100>;
  84. };
  85. s2 {
  86. label = "wps";
  87. gpios = <&gpio0 2 1>;
  88. linux,code = <0x211>;
  89. };
  90. };
  91. };