r8a7740-armadillo800eva.dts 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. /*
  2. * Device Tree Source for the armadillo 800 eva board
  3. *
  4. * Copyright (C) 2012 Renesas Solutions Corp.
  5. *
  6. * This file is licensed under the terms of the GNU General Public License
  7. * version 2. This program is licensed "as is" without any warranty of any
  8. * kind, whether express or implied.
  9. */
  10. /dts-v1/;
  11. #include "r8a7740.dtsi"
  12. #include <dt-bindings/gpio/gpio.h>
  13. #include <dt-bindings/input/input.h>
  14. #include <dt-bindings/interrupt-controller/irq.h>
  15. #include <dt-bindings/pwm/pwm.h>
  16. / {
  17. model = "armadillo 800 eva";
  18. compatible = "renesas,armadillo800eva", "renesas,r8a7740";
  19. aliases {
  20. serial1 = &scifa1;
  21. };
  22. chosen {
  23. bootargs = "console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw";
  24. };
  25. memory {
  26. device_type = "memory";
  27. reg = <0x40000000 0x20000000>;
  28. };
  29. reg_3p3v: regulator@0 {
  30. compatible = "regulator-fixed";
  31. regulator-name = "fixed-3.3V";
  32. regulator-min-microvolt = <3300000>;
  33. regulator-max-microvolt = <3300000>;
  34. regulator-always-on;
  35. regulator-boot-on;
  36. };
  37. vcc_sdhi0: regulator@1 {
  38. compatible = "regulator-fixed";
  39. regulator-name = "SDHI0 Vcc";
  40. regulator-min-microvolt = <3300000>;
  41. regulator-max-microvolt = <3300000>;
  42. gpio = <&pfc 75 GPIO_ACTIVE_HIGH>;
  43. enable-active-high;
  44. };
  45. vccq_sdhi0: regulator@2 {
  46. compatible = "regulator-gpio";
  47. regulator-name = "SDHI0 VccQ";
  48. regulator-min-microvolt = <1800000>;
  49. regulator-max-microvolt = <3300000>;
  50. vin-supply = <&vcc_sdhi0>;
  51. enable-gpio = <&pfc 74 GPIO_ACTIVE_HIGH>;
  52. gpios = <&pfc 17 GPIO_ACTIVE_HIGH>;
  53. states = <3300000 0
  54. 1800000 1>;
  55. enable-active-high;
  56. };
  57. reg_5p0v: regulator@3 {
  58. compatible = "regulator-fixed";
  59. regulator-name = "fixed-5.0V";
  60. regulator-min-microvolt = <5000000>;
  61. regulator-max-microvolt = <5000000>;
  62. regulator-always-on;
  63. regulator-boot-on;
  64. };
  65. gpio-keys {
  66. compatible = "gpio-keys";
  67. power-key {
  68. gpios = <&pfc 99 GPIO_ACTIVE_LOW>;
  69. linux,code = <KEY_POWER>;
  70. label = "SW3";
  71. gpio-key,wakeup;
  72. };
  73. back-key {
  74. gpios = <&pfc 100 GPIO_ACTIVE_LOW>;
  75. linux,code = <KEY_BACK>;
  76. label = "SW4";
  77. };
  78. menu-key {
  79. gpios = <&pfc 97 GPIO_ACTIVE_LOW>;
  80. linux,code = <KEY_MENU>;
  81. label = "SW5";
  82. };
  83. home-key {
  84. gpios = <&pfc 98 GPIO_ACTIVE_LOW>;
  85. linux,code = <KEY_HOME>;
  86. label = "SW6";
  87. };
  88. };
  89. leds {
  90. compatible = "gpio-leds";
  91. led3 {
  92. gpios = <&pfc 102 GPIO_ACTIVE_HIGH>;
  93. label = "LED3";
  94. };
  95. led4 {
  96. gpios = <&pfc 111 GPIO_ACTIVE_HIGH>;
  97. label = "LED4";
  98. };
  99. led5 {
  100. gpios = <&pfc 110 GPIO_ACTIVE_HIGH>;
  101. label = "LED5";
  102. };
  103. led6 {
  104. gpios = <&pfc 177 GPIO_ACTIVE_HIGH>;
  105. label = "LED6";
  106. };
  107. };
  108. i2c2: i2c@2 {
  109. #address-cells = <1>;
  110. #size-cells = <0>;
  111. compatible = "i2c-gpio";
  112. gpios = <&pfc 208 GPIO_ACTIVE_HIGH /* sda */
  113. &pfc 91 GPIO_ACTIVE_HIGH /* scl */
  114. >;
  115. i2c-gpio,delay-us = <5>;
  116. };
  117. backlight {
  118. compatible = "pwm-backlight";
  119. pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>;
  120. brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
  121. default-brightness-level = <9>;
  122. pinctrl-0 = <&backlight_pins>;
  123. pinctrl-names = "default";
  124. power-supply = <&reg_5p0v>;
  125. enable-gpios = <&pfc 61 GPIO_ACTIVE_HIGH>;
  126. };
  127. sound {
  128. compatible = "simple-audio-card";
  129. simple-audio-card,format = "i2s";
  130. simple-audio-card,cpu {
  131. sound-dai = <&sh_fsi2 0>;
  132. bitclock-inversion;
  133. };
  134. simple-audio-card,codec {
  135. sound-dai = <&wm8978>;
  136. bitclock-master;
  137. frame-master;
  138. system-clock-frequency = <12288000>;
  139. };
  140. };
  141. };
  142. &ether {
  143. pinctrl-0 = <&ether_pins>;
  144. pinctrl-names = "default";
  145. phy-handle = <&phy0>;
  146. status = "ok";
  147. phy0: ethernet-phy@0 {
  148. reg = <0>;
  149. };
  150. };
  151. &extal1_clk {
  152. clock-frequency = <25000000>;
  153. };
  154. &extal2_clk {
  155. clock-frequency = <48000000>;
  156. };
  157. &fsibck_clk {
  158. clock-frequency = <12288000>;
  159. };
  160. &cpg_clocks {
  161. renesas,mode = <0x05>; /* MD_CK0 | MD_CK2 */
  162. };
  163. &cmt1 {
  164. status = "ok";
  165. };
  166. &i2c0 {
  167. status = "okay";
  168. touchscreen@55 {
  169. compatible = "sitronix,st1232";
  170. reg = <0x55>;
  171. interrupt-parent = <&irqpin1>;
  172. interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
  173. pinctrl-0 = <&st1232_pins>;
  174. pinctrl-names = "default";
  175. gpios = <&pfc 166 GPIO_ACTIVE_LOW>;
  176. };
  177. wm8978: wm8978@1a {
  178. #sound-dai-cells = <0>;
  179. compatible = "wlf,wm8978";
  180. reg = <0x1a>;
  181. };
  182. };
  183. &i2c2 {
  184. status = "okay";
  185. rtc@30 {
  186. compatible = "sii,s35390a";
  187. reg = <0x30>;
  188. };
  189. };
  190. &pfc {
  191. ether_pins: ether {
  192. renesas,groups = "gether_mii", "gether_int";
  193. renesas,function = "gether";
  194. };
  195. scifa1_pins: serial1 {
  196. renesas,groups = "scifa1_data";
  197. renesas,function = "scifa1";
  198. };
  199. st1232_pins: touchscreen {
  200. renesas,groups = "intc_irq10";
  201. renesas,function = "intc";
  202. };
  203. backlight_pins: backlight {
  204. renesas,groups = "tpu0_to2_1";
  205. renesas,function = "tpu0";
  206. };
  207. mmc0_pins: mmc0 {
  208. renesas,groups = "mmc0_data8_1", "mmc0_ctrl_1";
  209. renesas,function = "mmc0";
  210. };
  211. sdhi0_pins: sd0 {
  212. renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_wp";
  213. renesas,function = "sdhi0";
  214. };
  215. fsia_pins: sounda {
  216. renesas,groups = "fsia_sclk_in", "fsia_mclk_out",
  217. "fsia_data_in_1", "fsia_data_out_0";
  218. renesas,function = "fsia";
  219. };
  220. };
  221. &tpu {
  222. status = "okay";
  223. };
  224. &mmcif0 {
  225. pinctrl-0 = <&mmc0_pins>;
  226. pinctrl-names = "default";
  227. vmmc-supply = <&reg_3p3v>;
  228. bus-width = <8>;
  229. non-removable;
  230. status = "okay";
  231. };
  232. &scifa1 {
  233. pinctrl-0 = <&scifa1_pins>;
  234. pinctrl-names = "default";
  235. status = "okay";
  236. };
  237. &sdhi0 {
  238. pinctrl-0 = <&sdhi0_pins>;
  239. pinctrl-names = "default";
  240. vmmc-supply = <&vcc_sdhi0>;
  241. vqmmc-supply = <&vccq_sdhi0>;
  242. bus-width = <4>;
  243. cd-gpios = <&pfc 167 GPIO_ACTIVE_LOW>;
  244. status = "okay";
  245. };
  246. &sh_fsi2 {
  247. pinctrl-0 = <&fsia_pins>;
  248. pinctrl-names = "default";
  249. status = "okay";
  250. };