r8a7778-bockw.dts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Reference Device Tree Source for the R-Car M1A (R8A77781) Bock-W board
  4. *
  5. * Copyright (C) 2013 Renesas Solutions Corp.
  6. * Copyright (C) 2013 Kuninori Morimoto <[email protected]>
  7. *
  8. * based on r8a7779
  9. *
  10. * Copyright (C) 2013 Renesas Solutions Corp.
  11. * Copyright (C) 2013 Simon Horman
  12. */
  13. /dts-v1/;
  14. #include "r8a7778.dtsi"
  15. #include <dt-bindings/interrupt-controller/irq.h>
  16. #include <dt-bindings/gpio/gpio.h>
  17. / {
  18. model = "bockw";
  19. compatible = "renesas,bockw", "renesas,r8a7778";
  20. aliases {
  21. serial0 = &scif0;
  22. };
  23. chosen {
  24. bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
  25. stdout-path = "serial0:115200n8";
  26. };
  27. memory@60000000 {
  28. device_type = "memory";
  29. reg = <0x60000000 0x10000000>;
  30. };
  31. fixedregulator3v3: regulator-3v3 {
  32. compatible = "regulator-fixed";
  33. regulator-name = "fixed-3.3V";
  34. regulator-min-microvolt = <3300000>;
  35. regulator-max-microvolt = <3300000>;
  36. regulator-boot-on;
  37. regulator-always-on;
  38. };
  39. sound {
  40. compatible = "simple-audio-card";
  41. simple-audio-card,format = "left_j";
  42. simple-audio-card,bitclock-master = <&sndcodec>;
  43. simple-audio-card,frame-master = <&sndcodec>;
  44. sndcpu: simple-audio-card,cpu {
  45. sound-dai = <&rcar_sound>;
  46. };
  47. sndcodec: simple-audio-card,codec {
  48. sound-dai = <&ak4643>;
  49. system-clock-frequency = <11289600>;
  50. };
  51. };
  52. };
  53. &bsc {
  54. ethernet@18300000 {
  55. compatible = "smsc,lan89218", "smsc,lan9115";
  56. reg = <0x18300000 0x1000>;
  57. phy-mode = "mii";
  58. interrupt-parent = <&irqpin>;
  59. interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
  60. reg-io-width = <4>;
  61. vddvario-supply = <&fixedregulator3v3>;
  62. vdd33a-supply = <&fixedregulator3v3>;
  63. };
  64. };
  65. &extal_clk {
  66. clock-frequency = <33333333>;
  67. };
  68. &i2c0 {
  69. status = "okay";
  70. ak4643: codec@12 {
  71. compatible = "asahi-kasei,ak4643";
  72. #sound-dai-cells = <0>;
  73. reg = <0x12>;
  74. };
  75. camera@41 {
  76. compatible = "oki,ml86v7667";
  77. reg = <0x41>;
  78. };
  79. camera@43 {
  80. compatible = "oki,ml86v7667";
  81. reg = <0x43>;
  82. };
  83. rx8581: rtc@51 {
  84. compatible = "epson,rx8581";
  85. reg = <0x51>;
  86. };
  87. };
  88. &mmcif {
  89. pinctrl-0 = <&mmc_pins>;
  90. pinctrl-names = "default";
  91. vmmc-supply = <&fixedregulator3v3>;
  92. bus-width = <8>;
  93. broken-cd;
  94. status = "okay";
  95. };
  96. &irqpin {
  97. status = "okay";
  98. };
  99. &tmu0 {
  100. status = "okay";
  101. };
  102. &pfc {
  103. pinctrl-0 = <&scif_clk_pins>;
  104. pinctrl-names = "default";
  105. scif0_pins: scif0 {
  106. groups = "scif0_data_a", "scif0_ctrl";
  107. function = "scif0";
  108. };
  109. scif_clk_pins: scif_clk {
  110. groups = "scif_clk";
  111. function = "scif_clk";
  112. };
  113. mmc_pins: mmc {
  114. groups = "mmc_data8", "mmc_ctrl";
  115. function = "mmc";
  116. };
  117. sdhi0_pins: sd0 {
  118. groups = "sdhi0_data4", "sdhi0_ctrl";
  119. function = "sdhi0";
  120. };
  121. sdhi0_pup_pins: sd0_pup {
  122. groups = "sdhi0_cd", "sdhi0_wp";
  123. function = "sdhi0";
  124. bias-pull-up;
  125. };
  126. hspi0_pins: hspi0 {
  127. groups = "hspi0_a";
  128. function = "hspi0";
  129. };
  130. usb0_pins: usb0 {
  131. groups = "usb0";
  132. function = "usb0";
  133. };
  134. usb1_pins: usb1 {
  135. groups = "usb1";
  136. function = "usb1";
  137. };
  138. vin0_pins: vin0 {
  139. groups = "vin0_data8", "vin0_clk";
  140. function = "vin0";
  141. };
  142. vin1_pins: vin1 {
  143. groups = "vin1_data8", "vin1_clk";
  144. function = "vin1";
  145. };
  146. };
  147. &rcar_sound {
  148. /* Single DAI */
  149. #sound-dai-cells = <0>;
  150. };
  151. &sdhi0 {
  152. pinctrl-0 = <&sdhi0_pins>, <&sdhi0_pup_pins>;
  153. pinctrl-names = "default";
  154. vmmc-supply = <&fixedregulator3v3>;
  155. bus-width = <4>;
  156. status = "okay";
  157. wp-gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>;
  158. };
  159. &hspi0 {
  160. pinctrl-0 = <&hspi0_pins>;
  161. pinctrl-names = "default";
  162. status = "okay";
  163. flash: flash@0 {
  164. compatible = "spansion,s25fl008k", "jedec,spi-nor";
  165. reg = <0>;
  166. spi-max-frequency = <104000000>;
  167. m25p,fast-read;
  168. partitions {
  169. compatible = "fixed-partitions";
  170. #address-cells = <1>;
  171. #size-cells = <1>;
  172. partition@0 {
  173. label = "data(spi)";
  174. reg = <0x00000000 0x00100000>;
  175. };
  176. };
  177. };
  178. };
  179. &scif0 {
  180. pinctrl-0 = <&scif0_pins>;
  181. pinctrl-names = "default";
  182. uart-has-rtscts;
  183. status = "okay";
  184. };
  185. &scif_clk {
  186. clock-frequency = <14745600>;
  187. };