kizbox.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. /*
  2. * kizbox.dts - Device Tree file for Overkiz Kizbox board
  3. *
  4. * Copyright (C) 2012 Boris BREZILLON <linux-arm@overkiz.com>
  5. *
  6. * Licensed under GPLv2.
  7. */
  8. /dts-v1/;
  9. #include "at91sam9g20.dtsi"
  10. / {
  11. model = "Overkiz kizbox";
  12. compatible = "overkiz,kizbox", "atmel,at91sam9g20", "atmel,at91sam9";
  13. chosen {
  14. bootargs = "panic=5 ubi.mtd=1 rootfstype=ubifs root=ubi0:root";
  15. };
  16. memory {
  17. reg = <0x20000000 0x2000000>;
  18. };
  19. clocks {
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. ranges;
  23. main_clock: clock@0 {
  24. compatible = "atmel,osc", "fixed-clock";
  25. clock-frequency = <18432000>;
  26. };
  27. main_xtal {
  28. clock-frequency = <18432000>;
  29. };
  30. };
  31. ahb {
  32. apb {
  33. dbgu: serial@fffff200 {
  34. status = "okay";
  35. };
  36. usart0: serial@fffb0000 {
  37. status = "okay";
  38. };
  39. usart1: serial@fffb4000 {
  40. status = "okay";
  41. };
  42. macb0: ethernet@fffc4000 {
  43. phy-mode = "mii";
  44. pinctrl-0 = <&pinctrl_macb_rmii
  45. &pinctrl_macb_rmii_mii_alt>;
  46. status = "okay";
  47. };
  48. watchdog@fffffd40 {
  49. timeout-sec = <15>;
  50. atmel,max-heartbeat-sec = <16>;
  51. atmel,min-heartbeat-sec = <0>;
  52. status = "okay";
  53. };
  54. };
  55. nand0: nand@40000000 {
  56. nand-bus-width = <8>;
  57. nand-ecc-mode = "soft";
  58. status = "okay";
  59. bootloaderkernel@0 {
  60. label = "bootloader-kernel";
  61. reg = <0x0 0xc0000>;
  62. };
  63. ubi@c0000 {
  64. label = "ubi";
  65. reg = <0xc0000 0x7f40000>;
  66. };
  67. };
  68. usb0: ohci@00500000 {
  69. num-ports = <1>;
  70. status = "okay";
  71. };
  72. };
  73. i2c@0 {
  74. status = "okay";
  75. pcf8563@51 {
  76. /* nxp pcf8563 rtc */
  77. compatible = "nxp,pcf8563";
  78. reg = <0x51>;
  79. };
  80. };
  81. leds {
  82. compatible = "gpio-leds";
  83. led1g {
  84. label = "led1:green";
  85. gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
  86. linux,default-trigger = "none";
  87. };
  88. led1r {
  89. label = "led1:red";
  90. gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
  91. linux,default-trigger = "none";
  92. };
  93. led2g {
  94. label = "led2:green";
  95. gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
  96. linux,default-trigger = "none";
  97. default-state = "on";
  98. };
  99. led2r {
  100. label = "led2:red";
  101. gpios = <&pioB 3 GPIO_ACTIVE_LOW>;
  102. linux,default-trigger = "none";
  103. };
  104. };
  105. gpio_keys {
  106. compatible = "gpio-keys";
  107. #address-cells = <1>;
  108. #size-cells = <0>;
  109. reset {
  110. label = "reset";
  111. gpios = <&pioB 30 GPIO_ACTIVE_LOW>;
  112. linux,code = <0x100>;
  113. gpio-key,wakeup;
  114. };
  115. mode {
  116. label = "mode";
  117. gpios = <&pioB 31 GPIO_ACTIVE_LOW>;
  118. linux,code = <0x101>;
  119. gpio-key,wakeup;
  120. };
  121. };
  122. };