at91-kizboxmini-common.dtsi 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * at91-kizboxmini.dts - Device Tree file for Overkiz Kizbox mini board
  4. *
  5. * Copyright (C) 2014-2018 Overkiz SAS
  6. * Author: Antoine Aubert <[email protected]>
  7. * Gaël Portay <[email protected]>
  8. * Kévin Raymond <[email protected]>
  9. * Dorian Rocipon <[email protected]>
  10. */
  11. #include "at91sam9g25.dtsi"
  12. / {
  13. chosen {
  14. bootargs = "ubi.mtd=ubi";
  15. stdout-path = &dbgu;
  16. };
  17. memory@20000000 {
  18. reg = <0x20000000 0x8000000>;
  19. };
  20. clocks {
  21. main_xtal {
  22. clock-frequency = <12000000>;
  23. };
  24. slow_xtal {
  25. clock-frequency = <32768>;
  26. };
  27. adc_op_clk {
  28. status = "disabled";
  29. };
  30. };
  31. gpio_keys {
  32. compatible = "gpio-keys";
  33. key-prog {
  34. label = "PB_PROG";
  35. gpios = <&pioC 17 GPIO_ACTIVE_LOW>;
  36. linux,code = <0x102>;
  37. wakeup-source;
  38. };
  39. key-reset {
  40. label = "PB_RST";
  41. gpios = <&pioC 16 GPIO_ACTIVE_LOW>;
  42. linux,code = <0x100>;
  43. wakeup-source;
  44. };
  45. };
  46. leds: led-controller-1 {
  47. compatible = "pwm-leds";
  48. led_blue: led-1 {
  49. label = "pwm:blue:user";
  50. pwms = <&pwm0 2 10000000 0>;
  51. max-brightness = <255>;
  52. linux,default-trigger = "none";
  53. status = "disabled";
  54. };
  55. led_green: led-2 {
  56. label = "pwm:green:user";
  57. pwms = <&pwm0 0 10000000 0>;
  58. max-brightness = <255>;
  59. linux,default-trigger = "default-on";
  60. };
  61. led_red: led-3 {
  62. label = "pwm:red:user";
  63. pwms = <&pwm0 1 10000000 0>;
  64. max-brightness = <255>;
  65. linux,default-trigger = "default-on";
  66. };
  67. };
  68. };
  69. &usart0 {
  70. atmel,use-dma-rx;
  71. atmel,use-dma-tx;
  72. status = "okay";
  73. };
  74. &macb0 {
  75. phy-mode = "rmii";
  76. status = "okay";
  77. };
  78. &pwm0 {
  79. pinctrl-names = "default";
  80. pinctrl-0 = <&pinctrl_pwm0_pwm0_1
  81. &pinctrl_pwm0_pwm1_1
  82. &pinctrl_pwm0_pwm2_1>;
  83. status = "okay";
  84. };
  85. &dbgu {
  86. status = "okay";
  87. };
  88. &watchdog {
  89. status = "okay";
  90. };
  91. &adc0 {
  92. status = "disabled";
  93. };
  94. &rtc {
  95. status = "disabled";
  96. };
  97. &ebi {
  98. pinctrl-0 = <&pinctrl_ebi_addr_nand
  99. &pinctrl_ebi_data_0_7>;
  100. pinctrl-names = "default";
  101. status = "okay";
  102. };
  103. &nand_controller {
  104. status = "okay";
  105. pinctrl-0 = <&pinctrl_nand_oe_we
  106. &pinctrl_nand_cs
  107. &pinctrl_nand_rb>;
  108. pinctrl-names = "default";
  109. nand@3 {
  110. reg = <0x3 0x0 0x800000>;
  111. rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
  112. cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
  113. nand-bus-width = <8>;
  114. nand-ecc-mode = "hw";
  115. nand-ecc-strength = <4>;
  116. nand-ecc-step-size = <512>;
  117. nand-on-flash-bbt;
  118. label = "atmel_nand";
  119. partitions {
  120. compatible = "fixed-partitions";
  121. #address-cells = <1>;
  122. #size-cells = <1>;
  123. bootstrap@0 {
  124. label = "bootstrap";
  125. reg = <0x0 0x20000>;
  126. };
  127. ubi@20000 {
  128. label = "ubi";
  129. reg = <0x20000 0x7fe0000>;
  130. };
  131. };
  132. };
  133. };
  134. &usb0 {
  135. num-ports = <1>;
  136. status = "okay";
  137. };
  138. &usb1 {
  139. status = "okay";
  140. };