r8a7790-stout.dts 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for the Stout board
  4. *
  5. * Copyright (C) 2018 Marek Vasut <[email protected]>
  6. */
  7. /dts-v1/;
  8. #include "r8a7790.dtsi"
  9. #include <dt-bindings/gpio/gpio.h>
  10. #include <dt-bindings/input/input.h>
  11. / {
  12. model = "Stout";
  13. compatible = "renesas,stout", "renesas,r8a7790";
  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. leds {
  26. compatible = "gpio-leds";
  27. led1 {
  28. gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
  29. };
  30. led2 {
  31. gpios = <&gpio4 23 GPIO_ACTIVE_LOW>;
  32. };
  33. led3 {
  34. gpios = <&gpio5 17 GPIO_ACTIVE_LOW>;
  35. };
  36. led5 {
  37. gpios = <&gpio4 24 GPIO_ACTIVE_LOW>;
  38. };
  39. };
  40. fixedregulator3v3: regulator-3v3 {
  41. compatible = "regulator-fixed";
  42. regulator-name = "fixed-3.3V";
  43. regulator-min-microvolt = <3300000>;
  44. regulator-max-microvolt = <3300000>;
  45. regulator-boot-on;
  46. regulator-always-on;
  47. };
  48. vcc_sdhi0: regulator-vcc-sdhi0 {
  49. compatible = "regulator-fixed";
  50. regulator-name = "SDHI0 Vcc";
  51. regulator-min-microvolt = <3300000>;
  52. regulator-max-microvolt = <3300000>;
  53. gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
  54. enable-active-high;
  55. };
  56. hdmi-out {
  57. compatible = "hdmi-connector";
  58. type = "a";
  59. port {
  60. hdmi_con_out: endpoint {
  61. remote-endpoint = <&adv7511_out>;
  62. };
  63. };
  64. };
  65. osc1_clk: osc1-clock {
  66. compatible = "fixed-clock";
  67. #clock-cells = <0>;
  68. clock-frequency = <148500000>;
  69. };
  70. osc4_clk: osc4-clock {
  71. compatible = "fixed-clock";
  72. #clock-cells = <0>;
  73. clock-frequency = <12000000>;
  74. };
  75. };
  76. &du {
  77. pinctrl-0 = <&du_pins>;
  78. pinctrl-names = "default";
  79. status = "okay";
  80. clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>,
  81. <&osc1_clk>;
  82. clock-names = "du.0", "du.1", "du.2", "dclkin.0";
  83. ports {
  84. port@0 {
  85. endpoint {
  86. remote-endpoint = <&adv7511_in>;
  87. };
  88. };
  89. };
  90. };
  91. &lvds0 {
  92. ports {
  93. port@1 {
  94. lvds_connector0: endpoint {
  95. };
  96. };
  97. };
  98. };
  99. &lvds1 {
  100. ports {
  101. port@1 {
  102. lvds_connector1: endpoint {
  103. };
  104. };
  105. };
  106. };
  107. &extal_clk {
  108. clock-frequency = <20000000>;
  109. };
  110. &pfc {
  111. pinctrl-0 = <&scif_clk_pins>;
  112. pinctrl-names = "default";
  113. du_pins: du {
  114. groups = "du_rgb888", "du_sync_1", "du_clk_out_0";
  115. function = "du";
  116. };
  117. scifa0_pins: scifa0 {
  118. groups = "scifa0_data_b";
  119. function = "scifa0";
  120. };
  121. scif_clk_pins: scif_clk {
  122. groups = "scif_clk";
  123. function = "scif_clk";
  124. };
  125. ether_pins: ether {
  126. groups = "eth_link", "eth_mdio", "eth_rmii";
  127. function = "eth";
  128. };
  129. phy1_pins: phy1 {
  130. groups = "intc_irq1";
  131. function = "intc";
  132. };
  133. sdhi0_pins: sd0 {
  134. groups = "sdhi0_data4", "sdhi0_ctrl";
  135. function = "sdhi0";
  136. power-source = <3300>;
  137. };
  138. qspi_pins: qspi {
  139. groups = "qspi_ctrl", "qspi_data4";
  140. function = "qspi";
  141. };
  142. iic2_pins: iic2 {
  143. groups = "iic2_b";
  144. function = "iic2";
  145. };
  146. iic3_pins: iic3 {
  147. groups = "iic3";
  148. function = "iic3";
  149. };
  150. pmic_irq_pins: pmicirq {
  151. groups = "intc_irq2";
  152. function = "intc";
  153. };
  154. usb0_pins: usb0 {
  155. groups = "usb0";
  156. function = "usb0";
  157. };
  158. };
  159. &ether {
  160. pinctrl-0 = <&ether_pins>, <&phy1_pins>;
  161. pinctrl-names = "default";
  162. phy-handle = <&phy1>;
  163. renesas,ether-link-active-low;
  164. status = "okay";
  165. phy1: ethernet-phy@1 {
  166. compatible = "ethernet-phy-id0022.1537",
  167. "ethernet-phy-ieee802.3-c22";
  168. reg = <1>;
  169. interrupt-parent = <&irqc0>;
  170. interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
  171. micrel,led-mode = <1>;
  172. reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;
  173. };
  174. };
  175. &cmt0 {
  176. status = "okay";
  177. };
  178. &qspi {
  179. pinctrl-0 = <&qspi_pins>;
  180. pinctrl-names = "default";
  181. status = "okay";
  182. flash: flash@0 {
  183. compatible = "spansion,s25fl512s", "jedec,spi-nor";
  184. reg = <0>;
  185. spi-max-frequency = <30000000>;
  186. spi-tx-bus-width = <4>;
  187. spi-rx-bus-width = <4>;
  188. spi-cpha;
  189. spi-cpol;
  190. m25p,fast-read;
  191. partitions {
  192. compatible = "fixed-partitions";
  193. #address-cells = <1>;
  194. #size-cells = <1>;
  195. partition@0 {
  196. label = "loader";
  197. reg = <0x00000000 0x00080000>;
  198. read-only;
  199. };
  200. partition@80000 {
  201. label = "uboot";
  202. reg = <0x00080000 0x00040000>;
  203. read-only;
  204. };
  205. partition@c0000 {
  206. label = "uboot-env";
  207. reg = <0x000c0000 0x00040000>;
  208. read-only;
  209. };
  210. partition@100000 {
  211. label = "flash";
  212. reg = <0x00100000 0x03f00000>;
  213. };
  214. };
  215. };
  216. };
  217. &scifa0 {
  218. pinctrl-0 = <&scifa0_pins>;
  219. pinctrl-names = "default";
  220. status = "okay";
  221. };
  222. &scif_clk {
  223. clock-frequency = <14745600>;
  224. };
  225. &sdhi0 {
  226. pinctrl-0 = <&sdhi0_pins>;
  227. pinctrl-names = "default";
  228. vmmc-supply = <&vcc_sdhi0>;
  229. cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
  230. status = "okay";
  231. };
  232. &cpu0 {
  233. cpu0-supply = <&vdd_dvfs>;
  234. };
  235. &iic2 {
  236. status = "okay";
  237. pinctrl-0 = <&iic2_pins>;
  238. pinctrl-names = "default";
  239. clock-frequency = <100000>;
  240. hdmi@39 {
  241. compatible = "adi,adv7511w";
  242. reg = <0x39>;
  243. interrupt-parent = <&gpio1>;
  244. interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
  245. clocks = <&osc4_clk>;
  246. clock-names = "cec";
  247. adi,input-depth = <8>;
  248. adi,input-colorspace = "rgb";
  249. adi,input-clock = "1x";
  250. ports {
  251. #address-cells = <1>;
  252. #size-cells = <0>;
  253. port@0 {
  254. reg = <0>;
  255. adv7511_in: endpoint {
  256. remote-endpoint = <&du_out_rgb>;
  257. };
  258. };
  259. port@1 {
  260. reg = <1>;
  261. adv7511_out: endpoint {
  262. remote-endpoint = <&hdmi_con_out>;
  263. };
  264. };
  265. };
  266. };
  267. };
  268. &iic3 {
  269. pinctrl-names = "default";
  270. pinctrl-0 = <&iic3_pins>, <&pmic_irq_pins>;
  271. status = "okay";
  272. pmic@58 {
  273. compatible = "dlg,da9063";
  274. reg = <0x58>;
  275. interrupt-parent = <&irqc0>;
  276. interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
  277. interrupt-controller;
  278. onkey {
  279. compatible = "dlg,da9063-onkey";
  280. };
  281. rtc {
  282. compatible = "dlg,da9063-rtc";
  283. };
  284. watchdog {
  285. compatible = "dlg,da9063-watchdog";
  286. };
  287. };
  288. vdd_dvfs: regulator@68 {
  289. compatible = "dlg,da9210";
  290. reg = <0x68>;
  291. interrupt-parent = <&irqc0>;
  292. interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
  293. regulator-min-microvolt = <1000000>;
  294. regulator-max-microvolt = <1000000>;
  295. regulator-boot-on;
  296. regulator-always-on;
  297. };
  298. vdd: regulator@70 {
  299. compatible = "dlg,da9210";
  300. reg = <0x70>;
  301. interrupt-parent = <&irqc0>;
  302. interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
  303. regulator-min-microvolt = <1000000>;
  304. regulator-max-microvolt = <1000000>;
  305. regulator-boot-on;
  306. regulator-always-on;
  307. };
  308. };
  309. &pci0 {
  310. status = "okay";
  311. pinctrl-0 = <&usb0_pins>;
  312. pinctrl-names = "default";
  313. };
  314. &usbphy {
  315. status = "okay";
  316. };