AIBR100.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /dts-v1/;
  2. /include/ "mt7620a.dtsi"
  3. / {
  4. compatible = "AIBR100", "ralink,mt7620a-soc";
  5. model = "Aigale Ai-BR100";
  6. palmbus@10000000 {
  7. gpio2: gpio@660 {
  8. status = "okay";
  9. };
  10. gpio3: gpio@688 {
  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 0x20000>;
  25. read-only;
  26. };
  27. partition@20000 {
  28. label = "u-boot-env";
  29. reg = <0x20000 0x10000>;
  30. read-only;
  31. };
  32. factory: partition@30000 {
  33. label = "factory";
  34. reg = <0x30000 0x10000>;
  35. read-only;
  36. };
  37. partition@40000 {
  38. label = "firmware";
  39. reg = <0x40000 0x7c0000>;
  40. };
  41. };
  42. };
  43. };
  44. ehci@101c0000 {
  45. status = "okay";
  46. };
  47. ohci@101c1000 {
  48. status = "okay";
  49. };
  50. pinctrl {
  51. state_default: pinctrl0 {
  52. gpio {
  53. ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";
  54. ralink,function = "gpio";
  55. };
  56. };
  57. };
  58. ethernet@10100000 {
  59. pinctrl-names = "default";
  60. pinctrl-0 = <&ephy_pins>;
  61. mtd-mac-address = <&factory 0x4>;
  62. ralink,port-map = "llllw";
  63. };
  64. wmac@10180000 {
  65. ralink,mtd-eeprom = <&factory 0>;
  66. };
  67. gpio-leds {
  68. compatible = "gpio-leds";
  69. wan {
  70. label = "aigale:blue:wan";
  71. gpios = <&gpio2 4 1>;
  72. };
  73. wlan {
  74. label = "aigale:blue:wlan";
  75. gpios = <&gpio3 0 1>;
  76. };
  77. };
  78. gpio-keys-polled {
  79. compatible = "gpio-keys-polled";
  80. #address-cells = <1>;
  81. #size-cells = <0>;
  82. poll-interval = <20>;
  83. reset {
  84. label = "reset";
  85. gpios = <&gpio0 12 1>;
  86. linux,code = <0x198>;
  87. };
  88. };
  89. };