ALL5002.dts 1.6 KB

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