ALL5003.dts 1.7 KB

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