ZTE-Q7.dts 1.7 KB

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