ALL5002.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /dts-v1/;
  2. #include "rt3352.dtsi"
  3. / {
  4. compatible = "ALL5002", "ralink,rt3352-soc";
  5. model = "Allnet ALL5002";
  6. i2c-gpio {
  7. compatible = "i2c-gpio";
  8. gpios = <&gpio0 1 0 &gpio0 2 0>;
  9. i2c-gpio,delay-us = <10>;
  10. pcf0: iexp@38 {
  11. #gpio-cells = <2>;
  12. compatible = "inxp,pcf8574a";
  13. reg = <0x38>;
  14. gpio-controller;
  15. };
  16. hwmon@4b {
  17. compatible = "national,lm92";
  18. reg = <0x4b>;
  19. };
  20. };
  21. gpio-leds {
  22. compatible = "gpio-leds";
  23. ld1 {
  24. label = "all5002:green:ld1";
  25. gpios = <&pcf0 0 1>;
  26. };
  27. ld2 {
  28. label = "all5002:green:ld2";
  29. gpios = <&pcf0 1 1>;
  30. };
  31. };
  32. };
  33. &gpio0 {
  34. status = "okay";
  35. };
  36. &spi0 {
  37. status = "okay";
  38. m25p80@0 {
  39. #address-cells = <1>;
  40. #size-cells = <1>;
  41. compatible = "jedec,spi-nor";
  42. reg = <0>;
  43. linux,modalias = "m25p80", "mx25l25635e";
  44. spi-max-frequency = <10000000>;
  45. partition@0 {
  46. label = "u-boot";
  47. reg = <0x0 0x30000>;
  48. read-only;
  49. };
  50. partition@30000 {
  51. label = "u-boot-env";
  52. reg = <0x30000 0x10000>;
  53. read-only;
  54. };
  55. factory: partition@40000 {
  56. label = "factory";
  57. reg = <0x40000 0x10000>;
  58. read-only;
  59. };
  60. partition@50000 {
  61. label = "firmware";
  62. reg = <0x50000 0x1fb0000>;
  63. };
  64. };
  65. };
  66. &pinctrl {
  67. state_default: pinctrl0 {
  68. gpio {
  69. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  70. ralink,function = "gpio";
  71. };
  72. };
  73. };
  74. &ethernet {
  75. mtd-mac-address = <&factory 0x28>;
  76. };
  77. &esw {
  78. mediatek,portmap = <0x3f>;
  79. };
  80. &wmac {
  81. ralink,mtd-eeprom = <&factory 0>;
  82. };
  83. &ehci {
  84. status = "okay";
  85. };
  86. &ohci {
  87. status = "okay";
  88. };