Advertisement
Guest User

rk3188 (beeling a9) dts

a guest
Dec 21st, 2015
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.02 KB | None | 0 0
  1. /*
  2. * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14.  
  15. /dts-v1/;
  16. #include "rk3188.dtsi"
  17.  
  18. / {
  19. model = "Radxa Rock";
  20. compatible = "radxa,rock", "rockchip,rk3188";
  21.  
  22. memory {
  23. reg = <0x60000000 0x7f000000>;
  24. };
  25.  
  26. framebuffer {
  27. compatible = "simple-framebuffer";
  28. reg = <0xdf000000 (1280 * 720 * 4)>;
  29. width = <1280>;
  30. height = <720>;
  31. stride = <(1280 * 4)>;
  32. format = "x8r8g8b8";
  33. pinctrl-names = "default";
  34. pinctrl-0 = <&lcdc1_clk &lcdc1_rgb888 &hdmi_rst_n>;
  35. };
  36.  
  37. gpio-keys {
  38. compatible = "gpio-keys";
  39. #address-cells = <1>;
  40. #size-cells = <0>;
  41. autorepeat;
  42.  
  43. button@0 {
  44. gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
  45. linux,code = <116>;
  46. label = "GPIO Key Power";
  47. linux,input-type = <1>;
  48. gpio-key,wakeup = <1>;
  49. debounce-interval = <100>;
  50. };
  51. };
  52.  
  53. gpio-leds {
  54. compatible = "gpio-leds";
  55.  
  56. green {
  57. label = "green";
  58. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  59. linux,default-trigger = "heartbeat";
  60. };
  61.  
  62. blue {
  63. label = "blue";
  64. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  65. linux,default-trigger = "mmc0";
  66. };
  67.  
  68. red {
  69. label = "red";
  70. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  71. linux,default-trigger = "rc-feedback";
  72. };
  73. };
  74.  
  75. ir_recv: gpio-ir-receiver {
  76. compatible = "gpio-ir-receiver";
  77. gpios = <&gpio0 10 1>;
  78. pinctrl-names = "default";
  79. pinctrl-0 = <&ir_recv_pin>;
  80. };
  81.  
  82. vcc_otg: usb-otg-regulator {
  83. compatible = "regulator-fixed";
  84. enable-active-high;
  85. gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
  86. pinctrl-names = "default";
  87. pinctrl-0 = <&otg_vbus_drv>;
  88. regulator-name = "otg-vbus";
  89. regulator-min-microvolt = <5000000>;
  90. regulator-max-microvolt = <5000000>;
  91. regulator-always-on;
  92. regulator-boot-on;
  93. };
  94.  
  95. vcc_sd0: sdmmc-regulator {
  96. compatible = "regulator-fixed";
  97. regulator-name = "sdmmc-supply";
  98. regulator-min-microvolt = <3300000>;
  99. regulator-max-microvolt = <3300000>;
  100. gpio = <&gpio3 1 GPIO_ACTIVE_LOW>;
  101. startup-delay-us = <100000>;
  102. vin-supply = <&vcc_io>;
  103. };
  104.  
  105. vcc_host: usb-host-regulator {
  106. compatible = "regulator-fixed";
  107. enable-active-high;
  108. gpio = <&gpio0 3 GPIO_ACTIVE_HIGH>;
  109. pinctrl-names = "default";
  110. pinctrl-0 = <&host_vbus_drv>;
  111. regulator-name = "host-pwr";
  112. regulator-min-microvolt = <5000000>;
  113. regulator-max-microvolt = <5000000>;
  114. regulator-always-on;
  115. regulator-boot-on;
  116. };
  117. };
  118.  
  119. &emac {
  120. status = "okay";
  121.  
  122. pinctrl-names = "default";
  123. pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
  124.  
  125. phy = <&phy0>;
  126. phy-supply = <&vcc_rmii>;
  127.  
  128. phy0: ethernet-phy@0 {
  129. reg = <0>;
  130. interrupt-parent = <&gpio3>;
  131. interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
  132. };
  133. };
  134.  
  135. &i2c0 {
  136. status = "okay";
  137. };
  138.  
  139. &i2c1 {
  140. status = "okay";
  141. clock-frequency = <400000>;
  142.  
  143. rtc@51 {
  144. compatible = "haoyu,hym8563";
  145. reg = <0x51>;
  146. interrupt-parent = <&gpio0>;
  147. interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
  148. pinctrl-names = "default";
  149. pinctrl-0 = <&rtc_int>;
  150. #clock-cells = <0>;
  151. clock-output-names = "xin32k";
  152. };
  153.  
  154. act8846: act8846@5a {
  155. compatible = "active-semi,act8846";
  156. reg = <0x5a>;
  157. status = "okay";
  158.  
  159. pinctrl-names = "default";
  160. pinctrl-0 = <&act8846_dvs0_ctl>;
  161.  
  162. regulators {
  163. vcc_ddr: REG1 {
  164. regulator-name = "VCC_DDR";
  165. regulator-min-microvolt = <1200000>;
  166. regulator-max-microvolt = <1200000>;
  167. regulator-always-on;
  168. };
  169.  
  170. vdd_log: REG2 {
  171. regulator-name = "VDD_LOG";
  172. regulator-min-microvolt = <1000000>;
  173. regulator-max-microvolt = <1000000>;
  174. regulator-always-on;
  175. };
  176.  
  177. vdd_arm: REG3 {
  178. regulator-name = "VDD_ARM";
  179. regulator-min-microvolt = <875000>;
  180. regulator-max-microvolt = <1350000>;
  181. regulator-always-on;
  182. };
  183.  
  184. vcc_io: REG4 {
  185. regulator-name = "VCC_IO";
  186. regulator-min-microvolt = <3300000>;
  187. regulator-max-microvolt = <3300000>;
  188. regulator-always-on;
  189. };
  190.  
  191. vdd_10: REG5 {
  192. regulator-name = "VDD_10";
  193. regulator-min-microvolt = <1000000>;
  194. regulator-max-microvolt = <1000000>;
  195. regulator-always-on;
  196. };
  197.  
  198. vdd_hdmi: REG6 {
  199. regulator-name = "VDD_HDMI";
  200. regulator-min-microvolt = <2500000>;
  201. regulator-max-microvolt = <2500000>;
  202. regulator-always-on;
  203. };
  204.  
  205. vcc18: REG7 {
  206. regulator-name = "VCC_18";
  207. regulator-min-microvolt = <1800000>;
  208. regulator-max-microvolt = <1800000>;
  209. regulator-always-on;
  210. };
  211.  
  212. vcca_33: REG8 {
  213. regulator-name = "VCCA_33";
  214. regulator-min-microvolt = <3300000>;
  215. regulator-max-microvolt = <3300000>;
  216. regulator-always-on;
  217. };
  218.  
  219. vcc_rmii: REG9 {
  220. regulator-name = "VCC_RMII";
  221. regulator-min-microvolt = <3300000>;
  222. regulator-max-microvolt = <3300000>;
  223. };
  224.  
  225. vccio_wl: REG10 {
  226. regulator-name = "VCCIO_WL";
  227. regulator-min-microvolt = <3300000>;
  228. regulator-max-microvolt = <3300000>;
  229. regulator-always-on;
  230. };
  231.  
  232. vcc_18: REG11 {
  233. regulator-name = "VCC18_IO";
  234. regulator-min-microvolt = <1800000>;
  235. regulator-max-microvolt = <1800000>;
  236. regulator-always-on;
  237. };
  238.  
  239. vcc28: REG12 {
  240. regulator-name = "VCC_28";
  241. regulator-min-microvolt = <2800000>;
  242. regulator-max-microvolt = <2800000>;
  243. regulator-always-on;
  244. };
  245. };
  246. };
  247. };
  248.  
  249. &i2c2 {
  250. status = "okay";
  251. };
  252.  
  253. &mmc0 {
  254. num-slots = <1>;
  255. status = "okay";
  256. pinctrl-names = "default";
  257. pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
  258. vmmc-supply = <&vcc_sd0>;
  259.  
  260. bus-width = <4>;
  261. disable-wp;
  262. };
  263.  
  264. &pwm1 {
  265. status = "okay";
  266. };
  267.  
  268. &pwm2 {
  269. status = "okay";
  270. };
  271.  
  272. &pwm3 {
  273. status = "okay";
  274. };
  275.  
  276. &pinctrl {
  277. pcfg_output_low: pcfg-output-low {
  278. output-low;
  279. };
  280.  
  281. pcfg_output_high: pcfg-output-high {
  282. output-high;
  283. };
  284.  
  285. act8846 {
  286. act8846_dvs0_ctl: act8846-dvs0-ctl {
  287. rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>;
  288. };
  289. };
  290.  
  291. hym8563 {
  292. rtc_int: rtc-int {
  293. rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_up>;
  294. };
  295. };
  296.  
  297. lan8720a {
  298. phy_int: phy-int {
  299. rockchip,pins = <RK_GPIO3 26 RK_FUNC_GPIO &pcfg_pull_up>;
  300. };
  301. };
  302.  
  303. it66121 {
  304. hdmi_rst_n: hdmi_rst_n {
  305. rockchip,pins = <RK_GPIO3 10 RK_FUNC_GPIO &pcfg_output_high>;
  306. };
  307. };
  308.  
  309. ir-receiver {
  310. ir_recv_pin: ir-recv-pin {
  311. rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>;
  312. };
  313. };
  314.  
  315. usb {
  316. host_vbus_drv: host-vbus-drv {
  317. rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>;
  318. };
  319. otg_vbus_drv: otg-vbus-drv {
  320. rockchip,pins = <2 31 RK_FUNC_GPIO &pcfg_pull_none>;
  321. };
  322. };
  323.  
  324. lcdc1 {
  325. lcdc1_clk: lcdc1-clk {
  326. rockchip,pins = <RK_GPIO2 24 RK_FUNC_1 &pcfg_pull_none>, /* lcd1_dclk */
  327. <RK_GPIO2 25 RK_FUNC_1 &pcfg_pull_none>, /* lcd1_den */
  328. <RK_GPIO2 26 RK_FUNC_1 &pcfg_pull_none>, /* lcd1_hsync */
  329. <RK_GPIO2 27 RK_FUNC_1 &pcfg_pull_none>; /* lcd1_vsync */
  330. };
  331.  
  332. lcdc1_rgb888: lcdc1-rgb888 {
  333. rockchip,pins = <RK_GPIO2 0 RK_FUNC_1 &pcfg_pull_none>, /* D0 = B0 */
  334. <RK_GPIO2 1 RK_FUNC_1 &pcfg_pull_none>, /* D1 = B1 */
  335. <RK_GPIO2 2 RK_FUNC_1 &pcfg_pull_none>, /* D2 = B2 */
  336. <RK_GPIO2 3 RK_FUNC_1 &pcfg_pull_none>, /* D3 = B3 */
  337. <RK_GPIO2 4 RK_FUNC_1 &pcfg_pull_none>, /* D4 = B4 */
  338. <RK_GPIO2 5 RK_FUNC_1 &pcfg_pull_none>, /* D5 = B5 */
  339. <RK_GPIO2 6 RK_FUNC_1 &pcfg_pull_none>, /* D6 = B6 */
  340. <RK_GPIO2 7 RK_FUNC_1 &pcfg_pull_none>, /* D7 = B7 */
  341. <RK_GPIO2 8 RK_FUNC_1 &pcfg_pull_none>, /* D8 = G0 */
  342. <RK_GPIO2 9 RK_FUNC_1 &pcfg_pull_none>, /* D9 = G1 */
  343. <RK_GPIO2 10 RK_FUNC_1 &pcfg_pull_none>, /* D10 = G2 */
  344. <RK_GPIO2 11 RK_FUNC_1 &pcfg_pull_none>, /* D11 = G3 */
  345. <RK_GPIO2 12 RK_FUNC_1 &pcfg_pull_none>, /* D12 = G4 */
  346. <RK_GPIO2 13 RK_FUNC_1 &pcfg_pull_none>, /* D13 = G5 */
  347. <RK_GPIO2 14 RK_FUNC_1 &pcfg_pull_none>, /* D14 = G6 */
  348. <RK_GPIO2 15 RK_FUNC_1 &pcfg_pull_none>, /* D15 = G7 */
  349. <RK_GPIO2 16 RK_FUNC_1 &pcfg_pull_none>, /* D16 = R0 */
  350. <RK_GPIO2 17 RK_FUNC_1 &pcfg_pull_none>, /* D17 = R1 */
  351. <RK_GPIO2 18 RK_FUNC_1 &pcfg_pull_none>, /* D18 = R2 */
  352. <RK_GPIO2 19 RK_FUNC_1 &pcfg_pull_none>, /* D19 = R3 */
  353. <RK_GPIO2 20 RK_FUNC_1 &pcfg_pull_none>, /* D20 = R4 */
  354. <RK_GPIO2 21 RK_FUNC_1 &pcfg_pull_none>, /* D21 = R5 */
  355. <RK_GPIO2 22 RK_FUNC_1 &pcfg_pull_none>, /* D22 = R6 */
  356. <RK_GPIO2 23 RK_FUNC_1 &pcfg_pull_none>; /* D23 = R7 */
  357. };
  358. };
  359. };
  360.  
  361. &saradc {
  362. status = "okay";
  363. };
  364.  
  365. &spi1 {
  366. status = "okay";
  367. };
  368.  
  369. &uart0 {
  370. status = "okay";
  371. };
  372.  
  373. &uart1 {
  374. status = "okay";
  375. };
  376.  
  377. &uart2 {
  378. status = "okay";
  379. };
  380.  
  381. &uart3 {
  382. status = "okay";
  383. };
  384.  
  385. &usb_host {
  386. status = "okay";
  387. };
  388.  
  389. &usb_otg {
  390. status = "okay";
  391. };
  392.  
  393. &wdt {
  394. status = "okay";
  395. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement