EASY98000-base.dtsi 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #include <dt-bindings/interrupt-controller/irq.h>
  2. #include <dt-bindings/gpio/gpio.h>
  3. / {
  4. compatible = "lantiq,falcon-easy98000", "lantiq,falcon";
  5. memory@0 {
  6. device_type = "memory";
  7. reg = <0x0 0x4000000>;
  8. };
  9. easy98000-leds {
  10. compatible = "gpio-leds";
  11. pinctrl-names = "default";
  12. pinctrl-0 = <&bootled_pins>;
  13. LED_0 {
  14. label = "easy98000:green:gpon";
  15. gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
  16. default-state = "keep";
  17. };
  18. LED_1 {
  19. label = "easy98000:red:gpon";
  20. gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
  21. default-state = "keep";
  22. };
  23. LED_2 {
  24. label = "easy98000:green:gpon_tx";
  25. gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
  26. default-state = "keep";
  27. };
  28. LED_3 {
  29. label = "easy98000:green:gpon_rx";
  30. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  31. default-state = "keep";
  32. };
  33. LED_4 {
  34. label = "easy98000:green:voice";
  35. gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
  36. default-state = "keep";
  37. };
  38. LED_5 {
  39. label = "easy98000:green:status";
  40. gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
  41. default-state = "keep";
  42. };
  43. };
  44. };
  45. &ebu_cs1 {
  46. eth0: ethernet@0000000 {
  47. compatible = "davicom,dm9000";
  48. device_type = "network";
  49. reg = <0x0000003 0x1>, <0x0000001 0x1>;
  50. reg-names = "addr", "data";
  51. interrupt-parent = <&gpio1>;
  52. #interrupt-cells = <2>;
  53. interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
  54. local-mac-address = [ 00 00 00 00 00 00 ];
  55. };
  56. cpld@3c00000 {
  57. compatible = "lantiq,easy98000_addon";
  58. reg = <0x3c00000 0x2>;
  59. };
  60. cpld@3c0000c {
  61. compatible = "lantiq,easy98000_cpld_led";
  62. reg = <0x3c0000c 0x2>, <0x3c00012 0x2>;
  63. };
  64. };
  65. /* // enable this for second uart:
  66. &serial1 {
  67. status = "okay";
  68. };*/
  69. &spi {
  70. status = "okay";
  71. eeprom@1 {
  72. compatible = "atmel,at25", "atmel,at25160n";
  73. reg = <2>;
  74. spi-max-frequency = <1000000>;
  75. spi-cpha;
  76. spi-cpol;
  77. pagesize = <32>;
  78. size = <2048>;
  79. address-width = <16>;
  80. };
  81. };
  82. &i2c {
  83. status = "okay";
  84. clock-frequency = <100000>;
  85. /* eeprom-emulation by OMU */
  86. eeprom@50 {
  87. compatible = "at,24c02";
  88. reg = <0x50>;
  89. };
  90. eeprom@51 {
  91. compatible = "at,24c02";
  92. reg = <0x51>;
  93. };
  94. };