at91-kizbox2.dts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. /*
  2. * at91-kizbox2.dts - Device Tree file for Overkiz Kizbox 2 board
  3. *
  4. * Copyright (C) 2014 Gaël PORTAY <g.portay@overkiz.com>
  5. *
  6. * Licensed under GPLv2 or later.
  7. */
  8. /dts-v1/;
  9. #include "sama5d31.dtsi"
  10. #include <dt-bindings/pwm/pwm.h>
  11. / {
  12. model = "Overkiz Kizbox 2";
  13. compatible = "overkiz,kizbox2", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
  14. chosen {
  15. bootargs = "ubi.mtd=ubi";
  16. stdout-path = &dbgu;
  17. };
  18. memory {
  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. ahb {
  30. apb {
  31. i2c1: i2c@f0018000 {
  32. status = "okay";
  33. pmic: act8865@5b {
  34. compatible = "active-semi,act8865";
  35. reg = <0x5b>;
  36. status = "okay";
  37. regulators {
  38. vcc_1v8_reg: DCDC_REG1 {
  39. regulator-name = "VCC_1V8";
  40. regulator-min-microvolt = <1800000>;
  41. regulator-max-microvolt = <1800000>;
  42. regulator-always-on;
  43. };
  44. vcc_1v2_reg: DCDC_REG2 {
  45. regulator-name = "VCC_1V2";
  46. regulator-min-microvolt = <1200000>;
  47. regulator-max-microvolt = <1200000>;
  48. regulator-always-on;
  49. };
  50. vcc_3v3_reg: DCDC_REG3 {
  51. regulator-name = "VCC_3V3";
  52. regulator-min-microvolt = <3300000>;
  53. regulator-max-microvolt = <3300000>;
  54. regulator-always-on;
  55. };
  56. vddfuse_reg: LDO_REG1 {
  57. regulator-name = "FUSE_2V5";
  58. regulator-min-microvolt = <2500000>;
  59. regulator-max-microvolt = <2500000>;
  60. };
  61. vddana_reg: LDO_REG2 {
  62. regulator-name = "VDDANA";
  63. regulator-min-microvolt = <3300000>;
  64. regulator-max-microvolt = <3300000>;
  65. regulator-always-on;
  66. };
  67. vled_reg: LDO_REG3 {
  68. regulator-name = "VLED";
  69. regulator-min-microvolt = <3300000>;
  70. regulator-max-microvolt = <3300000>;
  71. regulator-always-on;
  72. };
  73. v3v8_rf_reg: LDO_REG4 {
  74. regulator-name = "V3V8_RF";
  75. regulator-min-microvolt = <3800000>;
  76. regulator-max-microvolt = <3800000>;
  77. regulator-always-on;
  78. };
  79. };
  80. };
  81. };
  82. usart0: serial@f001c000 {
  83. status = "okay";
  84. };
  85. usart1: serial@f0020000 {
  86. status = "okay";
  87. };
  88. pwm0: pwm@f002c000 {
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&pinctrl_pwm0_pwmh0_1
  91. &pinctrl_pwm0_pwmh1_1
  92. &pinctrl_pwm0_pwmh2_0>;
  93. status = "okay";
  94. };
  95. adc0: adc@f8018000 {
  96. atmel,adc-vref = <3333>;
  97. status = "okay";
  98. };
  99. usart2: serial@f8020000 {
  100. status = "okay";
  101. };
  102. macb1: ethernet@f802c000 {
  103. phy-mode = "rmii";
  104. status = "okay";
  105. };
  106. dbgu: serial@ffffee00 {
  107. status = "okay";
  108. };
  109. watchdog@fffffe40 {
  110. status = "okay";
  111. };
  112. };
  113. usb1: ohci@00600000 {
  114. status = "okay";
  115. };
  116. usb2: ehci@00700000 {
  117. status = "okay";
  118. };
  119. nand0: nand@60000000 {
  120. nand-bus-width = <8>;
  121. nand-ecc-mode = "hw";
  122. atmel,has-pmecc;
  123. atmel,pmecc-cap = <4>;
  124. atmel,pmecc-sector-size = <512>;
  125. nand-on-flash-bbt;
  126. status = "okay";
  127. bootstrap@0 {
  128. label = "bootstrap";
  129. reg = <0x0 0x20000>;
  130. };
  131. ubi@20000 {
  132. label = "ubi";
  133. reg = <0x20000 0x7fe0000>;
  134. };
  135. };
  136. };
  137. gpio_keys {
  138. compatible = "gpio-keys";
  139. #address-cells = <1>;
  140. #size-cells = <0>;
  141. prog {
  142. label = "PB_PROG";
  143. gpios = <&pioE 27 GPIO_ACTIVE_LOW>;
  144. linux,code = <0x102>;
  145. wakeup-source;
  146. };
  147. reset {
  148. label = "PB_RST";
  149. gpios = <&pioE 29 GPIO_ACTIVE_LOW>;
  150. linux,code = <0x100>;
  151. wakeup-source;
  152. };
  153. user {
  154. label = "PB_USER";
  155. gpios = <&pioE 31 GPIO_ACTIVE_HIGH>;
  156. linux,code = <0x101>;
  157. wakeup-source;
  158. };
  159. };
  160. pwm_leds {
  161. compatible = "pwm-leds";
  162. blue {
  163. label = "pwm:blue:user";
  164. pwms = <&pwm0 2 10000000 0>;
  165. max-brightness = <255>;
  166. linux,default-trigger = "default-on";
  167. };
  168. green {
  169. label = "pwm:green:user";
  170. pwms = <&pwm0 1 10000000 0>;
  171. max-brightness = <255>;
  172. linux,default-trigger = "default-on";
  173. };
  174. red {
  175. label = "pwm:red:user";
  176. pwms = <&pwm0 0 10000000 0>;
  177. max-brightness = <255>;
  178. linux,default-trigger = "default-on";
  179. };
  180. };
  181. };