sh73a0-kzm9g.dts 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for the KZM-A9-GT board
  4. *
  5. * Copyright (C) 2012 Horms Solutions Ltd.
  6. *
  7. * Based on sh73a0-kzm9g.dts
  8. * Copyright (C) 2012 Renesas Solutions Corp.
  9. */
  10. /dts-v1/;
  11. #include "sh73a0.dtsi"
  12. #include <dt-bindings/gpio/gpio.h>
  13. #include <dt-bindings/input/input.h>
  14. #include <dt-bindings/interrupt-controller/irq.h>
  15. / {
  16. model = "KZM-A9-GT";
  17. compatible = "renesas,kzm9g", "renesas,sh73a0";
  18. aliases {
  19. serial0 = &scifa4;
  20. };
  21. cpus {
  22. cpu@0 {
  23. cpu0-supply = <&vdd_dvfs>;
  24. operating-points = <1196000 1315000>, /* kHz uV */
  25. < 598000 1175000>,
  26. < 398667 1065000>;
  27. voltage-tolerance = <1>; /* 1% */
  28. };
  29. };
  30. chosen {
  31. bootargs = "root=/dev/nfs ip=on ignore_loglevel rw";
  32. stdout-path = "serial0:115200n8";
  33. };
  34. memory@40000000 {
  35. device_type = "memory";
  36. reg = <0x40000000 0x20000000>;
  37. };
  38. reg_1p8v: regulator-1p8v {
  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-3p3v {
  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-vmmc-sdhi0 {
  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-vmmc-sdhi2 {
  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. leds {
  71. compatible = "gpio-leds";
  72. led1 {
  73. gpios = <&pfc 20 GPIO_ACTIVE_LOW>;
  74. label = "LED1";
  75. };
  76. led2 {
  77. gpios = <&pfc 21 GPIO_ACTIVE_LOW>;
  78. label = "LED2";
  79. };
  80. led3 {
  81. gpios = <&pfc 22 GPIO_ACTIVE_LOW>;
  82. label = "LED3";
  83. };
  84. led4 {
  85. gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
  86. label = "LED4";
  87. };
  88. };
  89. keyboard {
  90. compatible = "gpio-keys";
  91. back-key {
  92. gpios = <&pcf8575 8 GPIO_ACTIVE_LOW>;
  93. linux,code = <KEY_BACK>;
  94. label = "SW3";
  95. };
  96. right-key {
  97. gpios = <&pcf8575 9 GPIO_ACTIVE_LOW>;
  98. linux,code = <KEY_RIGHT>;
  99. label = "SW2-R";
  100. };
  101. left-key {
  102. gpios = <&pcf8575 10 GPIO_ACTIVE_LOW>;
  103. linux,code = <KEY_LEFT>;
  104. label = "SW2-L";
  105. };
  106. enter-key {
  107. gpios = <&pcf8575 11 GPIO_ACTIVE_LOW>;
  108. linux,code = <KEY_ENTER>;
  109. label = "SW2-P";
  110. };
  111. up-key {
  112. gpios = <&pcf8575 12 GPIO_ACTIVE_LOW>;
  113. linux,code = <KEY_UP>;
  114. label = "SW2-U";
  115. };
  116. down-key {
  117. gpios = <&pcf8575 13 GPIO_ACTIVE_LOW>;
  118. linux,code = <KEY_DOWN>;
  119. label = "SW2-D";
  120. };
  121. home-key {
  122. gpios = <&pcf8575 14 GPIO_ACTIVE_LOW>;
  123. linux,code = <KEY_HOME>;
  124. label = "SW1";
  125. wakeup-source;
  126. };
  127. wakeup-key {
  128. gpios = <&pfc 159 GPIO_ACTIVE_LOW>;
  129. linux,code = <KEY_WAKEUP>;
  130. label = "NMI";
  131. wakeup-source;
  132. };
  133. };
  134. sound {
  135. compatible = "simple-audio-card";
  136. simple-audio-card,format = "left_j";
  137. simple-audio-card,cpu {
  138. sound-dai = <&sh_fsi2 0>;
  139. };
  140. simple-audio-card,codec {
  141. sound-dai = <&ak4648>;
  142. bitclock-master;
  143. frame-master;
  144. system-clock-frequency = <11289600>;
  145. };
  146. };
  147. };
  148. &bsc {
  149. ethernet@10000000 {
  150. compatible = "smsc,lan9221", "smsc,lan9115";
  151. reg = <0x10000000 0x100>;
  152. phy-mode = "mii";
  153. interrupt-parent = <&irqpin0>;
  154. interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
  155. reg-io-width = <4>;
  156. smsc,irq-push-pull;
  157. smsc,save-mac-address;
  158. vddvario-supply = <&reg_1p8v>;
  159. vdd33a-supply = <&reg_3p3v>;
  160. };
  161. };
  162. &cmt1 {
  163. status = "okay";
  164. };
  165. &extal2_clk {
  166. clock-frequency = <48000000>;
  167. };
  168. &i2c0 {
  169. status = "okay";
  170. compass@c {
  171. compatible = "asahi-kasei,ak8975";
  172. reg = <0x0c>;
  173. interrupt-parent = <&irqpin3>;
  174. interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
  175. };
  176. ak4648: codec@12 {
  177. compatible = "asahi-kasei,ak4648";
  178. reg = <0x12>;
  179. #sound-dai-cells = <0>;
  180. };
  181. accelerometer@1d {
  182. compatible = "adi,adxl345";
  183. reg = <0x1d>;
  184. interrupt-parent = <&irqpin3>;
  185. interrupts = <2 IRQ_TYPE_LEVEL_HIGH>,
  186. <3 IRQ_TYPE_LEVEL_HIGH>;
  187. };
  188. rtc@32 {
  189. compatible = "ricoh,r2025sd";
  190. reg = <0x32>;
  191. };
  192. as3711@40 {
  193. compatible = "ams,as3711";
  194. reg = <0x40>;
  195. regulators {
  196. vdd_dvfs: sd1 {
  197. regulator-name = "1.315V CPU";
  198. regulator-min-microvolt = <1050000>;
  199. regulator-max-microvolt = <1350000>;
  200. regulator-always-on;
  201. regulator-boot-on;
  202. };
  203. sd2 {
  204. regulator-name = "1.8V";
  205. regulator-min-microvolt = <1800000>;
  206. regulator-max-microvolt = <1800000>;
  207. regulator-always-on;
  208. regulator-boot-on;
  209. };
  210. sd4 {
  211. regulator-name = "1.215V";
  212. regulator-min-microvolt = <1215000>;
  213. regulator-max-microvolt = <1235000>;
  214. regulator-always-on;
  215. regulator-boot-on;
  216. };
  217. ldo2 {
  218. regulator-name = "2.8V CPU";
  219. regulator-min-microvolt = <2800000>;
  220. regulator-max-microvolt = <2800000>;
  221. regulator-always-on;
  222. regulator-boot-on;
  223. };
  224. ldo3 {
  225. regulator-name = "3.0V CPU";
  226. regulator-min-microvolt = <3000000>;
  227. regulator-max-microvolt = <3000000>;
  228. regulator-always-on;
  229. regulator-boot-on;
  230. };
  231. ldo4 {
  232. regulator-name = "2.8V";
  233. regulator-min-microvolt = <2800000>;
  234. regulator-max-microvolt = <2800000>;
  235. regulator-always-on;
  236. regulator-boot-on;
  237. };
  238. ldo5 {
  239. regulator-name = "2.8V #2";
  240. regulator-min-microvolt = <2800000>;
  241. regulator-max-microvolt = <2800000>;
  242. regulator-always-on;
  243. regulator-boot-on;
  244. };
  245. ldo7 {
  246. regulator-name = "1.15V CPU";
  247. regulator-min-microvolt = <1150000>;
  248. regulator-max-microvolt = <1150000>;
  249. regulator-always-on;
  250. regulator-boot-on;
  251. };
  252. ldo8 {
  253. regulator-name = "1.15V CPU #2";
  254. regulator-min-microvolt = <1150000>;
  255. regulator-max-microvolt = <1150000>;
  256. regulator-always-on;
  257. regulator-boot-on;
  258. };
  259. };
  260. };
  261. };
  262. &i2c1 {
  263. status = "okay";
  264. touchscreen@55 {
  265. compatible = "sitronix,st1232";
  266. reg = <0x55>;
  267. interrupt-parent = <&irqpin1>;
  268. interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
  269. };
  270. };
  271. &i2c3 {
  272. pinctrl-0 = <&i2c3_pins>;
  273. pinctrl-names = "default";
  274. status = "okay";
  275. pcf8575: gpio@20 {
  276. compatible = "nxp,pcf8575";
  277. reg = <0x20>;
  278. interrupt-parent = <&irqpin2>;
  279. interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
  280. gpio-controller;
  281. #gpio-cells = <2>;
  282. interrupt-controller;
  283. #interrupt-cells = <2>;
  284. };
  285. };
  286. &mmcif {
  287. pinctrl-0 = <&mmcif_pins>;
  288. pinctrl-names = "default";
  289. bus-width = <8>;
  290. vmmc-supply = <&reg_1p8v>;
  291. status = "okay";
  292. };
  293. &pfc {
  294. i2c3_pins: i2c3 {
  295. groups = "i2c3_1";
  296. function = "i2c3";
  297. };
  298. mmcif_pins: mmc {
  299. mux {
  300. groups = "mmc0_data8_0", "mmc0_ctrl_0";
  301. function = "mmc0";
  302. };
  303. cfg {
  304. groups = "mmc0_data8_0";
  305. pins = "PORT279";
  306. bias-pull-up;
  307. };
  308. };
  309. scifa4_pins: scifa4 {
  310. groups = "scifa4_data", "scifa4_ctrl";
  311. function = "scifa4";
  312. };
  313. sdhi0_pins: sd0 {
  314. groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp";
  315. function = "sdhi0";
  316. };
  317. sdhi2_pins: sd2 {
  318. groups = "sdhi2_data4", "sdhi2_ctrl";
  319. function = "sdhi2";
  320. };
  321. fsia_pins: sounda {
  322. groups = "fsia_mclk_in", "fsia_sclk_in",
  323. "fsia_data_in", "fsia_data_out";
  324. function = "fsia";
  325. };
  326. };
  327. &scifa4 {
  328. pinctrl-0 = <&scifa4_pins>;
  329. pinctrl-names = "default";
  330. uart-has-rtscts;
  331. status = "okay";
  332. };
  333. &sdhi0 {
  334. pinctrl-0 = <&sdhi0_pins>;
  335. pinctrl-names = "default";
  336. vmmc-supply = <&vmmc_sdhi0>;
  337. bus-width = <4>;
  338. status = "okay";
  339. };
  340. &sdhi2 {
  341. pinctrl-0 = <&sdhi2_pins>;
  342. pinctrl-names = "default";
  343. vmmc-supply = <&vmmc_sdhi2>;
  344. bus-width = <4>;
  345. broken-cd;
  346. status = "okay";
  347. };
  348. &sh_fsi2 {
  349. pinctrl-0 = <&fsia_pins>;
  350. pinctrl-names = "default";
  351. status = "okay";
  352. };