at91-kizbox.dts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board
  4. *
  5. * Copyright (C) 2012-2014 Boris BREZILLON <[email protected]>
  6. * 2014-2015 Gaël PORTAY <[email protected]>
  7. */
  8. /dts-v1/;
  9. #include "at91sam9g20.dtsi"
  10. #include <dt-bindings/pwm/pwm.h>
  11. / {
  12. model = "Overkiz Kizbox";
  13. compatible = "overkiz,kizbox", "atmel,at91sam9g20", "atmel,at91sam9";
  14. chosen {
  15. bootargs = "ubi.mtd=ubi";
  16. stdout-path = &dbgu;
  17. };
  18. memory@20000000 {
  19. reg = <0x20000000 0x2000000>;
  20. };
  21. clocks {
  22. main_xtal {
  23. clock-frequency = <18432000>;
  24. };
  25. };
  26. gpio-keys {
  27. compatible = "gpio-keys";
  28. button-reset {
  29. label = "PB_RST";
  30. gpios = <&pioB 30 GPIO_ACTIVE_HIGH>;
  31. linux,code = <0x100>;
  32. wakeup-source;
  33. };
  34. button-user {
  35. label = "PB_USER";
  36. gpios = <&pioB 31 GPIO_ACTIVE_HIGH>;
  37. linux,code = <0x101>;
  38. wakeup-source;
  39. };
  40. };
  41. led-controller {
  42. compatible = "pwm-leds";
  43. led-1 {
  44. label = "pwm:green:network";
  45. pwms = <&tcb1_pwm1 0 10000000 PWM_POLARITY_INVERTED>;
  46. max-brightness = <255>;
  47. linux,default-trigger = "default-on";
  48. };
  49. led-2 {
  50. label = "pwm:red:network";
  51. pwms = <&tcb1_pwm2 0 10000000 PWM_POLARITY_INVERTED>;
  52. max-brightness = <255>;
  53. linux,default-trigger = "default-on";
  54. };
  55. led-3 {
  56. label = "pwm:green:user";
  57. pwms = <&tcb1_pwm0 0 10000000 PWM_POLARITY_INVERTED>;
  58. max-brightness = <255>;
  59. linux,default-trigger = "default-on";
  60. };
  61. led-4 {
  62. label = "pwm:red:user";
  63. pwms = <&tcb1_pwm0 1 10000000 PWM_POLARITY_INVERTED>;
  64. max-brightness = <255>;
  65. linux,default-trigger = "default-on";
  66. };
  67. };
  68. };
  69. &tcb0 {
  70. timer@0 {
  71. compatible = "atmel,tcb-timer";
  72. reg = <0>, <1>;
  73. };
  74. timer@2 {
  75. compatible = "atmel,tcb-timer";
  76. reg = <2>;
  77. };
  78. };
  79. &tcb1 {
  80. tcb1_pwm0: pwm@0 {
  81. compatible = "atmel,tcb-pwm";
  82. reg = <0>;
  83. #pwm-cells = <3>;
  84. pinctrl-names = "default";
  85. pinctrl-0 = <&pinctrl_tcb1_tioa0 &pinctrl_tcb1_tiob0>;
  86. };
  87. tcb1_pwm1: pwm@1 {
  88. compatible = "atmel,tcb-pwm";
  89. reg = <1>;
  90. #pwm-cells = <3>;
  91. pinctrl-names = "default";
  92. pinctrl-0 = <&pinctrl_tcb1_tioa1>;
  93. };
  94. tcb1_pwm2: pwm@2 {
  95. compatible = "atmel,tcb-pwm";
  96. reg = <2>;
  97. #pwm-cells = <3>;
  98. pinctrl-names = "default";
  99. pinctrl-0 = <&pinctrl_tcb1_tioa2>;
  100. };
  101. };
  102. &ebi {
  103. status = "okay";
  104. };
  105. &nand_controller {
  106. status = "okay";
  107. pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
  108. pinctrl-names = "default";
  109. nand@3 {
  110. reg = <0x3 0x0 0x800000>;
  111. rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
  112. cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
  113. nand-bus-width = <8>;
  114. nand-ecc-mode = "soft";
  115. nand-on-flash-bbt;
  116. label = "atmel_nand";
  117. partitions {
  118. compatible = "fixed-partitions";
  119. #address-cells = <1>;
  120. #size-cells = <1>;
  121. bootstrap@0 {
  122. label = "bootstrap";
  123. reg = <0x0 0x20000>;
  124. };
  125. ubi@20000 {
  126. label = "ubi";
  127. reg = <0x20000 0x7fe0000>;
  128. };
  129. };
  130. };
  131. };
  132. &macb0 {
  133. phy-mode = "mii";
  134. pinctrl-0 = <&pinctrl_macb_rmii
  135. &pinctrl_macb_rmii_mii_alt>;
  136. status = "okay";
  137. };
  138. &usart3 {
  139. status = "okay";
  140. };
  141. &dbgu {
  142. status = "okay";
  143. };
  144. &watchdog {
  145. timeout-sec = <15>;
  146. atmel,max-heartbeat-sec = <16>;
  147. atmel,min-heartbeat-sec = <0>;
  148. status = "okay";
  149. };
  150. &usb0 {
  151. num-ports = <1>;
  152. status = "okay";
  153. };
  154. &i2c_gpio0 {
  155. status = "okay";
  156. rtc: pcf8563@51 {
  157. compatible = "nxp,pcf8563";
  158. reg = <0x51>;
  159. };
  160. };