r8a7740-armadillo800eva-reference.dts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /*
  2. * Reference 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/pwm/pwm.h>
  14. / {
  15. model = "armadillo 800 eva reference";
  16. compatible = "renesas,armadillo800eva-reference", "renesas,r8a7740";
  17. chosen {
  18. bootargs = "console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw";
  19. };
  20. memory {
  21. device_type = "memory";
  22. reg = <0x40000000 0x20000000>;
  23. };
  24. reg_3p3v: regulator@0 {
  25. compatible = "regulator-fixed";
  26. regulator-name = "fixed-3.3V";
  27. regulator-min-microvolt = <3300000>;
  28. regulator-max-microvolt = <3300000>;
  29. regulator-always-on;
  30. regulator-boot-on;
  31. };
  32. vcc_sdhi0: regulator@1 {
  33. compatible = "regulator-fixed";
  34. regulator-name = "SDHI0 Vcc";
  35. regulator-min-microvolt = <3300000>;
  36. regulator-max-microvolt = <3300000>;
  37. gpio = <&pfc 75 GPIO_ACTIVE_HIGH>;
  38. enable-active-high;
  39. };
  40. vccq_sdhi0: regulator@2 {
  41. compatible = "regulator-gpio";
  42. regulator-name = "SDHI0 VccQ";
  43. regulator-min-microvolt = <1800000>;
  44. regulator-max-microvolt = <3300000>;
  45. vin-supply = <&vcc_sdhi0>;
  46. enable-gpio = <&pfc 74 GPIO_ACTIVE_HIGH>;
  47. gpios = <&pfc 17 GPIO_ACTIVE_HIGH>;
  48. states = <3300000 0
  49. 1800000 1>;
  50. enable-active-high;
  51. };
  52. leds {
  53. compatible = "gpio-leds";
  54. led1 {
  55. gpios = <&pfc 102 GPIO_ACTIVE_HIGH>;
  56. };
  57. led2 {
  58. gpios = <&pfc 111 GPIO_ACTIVE_HIGH>;
  59. };
  60. led3 {
  61. gpios = <&pfc 110 GPIO_ACTIVE_HIGH>;
  62. };
  63. led4 {
  64. gpios = <&pfc 177 GPIO_ACTIVE_HIGH>;
  65. };
  66. };
  67. backlight {
  68. compatible = "pwm-backlight";
  69. pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>;
  70. brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
  71. default-brightness-level = <9>;
  72. pinctrl-0 = <&backlight_pins>;
  73. pinctrl-names = "default";
  74. };
  75. };
  76. &i2c0 {
  77. status = "okay";
  78. touchscreen: st1232@55 {
  79. compatible = "sitronix,st1232";
  80. reg = <0x55>;
  81. interrupt-parent = <&irqpin1>;
  82. interrupts = <2 0>; /* IRQ10: hwirq 2 on irqpin1 */
  83. pinctrl-0 = <&st1232_pins>;
  84. pinctrl-names = "default";
  85. gpios = <&pfc 166 GPIO_ACTIVE_LOW>;
  86. };
  87. };
  88. &pfc {
  89. pinctrl-0 = <&scifa1_pins>;
  90. pinctrl-names = "default";
  91. scifa1_pins: scifa1 {
  92. renesas,groups = "scifa1_data";
  93. renesas,function = "scifa1";
  94. };
  95. st1232_pins: st1232 {
  96. renesas,groups = "intc_irq10";
  97. renesas,function = "intc";
  98. };
  99. backlight_pins: backlight {
  100. renesas,groups = "tpu0_to2_1";
  101. renesas,function = "tpu0";
  102. };
  103. mmc0_pins: mmc0 {
  104. renesas,groups = "mmc0_data8_1", "mmc0_ctrl_1";
  105. renesas,function = "mmc0";
  106. };
  107. sdhi0_pins: sdhi0 {
  108. renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_wp";
  109. renesas,function = "sdhi0";
  110. };
  111. };
  112. &tpu {
  113. status = "okay";
  114. };
  115. &mmcif0 {
  116. pinctrl-0 = <&mmc0_pins>;
  117. pinctrl-names = "default";
  118. vmmc-supply = <&reg_3p3v>;
  119. bus-width = <8>;
  120. non-removable;
  121. status = "okay";
  122. };
  123. &sdhi0 {
  124. pinctrl-0 = <&sdhi0_pins>;
  125. pinctrl-names = "default";
  126. vmmc-supply = <&vcc_sdhi0>;
  127. vqmmc-supply = <&vccq_sdhi0>;
  128. bus-width = <4>;
  129. cd-gpios = <&pfc 167 GPIO_ACTIVE_LOW>;
  130. status = "okay";
  131. };