sh73a0-kzm9g-reference.dts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. /*
  2. * Device Tree Source for the KZM-A9-GT board
  3. *
  4. * Copyright (C) 2012 Horms Solutions Ltd.
  5. *
  6. * Based on sh73a0-kzm9g.dts
  7. * Copyright (C) 2012 Renesas Solutions Corp.
  8. *
  9. * This file is licensed under the terms of the GNU General Public License
  10. * version 2. This program is licensed "as is" without any warranty of any
  11. * kind, whether express or implied.
  12. */
  13. /dts-v1/;
  14. /include/ "sh73a0.dtsi"
  15. #include <dt-bindings/gpio/gpio.h>
  16. / {
  17. model = "KZM-A9-GT";
  18. compatible = "renesas,kzm9g-reference", "renesas,sh73a0";
  19. cpus {
  20. cpu@0 {
  21. cpu0-supply = <&vdd_dvfs>;
  22. operating-points = <
  23. /* kHz uV */
  24. 1196000 1315000
  25. 598000 1175000
  26. 398667 1065000
  27. >;
  28. voltage-tolerance = <1>; /* 1% */
  29. };
  30. };
  31. chosen {
  32. bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel earlyprintk=sh-sci.4,115200 rw";
  33. };
  34. memory {
  35. device_type = "memory";
  36. reg = <0x41000000 0x1e800000>;
  37. };
  38. reg_1p8v: regulator@0 {
  39. compatible = "regulator-fixed";
  40. regulator-name = "fixed-1.8V";
  41. regulator-min-microvolt = <1800000>;
  42. regulator-max-microvolt = <1800000>;
  43. regulator-always-on;
  44. regulator-boot-on;
  45. };
  46. reg_3p3v: regulator@1 {
  47. compatible = "regulator-fixed";
  48. regulator-name = "fixed-3.3V";
  49. regulator-min-microvolt = <3300000>;
  50. regulator-max-microvolt = <3300000>;
  51. regulator-always-on;
  52. regulator-boot-on;
  53. };
  54. vmmc_sdhi0: regulator@2 {
  55. compatible = "regulator-fixed";
  56. regulator-name = "SDHI0 Vcc";
  57. regulator-min-microvolt = <3300000>;
  58. regulator-max-microvolt = <3300000>;
  59. gpio = <&pfc 15 GPIO_ACTIVE_HIGH>;
  60. enable-active-high;
  61. };
  62. vmmc_sdhi2: regulator@3 {
  63. compatible = "regulator-fixed";
  64. regulator-name = "SDHI2 Vcc";
  65. regulator-min-microvolt = <3300000>;
  66. regulator-max-microvolt = <3300000>;
  67. gpio = <&pfc 14 GPIO_ACTIVE_HIGH>;
  68. enable-active-high;
  69. };
  70. lan9220@10000000 {
  71. compatible = "smsc,lan9220", "smsc,lan9115";
  72. reg = <0x10000000 0x100>;
  73. phy-mode = "mii";
  74. interrupt-parent = <&irqpin0>;
  75. interrupts = <3 0>; /* active low */
  76. reg-io-width = <4>;
  77. smsc,irq-push-pull;
  78. smsc,save-mac-address;
  79. vddvario-supply = <&reg_1p8v>;
  80. vdd33a-supply = <&reg_3p3v>;
  81. };
  82. leds {
  83. compatible = "gpio-leds";
  84. led1 {
  85. gpios = <&pfc 20 GPIO_ACTIVE_LOW>;
  86. };
  87. led2 {
  88. gpios = <&pfc 21 GPIO_ACTIVE_LOW>;
  89. };
  90. led3 {
  91. gpios = <&pfc 22 GPIO_ACTIVE_LOW>;
  92. };
  93. led4 {
  94. gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
  95. };
  96. };
  97. };
  98. &i2c0 {
  99. as3711@40 {
  100. compatible = "ams,as3711";
  101. reg = <0x40>;
  102. regulators {
  103. vdd_dvfs: sd1 {
  104. regulator-name = "1.315V CPU";
  105. regulator-min-microvolt = <1050000>;
  106. regulator-max-microvolt = <1350000>;
  107. regulator-always-on;
  108. regulator-boot-on;
  109. };
  110. sd2 {
  111. regulator-name = "1.8V";
  112. regulator-min-microvolt = <1800000>;
  113. regulator-max-microvolt = <1800000>;
  114. regulator-always-on;
  115. regulator-boot-on;
  116. };
  117. sd4 {
  118. regulator-name = "1.215V";
  119. regulator-min-microvolt = <1215000>;
  120. regulator-max-microvolt = <1235000>;
  121. regulator-always-on;
  122. regulator-boot-on;
  123. };
  124. ldo2 {
  125. regulator-name = "2.8V CPU";
  126. regulator-min-microvolt = <2800000>;
  127. regulator-max-microvolt = <2800000>;
  128. regulator-always-on;
  129. regulator-boot-on;
  130. };
  131. ldo3 {
  132. regulator-name = "3.0V CPU";
  133. regulator-min-microvolt = <3000000>;
  134. regulator-max-microvolt = <3000000>;
  135. regulator-always-on;
  136. regulator-boot-on;
  137. };
  138. ldo4 {
  139. regulator-name = "2.8V";
  140. regulator-min-microvolt = <2800000>;
  141. regulator-max-microvolt = <2800000>;
  142. regulator-always-on;
  143. regulator-boot-on;
  144. };
  145. ldo5 {
  146. regulator-name = "2.8V #2";
  147. regulator-min-microvolt = <2800000>;
  148. regulator-max-microvolt = <2800000>;
  149. regulator-always-on;
  150. regulator-boot-on;
  151. };
  152. ldo7 {
  153. regulator-name = "1.15V CPU";
  154. regulator-min-microvolt = <1150000>;
  155. regulator-max-microvolt = <1150000>;
  156. regulator-always-on;
  157. regulator-boot-on;
  158. };
  159. ldo8 {
  160. regulator-name = "1.15V CPU #2";
  161. regulator-min-microvolt = <1150000>;
  162. regulator-max-microvolt = <1150000>;
  163. regulator-always-on;
  164. regulator-boot-on;
  165. };
  166. };
  167. };
  168. };
  169. &i2c3 {
  170. pinctrl-0 = <&i2c3_pins>;
  171. pinctrl-names = "default";
  172. };
  173. &mmcif {
  174. pinctrl-0 = <&mmcif_pins>;
  175. pinctrl-names = "default";
  176. bus-width = <8>;
  177. vmmc-supply = <&reg_1p8v>;
  178. status = "okay";
  179. };
  180. &pfc {
  181. pinctrl-0 = <&scifa4_pins>;
  182. pinctrl-names = "default";
  183. i2c3_pins: i2c3 {
  184. renesas,groups = "i2c3_1";
  185. renesas,function = "i2c3";
  186. };
  187. mmcif_pins: mmcif {
  188. mux {
  189. renesas,groups = "mmc0_data8_0", "mmc0_ctrl_0";
  190. renesas,function = "mmc0";
  191. };
  192. cfg {
  193. renesas,groups = "mmc0_data8_0";
  194. renesas,pins = "PORT279";
  195. bias-pull-up;
  196. };
  197. };
  198. scifa4_pins: scifa4 {
  199. renesas,groups = "scifa4_data", "scifa4_ctrl";
  200. renesas,function = "scifa4";
  201. };
  202. sdhi0_pins: sdhi0 {
  203. renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp";
  204. renesas,function = "sdhi0";
  205. };
  206. sdhi2_pins: sdhi2 {
  207. renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
  208. renesas,function = "sdhi2";
  209. };
  210. };
  211. &sdhi0 {
  212. pinctrl-0 = <&sdhi0_pins>;
  213. pinctrl-names = "default";
  214. vmmc-supply = <&vmmc_sdhi0>;
  215. bus-width = <4>;
  216. status = "okay";
  217. };
  218. &sdhi2 {
  219. pinctrl-0 = <&sdhi2_pins>;
  220. pinctrl-names = "default";
  221. vmmc-supply = <&vmmc_sdhi2>;
  222. bus-width = <4>;
  223. broken-cd;
  224. status = "okay";
  225. };