Advertisement
Guest User

Sane clockspeed/voltage settings for H3 SoC (Orange Pi PC)

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