jh7100-beaglev-starlight.dts 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /* Copyright (c) 2021 StarFive Technology Co., Ltd. */
  3. /dts-v1/;
  4. #include "jh7100.dtsi"
  5. #include <dt-bindings/gpio/gpio.h>
  6. #include <dt-bindings/leds/common.h>
  7. #include <dt-bindings/starfive_fb.h>
  8. / {
  9. model = "BeagleV Starlight Beta";
  10. compatible = "beagle,beaglev-starlight-jh7100", "starfive,jh7100";
  11. aliases {
  12. mshc0 = &sdio0;
  13. mshc1 = &sdio1;
  14. serial0 = &uart3;
  15. serial1 = &uart0;
  16. };
  17. chosen {
  18. stdout-path = "serial0:115200n8";
  19. };
  20. cpus {
  21. timebase-frequency = <6250000>;
  22. };
  23. memory@80000000 {
  24. device_type = "memory";
  25. reg = <0x0 0x80000000 0x2 0x0>;
  26. };
  27. leds {
  28. compatible = "gpio-leds";
  29. led-ack {
  30. gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
  31. color = <LED_COLOR_ID_GREEN>;
  32. function = LED_FUNCTION_HEARTBEAT;
  33. linux,default-trigger = "heartbeat";
  34. label = "ack";
  35. };
  36. };
  37. reserved-memory {
  38. #address-cells = <2>;
  39. #size-cells = <2>;
  40. ranges;
  41. linux,cma {
  42. compatible = "shared-dma-pool";
  43. reusable;
  44. size = <0x0 0x28000000>;
  45. alignment = <0x0 0x1000>;
  46. alloc-ranges = <0x0 0xa0000000 0x0 0x28000000>;
  47. linux,cma-default;
  48. };
  49. jpu_reserved: framebuffer@c9000000 {
  50. reg = <0x0 0xc9000000 0x0 0x4000000>;
  51. };
  52. nvdla_reserved: framebuffer@d0000000 {
  53. no-map;
  54. reg = <0x0 0xd0000000 0x0 0x28000000>;
  55. };
  56. vin_reserved: framebuffer@f9000000 {
  57. compatible = "shared-dma-pool";
  58. no-map;
  59. reg = <0x0 0xf9000000 0x0 0x1000000>;
  60. };
  61. sffb_reserved: framebuffer@fb000000 {
  62. compatible = "shared-dma-pool";
  63. no-map;
  64. reg = <0x0 0xfb000000 0x0 0x2000000>;
  65. };
  66. };
  67. wifi_pwrseq: wifi-pwrseq {
  68. compatible = "mmc-pwrseq-simple";
  69. reset-gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
  70. };
  71. };
  72. &i2c0 {
  73. clock-frequency = <100000>;
  74. i2c-sda-hold-time-ns = <300>;
  75. i2c-sda-falling-time-ns = <500>;
  76. i2c-scl-falling-time-ns = <500>;
  77. scl-gpio = <&gpio 62 0>;
  78. sda-gpio = <&gpio 61 0>;
  79. status = "okay";
  80. imx219@10 {
  81. compatible = "imx219";
  82. reg = <0x10>;
  83. reset-gpio = <&gpio 58 GPIO_ACTIVE_HIGH>;
  84. };
  85. pmic@5e {
  86. compatible = "ti,tps65086";
  87. reg = <0x5e>;
  88. gpio-controller;
  89. #gpio-cells = <2>;
  90. regulators {
  91. };
  92. };
  93. tda998x@70 {
  94. compatible = "nxp,tda998x";
  95. reg = <0x70>;
  96. };
  97. };
  98. &i2c1 {
  99. clock-frequency = <400000>;
  100. i2c-sda-hold-time-ns = <300>;
  101. i2c-sda-falling-time-ns = <100>;
  102. i2c-scl-falling-time-ns = <100>;
  103. scl-gpio = <&gpio 47 0>;
  104. sda-gpio = <&gpio 48 0>;
  105. status = "okay";
  106. };
  107. &i2c2 {
  108. clock-frequency = <100000>;
  109. i2c-sda-hold-time-ns = <300>;
  110. i2c-sda-falling-time-ns = <500>;
  111. i2c-scl-falling-time-ns = <500>;
  112. scl-gpio = <&gpio 60 0>;
  113. sda-gpio = <&gpio 59 0>;
  114. status = "okay";
  115. seeed_plane_i2c@45 {
  116. compatible = "seeed_panel";
  117. reg = <0x45>;
  118. };
  119. };
  120. &osc_sys {
  121. clock-frequency = <25000000>;
  122. };
  123. &osc_aud {
  124. clock-frequency = <27000000>;
  125. };
  126. &qspi {
  127. nor_flash: nor-flash@0 {
  128. compatible = "spi-flash";
  129. reg = <0>;
  130. spi-max-frequency = <31250000>;
  131. page-size = <256>;
  132. block-size = <16>;
  133. cdns,read-delay = <4>;
  134. cdns,tshsl-ns = <1>;
  135. cdns,tsd2d-ns = <1>;
  136. cdns,tchsh-ns = <1>;
  137. cdns,tslch-ns = <1>;
  138. spi-tx-bus-width = <1>;
  139. spi-rx-bus-width = <1>;
  140. };
  141. nand_flash: nand-flash@1 {
  142. compatible = "spi-flash-nand";
  143. reg = <1>;
  144. spi-max-frequency = <31250000>;
  145. page-size = <2048>;
  146. block-size = <17>;
  147. cdns,read-delay = <4>;
  148. cdns,tshsl-ns = <1>;
  149. cdns,tsd2d-ns = <1>;
  150. cdns,tchsh-ns = <1>;
  151. cdns,tslch-ns = <1>;
  152. spi-tx-bus-width = <1>;
  153. spi-rx-bus-width = <1>;
  154. };
  155. };
  156. &sdio0 {
  157. broken-cd;
  158. bus-width = <4>;
  159. cap-sd-highspeed;
  160. max-frequency = <10000000>;
  161. status = "okay";
  162. };
  163. &sdio1 {
  164. #address-cells = <1>;
  165. #size-cells = <0>;
  166. bus-width = <4>;
  167. cap-sd-highspeed;
  168. cap-sdio-irq;
  169. cap-power-off-card;
  170. max-frequency = <10000000>;
  171. mmc-pwrseq = <&wifi_pwrseq>;
  172. non-removable;
  173. status = "okay";
  174. wifi@1 {
  175. compatible = "brcm,bcm4329-fmac";
  176. reg = <1>;
  177. };
  178. };
  179. &sfivefb {
  180. status = "okay";
  181. /*
  182. pp1 {
  183. pp-id = <1>;
  184. fifo-out;
  185. src-format = <COLOR_YUV420_NV21>;
  186. src-width = <800>;
  187. src-height = <480>;
  188. dst-format = <COLOR_RGB888_ARGB>;
  189. dst-width = <800>;
  190. dst-height = <480>;
  191. };
  192. */
  193. tda_998x_1080p {
  194. compatible = "starfive,display-dev";
  195. panel_name = "tda_998x_1080p";
  196. panel_lcd_id = <22>; /* 1080p */
  197. interface_info = "rgb_interface";
  198. refresh_en = <1>;
  199. bits-per-pixel = <16>;
  200. physical-width = <62>;
  201. physical-height = <114>;
  202. panel-width = <1920>;
  203. panel-height = <1080>;
  204. pixel-clock = <78000000>;
  205. /*dyn_fps;*/ /*dynamic frame rate support*/
  206. /*.flags = PREFER_CMD_SEND_MONOLITHIC | CE_CMD_SEND_MONOLITHIC | RESUME_WITH_PREFER | RESUME_WITH_CE*/
  207. /*gamma-command-monolithic;*/
  208. /*ce-command-monolithic;*/
  209. /*resume-with-gamma;*/
  210. /*resume-with-ce;*/
  211. /*mipi info*/
  212. mipi-byte-clock = <78000>;
  213. mipi-escape-clock = <13000>;
  214. lane-no = <4>;
  215. display_mode = "video_mode"; /*video_mode, command_mode*/
  216. /*
  217. auto_stop_clklane_en;
  218. im_pin_val;*/
  219. color_bits = <COLOR_CODE_24BIT>;
  220. /*is_18bit_loosely;*/
  221. /*video mode info*/
  222. h-pulse-width = <44>;
  223. h-back-porch = <148>;
  224. h-front-porch = <88>;
  225. v-pulse-width = <5>;
  226. v-back-porch = <36>;
  227. v-front-porch = <4>;
  228. status = "okay";
  229. sync_pol = "vsync_high_act"; /*vsync_high_act, hsync_high_act*/
  230. lp_cmd_en;
  231. /*lp_hfp_en;*/
  232. /*lp_hbp_en;*/
  233. /*lp_vact_en;*/
  234. lp_vfp_en;
  235. lp_vbp_en;
  236. lp_vsa_en;
  237. traffic-mode = "burst_with_sync_pulses"; /*non_burst_with_sync_pulses, non_burst_with_sync_events*/
  238. /*phy info*/
  239. data_tprepare = /bits/ 8 <0>;
  240. data_hs_zero = /bits/ 8 <0>;
  241. data_hs_exit = /bits/ 8 <0>;
  242. data_hs_trail = /bits/ 8 <0>;
  243. /*te info*/
  244. te_source = "external_pin"; /*external_pin, dsi_te_trigger*/
  245. te_trigger_mode = "rising_edge"; /*rising_edge, high_1000us*/
  246. te_enable = <0>;
  247. cm_te_effect_sync_enable = <0>; /*used in command mode*/
  248. te_count_per_sec = <64>; /*used in esd*/
  249. /*ext info*/
  250. /*
  251. crc_rx_en;
  252. ecc_rx_en;
  253. eotp_rx_en;
  254. */
  255. eotp_tx_en;
  256. dev_read_time = <0x7fff>;
  257. /*type cmd return_count return_code*/
  258. /*id_read_cmd_info = [];*/
  259. /*pre_id_cmd = [];*/
  260. /*esd_read_cmd_info = [DCS_CMD 0A 01 9C];*/
  261. /*pre_esd_cmd = [];*/
  262. /*panel-on-command = [];*/
  263. /*panel-off-command = [];*/
  264. /*reset-sequence = <1 5>, <0 10>, <1 30>;*/
  265. /*
  266. panel-gamma-warm-command = [
  267. ];
  268. panel-gamma-nature-command = [
  269. ];
  270. panel-gamma-cool-command = [
  271. ];
  272. panel-ce-std-command = [
  273. ];
  274. panel-ce-vivid-command = [
  275. ];
  276. */
  277. };
  278. seeed_5_inch {
  279. compatible = "starfive,display-dev";
  280. panel_name = "seeed_5_inch";
  281. panel_lcd_id = <22>; /* 480p */
  282. interface_info = "mipi_interface";
  283. refresh_en = <1>;
  284. bits-per-pixel = <24>;
  285. physical-width = <62>;
  286. physical-height = <114>;
  287. panel-width = <800>;
  288. panel-height = <480>;
  289. pixel-clock = <27500000>;
  290. /*dyn_fps;*/ /*dynamic frame rate support*/
  291. fps = <50>;
  292. /*.flags = PREFER_CMD_SEND_MONOLITHIC | CE_CMD_SEND_MONOLITHIC | RESUME_WITH_PREFER | RESUME_WITH_CE*/
  293. /*gamma-command-monolithic;*/
  294. /*ce-command-monolithic;*/
  295. /*resume-with-gamma;*/
  296. /*resume-with-ce;*/
  297. /*mipi info*/
  298. mipi-byte-clock = <78000>;
  299. mipi-escape-clock = <13000>;
  300. lane-no = <1>;
  301. display_mode = "video_mode"; /*video_mode, command_mode*/
  302. /*
  303. auto_stop_clklane_en;
  304. im_pin_val;
  305. */
  306. color_bits = <COLOR_CODE_24BIT>;
  307. /*is_18bit_loosely;*/
  308. /*video mode info*/
  309. h-pulse-width = <10>;
  310. h-back-porch = <20>;
  311. h-front-porch = <50>;
  312. v-pulse-width = <5>;
  313. v-back-porch = <5>;
  314. v-front-porch = <135>;
  315. /*seeed panel mode info*/
  316. dphy_bps = <700000000>;
  317. dsi_burst_mode = <0>;
  318. dsi_sync_pulse = <1>;
  319. // bytes
  320. dsi_hsa = <30>;
  321. dsi_hbp = <211>;
  322. dsi_hfp = <159>;
  323. // lines
  324. dsi_vsa = <5>;
  325. dsi_vbp = <5>;
  326. dsi_vfp = <134>;
  327. status = "okay";
  328. sync_pol = "vsync_high_act"; /*vsync_high_act, hsync_high_act*/
  329. lp_cmd_en;
  330. /*lp_hfp_en;*/
  331. /*lp_hbp_en;*/
  332. /*lp_vact_en;*/
  333. lp_vfp_en;
  334. lp_vbp_en;
  335. lp_vsa_en;
  336. traffic-mode = "burst_with_sync_pulses"; /*non_burst_with_sync_pulses, non_burst_with_sync_events*/
  337. /*phy info*/
  338. data_tprepare = /bits/ 8 <0>;
  339. data_hs_zero = /bits/ 8 <0>;
  340. data_hs_exit = /bits/ 8 <0>;
  341. data_hs_trail = /bits/ 8 <0>;
  342. /*te info*/
  343. te_source = "external_pin"; /*external_pin, dsi_te_trigger*/
  344. te_trigger_mode = "rising_edge"; /*rising_edge, high_1000us*/
  345. te_enable = <0>;
  346. cm_te_effect_sync_enable = <0>; /*used in command mode*/
  347. te_count_per_sec = <64>; /*used in esd*/
  348. /*ext info*/
  349. /*
  350. crc_rx_en;
  351. ecc_rx_en;
  352. eotp_rx_en;
  353. */
  354. eotp_tx_en;
  355. dev_read_time = <0x7fff>;
  356. /*type cmd return_count return_code*/
  357. /*id_read_cmd_info = [];*/
  358. /*pre_id_cmd = [];*/
  359. /*esd_read_cmd_info = [DCS_CMD 0A 01 9C];*/
  360. /*pre_esd_cmd = [];*/
  361. /*panel-on-command = [];*/
  362. /*panel-off-command = [];*/
  363. /*reset-sequence = <1 5>, <0 10>, <1 30>;*/
  364. /*
  365. panel-gamma-warm-command = [
  366. ];
  367. panel-gamma-nature-command = [
  368. ];
  369. panel-gamma-cool-command = [
  370. ];
  371. panel-ce-std-command = [
  372. ];
  373. panel-ce-vivid-command = [
  374. ];
  375. */
  376. };
  377. };
  378. &spi2 {
  379. status = "okay";
  380. spi_dev0: spi@0 {
  381. compatible = "rohm,dh2228fv";
  382. spi-max-frequency = <10000000>;
  383. reg = <0>;
  384. };
  385. };
  386. &uart0 {
  387. status = "okay";
  388. };
  389. &uart3 {
  390. status = "okay";
  391. };
  392. &usb3 {
  393. dr_mode = "host";
  394. status = "okay";
  395. };