at91-kizbox.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /*
  2. * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board
  3. *
  4. * Copyright (C) 2012-2014 Boris BREZILLON <b.brezillon@overkiz.com>
  5. * 2014-2015 Gaël PORTAY <g.portay@overkiz.com>
  6. *
  7. * Licensed under GPLv2 or later.
  8. */
  9. /dts-v1/;
  10. #include "at91sam9g20.dtsi"
  11. #include <dt-bindings/pwm/pwm.h>
  12. / {
  13. model = "Overkiz Kizbox";
  14. compatible = "overkiz,kizbox", "atmel,at91sam9g20", "atmel,at91sam9";
  15. chosen {
  16. bootargs = "ubi.mtd=ubi";
  17. stdout-path = &dbgu;
  18. };
  19. memory {
  20. reg = <0x20000000 0x2000000>;
  21. };
  22. clocks {
  23. main_xtal {
  24. clock-frequency = <18432000>;
  25. };
  26. };
  27. ahb {
  28. apb {
  29. macb0: ethernet@fffc4000 {
  30. phy-mode = "mii";
  31. pinctrl-0 = <&pinctrl_macb_rmii
  32. &pinctrl_macb_rmii_mii_alt>;
  33. status = "okay";
  34. };
  35. usart3: serial@fffd0000 {
  36. status = "okay";
  37. };
  38. dbgu: serial@fffff200 {
  39. status = "okay";
  40. };
  41. watchdog@fffffd40 {
  42. timeout-sec = <15>;
  43. atmel,max-heartbeat-sec = <16>;
  44. atmel,min-heartbeat-sec = <0>;
  45. status = "okay";
  46. };
  47. };
  48. usb0: ohci@500000 {
  49. num-ports = <1>;
  50. status = "okay";
  51. };
  52. nand0: nand@40000000 {
  53. nand-bus-width = <8>;
  54. nand-ecc-mode = "soft";
  55. status = "okay";
  56. bootstrap@0 {
  57. label = "bootstrap";
  58. reg = <0x0 0x20000>;
  59. };
  60. ubi@20000 {
  61. label = "ubi";
  62. reg = <0x20000 0x7fe0000>;
  63. };
  64. };
  65. };
  66. gpio_keys {
  67. compatible = "gpio-keys";
  68. #address-cells = <1>;
  69. #size-cells = <0>;
  70. reset {
  71. label = "PB_RST";
  72. gpios = <&pioB 30 GPIO_ACTIVE_HIGH>;
  73. linux,code = <0x100>;
  74. wakeup-source;
  75. };
  76. user {
  77. label = "PB_USER";
  78. gpios = <&pioB 31 GPIO_ACTIVE_HIGH>;
  79. linux,code = <0x101>;
  80. wakeup-source;
  81. };
  82. };
  83. i2c-gpio-0 {
  84. status = "okay";
  85. rtc: pcf8563@51 {
  86. compatible = "nxp,pcf8563";
  87. reg = <0x51>;
  88. };
  89. };
  90. pwm_leds {
  91. compatible = "pwm-leds";
  92. network_green {
  93. label = "pwm:green:network";
  94. pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>;
  95. max-brightness = <255>;
  96. linux,default-trigger = "default-on";
  97. };
  98. network_red {
  99. label = "pwm:red:network";
  100. pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>;
  101. max-brightness = <255>;
  102. linux,default-trigger = "default-on";
  103. };
  104. user_green {
  105. label = "pwm:green:user";
  106. pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>;
  107. max-brightness = <255>;
  108. linux,default-trigger = "default-on";
  109. };
  110. user_red {
  111. label = "pwm:red:user";
  112. pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>;
  113. max-brightness = <255>;
  114. linux,default-trigger = "default-on";
  115. };
  116. };
  117. tcb_pwm: pwm {
  118. compatible = "atmel,tcb-pwm";
  119. #pwm-cells = <3>;
  120. tc-block = <1>;
  121. pinctrl-names = "default";
  122. pinctrl-0 = <&pinctrl_tcb1_tioa0
  123. &pinctrl_tcb1_tioa1
  124. &pinctrl_tcb1_tioa2
  125. &pinctrl_tcb1_tiob0>;
  126. };
  127. };