at91-kizbox2-common.dtsi 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * at91-kizbox2_common.dtsi - Device Tree Include file for
  4. * Overkiz Kizbox 2 family SoC
  5. *
  6. * Copyright (C) 2014-2018 Overkiz SAS
  7. *
  8. * Authors: Antoine Aubert <[email protected]>
  9. * Gaël Portay <[email protected]>
  10. * Kévin Raymond <[email protected]>
  11. */
  12. #include "sama5d31.dtsi"
  13. / {
  14. chosen {
  15. bootargs = "ubi.mtd=ubi";
  16. stdout-path = &dbgu;
  17. };
  18. memory@20000000 {
  19. reg = <0x20000000 0x10000000>;
  20. };
  21. clocks {
  22. slow_xtal {
  23. clock-frequency = <32768>;
  24. };
  25. main_xtal {
  26. clock-frequency = <12000000>;
  27. };
  28. };
  29. gpio-keys {
  30. compatible = "gpio-keys";
  31. button-prog {
  32. label = "PB_PROG";
  33. gpios = <&pioE 27 GPIO_ACTIVE_LOW>;
  34. linux,code = <0x102>;
  35. wakeup-source;
  36. };
  37. button-reset {
  38. label = "PB_RST";
  39. gpios = <&pioE 29 GPIO_ACTIVE_LOW>;
  40. linux,code = <0x100>;
  41. wakeup-source;
  42. };
  43. button-user {
  44. label = "PB_USER";
  45. gpios = <&pioE 31 GPIO_ACTIVE_HIGH>;
  46. linux,code = <0x101>;
  47. wakeup-source;
  48. };
  49. };
  50. led-controller {
  51. compatible = "pwm-leds";
  52. led-1 {
  53. label = "pwm:blue:user";
  54. pwms = <&pwm0 2 10000000 0>;
  55. max-brightness = <255>;
  56. linux,default-trigger = "none";
  57. };
  58. led-2 {
  59. label = "pwm:green:user";
  60. pwms = <&pwm0 1 10000000 0>;
  61. max-brightness = <255>;
  62. linux,default-trigger = "default-on";
  63. };
  64. led-3 {
  65. label = "pwm:red:user";
  66. pwms = <&pwm0 0 10000000 0>;
  67. max-brightness = <255>;
  68. linux,default-trigger = "default-on";
  69. };
  70. };
  71. };
  72. &i2c1 {
  73. status = "okay";
  74. pmic: act8865@5b {
  75. compatible = "active-semi,act8865";
  76. reg = <0x5b>;
  77. status = "okay";
  78. regulators {
  79. vcc_1v8_reg: DCDC_REG1 {
  80. regulator-name = "VCC_1V8";
  81. regulator-min-microvolt = <1800000>;
  82. regulator-max-microvolt = <1800000>;
  83. regulator-always-on;
  84. };
  85. vcc_1v2_reg: DCDC_REG2 {
  86. regulator-name = "VCC_1V2";
  87. regulator-min-microvolt = <1200000>;
  88. regulator-max-microvolt = <1200000>;
  89. regulator-always-on;
  90. };
  91. vcc_3v3_reg: DCDC_REG3 {
  92. regulator-name = "VCC_3V3";
  93. regulator-min-microvolt = <3300000>;
  94. regulator-max-microvolt = <3300000>;
  95. regulator-always-on;
  96. };
  97. vddfuse_reg: LDO_REG1 {
  98. regulator-name = "FUSE_2V5";
  99. regulator-min-microvolt = <2500000>;
  100. regulator-max-microvolt = <2500000>;
  101. };
  102. vddana_reg: LDO_REG2 {
  103. regulator-name = "VDDANA";
  104. regulator-min-microvolt = <3300000>;
  105. regulator-max-microvolt = <3300000>;
  106. regulator-always-on;
  107. };
  108. vled_reg: LDO_REG3 {
  109. regulator-name = "VLED";
  110. regulator-min-microvolt = <3300000>;
  111. regulator-max-microvolt = <3300000>;
  112. regulator-always-on;
  113. };
  114. v3v8_rf_reg: LDO_REG4 {
  115. regulator-name = "V3V8_RF";
  116. regulator-min-microvolt = <3800000>;
  117. regulator-max-microvolt = <3800000>;
  118. regulator-always-on;
  119. };
  120. };
  121. };
  122. };
  123. &usart0 {
  124. atmel,use-dma-rx;
  125. atmel,use-dma-tx;
  126. status = "disabled";
  127. };
  128. &usart1 {
  129. atmel,use-dma-rx;
  130. atmel,use-dma-tx;
  131. status = "disabled";
  132. };
  133. &usart2 {
  134. atmel,use-dma-rx;
  135. atmel,use-dma-tx;
  136. status = "disabled";
  137. };
  138. &pwm0 {
  139. pinctrl-names = "default";
  140. pinctrl-0 = <&pinctrl_pwm0_pwmh0_1
  141. &pinctrl_pwm0_pwmh1_1
  142. &pinctrl_pwm0_pwmh2_0>;
  143. status = "okay";
  144. };
  145. &adc0 {
  146. atmel,adc-vref = <3333>;
  147. status = "okay";
  148. };
  149. &macb1 {
  150. phy-mode = "rmii";
  151. status = "okay";
  152. };
  153. &dbgu {
  154. status = "okay";
  155. };
  156. &watchdog {
  157. status = "okay";
  158. };
  159. &ebi {
  160. pinctrl-0 = <&pinctrl_ebi_nand_addr>;
  161. pinctrl-names = "default";
  162. status = "okay";
  163. };
  164. &nand_controller {
  165. status = "okay";
  166. nand@3 {
  167. reg = <0x3 0x0 0x2>;
  168. atmel,rb = <0>;
  169. nand-bus-width = <8>;
  170. nand-ecc-mode = "hw";
  171. nand-ecc-strength = <4>;
  172. nand-ecc-step-size = <512>;
  173. nand-on-flash-bbt;
  174. label = "atmel_nand";
  175. partitions {
  176. compatible = "fixed-partitions";
  177. #address-cells = <1>;
  178. #size-cells = <1>;
  179. bootstrap@0 {
  180. label = "bootstrap";
  181. reg = <0x0 0x20000>;
  182. };
  183. ubi@20000 {
  184. label = "ubi";
  185. reg = <0x20000 0x7fe0000>;
  186. };
  187. };
  188. };
  189. };
  190. &usb1 {
  191. status = "okay";
  192. };
  193. &usb2 {
  194. status = "okay";
  195. };
  196. /* WMBUS (inverted with IO in the latest schematic) */
  197. &pinctrl_usart0 {
  198. atmel,pins =
  199. <AT91_PIOD 17 AT91_PERIPH_A AT91_PINCTRL_NONE
  200. AT91_PIOD 18 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
  201. AT91_PIOE 2 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>;
  202. };
  203. /* RTS */
  204. &pinctrl_usart1 {
  205. atmel,pins =
  206. <AT91_PIOB 28 AT91_PERIPH_A AT91_PINCTRL_NONE
  207. AT91_PIOB 29 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
  208. AT91_PIOE 7 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>;
  209. };
  210. /* IO (inverted with WMBUS in the latest schematic) */
  211. &pinctrl_usart2 {
  212. atmel,pins =
  213. <AT91_PIOE 25 AT91_PERIPH_B AT91_PINCTRL_NONE
  214. AT91_PIOE 26 AT91_PERIPH_B AT91_PINCTRL_PULL_UP
  215. AT91_PIOE 8 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>;
  216. };