r8a7792-blanche.dts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for the Blanche board
  4. *
  5. * Copyright (C) 2014 Renesas Electronics Corporation
  6. * Copyright (C) 2016 Cogent Embedded, Inc.
  7. */
  8. /dts-v1/;
  9. #include "r8a7792.dtsi"
  10. #include <dt-bindings/gpio/gpio.h>
  11. #include <dt-bindings/input/input.h>
  12. / {
  13. model = "Blanche";
  14. compatible = "renesas,blanche", "renesas,r8a7792";
  15. aliases {
  16. serial0 = &scif0;
  17. serial1 = &scif3;
  18. };
  19. chosen {
  20. bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
  21. stdout-path = "serial0:115200n8";
  22. };
  23. memory@40000000 {
  24. device_type = "memory";
  25. reg = <0 0x40000000 0 0x40000000>;
  26. };
  27. d3_3v: regulator-3v3 {
  28. compatible = "regulator-fixed";
  29. regulator-name = "D3.3V";
  30. regulator-min-microvolt = <3300000>;
  31. regulator-max-microvolt = <3300000>;
  32. regulator-boot-on;
  33. regulator-always-on;
  34. };
  35. ethernet@18000000 {
  36. compatible = "smsc,lan89218", "smsc,lan9115";
  37. reg = <0 0x18000000 0 0x100>;
  38. phy-mode = "mii";
  39. interrupt-parent = <&irqc>;
  40. interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
  41. smsc,irq-push-pull;
  42. reg-io-width = <4>;
  43. vddvario-supply = <&d3_3v>;
  44. vdd33a-supply = <&d3_3v>;
  45. pinctrl-0 = <&lan89218_pins>;
  46. pinctrl-names = "default";
  47. };
  48. vga-encoder {
  49. compatible = "adi,adv7123";
  50. ports {
  51. #address-cells = <1>;
  52. #size-cells = <0>;
  53. port@0 {
  54. reg = <0>;
  55. adv7123_in: endpoint {
  56. remote-endpoint = <&du_out_rgb1>;
  57. };
  58. };
  59. port@1 {
  60. reg = <1>;
  61. adv7123_out: endpoint {
  62. remote-endpoint = <&vga_in>;
  63. };
  64. };
  65. };
  66. };
  67. hdmi-out {
  68. compatible = "hdmi-connector";
  69. type = "a";
  70. port {
  71. hdmi_con: endpoint {
  72. remote-endpoint = <&adv7511_out>;
  73. };
  74. };
  75. };
  76. vga {
  77. compatible = "vga-connector";
  78. port {
  79. vga_in: endpoint {
  80. remote-endpoint = <&adv7123_out>;
  81. };
  82. };
  83. };
  84. x1_clk: x1 {
  85. compatible = "fixed-clock";
  86. #clock-cells = <0>;
  87. clock-frequency = <74250000>;
  88. };
  89. x2_clk: x2 {
  90. compatible = "fixed-clock";
  91. #clock-cells = <0>;
  92. clock-frequency = <65000000>;
  93. };
  94. keyboard {
  95. compatible = "gpio-keys";
  96. pinctrl-0 = <&keyboard_pins>;
  97. pinctrl-names = "default";
  98. key-1 {
  99. linux,code = <KEY_1>;
  100. label = "SW2-1";
  101. wakeup-source;
  102. debounce-interval = <20>;
  103. gpios = <&gpio3 10 GPIO_ACTIVE_LOW>;
  104. };
  105. key-2 {
  106. linux,code = <KEY_2>;
  107. label = "SW2-2";
  108. wakeup-source;
  109. debounce-interval = <20>;
  110. gpios = <&gpio3 11 GPIO_ACTIVE_LOW>;
  111. };
  112. key-3 {
  113. linux,code = <KEY_3>;
  114. label = "SW2-3";
  115. wakeup-source;
  116. debounce-interval = <20>;
  117. gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
  118. };
  119. key-4 {
  120. linux,code = <KEY_4>;
  121. label = "SW2-4";
  122. wakeup-source;
  123. debounce-interval = <20>;
  124. gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
  125. };
  126. key-a {
  127. linux,code = <KEY_A>;
  128. label = "SW24";
  129. wakeup-source;
  130. debounce-interval = <20>;
  131. gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
  132. };
  133. key-b {
  134. linux,code = <KEY_B>;
  135. label = "SW25";
  136. wakeup-source;
  137. debounce-interval = <20>;
  138. gpios = <&gpio11 2 GPIO_ACTIVE_LOW>;
  139. };
  140. };
  141. leds {
  142. compatible = "gpio-leds";
  143. led17 {
  144. gpios = <&gpio10 10 GPIO_ACTIVE_HIGH>;
  145. };
  146. led18 {
  147. gpios = <&gpio10 11 GPIO_ACTIVE_HIGH>;
  148. };
  149. led19 {
  150. gpios = <&gpio10 12 GPIO_ACTIVE_HIGH>;
  151. };
  152. led20 {
  153. gpios = <&gpio10 23 GPIO_ACTIVE_HIGH>;
  154. };
  155. };
  156. vcc_sdhi0: regulator-vcc-sdhi0 {
  157. compatible = "regulator-fixed";
  158. regulator-name = "SDHI0 Vcc";
  159. regulator-min-microvolt = <3300000>;
  160. regulator-max-microvolt = <3300000>;
  161. gpio = <&gpio11 12 GPIO_ACTIVE_HIGH>;
  162. enable-active-high;
  163. };
  164. };
  165. &extal_clk {
  166. clock-frequency = <20000000>;
  167. };
  168. &can_clk {
  169. clock-frequency = <48000000>;
  170. };
  171. &pfc {
  172. scif0_pins: scif0 {
  173. groups = "scif0_data";
  174. function = "scif0";
  175. };
  176. scif3_pins: scif3 {
  177. groups = "scif3_data";
  178. function = "scif3";
  179. };
  180. lan89218_pins: lan89218 {
  181. intc {
  182. groups = "intc_irq0";
  183. function = "intc";
  184. };
  185. lbsc {
  186. groups = "lbsc_ex_cs0";
  187. function = "lbsc";
  188. };
  189. };
  190. can0_pins: can0 {
  191. groups = "can0_data", "can_clk";
  192. function = "can0";
  193. };
  194. sdhi0_pins: sdhi0 {
  195. groups = "sdhi0_data4", "sdhi0_ctrl";
  196. function = "sdhi0";
  197. };
  198. du0_pins: du0 {
  199. groups = "du0_rgb888", "du0_sync", "du0_disp";
  200. function = "du0";
  201. };
  202. du1_pins: du1 {
  203. groups = "du1_rgb666", "du1_sync", "du1_disp";
  204. function = "du1";
  205. };
  206. keyboard_pins: keyboard {
  207. pins = "GP_3_10", "GP_3_11", "GP_3_12", "GP_3_15", "GP_11_2";
  208. bias-pull-up;
  209. };
  210. pmic_irq_pins: pmicirq {
  211. groups = "intc_irq2";
  212. function = "intc";
  213. };
  214. };
  215. &rwdt {
  216. timeout-sec = <60>;
  217. status = "okay";
  218. };
  219. &scif0 {
  220. pinctrl-0 = <&scif0_pins>;
  221. pinctrl-names = "default";
  222. status = "okay";
  223. };
  224. &scif3 {
  225. pinctrl-0 = <&scif3_pins>;
  226. pinctrl-names = "default";
  227. status = "okay";
  228. };
  229. &can0 {
  230. pinctrl-0 = <&can0_pins>;
  231. pinctrl-names = "default";
  232. status = "okay";
  233. };
  234. &sdhi0 {
  235. pinctrl-0 = <&sdhi0_pins>;
  236. pinctrl-names = "default";
  237. vmmc-supply = <&vcc_sdhi0>;
  238. cd-gpios = <&gpio11 11 GPIO_ACTIVE_LOW>;
  239. status = "okay";
  240. };
  241. &i2c1 {
  242. status = "okay";
  243. clock-frequency = <400000>;
  244. hdmi@39 {
  245. compatible = "adi,adv7511w";
  246. reg = <0x39>;
  247. interrupt-parent = <&irqc>;
  248. interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
  249. adi,input-depth = <8>;
  250. adi,input-colorspace = "rgb";
  251. adi,input-clock = "1x";
  252. ports {
  253. #address-cells = <1>;
  254. #size-cells = <0>;
  255. port@0 {
  256. reg = <0>;
  257. adv7511_in: endpoint {
  258. remote-endpoint = <&du_out_rgb0>;
  259. };
  260. };
  261. port@1 {
  262. reg = <1>;
  263. adv7511_out: endpoint {
  264. remote-endpoint = <&hdmi_con>;
  265. };
  266. };
  267. };
  268. };
  269. };
  270. &iic3 {
  271. status = "okay";
  272. pmic@58 {
  273. compatible = "dlg,da9063";
  274. reg = <0x58>;
  275. pinctrl-names = "default";
  276. pinctrl-0 = <&pmic_irq_pins>;
  277. interrupt-parent = <&irqc>;
  278. interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
  279. interrupt-controller;
  280. rtc {
  281. compatible = "dlg,da9063-rtc";
  282. };
  283. watchdog {
  284. compatible = "dlg,da9063-watchdog";
  285. };
  286. };
  287. };
  288. &du {
  289. pinctrl-0 = <&du0_pins>, <&du1_pins>;
  290. pinctrl-names = "default";
  291. clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&x1_clk>, <&x2_clk>;
  292. clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
  293. status = "okay";
  294. ports {
  295. port@0 {
  296. endpoint {
  297. remote-endpoint = <&adv7511_in>;
  298. };
  299. };
  300. port@1 {
  301. endpoint {
  302. remote-endpoint = <&adv7123_in>;
  303. };
  304. };
  305. };
  306. };