r8a73a4-ape6evm.dts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for the APE6EVM board
  4. *
  5. * Copyright (C) 2013 Renesas Solutions Corp.
  6. */
  7. /dts-v1/;
  8. #include "r8a73a4.dtsi"
  9. #include <dt-bindings/gpio/gpio.h>
  10. #include <dt-bindings/input/input.h>
  11. / {
  12. model = "APE6EVM";
  13. compatible = "renesas,ape6evm", "renesas,r8a73a4";
  14. aliases {
  15. serial0 = &scifa0;
  16. };
  17. chosen {
  18. bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
  19. stdout-path = "serial0:115200n8";
  20. };
  21. memory@40000000 {
  22. device_type = "memory";
  23. reg = <0 0x40000000 0 0x40000000>;
  24. };
  25. memory@200000000 {
  26. device_type = "memory";
  27. reg = <2 0x00000000 0 0x40000000>;
  28. };
  29. vcc_mmc0: regulator-mmc0 {
  30. compatible = "regulator-fixed";
  31. regulator-name = "MMC0 Vcc";
  32. regulator-min-microvolt = <2800000>;
  33. regulator-max-microvolt = <2800000>;
  34. regulator-always-on;
  35. };
  36. vcc_sdhi0: regulator-sdhi0 {
  37. compatible = "regulator-fixed";
  38. regulator-name = "SDHI0 Vcc";
  39. regulator-min-microvolt = <3300000>;
  40. regulator-max-microvolt = <3300000>;
  41. gpio = <&pfc 76 GPIO_ACTIVE_HIGH>;
  42. enable-active-high;
  43. };
  44. /* Common 1.8V and 3.3V rails, used by several devices on APE6EVM */
  45. ape6evm_fixed_1v8: regulator-1v8 {
  46. compatible = "regulator-fixed";
  47. regulator-name = "1V8";
  48. regulator-min-microvolt = <1800000>;
  49. regulator-max-microvolt = <1800000>;
  50. regulator-always-on;
  51. };
  52. ape6evm_fixed_3v3: regulator-3v3 {
  53. compatible = "regulator-fixed";
  54. regulator-name = "3V3";
  55. regulator-min-microvolt = <3300000>;
  56. regulator-max-microvolt = <3300000>;
  57. regulator-always-on;
  58. };
  59. leds {
  60. compatible = "gpio-leds";
  61. led1 {
  62. gpios = <&pfc 28 GPIO_ACTIVE_HIGH>;
  63. label = "GNSS_EN";
  64. };
  65. led2 {
  66. gpios = <&pfc 126 GPIO_ACTIVE_HIGH>;
  67. label = "NFC_NRST";
  68. };
  69. led3 {
  70. gpios = <&pfc 132 GPIO_ACTIVE_HIGH>;
  71. label = "GNSS_NRST";
  72. };
  73. led4 {
  74. gpios = <&pfc 232 GPIO_ACTIVE_HIGH>;
  75. label = "BT_WAKEUP";
  76. };
  77. led5 {
  78. gpios = <&pfc 250 GPIO_ACTIVE_HIGH>;
  79. label = "STROBE";
  80. };
  81. led6 {
  82. gpios = <&pfc 288 GPIO_ACTIVE_HIGH>;
  83. label = "BBRESETOUT";
  84. };
  85. };
  86. keyboard {
  87. compatible = "gpio-keys";
  88. pinctrl-names = "default";
  89. pinctrl-0 = <&keyboard_pins>;
  90. zero-key {
  91. gpios = <&pfc 324 GPIO_ACTIVE_LOW>;
  92. linux,code = <KEY_0>;
  93. label = "S16";
  94. wakeup-source;
  95. };
  96. menu-key {
  97. gpios = <&pfc 325 GPIO_ACTIVE_LOW>;
  98. linux,code = <KEY_MENU>;
  99. label = "S17";
  100. };
  101. home-key {
  102. gpios = <&pfc 326 GPIO_ACTIVE_LOW>;
  103. linux,code = <KEY_HOME>;
  104. label = "S18";
  105. };
  106. back-key {
  107. gpios = <&pfc 327 GPIO_ACTIVE_LOW>;
  108. linux,code = <KEY_BACK>;
  109. label = "S19";
  110. };
  111. volup-key {
  112. gpios = <&pfc 328 GPIO_ACTIVE_LOW>;
  113. linux,code = <KEY_VOLUMEUP>;
  114. label = "S20";
  115. };
  116. voldown-key {
  117. gpios = <&pfc 329 GPIO_ACTIVE_LOW>;
  118. linux,code = <KEY_VOLUMEDOWN>;
  119. label = "S21";
  120. };
  121. };
  122. };
  123. &i2c5 {
  124. status = "okay";
  125. vdd_dvfs: regulator@1b {
  126. compatible = "maxim,max8973";
  127. reg = <0x1b>;
  128. regulator-min-microvolt = <935000>;
  129. regulator-max-microvolt = <1200000>;
  130. regulator-boot-on;
  131. regulator-always-on;
  132. };
  133. };
  134. &cpu0 {
  135. cpu0-supply = <&vdd_dvfs>;
  136. operating-points = <1950000 1115000>, /* kHz uV */
  137. <1462500 995000>;
  138. voltage-tolerance = <1>; /* 1% */
  139. };
  140. &bsc {
  141. flash@0 {
  142. compatible = "cfi-flash", "mtd-rom";
  143. reg = <0x0 0x08000000>;
  144. bank-width = <2>;
  145. partitions {
  146. compatible = "fixed-partitions";
  147. #address-cells = <1>;
  148. #size-cells = <1>;
  149. partition@0 {
  150. label = "uboot";
  151. reg = <0x00000000 0x00040000>;
  152. read-only;
  153. };
  154. partition@40000 {
  155. label = "uboot-env";
  156. reg = <0x00040000 0x00040000>;
  157. read-only;
  158. };
  159. partition@80000 {
  160. label = "flash";
  161. reg = <0x00080000 0x07f80000>;
  162. };
  163. };
  164. };
  165. ethernet@8000000 {
  166. compatible = "smsc,lan9220", "smsc,lan9115";
  167. reg = <0x08000000 0x1000>;
  168. interrupt-parent = <&irqc1>;
  169. interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
  170. phy-mode = "mii";
  171. reg-io-width = <4>;
  172. smsc,irq-active-high;
  173. smsc,irq-push-pull;
  174. reset-gpios = <&pfc 270 GPIO_ACTIVE_LOW>;
  175. vdd33a-supply = <&ape6evm_fixed_3v3>;
  176. vddvario-supply = <&ape6evm_fixed_1v8>;
  177. };
  178. };
  179. &cmt1 {
  180. status = "okay";
  181. };
  182. &pfc {
  183. scifa0_pins: scifa0 {
  184. groups = "scifa0_data";
  185. function = "scifa0";
  186. };
  187. mmc0_pins: mmc0 {
  188. groups = "mmc0_data8", "mmc0_ctrl";
  189. function = "mmc0";
  190. };
  191. sdhi0_pins: sd0 {
  192. groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd";
  193. function = "sdhi0";
  194. };
  195. sdhi1_pins: sd1 {
  196. groups = "sdhi1_data4", "sdhi1_ctrl";
  197. function = "sdhi1";
  198. };
  199. keyboard_pins: keyboard {
  200. pins = "PORT324", "PORT325", "PORT326", "PORT327", "PORT328",
  201. "PORT329";
  202. bias-pull-up;
  203. };
  204. };
  205. &mmcif0 {
  206. vmmc-supply = <&vcc_mmc0>;
  207. bus-width = <8>;
  208. non-removable;
  209. pinctrl-names = "default";
  210. pinctrl-0 = <&mmc0_pins>;
  211. status = "okay";
  212. };
  213. &scifa0 {
  214. pinctrl-0 = <&scifa0_pins>;
  215. pinctrl-names = "default";
  216. status = "okay";
  217. };
  218. &sdhi0 {
  219. vmmc-supply = <&vcc_sdhi0>;
  220. bus-width = <4>;
  221. disable-wp;
  222. pinctrl-names = "default";
  223. pinctrl-0 = <&sdhi0_pins>;
  224. status = "okay";
  225. };
  226. &sdhi1 {
  227. vmmc-supply = <&ape6evm_fixed_3v3>;
  228. bus-width = <4>;
  229. broken-cd;
  230. disable-wp;
  231. pinctrl-names = "default";
  232. pinctrl-0 = <&sdhi1_pins>;
  233. status = "okay";
  234. };