RAK633.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include "mt7628an.dtsi"
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. / {
  7. compatible = "rakwireless,rak633", "mediatek,mt7628an-soc";
  8. model = "Rakwireless RAK633";
  9. memory@0 {
  10. device_type = "memory";
  11. reg = <0x0 0x4000000>;
  12. };
  13. leds {
  14. compatible = "gpio-leds";
  15. wifi {
  16. label = "rak633:blue:wifi";
  17. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  18. };
  19. };
  20. };
  21. &pinctrl {
  22. state_default: pinctrl0 {
  23. wled_an {
  24. ralink,group = "wled_an";
  25. ralink,function = "gpio";
  26. };
  27. };
  28. };
  29. &spi0 {
  30. status = "okay";
  31. flash@0 {
  32. compatible = "jedec,spi-nor";
  33. reg = <0>;
  34. spi-max-frequency = <10000000>;
  35. partitions {
  36. compatible = "fixed-partitions";
  37. #address-cells = <1>;
  38. #size-cells = <1>;
  39. partition@0 {
  40. label = "u-boot";
  41. reg = <0x0 0x30000>;
  42. read-only;
  43. };
  44. partition@30000 {
  45. label = "u-boot-env";
  46. reg = <0x30000 0x10000>;
  47. read-only;
  48. };
  49. factory: partition@40000 {
  50. label = "factory";
  51. reg = <0x40000 0x10000>;
  52. read-only;
  53. };
  54. partition@50000 {
  55. compatible = "denx,uimage";
  56. label = "firmware";
  57. reg = <0x50000 0x7b0000>;
  58. };
  59. };
  60. };
  61. };
  62. &i2c {
  63. status = "okay";
  64. };
  65. &i2s {
  66. status = "okay";
  67. };
  68. &uart1 {
  69. status = "okay";
  70. };
  71. &uart2 {
  72. status = "okay";
  73. };
  74. &gdma {
  75. status = "okay";
  76. };
  77. &ethernet {
  78. mtd-mac-address = <&factory 0x28>;
  79. };
  80. &wmac {
  81. status = "okay";
  82. ralink,mtd-eeprom = <&factory 0x4>;
  83. };