zynq-zturn.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2015 Andrea Merello <adnrea.merello@gmail.com>
  4. * Copyright (C) 2017 Alexander Graf <agraf@suse.de>
  5. *
  6. * Based on zynq-zed.dts which is:
  7. * Copyright (C) 2011 - 2014 Xilinx
  8. * Copyright (C) 2012 National Instruments Corp.
  9. *
  10. */
  11. /dts-v1/;
  12. /include/ "zynq-7000.dtsi"
  13. / {
  14. model = "Zynq Z-Turn MYIR Board";
  15. compatible = "myir,zynq-zturn", "xlnx,zynq-7000";
  16. aliases {
  17. ethernet0 = &gem0;
  18. serial0 = &uart1;
  19. serial1 = &uart0;
  20. mmc0 = &sdhci0;
  21. };
  22. memory@0 {
  23. device_type = "memory";
  24. reg = <0x0 0x40000000>;
  25. };
  26. chosen {
  27. stdout-path = "serial0:115200n8";
  28. };
  29. gpio-leds {
  30. compatible = "gpio-leds";
  31. usr-led1 {
  32. label = "usr-led1";
  33. gpios = <&gpio0 0x0 0x1>;
  34. default-state = "off";
  35. };
  36. usr-led2 {
  37. label = "usr-led2";
  38. gpios = <&gpio0 0x9 0x1>;
  39. default-state = "off";
  40. };
  41. };
  42. gpio-keys {
  43. compatible = "gpio-keys";
  44. autorepeat;
  45. K1 {
  46. label = "K1";
  47. gpios = <&gpio0 0x32 0x1>;
  48. linux,code = <0x66>;
  49. gpio-key,wakeup;
  50. autorepeat;
  51. };
  52. };
  53. };
  54. &clkc {
  55. ps-clk-frequency = <33333333>;
  56. };
  57. &qspi {
  58. u-boot,dm-pre-reloc;
  59. status = "okay";
  60. };
  61. &gem0 {
  62. status = "okay";
  63. phy-mode = "rgmii-id";
  64. phy-handle = <&ethernet_phy>;
  65. ethernet_phy: ethernet-phy@0 {
  66. reg = <0x0>;
  67. };
  68. };
  69. &sdhci0 {
  70. u-boot,dm-pre-reloc;
  71. status = "okay";
  72. };
  73. &uart0 {
  74. u-boot,dm-pre-reloc;
  75. status = "okay";
  76. };
  77. &uart1 {
  78. u-boot,dm-pre-reloc;
  79. status = "okay";
  80. };
  81. &usb0 {
  82. status = "okay";
  83. dr_mode = "host";
  84. };
  85. &can0 {
  86. status = "okay";
  87. };
  88. &i2c0 {
  89. status = "okay";
  90. clock-frequency = <400000>;
  91. stlm75@49 {
  92. status = "okay";
  93. compatible = "lm75";
  94. reg = <0x49>;
  95. };
  96. accelerometer@53 {
  97. compatible = "adi,adxl345", "adxl345", "adi,adxl34x", "adxl34x";
  98. reg = <0x53>;
  99. interrupt-parent = <&intc>;
  100. interrupts = <0x0 0x1e 0x4>;
  101. };
  102. };