Advertisement
Guest User

Orange Pi Zero vendor fex

a guest
Nov 8th, 2016
912
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.87 KB | None | 0 0
  1. root@orangepi:/mnt/mmcblk0p1# cat sys_config.fex
  2. ;H3 dolphin-p2 board application
  3. ;H3 dolphin-p2 board application
  4. ;---------------------------------------------------------------------------------------------------------
  5. ; ?说?明?: ?脚?本?中?的?字?符?串?区?分?大?小?写?,?用?户?可?以?修?改"="?后?面?的?数?值?,?但?是?不?要?修?改?前?面?的?字?符?串
  6. ; ?描?述gpio?的?形?式?:Port:?端?口+?组?内?序?号<?功?能?分?配><?内?部?电?阻?状?态><?驱?动?能?<?劾??出?电?平?状?态>
  7. ;---------------------------------------------------------------------------------------------------------
  8.  
  9. ;---------------------------------------------------------------------------------------------------------
  10. ; matchine: the name must less then 16 byte
  11. ;---------------------------------------------------------------------------------------------------------
  12. [product]
  13. version = "100"
  14. machine = "dolphin_p2"
  15.  
  16. ;---------------------------------------------------------------------------------------------------------
  17. ; debug_mode: ?是?否?开?启?串?口?打?印?模?式,1:?开?启(?建?议?使?用), 0:?关?闭
  18. ; eraseflag: ?是?否?擦?除?量?产, 1:?擦?除?量?产(?极?度?建?议?使?用), 0:?不?擦?除?量?产
  19. ; next_work: usb?量?产?工?具(PhoenixUSBpro)?量?产?完?成?工?作?状?态,2:?重?启, 3:?关?机(?极?度?建?议?使?用), 4:?重?复?量?产
  20. ;---------------------------------------------------------------------------------------------------------
  21. [platform]
  22. debug_mode = 1
  23. eraseflag = 1
  24. next_work = 3
  25. secure_without_OS = 1
  26.  
  27. ;----------------------------------------------------------------------------------
  28. ;[target] system bootup configuration
  29. ;boot_clock = CPU boot frequency, Unit: MHz
  30. ;storage_type = boot medium, 0-nand, 1-card0, 2-card2, -1(defualt)auto scan
  31. ;----------------------------------------------------------------------------------
  32. [target]
  33. boot_clock = 1008
  34. storage_type = -1
  35. burn_key = 1
  36.  
  37. ;---------------------------------------------------------------------------------
  38. ; uboot key detect enable
  39. ; ?当keyen_flag = 1 ?时?,?支?持?按?键?检?测
  40. ; ?当keyen_flag = 0 ?时?,?不?支?持
  41. ;---------------------------------------------------------------------------------
  42. [key_detect_en]
  43. keyen_flag = 0
  44.  
  45. ;---------------------------------------------------------------------------------
  46. ;"?一?键?迃??写?功?能"?的?按?键?值?配?置?,?按?住?位?于min~max?范??内?的?按?键?都?可?以?强?制?迃??写
  47. ; fel_key_max?用?于?配?置?按?键?的?最?大?键?值
  48. ; fel_key_min?用?于?配?置?按?键?的?最?小?键?值
  49. ;---------------------------------------------------------------------------------
  50. [fel_key]
  51. fel_key_max =07
  52. fel_key_min =02
  53.  
  54. ;----------------------------------------------------------------------------------
  55. ;card boot
  56. ;logical_start?用?于?配?置?启?动?卡?上mbr?的?位?置??篹?于SD?卡sector 0?的?偏?移?,?单?位?为sector(512byte)
  57. ;sprite_gpio0?用?于?配?置?卡?量?产?时?指?示?灯?所?用?的gpio
  58. ;----------------------------------------------------------------------------------
  59. ;-------------------------------------------------------------------------------
  60. ; sprite_work_delay :
  61. ; sprite_err_delay :
  62. ; sprite_gpio0 ?: ?卡?量?产?、?一?键recovery?状?态?指?示?灯
  63. ; next_work ?: ?卡?量?产?完?成?,?工?作?状?态(?默?认?关?机)
  64. ;-------------------------------------------------------------------------------
  65. [card_boot]
  66. logical_start = 40960
  67. sprite_work_delay = 500
  68. sprite_err_delay = 200
  69. sprite_gpio0 = port:PA17<1><default><default><default>
  70. next_work = 3
  71.  
  72. ;---------------------------------------------------------------------------------
  73. ; used : 1: used this config, 0: not
  74. ; start_type : 1: start system directly when power supply, 0: wait IR/KEY to power on
  75. ; irkey_used : 1: ir key used, 0: not
  76. ; pmukey_used: 1: physical button used, 0: not
  77. ; pmukey_num : the index of gpio, only support PL
  78. ; led_power : 1: light, 0: off, the control gpio is PL10
  79. ; led_state : 1: light, 0: off, default is 0
  80. ;---------------------------------------------------------------------------------
  81. [box_start_os]
  82. used = 1
  83. start_type = 1
  84. irkey_used = 1
  85. pmukey_used = 0
  86. pmukey_num = 0
  87. led_power = 0
  88. led_state = 0
  89.  
  90. ;-------------------------------------------------------------------------------
  91. ; boot?阶?段?上?电?初?始?化GPIO
  92. ; used :?模?块?使?能?端 ?置1?:?开?启?模?块 ?置0?:?关?闭?模?块
  93. ; gpiox ?:?上?电?初?始?化gpio ?(?名?称?自?定?,?但?不?能?重?复?,?并?且GPIO?允?许?可?以?多?个?)
  94. ; PH06 : ?系?统?显?示LED GPIO
  95. ;-------------------------------------------------------------------------------
  96. [boot_init_gpio]
  97. used = 1
  98. gpio0 = port:PL10<1><default><default><0>
  99. gpio1 = port:PA17<1><default><default><1>
  100.  
  101. ;----------------------------------------------------------------------------------
  102. ; used: ?模?块?使?能?端 1?:?开?启?模?块 0?:?关?闭?模?块
  103. ; mode: ?模?式?选?择 1?:?一?键?迅?OTA?升?级 2?:?一?键?恢?复?(?通?过sysrecovery?分?区?来?恢?复?) ?其?他?值?:?无?
  104. ; recovery_key ?: ?按?键?配?置 ?(?例?如?:recovery_key= port:PH16<0><default>?)
  105. ;----------------------------------------------------------------------------------
  106. [recovery_para]
  107. used = 1
  108. mode = 2
  109. recovery_key = port:PL04<0><default><default><default>
  110.  
  111.  
  112. ;---------------------------------------------------------------------------------------------------------
  113. ; if 1 == standby_mode, then support super standby;
  114. ; else, support normal standby.
  115. ;---------------------------------------------------------------------------------------------------------
  116. [pm_para]
  117. standby_mode = 1
  118.  
  119. [card0_boot_para]
  120. card_ctrl = 0
  121. card_high_speed = 1
  122. card_line = 4
  123. sdc_d1 = port:PF00<2><1><2><default>
  124. sdc_d0 = port:PF01<2><1><2><default>
  125. sdc_clk = port:PF02<2><1><2><default>
  126. sdc_cmd = port:PF03<2><1><2><default>
  127. sdc_d3 = port:PF04<2><1><2><default>
  128. sdc_d2 = port:PF05<2><1><2><default>
  129.  
  130. [card2_boot_para]
  131. card_ctrl = 2
  132. card_high_speed = 1
  133. card_line = 8
  134. sdc_cmd = port:PC06<3><1><2><default>
  135. sdc_clk = port:PC05<3><1><2><default>
  136. sdc_d0 = port:PC08<3><1><2><default>
  137. sdc_d1 = port:PC09<3><1><2><default>
  138. sdc_d2 = port:PC10<3><1><2><default>
  139. sdc_d3 = port:PC11<3><1><2><default>
  140. sdc_d4 = port:PC12<3><1><2><default>
  141. sdc_d5 = port:PC13<3><1><2><default>
  142. sdc_d6 = port:PC14<3><1><2><default>
  143. sdc_d7 = port:PC15<3><1><2><default>
  144. sdc_2xmode = 1
  145. sdc_ddrmode = 1
  146.  
  147. [twi_para]
  148. twi_port = 0
  149. twi_scl = port:PA11<2><default><default><default>
  150. twi_sda = port:PA12<2><default><default><default>
  151.  
  152. [uart_para]
  153. uart_debug_port = 0
  154. uart_debug_tx = port:PA04<2><1><default><default>
  155. uart_debug_rx = port:PA05<2><1><default><default>
  156.  
  157. [force_uart_para]
  158. force_uart_port = 0
  159. ;force_uart_tx = port:PF02<3><1><default><default>
  160. ;force_uart_rx = port:PF04<3><1><default><default>
  161. force_uart_tx =
  162. force_uart_rx =
  163.  
  164. [jtag_para]
  165. jtag_enable = 1
  166. jtag_ms = port:PA00<3><default><default><default>
  167. jtag_ck = port:PA01<3><default><default><default>
  168. jtag_do = port:PA02<3><default><default><default>
  169. jtag_di = port:PA03<3><default><default><default>
  170.  
  171. [clock]
  172. pll_video = 297
  173. pll_ve = 402
  174. pll_periph0 = 600
  175. pll_gpu = 576
  176. pll_periph1 = 600
  177. pll_de = 864
  178.  
  179. ;*****************************************************************************
  180. ;sdram configuration
  181. ;
  182. ; dram_tpr7[31:31]=1, use gpio type to detect dram type and
  183. ; dram_tpr7[31:31]=0, not use gpio type to detect dram type.
  184. ;
  185. ; if set ddr type auto detect, use dram_tpr7 to set dram clk.
  186. ; for example: if dram_tpr13[13:13] = 1, it use
  187. ; dram_tpr7[29:20] to set lpddr2 clk,
  188. ; dram_tpr7[19:10] to set lpddr3 clk,
  189. ; dram_tpr7[9:0] to set ddr3 or ddr3l clk.
  190. ;*****************************************************************************
  191. [dram_para]
  192. dram_clk = 576
  193. dram_type = 3
  194. dram_zq = 0x3b3bfb
  195. dram_odt_en = 0x1
  196. dram_para1 = 0x10E40000
  197. dram_para2 = 0x0000
  198. dram_mr0 = 0x1840
  199. dram_mr1 = 0x40
  200. dram_mr2 = 0x18
  201. dram_mr3 = 0x2
  202. dram_tpr0 = 0x0048A192
  203. dram_tpr1 = 0x01C2418D
  204. dram_tpr2 = 0x00076051
  205. dram_tpr3 = 0
  206. dram_tpr4 = 0
  207. dram_tpr5 = 0
  208. dram_tpr6 = 100
  209. dram_tpr7 = 0x13890240
  210. dram_tpr8 = 0
  211. dram_tpr9 = 0
  212. dram_tpr10 = 0
  213. dram_tpr11 = 0x6aaa0000
  214. dram_tpr12 = 0x7979
  215. dram_tpr13 = 0x1802800
  216. ;----------------------------------------------------------------------------------
  217. ;os life cycle para configuration
  218. ;----------------------------------------------------------------------------------
  219.  
  220. ;---------------------------------------------------------------------------------------------------------
  221. ; wakeup_src_para:
  222. ; sometimes, u would like to add more wakeup src in standby mode, these para will be
  223. ; help;
  224. ; u need to make sure the standby mode support the wakeup src. Also, some hw
  225. ; condition must be guaranteed.
  226. ; including:
  227. ; cpu_en: power on or off.
  228. ; 1: mean power on
  229. ; 0: mean power off
  230. ; cpu_freq: indicating lowest freq. unit is Mhz;
  231. ; dram selfresh_en: selfresh or not.
  232. ; 1: enable enter selfresh
  233. ; 0: disable enter selfresh
  234. ; dram_pll: if not enter selfresh, indicating lowest freq. unit is Mhz;
  235. ; wakeup_src: to make the scenario work, the wakeup src is needed.
  236. ;---------------------------------------------------------------------------------------------------------
  237. [wakeup_src_para]
  238. cpu_en = 0
  239. cpu_freq = 48
  240. ; (cpu:apb:ahb)
  241. pll_ratio = 0x111
  242. dram_selfresh_en = 1
  243. dram_freq = 36
  244. wakeup_src0 =
  245. wakeup_src_bt = port:PL06<6><default><default><0>
  246.  
  247. ;----------------------------------------------------------------------------------
  248. ;i2c configuration
  249. ;----------------------------------------------------------------------------------
  250. [twi0]
  251. twi_used = 1
  252. twi_scl = port:PA11<2><default><default><default>
  253. twi_sda = port:PA12<2><default><default><default>
  254.  
  255. [twi1]
  256. twi_used = 1
  257. twi_scl = port:PA18<3><default><default><default>
  258. twi_sda = port:PA19<3><default><default><default>
  259.  
  260. [twi2]
  261. twi_used = 0
  262. twi_scl = port:PE12<3><default><default><default>
  263. twi_sda = port:PE13<3><default><default><default>
  264.  
  265. ;----------------------------------------------------------------------------------
  266. ;uart configuration
  267. ;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function)
  268. ;----------------------------------------------------------------------------------
  269. [uart0]
  270. uart_used = 1
  271. uart_port = 0
  272. uart_type = 2
  273. uart_tx = port:PA04<2><1><default><default>
  274. uart_rx = port:PA05<2><1><default><default>
  275.  
  276. [uart1]
  277. uart_used = 1
  278. uart_port = 1
  279. uart_type = 2
  280. uart_tx = port:PG06<2><1><default><default>
  281. uart_rx = port:PG07<2><1><default><default>
  282. ;uart_rts = port:PG08<2><1><default><default>
  283. ;uart_cts = port:PG09<2><1><default><default>
  284.  
  285. [uart2]
  286. uart_used = 1
  287. uart_port = 2
  288. uart_type = 4
  289. uart_tx = port:PA00<2><1><default><default>
  290. uart_rx = port:PA01<2><1><default><default>
  291. ;uart_rts = port:PA02<2><1><default><default>
  292. ;uart_cts = port:PA03<2><1><default><default>
  293.  
  294. [uart3]
  295. uart_used = 0
  296. uart_port = 3
  297. uart_type = 4
  298. uart_tx = port:PA13<3><1><default><default>
  299. uart_rx = port:PA14<3><1><default><default>
  300. uart_rts = port:PA15<3><1><default><default>
  301. uart_cts = port:PA16<3><1><default><default>
  302.  
  303. ;----------------------------------------------------------------------------------
  304. ;SPI controller configuration
  305. ;----------------------------------------------------------------------------------
  306. [spi0]
  307. spi_used = 0
  308. spi_cs_bitmap = 1
  309. spi_mosi = port:PC00<3><default><default><default>
  310. spi_miso = port:PC01<3><default><default><default>
  311. spi_sclk = port:PC02<3><default><default><default>
  312. spi_cs0 = port:PC03<3><1><default><default>
  313.  
  314. [spi1]
  315. spi_used = 0
  316. spi_cs_bitmap = 1
  317. spi_cs0 = port:PA13<2><1><default><default>
  318. spi_sclk = port:PA14<2><default><default><default>
  319. spi_mosi = port:PA15<2><default><default><default>
  320. spi_miso = port:PA16<2><default><default><default>
  321.  
  322. ;----------------------------------------------------------------------------------
  323. ;SPI device configuration
  324. ;----------------------------------------------------------------------------------
  325. [spi_devices]
  326. spi_dev_num = 1
  327.  
  328. [spi_board0]
  329. modalias = m25p32
  330. max_speed_hz = 33000000
  331. bus_num = 0
  332. chip_select = 0
  333. mode = 0
  334.  
  335. ;----------------------------------------------------------------------------------
  336. ;userspace gpio interface for android
  337. ;----------------------------------------------------------------------------------
  338. [gpio_para]
  339. gpio_used = 1
  340. gpio_num = 2
  341. gpio_pin_1 = port:PL10<1><default><default><0>
  342. gpio_pin_2 = port:PA17<1><default><default><1>
  343.  
  344. [led_assign]
  345. normal_led = "gpio_pin_2"
  346. standby_led = "gpio_pin_1"
  347.  
  348. ;----------------------------------------------------------------------------------
  349. ;thermal configuration
  350. ;ths_trip_count : temperature trigger number
  351. ;ths_trip_0 : first temperature trigger
  352. ;ths_trip_1 : second temperature trigger
  353. ;ths_trip_2 : third temperature trigger, when upto this temperature, system shutdown
  354. ;ths_trip_0_min : first temperature trigger's min freq
  355. ;ths_trip_0_max : first temperature trigger's max freq
  356. ;ths_trip_1_min : second temperature trigger's min freq
  357. ;ths_trip_1_max : second temperature trigger's max freq
  358. ;----------------------------------------------------------------------------------
  359. [ths_para]
  360. ths_used = 1
  361. ths_trip1_count = 5
  362. ths_trip1_0 = 70
  363. ths_trip1_1 = 80
  364. ths_trip1_2 = 90
  365. ths_trip1_3 = 100
  366. ths_trip1_4 = 105
  367. ths_trip1_5 = 0
  368. ths_trip1_6 = 0
  369. ths_trip1_7 = 0
  370. ths_trip1_0_min = 0
  371. ths_trip1_0_max = 1
  372. ths_trip1_1_min = 1
  373. ths_trip1_1_max = 2
  374. ths_trip1_2_min = 2
  375. ths_trip1_2_max = 3
  376. ths_trip1_3_min = 3
  377. ths_trip1_3_max = 4
  378. ths_trip1_4_min = 4
  379. ths_trip1_4_max = 4
  380. ths_trip1_5_min = 0
  381. ths_trip1_5_max = 0
  382. ths_trip1_6_min = 0
  383. ths_trip1_6_max = 0
  384. ths_trip2_count = 1
  385. ths_trip2_0 = 105
  386. ;----------------------------------------------------------------------------------
  387. ;cooler_table cooler_count <=32
  388. ;----------------------------------------------------------------------------------
  389. [cooler_table]
  390. cooler_count = 5
  391. cooler0 = "1200000 4 4294967295 0"
  392. cooler1 = "1200000 3 4294967295 0"
  393. cooler2 = "1200000 2 4294967295 0"
  394. cooler3 = "1200000 1 4294967295 0"
  395. cooler4 = "504000 1 4294967295 0"
  396.  
  397.  
  398. [nand0_para]
  399. nand_support_2ch = 0
  400. nand_cache_level = 1
  401. nand0_used = 0
  402. nand0_we = port:PC00<2><0><1><default>
  403. nand0_ale = port:PC01<2><0><1><default>
  404. nand0_cle = port:PC02<2><0><1><default>
  405. nand0_ce1 = port:PC03<2><1><1><default>
  406. nand0_ce0 = port:PC04<2><1><1><default>
  407. nand0_nre = port:PC05<2><0><1><default>
  408. nand0_rb0 = port:PC06<2><1><1><default>
  409. nand0_rb1 = port:PC07<2><1><1><default>
  410. nand0_d0 = port:PC08<2><0><1><default>
  411. nand0_d1 = port:PC09<2><0><1><default>
  412. nand0_d2 = port:PC10<2><0><1><default>
  413. nand0_d3 = port:PC11<2><0><1><default>
  414. nand0_d4 = port:PC12<2><0><1><default>
  415. nand0_d5 = port:PC13<2><0><1><default>
  416. nand0_d6 = port:PC14<2><0><1><default>
  417. nand0_d7 = port:PC15<2><0><1><default>
  418. nand0_ndqs = port:PC16<2><0><1><default>
  419.  
  420.  
  421. ;-----------------------------------------------------------------
  422. ;auto_hpd - 1:need hotplud for hdmi/tv; 0:don't hotplud for lcd
  423. ;output_type - 0:none; 1:lcd; 2:tv; 4:hdmi; 8:vga (as default config in homlet)
  424. ;hdmi_channel- the display channel for hdmi (as default config in homlet)
  425. ;cvbs_channel- the display channel for cvbs (as default config in homlet)
  426. ;hdmi_mode - as default config for output of hdmi in homlet
  427. ;cvbs_mode - as default config for output of tv in homlet. 11:PAL; 14:NTSC
  428. ;check the definition(of hdmi/cvbs_mode) of disp_tv_mode in sunxi_display2.h
  429. ;hdmi_mode_check - disable/enable the function of checking hdmi mode, 0 is disable, 1 is enable
  430. ;-----------------------------------------------------------------
  431. [boot_disp]
  432. advert_disp = 1
  433. auto_hpd = 1
  434. output_type = 2
  435. hdmi_channel = 0
  436. hdmi_mode = 10
  437. cvbs_channel = 1
  438. cvbs_mode = 11
  439. output_full = 1
  440. hdmi_mode_check = 1
  441.  
  442. ;----------------------------------------------------------------------------------
  443. ;disp init configuration
  444. ;
  445. ;disp_mode (0:screen0<screen0,fb0>; 1:screen1<screen1,fb0>)
  446. ;screenx_output_type (0:none; 1:lcd; 3:hdmi;)
  447. ;screenx_output_mode (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50)
  448. ; (5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60)
  449. ;fbx format (0:ARGB 1:ABGR 2:RGBA 3:BGRA 5:RGB565 8:RGB888 12:ARGB4444 16:ARGB1555 18:RGBA5551)
  450. ;fbx_width,fbx_height (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0)
  451. ;lcdx_backlight (lcd init backlight,the range:[0,256],default:197
  452. ;----------------------------------------------------------------------------------
  453. [disp_init]
  454. disp_init_enable = 1
  455. disp_mode = 1
  456.  
  457. screen0_output_type = 3
  458. screen0_output_mode = 4
  459.  
  460. screen1_output_type = 2
  461. screen1_output_mode = 11
  462.  
  463. fb0_format = 0
  464. fb0_width = 1280
  465. fb0_height = 720
  466.  
  467. fb1_format = 0
  468. fb1_width = 0
  469. fb1_height = 0
  470.  
  471. ;----------------------------------------------------------------------------------
  472. ;hdmi configuration
  473. ;----------------------------------------------------------------------------------
  474. [hdmi_para]
  475. hdmi_used = 1
  476. hdmi_power = "vcc-hdmi-18"
  477.  
  478. [tv_para]
  479. tv_used = 1
  480. tv_dac_used = 1
  481. tv_dac_src0 = 0
  482.  
  483. ;----------------------------------------------------------------------------------
  484. ;pwm config
  485. ;----------------------------------------------------------------------------------
  486. [pwm0_para]
  487. pwm_used = 0
  488. pwm_positive = port:PA05<3><0><default><default>
  489.  
  490. ;------------------------------------------------------------------------------;
  491. ; 10/100/100Mbps Ethernet MAC Controller Configure ;
  492. ;------------------------------------------------------------------------------;
  493. ; Options: ;
  494. ; gmac_used --- 0: not used, 1: external phy, 2: internal phy ;
  495. ; gmac_powerx -- A[:B] A: axp channel, B: voltage value ;
  496. : If set gamc_phy to use internal PHY, do not config port ;
  497. ;------------------------------------------------------------------------------;
  498. ; MII RMII MII RMII MII RMII ;
  499. ; PD00 * PD06 * * PD12 * * ;
  500. ; PD01 * PD07 * PD13 * * ;
  501. ; PD02 * * PD08 * PD14 * ;
  502. ; PD03 * * PD09 * * PD15 * ;
  503. ; PD04 * PD10 * * PD16 * * ;
  504. ; PD05 * PD11 * * PD17 * * ;
  505. ;------------------------------------------------------------------------------;
  506. [gmac0]
  507. gmac_used = 2
  508. ;gmac_rxd3 = port:PD00<2><default><3><default>
  509. ;gmac_rxd2 = port:PD01<2><default><3><default>
  510. ;gmac_rxd1 = port:PD02<2><default><3><default>
  511. ;gmac_rxd0 = port:PD03<2><default><3><default>
  512. ;gmac_rxclk = port:PD04<2><default><3><default>
  513. ;gmac_rxdv = port:PD05<2><default><3><default>
  514. ;gmac_rxerr = port:PD06<2><default><3><default>
  515. ;gmac_txd3 = port:PD07<2><default><3><default>
  516. ;gmac_txd2 = port:PD08<2><default><3><default>
  517. ;gmac_txd1 = port:PD09<2><default><3><default>
  518. ;gmac_txd0 = port:PD10<2><default><3><default>
  519. ;gmac_crs = port:PD11<2><default><3><default>
  520. ;gmac_txclk = port:PD12<2><default><3><default>
  521. ;gmac_txen = port:PD13<2><default><3><default>
  522. ;gmac_txerr = port:PD14<2><default><3><default>
  523. ;gmac_col = port:PD15<2><default><3><default>
  524. ;gmac_mdc = port:PD16<2><default><3><default>
  525. ;gmac_mdio = port:PD17<2><default><3><default>
  526. gmac_power1 =
  527.  
  528. ;--------------------------------------------------------------------------------
  529. ;vip (video input port) configuration
  530. ;vip_used: 0:disable 1:enable
  531. ;vip_mode: 0:sample one interface to one buffer 1:sample two interface to one buffer
  532. ;vip_dev_qty: The quantity of devices linked to capture bus
  533. ;
  534. ;vip_define_sensor_list: If you want use sensor detect function, please set vip_define_sensor_list = 1, and
  535. ; verify that file /system/etc/hawkview/sensor_list_cfg.ini is properly configured!
  536. ;
  537. ;vip_dev(x)_pos: sensor position, "rear" or "front", if vip_define_sensor_list = 1,
  538. ;vip_dev(x)_pos must be configured!
  539. ;
  540. ;vip_dev(x)_isp_used 0:not use isp 1:use isp
  541. ;vip_dev(x)_fmt: 0:yuv 1:bayer raw rgb
  542. ;vip_dev(x)_stby_mode: 0:not shut down power at standby 1:shut down power at standby
  543. ;vip_dev(x)_vflip: flip in vertical direction 0:disable 1:enable
  544. ;vip_dev(x)_hflip: flip in horizontal direction 0:disable 1:enable
  545. ;vip_dev(x)_iovdd: camera module io power handle string, pmu power supply
  546. ;vip_dev(x)_iovdd_vol: camera module io power voltage, pmu power supply
  547. ;vip_dev(x)_avdd: camera module analog power handle string, pmu power supply
  548. ;vip_dev(x)_avdd_vol: camera module analog power voltage, pmu power supply
  549. ;vip_dev(x)_dvdd: camera module core power handle string, pmu power supply
  550. ;vip_dev(x)_dvdd_vol: camera module core power voltage, pmu power supply
  551. ;vip_dev(x)_afvdd: camera module vcm power handle string, pmu power supply
  552. ;vip_dev(x)_afvdd_vol: camera module vcm power voltage, pmu power supply
  553. ;x indicates the index of the devices which are linked to the same capture bus
  554. ;fill voltage in uV, e.g. iovdd = 2.8V, vip_devx_iovdd_vol = 2800000
  555. ;fill handle string as below:
  556. ;axp22_eldo3
  557. ;axp22_dldo4
  558. ;axp22_eldo2
  559. ;fill handle string "" when not using any pmu power supply
  560. ;--------------------------------------------------------------------------------
  561.  
  562. [csi0]
  563.  
  564. vip_used = 0
  565. vip_mode = 0
  566. vip_dev_qty = 1
  567. vip_define_sensor_list = 0
  568.  
  569. vip_csi_pck = port:PE00<2><default><default><default>
  570. vip_csi_mck = port:PE01<2><default><default><default>
  571. vip_csi_hsync = port:PE02<2><default><default><default>
  572. vip_csi_vsync = port:PE03<2><default><default><default>
  573. vip_csi_d0 = port:PE04<2><default><default><default>
  574. vip_csi_d1 = port:PE05<2><default><default><default>
  575. vip_csi_d2 = port:PE06<2><default><default><default>
  576. vip_csi_d3 = port:PE07<2><default><default><default>
  577. vip_csi_d4 = port:PE08<2><default><default><default>
  578. vip_csi_d5 = port:PE09<2><default><default><default>
  579. vip_csi_d6 = port:PE10<2><default><default><default>
  580. vip_csi_d7 = port:PE11<2><default><default><default>
  581. vip_csi_sck = port:PE12<2><default><default><default>
  582. vip_csi_sda = port:PE13<2><default><default><default>
  583.  
  584. vip_dev0_mname = "ov5640"
  585. vip_dev0_pos = "rear"
  586. vip_dev0_lane = 1
  587. vip_dev0_twi_id = 0
  588. vip_dev0_twi_addr = 0x78
  589. vip_dev0_isp_used = 0
  590. vip_dev0_fmt = 0
  591. vip_dev0_stby_mode = 0
  592. vip_dev0_vflip = 0
  593. vip_dev0_hflip = 0
  594. vip_dev0_iovdd = ""
  595. vip_dev0_iovdd_vol = 2800000
  596. vip_dev0_avdd = ""
  597. vip_dev0_avdd_vol = 2800000
  598. vip_dev0_dvdd = ""
  599. vip_dev0_dvdd_vol = 1500000
  600. vip_dev0_afvdd = ""
  601. vip_dev0_afvdd_vol = 2800000
  602. vip_dev0_power_en =
  603. vip_dev0_reset =
  604. vip_dev0_pwdn =
  605. vip_dev0_flash_en =
  606. vip_dev0_flash_mode =
  607. vip_dev0_af_pwdn =
  608.  
  609. vip_dev0_act_used = 0
  610. vip_dev0_act_name = "ad5820_act"
  611. vip_dev0_act_slave = 0x18
  612.  
  613.  
  614. vip_dev1_mname = ""
  615. vip_dev1_pos = "front"
  616. vip_dev1_lane = 1
  617. vip_dev1_twi_id = 0
  618. vip_dev1_twi_addr =
  619. vip_dev1_isp_used = 0
  620. vip_dev1_fmt = 1
  621. vip_dev1_stby_mode = 0
  622. vip_dev1_vflip = 0
  623. vip_dev1_hflip = 0
  624. vip_dev1_iovdd = ""
  625. vip_dev1_iovdd_vol = 2800000
  626. vip_dev1_avdd = ""
  627. vip_dev1_avdd_vol = 2800000
  628. vip_dev1_dvdd = ""
  629. vip_dev1_dvdd_vol = 1500000
  630. vip_dev1_afvdd = ""
  631. vip_dev1_afvdd_vol = 2800000
  632. vip_dev1_power_en =
  633. vip_dev1_reset =
  634. vip_dev1_pwdn =
  635. vip_dev1_flash_en =
  636. vip_dev1_flash_mode =
  637. vip_dev1_af_pwdn =
  638.  
  639.  
  640. ;--------------------------------------------------------------------------------
  641. ;tv configuration
  642. ;
  643. ;--------------------------------------------------------------------------------
  644. [tvout_para]
  645. tvout_used = 1
  646. tvout_channel_num = 1
  647. tv_en =
  648.  
  649. [tvin_para]
  650. tvin_used =
  651. tvin_channel_num =
  652.  
  653. ;----------------------------------------------------------------------------------
  654. ;DE-Interlace configuration
  655. ;----------------------------------------------------------------------------------
  656. [di_para]
  657. di_used = 1
  658.  
  659. ;--------------------------------------------------------------------------------
  660. ; SDMMC PINS MAPPING |
  661. ; ------------------------------------------------------------------------------|
  662. ; Config Guide |
  663. ; sdc_used: 1-enable card, 0-disable card |
  664. ; sdc_detmode: card detect mode |
  665. ; 1-detect card by gpio polling |
  666. ; 2-detect card by gpio irq(must use IO with irq function) |
  667. ; 3-no detect, always in for boot card |
  668. ; 4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert|
  669. ; sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit |
  670. ; sdc_use_wp: 1-with write protect IO, 0-no write protect IO |
  671. ; sdc_isio: for sdio card |
  672. ; sdc_regulator: power control.if card supports UHS-I/DDR and HS200 timing for|
  673. ; SD3.0 or eMMC4.5, regulator must be configured. the value is |
  674. ; the ldo name of AXP221, eg: sdc_regulator = "axp22_eldo2" |
  675. ; other: GPIO Mapping configuration |
  676. ; ------------------------------------------------------------------------------|
  677. ; Note: |
  678. ; 1 if detmode=2, sdc_det's config=6 |
  679. ; else if detmode=1, sdc_det's config=0 |
  680. ; else sdc_det IO is not necessary |
  681. ; 2 if the customer wants to support UHS-I and HS200 features, he must provide|
  682. ; an independent power supply for the card. This is only used in platforms |
  683. ; that supports SD3.0 cards and eMMC4.4+ flashes |
  684. ;--------------------------------------------------------------------------------
  685. [mmc0_para]
  686. sdc_used = 1
  687. sdc_detmode = 1
  688. sdc_buswidth = 4
  689. sdc_clk = port:PF02<2><1><2><default>
  690. sdc_cmd = port:PF03<2><1><2><default>
  691. sdc_d0 = port:PF01<2><1><2><default>
  692. sdc_d1 = port:PF00<2><1><2><default>
  693. sdc_d2 = port:PF05<2><1><2><default>
  694. sdc_d3 = port:PF04<2><1><2><default>
  695. sdc_det = port:PF06<0><1><2><default>
  696. sdc_use_wp = 0
  697. sdc_wp =
  698. sdc_isio = 0
  699. sdc_regulator = "none"
  700. sdc_power_supply = "none"
  701.  
  702. [mmc1_para]
  703. sdc_used = 1
  704. sdc_detmode = 4
  705. sdc_buswidth = 4
  706. sdc_clk = port:PG00<2><1><2><default>
  707. sdc_cmd = port:PG01<2><1><2><default>
  708. sdc_d0 = port:PG02<2><1><2><default>
  709. sdc_d1 = port:PG03<2><1><2><default>
  710. sdc_d2 = port:PG04<2><1><2><default>
  711. sdc_d3 = port:PG05<2><1><2><default>
  712. sdc_det =
  713. sdc_use_wp = 0
  714. sdc_wp =
  715. sdc_isio = 1
  716. sdc_regulator = "none"
  717. sdc_power_supply = "none"
  718. sdc_2xmode = 1
  719. sdc_ddrmode = 1
  720.  
  721. [mmc2_para]
  722. sdc_used = 0
  723. sdc_detmode = 3
  724. sdc_buswidth = 8
  725. sdc_clk = port:PC05<3><1><2><default>
  726. sdc_cmd = port:PC06<3><1><2><default>
  727. sdc_d0 = port:PC08<3><1><2><default>
  728. sdc_d1 = port:PC09<3><1><2><default>
  729. sdc_d2 = port:PC10<3><1><2><default>
  730. sdc_d3 = port:PC11<3><1><2><default>
  731. sdc_d4 = port:PC12<3><1><2><default>
  732. sdc_d5 = port:PC13<3><1><2><default>
  733. sdc_d6 = port:PC14<3><1><2><default>
  734. sdc_d7 = port:PC15<3><1><2><default>
  735. emmc_rst = port:PC16<3><1><2><default>
  736. sdc_det =
  737. sdc_use_wp = 0
  738. sdc_wp =
  739. sdc_isio = 0
  740. sb_restrict_gpio usb?侙??流?控?制pin
  741. ;usb_restric_flag: usb?限?流?标?置
  742. ;--------------------------------
  743. ;--------------------------------
  744. ;--- USB0?控?制?标?志
  745. ;-------------------------------------------------------------------------------|
  746. [usbc0]ard configuration
  747. usb_used = 1----------------------------------------------------------
  748. usb_port_type = 2
  749. usb_detect_type = 1
  750. usb_id_gpio = port:PG12<0><1><default><default>fault>
  751. usb_det_vbus_gpio = port:PG12<0><1><default><default>fault>
  752. usb_drv_vbus_gpio = port:PL02<1><0><default><0>lt><default>
  753. usb_host_init_state = 1ort:PA10<2><default><default><default>
  754. usb_restrict_gpio = port:PA06<2><default><default><default>
  755. usb_restric_flag = 0ort:PA07<2><default><default><default>
  756. usb_restric_voltage = 355000008<2><default><default><default>
  757. usb_restric_capacity= 5
  758. usb_regulator_io = "nocare"
  759. usb_regulator_vol = 0----------
  760. usb_not_suspend = 0 ?配?置?。
  761. ;usb_used?:USB?使?能?标?志?。?置1?,?表?示?系?统?中USB?模?块?可?用,?置0,?则?表?示?系?统USB?禁?用?。
  762. ;--------------------------------用?情?况?。 0?:device only;1?:host only;2?:OTG
  763. ;--- USB1?控?制?标?志 ?的?检?查?方?式?。0?:?不?做?检?测;1?:vbus/id?检?查;2?:id/dpdm?检?查
  764. ;-------------------------------- ?。?具?体?请?参?考gpio?配?置?说?明?。
  765. [usbc1]t_vbus_gpio?:USB DET_VBUS pin?脚?配?置?。?具?体?请?参?考gpio?配?置?说?明?。
  766. usb_used = 1B DRY_VBUS pin?脚?配?置?。?具?体?请?参?考gpio?配?置?说?明?。
  767. usb_drv_vbus_gpio = xp_ctrl",?表?示axp ?提?
  768. usb_restrict_gpio =
  769. usb_host_init_state = 1
  770. usb_restric_flag = 0
  771. usb_regulator_io = "nocare"
  772. usb_regulator_vol = 0
  773. usb_not_suspend = 0
  774.  
  775. ;--------------------------------
  776. ;--- USB2?控?制?标?志
  777. ;--------------------------------
  778. [usbc2]
  779. usb_used = 1
  780. usb_drv_vbus_gpio =
  781. usb_restrict_gpio =
  782. usb_host_init_state = 1
  783. usb_restric_flag = 0
  784. usb_regulator_io = "nocare"
  785. usb_regulator_vol = 0
  786. usb_not_suspend = 0
  787.  
  788. ;--------------------------------
  789. ;--- USB3?控?制?标?志
  790. ;--------------------------------
  791. [usbc3]
  792. usb_used = 1
  793. usb_drv_vbus_gpio =
  794. usb_restrict_gpio =
  795. usb_host_init_state = 0
  796. usb_restric_flag = 0
  797. usb_regulator_io = "nocare"
  798. usb_regulator_vol = 0
  799. usb_not_suspend = 0
  800.  
  801. ;--------------------------------
  802. ;--- USB Device
  803. ;--------------------------------
  804. [usb_feature]
  805. vendor_id = 0x18D1
  806. mass_storage_id = 0x0001
  807. adb_id = 0x0002
  808.  
  809. manufacturer_name = "USB Developer"
  810. product_name = "Android"
  811. serial_number = "20080411"
  812.  
  813. [msc_feature]
  814. vendor_name = "USB 2.0"
  815. product_name = "USB Flash Driver"
  816. release = 100
  817. luns = 3
  818.  
  819. [serial_feature]
  820. serial_unique = 0
  821.  
  822.  
  823. ;--------------------------------------------------------------------------------
  824. ;wifi/bt/fm/gps/nfc modules configuration
  825. ;module_power0: axp used by module, "axp22_dldo1" - use dldo1, not use keep it empty
  826. ;module_power0_vol: power0 voltage, mv;
  827. ;module_select_pin0: select rtl8723bs or rtl8703as;module_select_pin1: select ap6181 or ap6210;
  828. ;chip_en: enable chip io
  829. ;lpo_use_apclk: ""- not use, "losc_out"- a23/33/H3, "ac10032k1"?、"ac10032k2"?、"ac10032k3"- a80
  830. ;--------------------------------------------------------------------------------
  831. [module_para]
  832. module_power0 = port:PA20<1><default><default><0>
  833. module_power0_vol = 1
  834. module_power1 =
  835. module_power1_vol =
  836. module_power2 =
  837. module_power2_vol =
  838. module_power3 =
  839. module_power3_vol =
  840. module_select_pin0 =
  841. module_select_pin1 =
  842. chip_en =
  843. lpo_use_apclk = "losc_out"
  844.  
  845. ;--------------------------------------------------------------------------------
  846. ;wifi configuration
  847. ;wifi_sdc_id: 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
  848. ;wifi_usbc_id: 0- USB0, 1- USB1, 2- USB2
  849. ;wifi_usbc_type: 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
  850. ;wl_reg_on: wifi function enable pin
  851. ;wl_host_wake: wlan device wake-up host pin
  852. ;wl_host_wake_invert: whether wl_host_wake use inverter between ap and module
  853. ; 0: not used, 1: used
  854. ;--------------------------------------------------------------------------------
  855. [wifi_para]
  856. wifi_used = 1
  857. wifi_sdc_id = 1
  858. wifi_usbc_id = 3
  859. wifi_usbc_type = 1
  860. wl_reg_on = port:PL07<1><default><default><0>
  861. wl_host_wake = port:PG10<0><default><default><0>
  862. wl_host_wake_invert = 0
  863.  
  864. ;--------------------------------------------------------------------------------
  865. ;bluetooth configuration
  866. ;bt_used: 0- no used, 1- used
  867. ;bt_uard_id: 0- uart0, 1- uart1, 2- uart2
  868. ;bt_uart_baud: uart baud rate, unit: bps
  869. ;bt_rst_n: bt function enable io
  870. ;bt_wake: host wake-up bluetooth device
  871. ;bt_host_wake: bt device wake-up host
  872. ;bt_host_wake_invert: whether bt_host_wake use inverter between ap and module
  873. ; 0: not used, 1: used
  874. ;--------------------------------------------------------------------------------
  875. [bt_para]
  876. bt_used = 0
  877. bt_uart_id = 1
  878. bt_uart_baud = 1500000
  879. bt_rst_n = port:PL01<1><default><default><0>
  880. bt_wake = port:PA12<1><default><default><0>
  881. bt_host_wake = port:PL06<0><default><default><0>
  882. bt_host_wake_invert = 0
  883.  
  884. ;--------------------------------------------------------------------------------
  885. ;daudio_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
  886. ; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
  887. ; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
  888. ; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
  889. ;daudio_select:0 is pcm.1 is i2s
  890. ;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
  891. ; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
  892. ; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
  893. ; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
  894. ; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
  895. ;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
  896. ; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
  897. ; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
  898. ; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
  899. ;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
  900. ;sample_resolution :16bits/20bits/24bits
  901. ;word_select_size :16bits/20bits/24bits/32bits
  902. ;pcm_sync_period :16/32/64/128/256
  903. ;msb_lsb_first :0: msb first; 1: lsb first
  904. ;sign_extend :0: zero pending; 1: sign extend
  905. ;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
  906. ;slot_width :8 bit width / 16 bit width
  907. ;frame_width :0: long frame = 2 clock width; 1: short frame
  908. ;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
  909. ;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
  910. ;--------------------------------------------------------------------------------
  911. [pcm0]
  912. daudio_used = 0
  913. daudio_master = 4
  914. daudio_select = 1
  915. audio_format = 1
  916. signal_inversion = 1
  917. mclk_fs = 128
  918. sample_resolution = 16
  919. slot_width_select = 32
  920. ;pcm_sync_period = 256
  921. pcm_lrck_period = 32
  922. pcm_lrckr_period = 1
  923. msb_lsb_first = 0
  924. sign_extend = 0
  925. slot_index = 0
  926. slot_width = 32
  927. frame_width = 0
  928. tx_data_mode = 0
  929. rx_data_mode = 0
  930. i2s_mclk = port:PA18<2><1><default><default>
  931. i2s_bclk = port:PA19<2><1><default><default>
  932. i2s_dout0 = port:PA20<2><1><default><default>
  933. i2s_din = port:PA21<2><1><default><default>
  934.  
  935.  
  936. [pcm1]
  937. daudio_used = 0
  938. daudio_master = 4
  939. daudio_select = 1
  940. audio_format = 1
  941. signal_inversion = 1
  942. mclk_fs = 128
  943. sample_resolution = 16
  944. slot_width_select = 32
  945. ;pcm_sync_period = 256
  946. pcm_lrck_period = 32
  947. pcm_lrckr_period = 1
  948. msb_lsb_first = 0
  949. sign_extend = 0
  950. slot_index = 0
  951. slot_width = 32
  952. frame_width = 0
  953. tx_data_mode = 0
  954. rx_data_mode = 0
  955. i2s_mclk = port:PG10<2><1><default><default>
  956. i2s_bclk = port:PG11<2><1><default><default>
  957. i2s_dout0 = port:PG12<2><1><default><default>
  958. i2s_din = port:PG13<2><1><default><default>
  959.  
  960.  
  961. [audio0]
  962. audio_used = 1
  963. lineout_vol = 0x1f
  964. cap_vol = 0x5
  965. audio_hp_ldo = none
  966. adcagc_used = 0
  967. adcdrc_used = 0
  968. dacdrc_used = 0
  969. adchpf_used = 0
  970. dachpf_used = 0
  971. audio_pa_ctrl = port:PA16<1><default><default><0>
  972.  
  973. [spdif0]
  974. spdif_used = 1
  975. spdif_dout = port:PA17<2><1><default><default>
  976.  
  977. [audiohub]
  978. hub_used = 0
  979. codec_used = 1
  980. spdif_used = 1
  981. hdmi_used = 1
  982.  
  983. ;----------------------------------------------------------------------------------
  984. ;ir rx --- infra remote configuration
  985. ;----------------------------------------------------------------------------------
  986. [s_cir0]
  987. ir_used = 1
  988. ir_rx = port:PL11<2><1><default><default>
  989. ir_power_key_code0 = 0x57
  990. ir_addr_code0 = 0x9f00
  991. ir_power_key_code1 = 0x1a
  992. ir_addr_code1 = 0xfb04
  993. ir_power_key_code2 = 0x14
  994. ir_addr_code2 = 0x7F80
  995. ir_power_key_code3 = 0x15
  996. ir_addr_code3 = 0x7F80
  997. ir_power_key_code4 = 0x0b
  998. ir_addr_code4 = 0xF708
  999. ir_power_key_code5 = 0x03
  1000. ir_addr_code5 = 0x00EF
  1001. ir_power_key_code6 = 0x9f
  1002. ir_addr_code6 = 0x4CB3
  1003. ir_power_key_code7 = 0x0a
  1004. ir_addr_code7 = 0x7748
  1005. ir_power_key_code8 = 0x45
  1006. ir_addr_code8 = 0xbd02
  1007. ir_power_key_code9 = 0x4d
  1008. ir_addr_code9 = 0xde21
  1009. ir_power_key_code10 = 0x18
  1010. ir_addr_code10 = 0xfe01
  1011. ir_power_key_code11 = 0x57
  1012. ir_addr_code11 = 0xff00
  1013. ir_power_key_code12 = 0x4d
  1014. ir_addr_code12 = 0xff40
  1015. ir_power_key_code13 = 0x88
  1016. ir_addr_code13 = 0xdd22
  1017.  
  1018.  
  1019. ;----------------------------------------------------------------------------------
  1020. ;ir tx--- infra remote configuration
  1021. ;----------------------------------------------------------------------------------
  1022. [cir]
  1023. ir_used = 0
  1024. ir_tx = port:PH07<2><default><default><default>
  1025.  
  1026.  
  1027. ;----------------------------------------------------------------------------------
  1028. ; dvfs voltage-frequency table configuration
  1029. ;
  1030. ; pmuic_type:0:none, 1:gpio, 2:i2c
  1031. ; pmu_gpio0: gpio config.
  1032. ; pmu_levelx: 0~9999: voltage(mV), 10000~90000:gpio0 state. voltage form high to low.
  1033. ;
  1034. ; extremity_freq(Hz): cpu extremity frequency when run benckmark or demo apk
  1035. ; 1536MHz@1500mV with radiator, 1296MHz@1340mV without radiator
  1036. ; max_freq: cpu maximum frequency, based on Hz, can not be more than 1200MHz
  1037. ; min_freq: cpu minimum frequency, based on Hz, can not be less than 60MHz
  1038. ;
  1039. ; LV_count: count of LV_freq/LV_volt, must be < 16
  1040. ;
  1041. ; LV1: core vdd is 1.50v if cpu frequency is (1296Mhz, 1536Mhz]
  1042. ; LV2: core vdd is 1.34v if cpu frequency is (1200Mhz, 1296Mhz]
  1043. ; LV3: core vdd is 1.32v if cpu frequency is (1008Mhz, 1200Mhz]
  1044. ; LV4: core vdd is 1.20v if cpu frequency is (816Mhz, 1008Mhz]
  1045. ; LV5: core vdd is 1.10v if cpu frequency is (648Mhz, 816Mhz]
  1046. ; LV6: core vdd is 1.04v if cpu frequency is (0Mhz, 648Mhz]
  1047. ; LV7: core vdd is 1.04v if cpu frequency is (0Mhz, 648Mhz]
  1048. ; LV8: core vdd is 1.04v if cpu frequency is (0Mhz, 648Mhz]
  1049. ;
  1050. ;----------------------------------------------------------------------------------
  1051. [dvfs_table]
  1052. pmuic_type = 0
  1053. pmu_gpio0 = port:PL06<1><1><2><1>
  1054. pmu_level0 = 11300
  1055. pmu_level1 = 01100
  1056. ;extremity_freq = 1344000000
  1057. max_freq = 1008000000
  1058. min_freq = 480000000
  1059. boot_freq = 1008000000
  1060. LV_count = 8
  1061.  
  1062. LV1_freq = 1200000000
  1063. LV1_volt = 1300
  1064.  
  1065. LV2_freq = 1008000000
  1066. LV2_volt = 1200
  1067.  
  1068. LV3_freq = 0
  1069. LV3_volt = 1100
  1070.  
  1071. LV4_freq = 0
  1072. LV4_volt = 1100
  1073.  
  1074. LV5_freq = 0
  1075. LV5_volt = 1100
  1076.  
  1077. LV6_freq = 0
  1078. LV6_volt = 1100
  1079.  
  1080. LV7_freq = 0
  1081. LV7_volt = 1100
  1082.  
  1083. LV8_freq = 0
  1084. LV8_volt = 1100
  1085.  
  1086. [gpu_dvfs_table]
  1087.  
  1088. G_LV_count = 3
  1089.  
  1090. G_LV0_freq = 312000000
  1091. G_LV0_volt = 1200000
  1092.  
  1093. G_LV1_freq = 384000000
  1094. G_LV1_volt = 1200000
  1095.  
  1096. G_LV2_freq = 456000000
  1097. G_LV2_volt = 1200000
  1098.  
  1099. ;----------------------------------------------------------------------------------
  1100. ;special gpio config for Board Vendor ID
  1101. ;vid_used -- if board need distinguished by gpio,set '1';if not,set '0'
  1102. ;vid_count -- the count of vendor id bits
  1103. ;vid_bit_[0..3] -- gpio config for each bit of board vendor id
  1104. ;example: vendor id hex format :{0x 0 0 1 0 }
  1105. ; | | | |
  1106. ; [vid_bit_3] [vid_bit_2] [vid_bit_1] [vid_bit_0]
  1107. ;----------------------------------------------------------------------------------
  1108. [board_vendor]
  1109. vid_used = 1
  1110. vid_count = 6
  1111. vid_bit_0 = port:PD16<0><1><default><default>
  1112. vid_bit_1 = port:PD15<0><1><default><default>
  1113. vid_bit_2 = port:PD14<0><1><default><default>
  1114. vid_bit_3 = port:PD13<0><1><default><default>
  1115. vid_bit_4 = port:PD12<0><1><default><default>
  1116. vid_bit_5 = port:PD17<0><1><default><default>
  1117.  
  1118. ;----------------------------------------------------------------------------------
  1119. ;virtual device
  1120. ;virtual device for pinctrl testing
  1121. ;device have pin PA1 PA2
  1122. ;----------------------------------------------------------------------------------
  1123. [Vdevice]
  1124. Vdevice_used = 0
  1125. Vdevice_0 = port:PH10<5><1><2><default>
  1126. Vdevice_1 = port:PH11<5><1><2><default>
  1127.  
  1128. ;----------------------------------------------------------------------------------
  1129. ;s_uart0 config parameters
  1130. ;s_uart_used --s_uart0 whether used for arisc debugging
  1131. ;----------------------------------------------------------------------------------
  1132. [s_uart0]
  1133. s_uart_used = 0
  1134. s_uart_tx = port:PL02<2><default><default><default>
  1135. s_uart_rx = port:PL03<2><default><default><default>
  1136.  
  1137. ;----------------------------------------------------------------------------------
  1138. ;s_rsb0 config parameters
  1139. ;s_rsb_used --s_rsb0 whether used for arisc
  1140. ;----------------------------------------------------------------------------------
  1141. [s_rsb0]
  1142. s_rsb_used = 1
  1143. s_rsb_sck = port:PL00<2><1><2><default>
  1144. s_rsb_sda = port:PL01<2><1><2><default>
  1145.  
  1146. ;----------------------------------------------------------------------------------
  1147. ;s_jtag0 config parameters
  1148. ;s_jtag0_used --s_jtag0 whether used for arisc
  1149. ;
  1150. ;----------------------------------------------------------------------------------
  1151. [s_jtag0]
  1152. s_jtag_used = 0
  1153. s_jtag_tms = port:PL04<2><1><2><default>
  1154. s_jtag_tck = port:PL05<2><1><2><default>
  1155. s_jtag_tdo = port:PL06<2><1><2><default>
  1156. s_jtag_tdi = port:PL07<2><1><2><default>
  1157.  
  1158. ;----------------------------------------------------------------------------------
  1159. ;s_powchk cpus power check
  1160. ;s_powchk_used --power check whether used for arisc in super standby
  1161. ; bit31:enable power updat, bit1:wakeup when power state exception
  1162. ; bit0:wakeup when power consumption exception
  1163. ;s_power_reg the expected regs stand for power on/off state
  1164. ;s_system_power the limit maxmum power consumption when super standby (unit: mw)
  1165. ;
  1166. ;----------------------------------------------------------------------------------
  1167. [s_powchk]
  1168. s_powchk_used = 0x80000000
  1169. s_power_reg = 0x00000000
  1170. s_system_power = 50
  1171.  
  1172. ;----------------------------------------------------------------------------------
  1173. ;scr configuration
  1174. ;----------------------------------------------------------------------------------
  1175. [sim0]
  1176. scr_used = 0
  1177. scr_vccen = port:PA06<2><default><default><default>
  1178. scr_slk = port:PA07<2><default><default><default>
  1179. scr_sda = port:PA08<2><default><default><default>
  1180. scr_rst = port:PA09<2><default><default><default>
  1181. scr_det = port:PA10<2><default><default><default>
  1182.  
  1183.  
  1184. ;--------------------------------------------------------------------------------
  1185. ;tsc configuration
  1186. ;--------------------------------------------------------------------------------
  1187. [ts0]
  1188. tsc_used = 0
  1189. tsc_clk = port:PE00<3><default><default><default>
  1190. tsc_err = port:PE01<3><default><default><default>
  1191. tsc_sync = port:PE02<3><default><default><default>
  1192. tsc_dvld = port:PE03<3><default><default><default>
  1193. tsc_d0 = port:PE04<3><default><default><default>
  1194. tsc_d1 = port:PE05<3><default><default><default>
  1195. tsc_d2 = port:PE06<3><default><default><default>
  1196. tsc_d3 = port:PE07<3><default><default><default>
  1197. tsc_d4 = port:PE08<3><default><default><default>
  1198. tsc_d5 = port:PE09<3><default><default><default>
  1199. tsc_d6 = port:PE10<3><default><default><default>
  1200. tsc_d7 = port:PE11<3><default><default><default>
  1201.  
  1202. ;--------------------------------------------------------------------------------
  1203. ;gpio key
  1204. ;--------------------------------------------------------------------------------
  1205. [gpio_power_key]
  1206. key_used = 0
  1207. key_io = port:PL03<6><default><default><0>
  1208.  
  1209. ;----------------------------------------------------------------------------------
  1210. ; key para
  1211. ;
  1212. ; key_used --0:not used, 1:used
  1213. ; key_cnt --how many key button attach to keyadc.
  1214. ; key*_vol --the threshold of input voltage of key.
  1215. ;
  1216. ; For example: if key2_vol < $(keyadc value) < key3_vol, then key3 be reported.
  1217. ;----------------------------------------------------------------------------------
  1218. [key_para]
  1219. key_used = 0
  1220. key_cnt = 5
  1221. key1_vol = 222
  1222. key2_vol = 444
  1223. key3_vol = 666
  1224. key4_vol = 857
  1225. key5_vol = 2000
  1226.  
  1227.  
  1228. ;----------------------------------------------------------------------------------
  1229. ;display seven segment para
  1230. ;----------------------------------------------------------------------------------
  1231. [d7s_para]
  1232. d7s_used = 0
  1233. din_gpio = port:PD00<1><default><default><1>
  1234. clk_gpio = port:PD01<1><default><default><1>
  1235. stb_gpio = port:PD02<1><default><default><1>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement