ZBT-WA05.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /dts-v1/;
  2. /include/ "mt7620n.dtsi"
  3. / {
  4. compatible = "zbtlink,zbt-wa05", "ralink,mt7620n-soc";
  5. model = "Zbtlink ZBT-WA05";
  6. chosen {
  7. bootargs = "console=ttyS0,115200";
  8. };
  9. palmbus@10000000 {
  10. gpio1: gpio@638 {
  11. status = "okay";
  12. };
  13. gpio2: gpio@660 {
  14. status = "okay";
  15. };
  16. gpio3: gpio@688 {
  17. status = "okay";
  18. };
  19. spi@b00 {
  20. status = "okay";
  21. en25q64@0 {
  22. #address-cells = <1>;
  23. #size-cells = <1>;
  24. compatible = "w25q64";
  25. reg = <0 0>;
  26. linux,modalias = "m25p80";
  27. spi-max-frequency = <10000000>;
  28. partition@0 {
  29. label = "u-boot";
  30. reg = <0x0 0x30000>;
  31. read-only;
  32. };
  33. partition@30000 {
  34. label = "u-boot-env";
  35. reg = <0x30000 0x10000>;
  36. read-only;
  37. };
  38. factory: partition@40000 {
  39. label = "factory";
  40. reg = <0x40000 0x10000>;
  41. read-only;
  42. };
  43. partition@50000 {
  44. label = "firmware";
  45. reg = <0x50000 0x760000>;
  46. };
  47. };
  48. };
  49. };
  50. ehci@101c0000 {
  51. status = "okay";
  52. };
  53. ohci@101c1000 {
  54. status = "okay";
  55. };
  56. ethernet@10100000 {
  57. mtd-mac-address = <&factory 0x4>;
  58. ralink,port-map = "wllll";
  59. };
  60. wmac@10180000 {
  61. ralink,mtd-eeprom = <&factory 0>;
  62. };
  63. pinctrl {
  64. state_default: pinctrl0 {
  65. default {
  66. ralink,group = "i2c", "spi refclk", "wled";
  67. ralink,function = "gpio";
  68. };
  69. };
  70. };
  71. gpio-leds {
  72. compatible = "gpio-leds";
  73. power {
  74. label = "zbtlink:blue:power";
  75. gpios = <&gpio1 14 1>;
  76. };
  77. usb {
  78. label = "zbtlink:blue:usb";
  79. gpios = <&gpio1 15 0>;
  80. };
  81. air {
  82. label = "zbtlink:blue:air";
  83. gpios = <&gpio3 0 1>;
  84. };
  85. };
  86. gpio-keys-polled {
  87. compatible = "gpio-keys-polled";
  88. #address-cells = <1>;
  89. #size-cells = <0>;
  90. poll-interval = <20>;
  91. reset {
  92. label = "reset";
  93. gpios = <&gpio0 1 1>;
  94. linux,code = <0x198>;
  95. };
  96. };
  97. };