r8a7791-koelsch.dts 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  1. /*
  2. * Device Tree Source for the Koelsch board
  3. *
  4. * Copyright (C) 2013 Renesas Electronics Corporation
  5. * Copyright (C) 2013-2014 Renesas Solutions Corp.
  6. * Copyright (C) 2014 Cogent Embedded, Inc.
  7. *
  8. * This file is licensed under the terms of the GNU General Public License
  9. * version 2. This program is licensed "as is" without any warranty of any
  10. * kind, whether express or implied.
  11. */
  12. /dts-v1/;
  13. #include "r8a7791.dtsi"
  14. #include <dt-bindings/gpio/gpio.h>
  15. #include <dt-bindings/input/input.h>
  16. / {
  17. model = "Koelsch";
  18. compatible = "renesas,koelsch", "renesas,r8a7791";
  19. aliases {
  20. serial6 = &scif0;
  21. serial7 = &scif1;
  22. };
  23. chosen {
  24. bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp";
  25. };
  26. memory@40000000 {
  27. device_type = "memory";
  28. reg = <0 0x40000000 0 0x40000000>;
  29. };
  30. memory@200000000 {
  31. device_type = "memory";
  32. reg = <2 0x00000000 0 0x40000000>;
  33. };
  34. lbsc {
  35. #address-cells = <1>;
  36. #size-cells = <1>;
  37. };
  38. gpio-keys {
  39. compatible = "gpio-keys";
  40. key-1 {
  41. gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
  42. linux,code = <KEY_1>;
  43. label = "SW2-1";
  44. gpio-key,wakeup;
  45. debounce-interval = <20>;
  46. };
  47. key-2 {
  48. gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
  49. linux,code = <KEY_2>;
  50. label = "SW2-2";
  51. gpio-key,wakeup;
  52. debounce-interval = <20>;
  53. };
  54. key-3 {
  55. gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
  56. linux,code = <KEY_3>;
  57. label = "SW2-3";
  58. gpio-key,wakeup;
  59. debounce-interval = <20>;
  60. };
  61. key-4 {
  62. gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
  63. linux,code = <KEY_4>;
  64. label = "SW2-4";
  65. gpio-key,wakeup;
  66. debounce-interval = <20>;
  67. };
  68. key-a {
  69. gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
  70. linux,code = <KEY_A>;
  71. label = "SW30";
  72. gpio-key,wakeup;
  73. debounce-interval = <20>;
  74. };
  75. key-b {
  76. gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
  77. linux,code = <KEY_B>;
  78. label = "SW31";
  79. gpio-key,wakeup;
  80. debounce-interval = <20>;
  81. };
  82. key-c {
  83. gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
  84. linux,code = <KEY_C>;
  85. label = "SW32";
  86. gpio-key,wakeup;
  87. debounce-interval = <20>;
  88. };
  89. key-d {
  90. gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
  91. linux,code = <KEY_D>;
  92. label = "SW33";
  93. gpio-key,wakeup;
  94. debounce-interval = <20>;
  95. };
  96. key-e {
  97. gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
  98. linux,code = <KEY_E>;
  99. label = "SW34";
  100. gpio-key,wakeup;
  101. debounce-interval = <20>;
  102. };
  103. key-f {
  104. gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
  105. linux,code = <KEY_F>;
  106. label = "SW35";
  107. gpio-key,wakeup;
  108. debounce-interval = <20>;
  109. };
  110. key-g {
  111. gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
  112. linux,code = <KEY_G>;
  113. label = "SW36";
  114. gpio-key,wakeup;
  115. debounce-interval = <20>;
  116. };
  117. };
  118. leds {
  119. compatible = "gpio-leds";
  120. led6 {
  121. gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
  122. };
  123. led7 {
  124. gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
  125. };
  126. led8 {
  127. gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
  128. };
  129. };
  130. vcc_sdhi0: regulator@0 {
  131. compatible = "regulator-fixed";
  132. regulator-name = "SDHI0 Vcc";
  133. regulator-min-microvolt = <3300000>;
  134. regulator-max-microvolt = <3300000>;
  135. gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
  136. enable-active-high;
  137. };
  138. vccq_sdhi0: regulator@1 {
  139. compatible = "regulator-gpio";
  140. regulator-name = "SDHI0 VccQ";
  141. regulator-min-microvolt = <1800000>;
  142. regulator-max-microvolt = <3300000>;
  143. gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
  144. gpios-states = <1>;
  145. states = <3300000 1
  146. 1800000 0>;
  147. };
  148. vcc_sdhi1: regulator@2 {
  149. compatible = "regulator-fixed";
  150. regulator-name = "SDHI1 Vcc";
  151. regulator-min-microvolt = <3300000>;
  152. regulator-max-microvolt = <3300000>;
  153. gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
  154. enable-active-high;
  155. };
  156. vccq_sdhi1: regulator@3 {
  157. compatible = "regulator-gpio";
  158. regulator-name = "SDHI1 VccQ";
  159. regulator-min-microvolt = <1800000>;
  160. regulator-max-microvolt = <3300000>;
  161. gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
  162. gpios-states = <1>;
  163. states = <3300000 1
  164. 1800000 0>;
  165. };
  166. vcc_sdhi2: regulator@4 {
  167. compatible = "regulator-fixed";
  168. regulator-name = "SDHI2 Vcc";
  169. regulator-min-microvolt = <3300000>;
  170. regulator-max-microvolt = <3300000>;
  171. gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
  172. enable-active-high;
  173. };
  174. vccq_sdhi2: regulator@5 {
  175. compatible = "regulator-gpio";
  176. regulator-name = "SDHI2 VccQ";
  177. regulator-min-microvolt = <1800000>;
  178. regulator-max-microvolt = <3300000>;
  179. gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
  180. gpios-states = <1>;
  181. states = <3300000 1
  182. 1800000 0>;
  183. };
  184. };
  185. &extal_clk {
  186. clock-frequency = <20000000>;
  187. };
  188. &pfc {
  189. pinctrl-0 = <&du_pins>;
  190. pinctrl-names = "default";
  191. i2c2_pins: i2c2 {
  192. renesas,groups = "i2c2";
  193. renesas,function = "i2c2";
  194. };
  195. du_pins: du {
  196. renesas,groups = "du_rgb666", "du_sync", "du_clk_out_0";
  197. renesas,function = "du";
  198. };
  199. scif0_pins: serial0 {
  200. renesas,groups = "scif0_data_d";
  201. renesas,function = "scif0";
  202. };
  203. scif1_pins: serial1 {
  204. renesas,groups = "scif1_data_d";
  205. renesas,function = "scif1";
  206. };
  207. ether_pins: ether {
  208. renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
  209. renesas,function = "eth";
  210. };
  211. phy1_pins: phy1 {
  212. renesas,groups = "intc_irq0";
  213. renesas,function = "intc";
  214. };
  215. sdhi0_pins: sd0 {
  216. renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
  217. renesas,function = "sdhi0";
  218. };
  219. sdhi1_pins: sd1 {
  220. renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
  221. renesas,function = "sdhi1";
  222. };
  223. sdhi2_pins: sd2 {
  224. renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
  225. renesas,function = "sdhi2";
  226. };
  227. qspi_pins: spi0 {
  228. renesas,groups = "qspi_ctrl", "qspi_data4";
  229. renesas,function = "qspi";
  230. };
  231. msiof0_pins: spi1 {
  232. renesas,groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
  233. "msiof0_tx";
  234. renesas,function = "msiof0";
  235. };
  236. usb0_pins: usb0 {
  237. renesas,groups = "usb0";
  238. renesas,function = "usb0";
  239. };
  240. usb1_pins: usb1 {
  241. renesas,groups = "usb1";
  242. renesas,function = "usb1";
  243. };
  244. vin1_pins: vin1 {
  245. renesas,groups = "vin1_data8", "vin1_clk";
  246. renesas,function = "vin1";
  247. };
  248. };
  249. &ether {
  250. pinctrl-0 = <&ether_pins &phy1_pins>;
  251. pinctrl-names = "default";
  252. phy-handle = <&phy1>;
  253. renesas,ether-link-active-low;
  254. status = "ok";
  255. phy1: ethernet-phy@1 {
  256. reg = <1>;
  257. interrupt-parent = <&irqc0>;
  258. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  259. micrel,led-mode = <1>;
  260. };
  261. };
  262. &cmt0 {
  263. status = "ok";
  264. };
  265. &sata0 {
  266. status = "okay";
  267. };
  268. &scif0 {
  269. pinctrl-0 = <&scif0_pins>;
  270. pinctrl-names = "default";
  271. status = "okay";
  272. };
  273. &scif1 {
  274. pinctrl-0 = <&scif1_pins>;
  275. pinctrl-names = "default";
  276. status = "okay";
  277. };
  278. &sdhi0 {
  279. pinctrl-0 = <&sdhi0_pins>;
  280. pinctrl-names = "default";
  281. vmmc-supply = <&vcc_sdhi0>;
  282. vqmmc-supply = <&vccq_sdhi0>;
  283. cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
  284. wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
  285. status = "okay";
  286. };
  287. &sdhi1 {
  288. pinctrl-0 = <&sdhi1_pins>;
  289. pinctrl-names = "default";
  290. vmmc-supply = <&vcc_sdhi1>;
  291. vqmmc-supply = <&vccq_sdhi1>;
  292. cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
  293. wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
  294. status = "okay";
  295. };
  296. &sdhi2 {
  297. pinctrl-0 = <&sdhi2_pins>;
  298. pinctrl-names = "default";
  299. vmmc-supply = <&vcc_sdhi2>;
  300. vqmmc-supply = <&vccq_sdhi2>;
  301. cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
  302. status = "okay";
  303. };
  304. &qspi {
  305. pinctrl-0 = <&qspi_pins>;
  306. pinctrl-names = "default";
  307. status = "okay";
  308. flash: flash@0 {
  309. #address-cells = <1>;
  310. #size-cells = <1>;
  311. compatible = "spansion,s25fl512s";
  312. reg = <0>;
  313. spi-max-frequency = <30000000>;
  314. spi-tx-bus-width = <4>;
  315. spi-rx-bus-width = <4>;
  316. m25p,fast-read;
  317. partition@0 {
  318. label = "loader";
  319. reg = <0x00000000 0x00080000>;
  320. read-only;
  321. };
  322. partition@80000 {
  323. label = "bootenv";
  324. reg = <0x00080000 0x00080000>;
  325. read-only;
  326. };
  327. partition@100000 {
  328. label = "data";
  329. reg = <0x00100000 0x03f00000>;
  330. };
  331. };
  332. };
  333. &msiof0 {
  334. pinctrl-0 = <&msiof0_pins>;
  335. pinctrl-names = "default";
  336. status = "okay";
  337. pmic: pmic@0 {
  338. compatible = "renesas,r2a11302ft";
  339. reg = <0>;
  340. spi-max-frequency = <6000000>;
  341. spi-cpol;
  342. spi-cpha;
  343. };
  344. };
  345. &i2c2 {
  346. pinctrl-0 = <&i2c2_pins>;
  347. pinctrl-names = "default";
  348. status = "okay";
  349. clock-frequency = <400000>;
  350. composite-in@20 {
  351. compatible = "adi,adv7180";
  352. reg = <0x20>;
  353. remote = <&vin1>;
  354. port {
  355. adv7180: endpoint {
  356. bus-width = <8>;
  357. remote-endpoint = <&vin1ep>;
  358. };
  359. };
  360. };
  361. eeprom@50 {
  362. compatible = "renesas,24c02";
  363. reg = <0x50>;
  364. pagesize = <16>;
  365. };
  366. };
  367. &i2c6 {
  368. status = "okay";
  369. clock-frequency = <100000>;
  370. vdd_dvfs: regulator@68 {
  371. compatible = "dlg,da9210";
  372. reg = <0x68>;
  373. regulator-min-microvolt = <1000000>;
  374. regulator-max-microvolt = <1000000>;
  375. regulator-boot-on;
  376. regulator-always-on;
  377. };
  378. };
  379. &pci0 {
  380. status = "okay";
  381. pinctrl-0 = <&usb0_pins>;
  382. pinctrl-names = "default";
  383. };
  384. &pci1 {
  385. status = "okay";
  386. pinctrl-0 = <&usb1_pins>;
  387. pinctrl-names = "default";
  388. };
  389. &pcie_bus_clk {
  390. status = "okay";
  391. };
  392. &pciec {
  393. status = "okay";
  394. };
  395. &cpu0 {
  396. cpu0-supply = <&vdd_dvfs>;
  397. };
  398. /* composite video input */
  399. &vin1 {
  400. status = "ok";
  401. pinctrl-0 = <&vin1_pins>;
  402. pinctrl-names = "default";
  403. port {
  404. #address-cells = <1>;
  405. #size-cells = <0>;
  406. vin1ep: endpoint {
  407. remote-endpoint = <&adv7180>;
  408. bus-width = <8>;
  409. };
  410. };
  411. };