SHARE
TWEET

Orange pi Win (A64) FEX

a guest Nov 4th, 2017 391 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;A64 PAD application
  2. ;---------------------------------------------------------------------------------------------------------
  3. ; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
  4. ; 描述gpio的形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
  5. ;---------------------------------------------------------------------------------------------------------
  6. ; Platform: OrangePiA64 PC2
  7.  
  8. [product]
  9. version = "100"
  10. machine = "evb"
  11.  
  12. [platform]
  13. eraseflag   = 1
  14. ;----------------------------------------------------------------------------------
  15. ;   system configuration
  16. ;   ?
  17. ;dcdc1_vol                                                     ---set dcdc1 voltage,mV,1600-3400,100mV/step
  18. ;dcdc2_vol                                                     ---set dcdc2 voltage,mV,600-1540,20mV/step
  19. ;dcdc3_vol                                                     ---set dcdc3 voltage,mV,600-1860,20mV/step
  20. ;dcdc4_vol                                                     ---set dcdc4 voltage,mV,600-1540,20mV/step
  21. ;dcdc5_vol                                                     ---set dcdc5 voltage,mV,1000-2550,50mV/step
  22. ;aldo2_vol                                                     ---set aldo2 voltage,mV,700-3300,100mV/step
  23. ;aldo3_vol                                                     ---set aldo3 voltage,mV,700-3300,100mV/step
  24. ;----------------------------------------------------------------------------------
  25. [target]
  26. boot_clock     = 1008
  27. storage_type    = -1
  28. burn_key = 0
  29.  
  30. [power_sply]
  31. dcdc1_vol                  = 1003100
  32. dcdc2_vol                  = 1001100
  33. dcdc6_vol                  = 1001100
  34. aldo1_vol                  = 2800
  35. aldo2_vol                  = 1003300
  36. aldo3_vol                  = 1003000
  37. dldo1_vol                  = 3300
  38. dldo2_vol                  = 1003600
  39. dldo3_vol                  = 2800
  40. dldo4_vol                  = 1003300
  41. eldo1_vol                  = 1001800
  42. eldo2_vol                  = 1800
  43. eldo3_vol                  = 1800
  44. fldo2_vol                  = 1001100
  45. gpio0_vol                  = 3100
  46.  
  47. [card_boot]
  48. logical_start   = 40960
  49. sprite_gpio0    =
  50.  
  51. ;---------------------------------------------------------------------------------------------------------
  52. ; if 1 == standby_mode, then support super standby;
  53. ; else, support normal standby.
  54. ;---------------------------------------------------------------------------------------------------------
  55. [pm_para]
  56. standby_mode           = 1
  57.  
  58. [card0_boot_para]
  59. card_ctrl       = 0
  60. card_high_speed = 1
  61. card_line       = 4
  62. sdc_d1          = port:PF0<2><1><2><default>
  63. sdc_d0          = port:PF1<2><1><2><default>
  64. sdc_clk         = port:PF2<2><1><2><default>
  65. sdc_cmd         = port:PF3<2><1><2><default>
  66. sdc_d3          = port:PF4<2><1><2><default>
  67. sdc_d2          = port:PF5<2><1><2><default>
  68.  
  69. [card2_boot_para]
  70. sdc_io_1v8      = 1
  71. card_ctrl       = 2
  72. card_high_speed = 1
  73. card_line       = 8
  74. sdc_ds          = port:PC1<3><1><3><default>
  75. sdc_clk         = port:PC5<3><1><3><default>
  76. sdc_cmd         = port:PC6<3><1><3><default>
  77. sdc_d0          = port:PC8<3><1><3><default>
  78. sdc_d1          = port:PC9<3><1><3><default>
  79. sdc_d2          = port:PC10<3><1><3><default>
  80. sdc_d3          = port:PC11<3><1><3><default>
  81. sdc_d4          = port:PC12<3><1><3><default>
  82. sdc_d5          = port:PC13<3><1><3><default>
  83. sdc_d6          = port:PC14<3><1><3><default>
  84. sdc_d7          = port:PC15<3><1><3><default>
  85. sdc_emmc_rst    = port:PC16<3><1><3><default>
  86. sdc_ex_dly_used = 2
  87.  
  88. [twi_para]
  89. twi_port        = 0
  90. twi_scl         = port:PH0<2><default><default><default>
  91. twi_sda         = port:PH1<2><default><default><default>
  92.  
  93. [uart_para]
  94. uart_debug_port = 0
  95. uart_debug_tx   = port:PB8<4><1><default><default>
  96. uart_debug_rx   = port:PB9<4><1><default><default>
  97.  
  98. [jtag_para]
  99. jtag_enable     = 1
  100. jtag_ms         = port:PB0<4><default><default><default>
  101. jtag_ck         = port:PB1<4><default><default><default>
  102. jtag_do         = port:PB2<4><default><default><default>
  103. jtag_di         = port:PB3<4><default><default><default>
  104.  
  105. [clock]
  106. pll4            = 300
  107. pll6            = 600
  108. pll8            = 360
  109. pll9            = 297
  110. pll10           = 264
  111.  
  112. ;*****************************************************************************
  113. ;sdram configuration
  114. ;
  115. ;*****************************************************************************
  116. [dram_para]
  117.  
  118. dram_clk        = 672
  119. dram_type       = 3
  120. dram_zq         = 0x3b3bbb
  121. dram_odt_en     = 0x1
  122. dram_para1      = 0x10E410E4
  123. dram_para2      = 0x1000
  124. dram_mr0        = 0x1840
  125. dram_mr1        = 0x40
  126. dram_mr2        = 0x18
  127. dram_mr3        = 0x2
  128. dram_tpr0       = 0x004A2195
  129. dram_tpr1       = 0x02424190
  130. dram_tpr2       = 0x0008B060
  131. dram_tpr3       = 0x04b005dc
  132. dram_tpr4       = 0x0
  133. dram_tpr5       = 0x0
  134. dram_tpr6       = 0x0
  135. dram_tpr7       = 0x0
  136. dram_tpr8       = 0x0
  137. dram_tpr9       = 0x0
  138. dram_tpr10      = 0x8808
  139. dram_tpr11      = 0x20250000
  140. dram_tpr12      = 0x0
  141. dram_tpr13      = 0x04000800
  142.  
  143. ;----------------------------------------------------------------------------------
  144. ;os life cycle para configuration
  145. ;----------------------------------------------------------------------------------
  146.  
  147. ;------------------------------------------------------------------------------;
  148. ; 10/100/100Mbps Ethernet MAC Controller Configure                             ;
  149. ;------------------------------------------------------------------------------;
  150. ;   配置选项:                                                                 ;
  151. ;   gmac_used  ---  1: gmac used, 0: not used                                  ;
  152. ;------------------------------------------------------------------------------;
  153. ;         MII  GMII  RGMII        MII  GMII  RGMII        MII  GMII  RGMII     ;
  154. ;PA00~03  *     *      *    PA10        *      *    PA20   *    *      *       ;
  155. ;   PA04        *         PA11~14  *    *      *    PA21   *    *              ;
  156. ;   PA05        *           PA15        *           PA22   *    *              ;
  157. ;   PA06        *           PA16        *           PA23   *    *              ;
  158. ;   PA07        *           PA17        *           PA24   *    *              ;
  159. ;   PA08  *     *           PA18        *           PA25        *      *       ;
  160. ;   PA09  *     *      *    PA19   *    *      *  PA26~27  *    *      *       ;
  161. ;------------------------------------------------------------------------------;
  162. [gmac_para]
  163. gmac_used          = 0
  164. gmac_txd0          = port:PA00<2><default><default><default>
  165. gmac_txd1          = port:PA01<2><default><default><default>
  166. gmac_txd2          = port:PA02<2><default><default><default>
  167. gmac_txd3          = port:PA03<2><default><default><default>
  168. gmac_txd4          = port:PA04<2><default><default><default>
  169. gmac_txd5          = port:PA05<2><default><default><default>
  170. gmac_txd6          = port:PA06<2><default><default><default>
  171. gmac_txd7          = port:PA07<2><default><default><default>
  172. gmac_txclk         = port:PA08<2><default><default><default>
  173. gmac_txen          = port:PA09<2><default><default><default>
  174. gmac_gtxclk        = port:PA10<2><default><default><default>
  175. gmac_rxd0          = port:PA11<2><default><default><default>
  176. gmac_rxd1          = port:PA12<2><default><default><default>
  177. gmac_rxd2          = port:PA13<2><default><default><default>
  178. gmac_rxd3          = port:PA14<2><default><default><default>
  179. gmac_rxd4          = port:PA15<2><default><default><default>
  180. gmac_rxd5          = port:PA16<2><default><default><default>
  181. gmac_rxd6          = port:PA17<2><default><default><default>
  182. gmac_rxd7          = port:PA18<2><default><default><default>
  183. gmac_rxdv          = port:PA19<2><default><default><default>
  184. gmac_rxclk         = port:PA20<2><default><default><default>
  185. gmac_txerr         = port:PA21<2><default><default><default>
  186. gmac_rxerr         = port:PA22<2><default><default><default>
  187. gmac_col           = port:PA23<2><default><default><default>
  188. gmac_crs           = port:PA24<2><default><default><default>
  189. gmac_clkin         = port:PA25<2><default><default><default>
  190. gmac_mdc           = port:PA26<2><default><default><default>
  191. gmac_mdio          = port:PA27<2><default><default><default>
  192.  
  193. ;----------------------------------------------------------------------------------
  194. ;i2c configuration
  195. ;----------------------------------------------------------------------------------
  196. [twi0]
  197. twi0_used        = 1
  198. twi0_scl         = port:PH0<2><default><default><default>
  199. twi0_sda         = port:PH1<2><default><default><default>
  200.  
  201. [twi1]
  202. twi1_used        = 1
  203. twi1_scl         = port:PH2<2><default><default><default>
  204. twi1_sda         = port:PH3<2><default><default><default>
  205.  
  206. [twi2]
  207. twi2_used        = 0
  208. twi2_scl         = port:PE14<3><default><default><default>
  209. twi2_sda         = port:PE15<3><default><default><default>
  210.  
  211. ;----------------------------------------------------------------------------------
  212. ;TWI device configuration
  213. ;compatible        --- device name
  214. ;reg               --- device address
  215. ;----------------------------------------------------------------------------------
  216. ;[twi0/twi_board0]
  217. ;compatible        =
  218. ;reg               =
  219.  
  220. ;----------------------------------------------------------------------------------
  221. ;uart configuration
  222. ;uart_port ---  x (/dev/ttySx, x=0,1,2,...)
  223. ;uart_type ---  2 (2 wire), 4 (4 wire), 8 (8 wire, full function)
  224. ;----------------------------------------------------------------------------------
  225. [uart0]
  226. uart0_used       = 1
  227. uart0_port       = 0
  228. uart0_type       = 2
  229. uart0_tx         = port:PB8<4><1><default><default>
  230. uart0_rx         = port:PB9<4><1><default><default>
  231.  
  232. [uart1]
  233. uart1_used       = 1
  234. uart1_port       = 1
  235. uart1_type       = 4
  236. uart1_tx         = port:PG6<2><1><default><default>
  237. uart1_rx         = port:PG7<2><1><default><default>
  238. uart1_rts        = port:PG8<2><1><default><default>
  239. uart1_cts        = port:PG9<2><1><default><default>
  240.  
  241. [uart2]
  242. uart2_used       = 0
  243. uart2_port       = 2
  244. uart2_type       = 4
  245. uart2_tx         = port:PB0<2><1><default><default>
  246. uart2_rx         = port:PB1<2><1><default><default>
  247. uart2_rts        = port:PB2<2><1><default><default>
  248. uart2_cts        = port:PB3<2><1><default><default>
  249.  
  250. [uart3]
  251. uart3_used       = 0
  252. uart3_port       = 3
  253. uart3_type       = 4
  254. uart3_tx         = port:PH4<2><1><default><default>
  255. uart3_rx         = port:PH5<2><1><default><default>
  256. uart3_rts        = port:PH6<2><1><default><default>
  257. uart3_cts        = port:PH7<2><1><default><default>
  258.  
  259. [uart4]
  260. uart4_used       = 0
  261. uart4_port       = 4
  262. uart4_type       = 4
  263. uart4_tx         = port:PD2<3><1><default><default>
  264. uart4_rx         = port:PD3<3><1><default><default>
  265. uart4_rts        = port:PD4<3><1><default><default>
  266. uart4_cts        = port:PD5<3><1><default><default>
  267.  
  268. ;----------------------------------------------------------------------------------
  269. ;SPI controller configuration
  270. ;----------------------------------------------------------------------------------
  271. [spi0]
  272. spi0_used       = 0
  273. spi0_cs_number  = 1
  274. spi0_cs_bitmap  = 1
  275. spi0_cs0        = port:PC3<4><1><default><default>
  276. spi0_sclk       = port:PC2<4><default><default><default>
  277. spi0_mosi       = port:PC0<4><default><default><default>
  278. spi0_miso       = port:PC1<4><default><default><default>
  279.  
  280. [spi1]
  281. spi1_used       = 0
  282. spi1_cs_number  = 1
  283. spi1_cs_bitmap  = 1
  284. spi1_cs0        = port:PD0<4><1><default><default>
  285. spi1_sclk       = port:PD1<4><default><default><default>
  286. spi1_mosi       = port:PD2<4><default><default><default>
  287. spi1_miso       = port:PD3<4><default><default><default>
  288.  
  289. ;----------------------------------------------------------------------------------
  290. ;SPI device configuration
  291. ;compatible        --- device name
  292. ;spi-max-frequency --- work frequency
  293. ;reg               --- chip select
  294. ;optional properties: spi-cpha, spi-cpol, spi-cs-high
  295. ;----------------------------------------------------------------------------------
  296. ;[spi0/spi_board0]
  297. ;compatible        =
  298. ;spi-max-frequency =
  299. ;reg               =
  300. ;spi-cpha
  301. ;spi-cpol
  302. ;spi-cs-high
  303.  
  304. ;----------------------------------------------------------------------------------
  305. ;resistance tp configuration
  306. ;----------------------------------------------------------------------------------
  307. [rtp_para]
  308. rtp_used      = 0
  309. rtp_screen_size = 5
  310. rtp_regidity_level = 5
  311. rtp_press_threshold_enable = 0
  312. rtp_press_threshold = 0x1f40
  313. rtp_sensitive_level = 0xf
  314. rtp_exchange_x_y_flag = 0
  315.  
  316. ;----------------------------------------------------------------------------------
  317. ;capacitor tp configuration
  318. ;external int function
  319. ;wakeup output function
  320. ;notice ---    tp_int_port &  tp_io_port use the same port
  321. ;----------------------------------------------------------------------------------
  322. [ctp]
  323. compatible          = "allwinner,sun50i-ctp-para"
  324. ctp_used            = 1
  325. ctp_name            = "gsl_t1_v2"
  326. ctp_twi_id          = 0
  327. ctp_twi_addr        = 0x40
  328. ctp_screen_max_x    = 800
  329. ctp_screen_max_y    = 1280
  330. ctp_revert_x_flag   = 0
  331. ctp_revert_y_flag   = 0
  332. ctp_exchange_x_y_flag = 0
  333.  
  334. ctp_int_port        = port:PH04<6><default><default><default>
  335. ctp_wakeup          = port:PH08<1><default><default><1>
  336. ctp_power_ldo       = "vcc-ctp"
  337. ctp_power_ldo_vol   = 3300
  338. ctp_power_io        =
  339.  
  340. ;--------------------------------------------------------------------------------
  341. ; CTP automatic detection configuration
  342. ;ctp_detect_used  --- Whether startup automatic inspection function. 1:used,0:unused
  343. ;Module name postposition 1 said detection, 0 means no detection.
  344. ;--------------------------------------------------------------------------------
  345. [ctp_list]
  346. compatible                = "allwinner,sun50i-ctp-list"
  347. ctp_list_used             = 1
  348.  
  349. gslX680new                = 1
  350. gt9xx_ts                  = 0
  351. gt9xxnew_ts               = 1
  352. gt82x                     = 1
  353. zet622x                   = 1
  354. aw5306_ts                 = 1
  355.  
  356. ;----------------------------------------------------------------------------------
  357. ;touch key configuration
  358. ;----------------------------------------------------------------------------------
  359. [tkey_para]
  360. tkey_used           = 0
  361. tkey_twi_id         =
  362. tkey_twi_addr       =
  363. tkey_int            =
  364.  
  365. ;----------------------------------------------------------------------------------
  366. ;motor configuration
  367. ;----------------------------------------------------------------------------------
  368. [motor_para]
  369. motor_used          = 0
  370. motor_shake         = port:power3<1><default><default><1>
  371.  
  372. [nand0_para]
  373. nand0_support_2ch    = 0
  374.  
  375. nand0_used          = 1
  376. nand0_we            = port:PC00<2><0><1><default>
  377. nand0_ale           = port:PC01<2><0><1><default>
  378. nand0_cle           = port:PC02<2><0><1><default>
  379. nand0_ce1           = port:PC03<2><1><1><default>
  380. nand0_ce0           = port:PC04<2><1><1><default>
  381. nand0_nre           = port:PC05<2><0><1><default>
  382. nand0_rb0           = port:PC06<2><1><1><default>
  383. nand0_rb1           = port:PC07<2><1><1><default>
  384. nand0_d0            = port:PC08<2><0><1><default>
  385. nand0_d1            = port:PC09<2><0><1><default>
  386. nand0_d2            = port:PC10<2><0><1><default>
  387. nand0_d3            = port:PC11<2><0><1><default>
  388. nand0_d4            = port:PC12<2><0><1><default>
  389. nand0_d5            = port:PC13<2><0><1><default>
  390. nand0_d6            = port:PC14<2><0><1><default>
  391. nand0_d7            = port:PC15<2><0><1><default>
  392. nand0_ndqs          = port:PC16<2><0><1><default>
  393. nand0_ce2           = port:PC17<2><1><1><default>
  394. nand0_ce3           = port:PC18<2><1><1><default>
  395.  
  396. nand0_regulator1        = "vcc-nand"
  397. nand0_regulator2        = "none"
  398. nand0_cache_level = 0x55aaaa55
  399. nand0_flush_cache_num = 0x55aaaa55
  400. nand0_capacity_level = 0x55aaaa55
  401. nand0_id_number_ctl = 0x55aaaa55
  402. nand0_print_level = 0x55aaaa55
  403. nand0_p0 = 0x55aaaa55
  404. nand0_p1 = 0x55aaaa55
  405. nand0_p2 = 0x55aaaa55
  406. nand0_p3 = 0x55aaaa55
  407.  
  408. ;----------------------------------------------------------------------------------
  409. ;disp init configuration
  410. ;
  411. ;disp_mode             (0:screen0<screen0,fb0>)
  412. ;screenx_output_type   (0:none; 1:lcd; 3:hdmi;)
  413. ;screenx_output_mode   (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50)
  414. ;                      (5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60)
  415. ;fbx format           (0:ARGB 1:ABGR 2:RGBA 3:BGRA 5:RGB565 8:RGB888 12:ARGB4444 16:ARGB1555 18:RGBA5551)
  416. ;fbx_width,fbx_height (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0)
  417. ;----------------------------------------------------------------------------------
  418. [disp]
  419. disp_init_enable         = 1
  420. disp_mode                = 0
  421.  
  422. screen0_output_type      = 1
  423. screen0_output_mode      = 4
  424.  
  425. screen1_output_type      = 3
  426. screen1_output_mode      = 4
  427.  
  428. fb0_format               = 0
  429. fb0_width                = 0
  430. fb0_height               = 0
  431.  
  432. fb1_format               = 0
  433. fb1_width                = 0
  434. fb1_height               = 0
  435.  
  436. ;----------------------------------------------------------------------------------
  437. ;lcd0 configuration
  438.  
  439. ;lcd_if:               0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:dsi; 5:edp
  440. ;lcd_backlight         lcd init backlight
  441. ;lcd_x:                lcd horizontal resolution
  442. ;lcd_y:                lcd vertical resolution
  443. ;lcd_width:            width of lcd in mm
  444. ;lcd_height:           height of lcd in mm
  445. ;lcd_dclk_freq:        in MHZ unit
  446. ;lcd_pwm_freq:         in HZ unit
  447. ;lcd_pwm_pol:          lcd backlight PWM polarity
  448. ;lcd_pwm_max_limit     lcd backlight PWM max limit(<=255)
  449. ;lcd_hbp:              hsync back porch
  450. ;lcd_ht:               hsync total cycle
  451. ;lcd_vbp:              vsync back porch
  452. ;lcd_vt:               vysnc total cycle
  453. ;lcd_hspw:             hsync plus width
  454. ;lcd_vspw:             vysnc plus width
  455. ;lcd_lvds_if:          0:single link;  1:dual link
  456. ;lcd_lvds_colordepth:  0:8bit; 1:6bit
  457. ;lcd_lvds_mode:        0:NS mode; 1:JEIDA mode
  458. ;lcd_frm:              0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither
  459. ;lcd_hv_clk_phase      lcd hv panel lock phase, 0:0 degree; 1:90 degree; 2: 180 degree; 3: 270 degree
  460. ;lcd_hv_sync_polarity  lcd hv panel sync signals polarity
  461. ;                      0:vsync active low, hsync active low; 1:vsync active high, hsync active low
  462. ;                      2:vsync active low, hsync active high; 3:vsync active high, hsync active high
  463. ;lcd_gamma_en          lcd gamma correction enable
  464. ;lcd_bright_curve_en   lcd bright curve correction enable
  465. ;lcd_cmap_en           lcd color map function enable
  466. ;----------------------------------------------------------------------------------
  467. [lcd0]
  468. lcd_used            = 1
  469.  
  470. lcd_driver_name     = "dx0960be40a1"
  471. lcd_backlight       = 50
  472. lcd_if              = 4
  473. lcd_x               = 800
  474. lcd_y               = 1280
  475. lcd_width           = 129
  476. lcd_height          = 206
  477. lcd_dclk_freq       = 103
  478. lcd_pwm_used        = 1
  479. lcd_pwm_ch          = 0
  480. lcd_pwm_freq        = 50000
  481. lcd_pwm_pol         = 1
  482. lcd_pwm_max_limit   = 250
  483. lcd_hbp             = 60
  484. lcd_ht              = 1300
  485. lcd_hspw            = 20
  486. lcd_vbp             = 21
  487. lcd_vt              = 1332
  488. lcd_vspw            = 10
  489. lcd_lvds_if         = 0
  490. lcd_lvds_colordepth = 0
  491. lcd_lvds_mode       = 0
  492. lcd_frm             = 0
  493. lcd_hv_clk_phase    = 0
  494. lcd_hv_sync_polarity= 0
  495. lcd_dsi_if          = 0
  496. lcd_dsi_lane        = 4
  497. lcd_dsi_format      = 0
  498. lcd_dsi_te          = 0
  499. lcd_gamma_en        = 0
  500. lcd_bright_curve_en = 0
  501. lcd_cmap_en         = 0
  502.  
  503. ;lcd_bl_en           = port:PD23<1><0><default><1>
  504. ;lcd_bl_en_power     = "none"
  505. ;lcd_power           = "vcc-mipi"
  506. ;lcd_fix_power       = "vcc-dsi-33"
  507.  
  508.  
  509. [hdmi]
  510. hdmi_used = 1
  511. hdmi_power = "vcc-hdmi-33"
  512. hdmi_hdcp_enable = 0
  513. hdmi_cts_compatibility = 0
  514.  
  515. ;----------------------------------------------------------------------------------
  516. ;pwm config
  517. ;----------------------------------------------------------------------------------
  518. [pwm]
  519. pwm_used            = 1
  520. pwm_positive        = port:PD22<2><0><default><default>
  521.  
  522. [pwm_suspend]
  523. pwm_positive        = port:PD22<7><0><default><default>
  524.  
  525. [boot_disp]
  526. output_disp = 0
  527. output_type = 1
  528. output_mode = 4
  529.  
  530. ;--------------------------------------------------------------------------------
  531. ;csi (COMS Sensor Interface) configuration
  532. ;csi(x)_dev(x)_used: 0:disable 1:enable
  533. ;csi(x)_dev(x)_isp_used 0:not use isp 1:use isp
  534. ;csi(x)_dev(x)_fmt: 0:yuv 1:bayer raw rgb
  535. ;csi(x)_dev(x)_stby_mode: 0:not shut down power at standby 1:shut down power at standby
  536. ;csi(x)_dev(x)_vflip: flip in vertical direction 0:disable 1:enable
  537. ;csi(x)_dev(x)_hflip: flip in horizontal direction 0:disable 1:enable
  538. ;csi(x)_dev(x)_iovdd: camera module io power handle string, pmu power supply
  539. ;csi(x)_dev(x)_iovdd_vol: camera module io power voltage, pmu power supply
  540. ;csi(x)_dev(x)_avdd:    camera module analog power handle string, pmu power supply
  541. ;csi(x)_dev(x)_avdd_vol:        camera module analog power voltage, pmu power supply
  542. ;csi(x)_dev(x)_dvdd:    camera module core power handle string, pmu power supply
  543. ;csi(x)_dev(x)_dvdd_vol:        camera module core power voltage, pmu power supply
  544. ;csi(x)_dev(x)_afvdd:   camera module vcm power handle string, pmu power supply
  545. ;csi(x)_dev(x)_afvdd_vol:       camera module vcm power voltage, pmu power supply
  546. ;fill voltage in uV, e.g. iovdd = 2.8V, csix_iovdd_vol = 2800000
  547. ;fill handle string as below:
  548. ;axp22_eldo3
  549. ;axp22_dldo4
  550. ;axp22_eldo2
  551. ;fill handle string "" when not using any pmu power supply
  552. ;--------------------------------------------------------------------------------
  553.  
  554. [csi0]
  555. csi0_used               = 1
  556. csi0_sensor_list        = 0
  557. csi0_pck                = port:PE00<2><default><default><default>
  558. csi0_mck                = port:PE01<0><0><1><0>
  559. csi0_hsync              = port:PE02<2><default><default><default>
  560. csi0_vsync              = port:PE03<2><default><default><default>
  561. csi0_d0                 = port:PE04<2><default><default><default>
  562. csi0_d1                 = port:PE05<2><default><default><default>
  563. csi0_d2                 = port:PE06<2><default><default><default>
  564. csi0_d3                 = port:PE07<2><default><default><default>
  565. csi0_d4                 = port:PE08<2><default><default><default>
  566. csi0_d5                 = port:PE09<2><default><default><default>
  567. csi0_d6                 = port:PE10<2><default><default><default>
  568. csi0_d7                 = port:PE11<2><default><default><default>
  569. csi0_sck                = port:PE12<2><default><default><default>
  570. csi0_sda                = port:PE13<2><default><default><default>
  571.  
  572. [csi0/csi0_dev0]
  573. csi0_dev0_used          = 1
  574. csi0_dev0_mname         = "gc2035"
  575. csi0_dev0_twi_addr      = 0x78
  576. csi0_dev0_pos           = "rear"
  577. csi0_dev0_isp_used      = 0
  578. csi0_dev0_fmt           = 0
  579. csi0_dev0_stby_mode     = 1
  580. csi0_dev0_vflip         = 0
  581. csi0_dev0_hflip         = 0
  582. csi0_dev0_iovdd         = "iovdd-csi"
  583. csi0_dev0_iovdd_vol     = 2800000
  584. csi0_dev0_avdd          = "avdd-csi"
  585. csi0_dev0_avdd_vol      = 2800000
  586. csi0_dev0_dvdd          = "dvdd-csi-18"
  587. csi0_dev0_dvdd_vol      = 1800000
  588. csi0_dev0_afvdd         = ""
  589. csi0_dev0_afvdd_vol     =
  590. csi0_dev0_power_en      =
  591. csi0_dev0_reset         = port:PE16<0><0><1><0>
  592. csi0_dev0_pwdn          = port:PE17<0><0><1><0>
  593. csi0_dev0_flash_used    = 0
  594. csi0_dev0_flash_type    = 2
  595. csi0_dev0_flash_en      =
  596. csi0_dev0_flash_mode    =
  597. csi0_dev0_flvdd         = "vdd-csi-led"
  598. csi0_dev0_flvdd_vol     = 3300000
  599. csi0_dev0_af_pwdn       =
  600. csi0_dev0_act_used      = 0
  601. csi0_dev0_act_name      = "ad5820_act"
  602. csi0_dev0_act_slave     = 0x18
  603.  
  604. [csi0/csi0_dev1]
  605. csi0_dev1_used          = 0
  606. csi0_dev1_mname         = "gc0328c"
  607. csi0_dev1_twi_addr      = 0x42
  608. csi0_dev1_pos           = "front"
  609. csi0_dev1_isp_used      = 1
  610. csi0_dev1_fmt           = 0
  611. csi0_dev1_stby_mode     = 1
  612. csi0_dev1_vflip         = 0
  613. csi0_dev1_hflip         = 0
  614. csi0_dev1_iovdd         = "iovdd-csi"
  615. csi0_dev1_iovdd_vol     = 2800000
  616. csi0_dev1_avdd          = "avdd-csi"
  617. csi0_dev1_avdd_vol      = 2800000
  618. csi0_dev1_dvdd          = "dvdd-csi-18"
  619. csi0_dev1_dvdd_vol      = 1800000
  620. csi0_dev1_afvdd         = ""
  621. csi0_dev1_afvdd_vol     =
  622. csi0_dev1_power_en      =
  623. csi0_dev1_reset         = port:PE14<0><0><1><0>
  624. csi0_dev1_pwdn          = port:PE15<0><0><1><0>
  625. csi0_dev1_flash_used    = 0
  626. csi0_dev1_flash_type    = 2
  627. csi0_dev1_flash_en      =
  628. csi0_dev1_flash_mode    =
  629. csi0_dev1_flvdd         = "vdd-csi-led"
  630. csi0_dev1_flvdd_vol     = 3300000
  631. csi0_dev1_af_pwdn       =
  632. csi0_dev1_act_used      = 0
  633. csi0_dev1_act_name      = "ad5820_act"
  634. csi0_dev1_act_slave     = 0x18
  635.  
  636. ;--------------------------------------------------------------------------------
  637. ;tv configuration
  638. ;
  639. ;--------------------------------------------------------------------------------
  640. [tvout_para]
  641. tvout_used          =
  642. tvout_channel_num   =
  643. tv_en               =
  644.  
  645. [tvin_para]
  646. tvin_used           =
  647. tvin_channel_num    =
  648.  
  649. ; ------------------------------------------------------------------------------|
  650. ; de-interlace configuration
  651. ;--------------------------------------------------------------------------------
  652. [di]
  653. di_used             = 1
  654.  
  655. ;--------------------------------------------------------------------------------
  656. ;   SDMMC PINS MAPPING                                                          |
  657. ; ------------------------------------------------------------------------------|
  658. ;   Config Guide                                                                |
  659. ;   sdc_used: 1-enable card, 0-disable card                                     |
  660. ;   non-removable:if you use as main memory,you should set it,for example eMMC  |
  661. ;   bus-width: card bus width, 1-1bit, 4-4bit, 8-8bit                           |
  662. ;   sunxi-power-save-mode: if use sdio card,should not set it                   |
  663. ;   vmmc:regulator for card/emmc power                      |
  664. ;    vqmmc:regulator for card/emmc io power                 |
  665. ;    vdmmc:regulator for card detect pin pull up power              |
  666. ;   other: GPIO Mapping configuration                                           |
  667. ; ------------------------------------------------------------------------------|
  668. ;   Note:                                                                       |
  669. ;                                                               |
  670. ;                                                           |
  671. ;                                                               |
  672. ;                                           |
  673. ;                                           |
  674. ;                                                       |
  675. ;--------------------------------------------------------------------------------
  676.  
  677. [sdc0]
  678. sdc0_used          = 1
  679. bus-width             = 4
  680. sdc0_d1            = port:PF00<2><1><2><default>
  681. sdc0_d0            = port:PF01<2><1><2><default>
  682. sdc0_clk           = port:PF02<2><1><2><default>
  683. sdc0_cmd           = port:PF03<2><1><2><default>
  684. sdc0_d3            = port:PF04<2><1><2><default>
  685. sdc0_d2            = port:PF05<2><1><2><default>
  686. cd-gpios           = port:PF06<0><1><2><default>
  687. sunxi-power-save-mode =
  688. vmmc        = "none"
  689. vqmmc       = "none"
  690. vdmmc       = "vcc-sdc"
  691.  
  692. [sdc1]
  693. sdc1_used          = 1
  694. bus-width   = 4
  695. sdc1_clk           = port:PG00<2><1><3><default>
  696. sdc1_cmd           = port:PG01<2><1><3><default>
  697. sdc1_d0            = port:PG02<2><1><3><default>
  698. sdc1_d1            = port:PG03<2><1><3><default>
  699. sdc1_d2            = port:PG04<2><1><3><default>
  700. sdc1_d3            = port:PG05<2><1><3><default>
  701. ;sunxi-power-save-mode =
  702. sd-uhs-sdr50            =
  703. sd-uhs-ddr50            =
  704. sd-uhs-sdr104           =
  705. cap-sdio-irq            =
  706. keep-power-in-suspend   =
  707. ignore-pm-notify    =
  708. max-frequency      = 150000000
  709.  
  710.  
  711. [sdc2]
  712. sdc2_used          = 1
  713. non-removable   =
  714. bus-width    = 8
  715. sdc2_ds            = port:PC01<3><1><3><default>
  716. sdc2_clk           = port:PC05<3><1><3><default>
  717. sdc2_cmd           = port:PC06<3><1><3><default>
  718. sdc2_d0            = port:PC08<3><1><3><default>
  719. sdc2_d1            = port:PC09<3><1><3><default>
  720. sdc2_d2            = port:PC10<3><1><3><default>
  721. sdc2_d3            = port:PC11<3><1><3><default>
  722. sdc2_d4            = port:PC12<3><1><3><default>
  723. sdc2_d5            = port:PC13<3><1><3><default>
  724. sdc2_d6            = port:PC14<3><1><3><default>
  725. sdc2_d7            = port:PC15<3><1><3><default>
  726. sdc2_emmc_rst      = port:PC16<3><1><3><default>
  727. cd-gpios       =
  728. sunxi-power-save-mode =
  729. sunxi-dis-signal-vol-sw =
  730. mmc-ddr-1_8v       =
  731. mmc-hs200-1_8v     =
  732. mmc-hs400-1_8v     =
  733. max-frequency      = 100000000
  734. sdc_tm4_sm0_freq0 = 0
  735. sdc_tm4_sm0_freq1 = 0
  736. sdc_tm4_sm1_freq0 = 0x00000000
  737. sdc_tm4_sm1_freq1 = 0
  738. sdc_tm4_sm2_freq0 = 0x00000000
  739. sdc_tm4_sm2_freq1 = 0
  740. sdc_tm4_sm3_freq0 = 0x05000000
  741. sdc_tm4_sm3_freq1 = 0x00000405
  742. sdc_tm4_sm4_freq0 = 0x00050000
  743. sdc_tm4_sm4_freq1 = 0x00000408
  744. vmmc          = "vcc-emmc"
  745. vqmmc         = "vcc-lpddr"
  746. ;vqmmc        = "none"
  747. vdmmc         = "none"
  748.  
  749. ;[mmc3]
  750. ;mmc3_used          = 0
  751. ;mmc3_detmode       = 2
  752. ;mmc3_buswidth      = 4
  753. ;mmc3_clk           = port:PA10<2><1><2><default>
  754. ;mmc3_cmd           = port:PA09<2><1><2><default>
  755. ;mmc3_d0            = port:PA11<2><1><2><default>
  756. ;mmc3_d1            = port:PA12<2><1><2><default>
  757. ;mmc3_d2            = port:PA13<2><1><2><default>
  758. ;mmc3_d3            = port:PA14<2><1><2><default>
  759. ;mmc3_det           =
  760. ;mmc3_use_wp        = 0
  761. ;mmc3_wp            =
  762. ;mmc3_isio          = 0
  763. ;mmc3_regulator     = "none"
  764.  
  765. ; ------------------------------------------------------------------------------|
  766. ; sim card configuration
  767. ;--------------------------------------------------------------------------------
  768. [smc]
  769. smc_used            =
  770. smc_rst             =
  771. smc_vppen           =
  772. smc_vppp            =
  773. smc_det             =
  774. smc_vccen           =
  775. smc_sck             =
  776. smc_sda             =
  777.  
  778. ;--------------------------------
  779. ;[usbc0]:控制器0的配置。
  780. ;usb_used:USB使能标志。置1,表示系统中USB模块可用,置0,则表示系统USB禁用。
  781. ;usb_port_type:USB端口的使用情况。 0:device only;1:host only;2:OTG
  782. ;usb_detect_type:USB端口的检查方式。0:不做检测;1:vbus/id检查;2:id/dpdm检查
  783. ;usb_id_gpio:USB ID pin脚配置。具体请参考gpio配置说明。
  784. ;usb_det_vbus_gpio:USB DET_VBUS pin脚配置。具体请参考gpio配置说明。
  785. ;usb_drv_vbus_gpio:USB DRY_VBUS pin脚配置。具体请参考gpio配置说明。
  786. ;usb_det_vbus_gpio: "axp_ctrl",表示axp 提供
  787. ;--------------------------------
  788. ;--------------------------------
  789. ;---       USB0控制标志
  790. ;--------------------------------
  791. [usbc0]
  792. usbc0_used          = 1
  793. usb_port_type       = 2
  794. usb_detect_type     = 1
  795. usb_id_gpio         = port:PH09<0><1><default><default>
  796. usb_det_vbus_gpio   = "axp_ctrl"
  797. usb_drv_vbus_gpio   = port:power3<1><0><default><0>
  798. usb_host_init_state = 0
  799. usb_regulator_io    = "nocare"
  800. usb_wakeup_suspend  = 0
  801. ;---       USB Device
  802. usb_luns            = 3
  803. usb_serial_unique   = 1
  804. usb_serial_number   = "20080411"
  805. rndis_wceis         = 1
  806.  
  807. ;--------------------------------
  808. ;---       USB1控制标志
  809. ;--------------------------------
  810. [usbc1]
  811. usbc1_used          = 1
  812. usb_drv_vbus_gpio   = port:PD07<1><0><default><0>
  813. usb_detect_type = 0
  814. usb_host_init_state = 1
  815. usb_regulator_io    = "nocare"
  816. usb_wakeup_suspend  = 1
  817. ;---  HSIC config
  818. usb_hsic_used          = 0
  819. usb_hsic_regulator_io  = "vcc-hsic-12"
  820. ;---  Marvell 4G HSIC
  821. usb_hsic_ctrl          = 0
  822. usb_hsic_rdy_gpio      =
  823. ;---  SMSC usb3503 HSIC HUB
  824. usb_hsic_usb3503_flag       = 0
  825. usb_hsic_hub_connect_gpio   =
  826. usb_hsic_int_n_gpio         =
  827. usb_hsic_reset_n_gpio       =
  828.  
  829. ;--------------------------------
  830. ;---     序列号标志
  831. ;--------------------------------
  832. [serial_feature]
  833. sn_filename = "sn.txt"
  834.  
  835. ;--------------------------------------------------------------------------------
  836. ; G sensor configuration
  837. ; gs_twi_id    ---  TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
  838. ;--------------------------------------------------------------------------------
  839. [gsensor]
  840. compatible          = "allwinner,sun50i-gsensor-para"
  841. gsensor_used        = 1
  842. gsensor_twi_id      = 1
  843. gsensor_twi_addr    = 0x1d
  844. gsensor_vcc_io      = "vcc-deviceio"
  845. gsensor_vcc_io_val  = 3300
  846. gsensor_int1        = port:PH05<6><1><default><default>
  847. gsensor_int2        = port:PH06<6><1><default><default>
  848.  
  849. ;--------------------------------------------------------------------------------
  850. ; G sensor automatic detection configuration
  851. ;gsensor_detect_used  --- Whether startup automatic inspection function. 1:used,0:unused
  852. ;Module name postposition 1 said detection, 0 means no detection.
  853. ;--------------------------------------------------------------------------------
  854. [gsensor_list]
  855. compatible                = "allwinner,sun50i-gsensor-list-para"
  856. gsensor_list__used          = 1
  857. lsm9ds0_acc_mag           = 1
  858. bma250                    = 1
  859. mma8452                   = 1
  860. mma7660                   = 1
  861. mma865x                   = 1
  862. afa750                    = 1
  863. lis3de_acc                = 1
  864. lis3dh_acc                = 1
  865. kxtik                     = 1
  866. dmard10                   = 0
  867. dmard06                   = 1
  868. mxc622x                   = 1
  869. fxos8700                  = 1
  870. lsm303d                   = 0
  871. sc7a30                    = 1
  872.  
  873. ;--------------------------------------------------------------------------------
  874. ;wlan configuration
  875. ;wlan_used:         0-not use, 1- use
  876. ;wlan_busnum:       sdio/usb index
  877. ;clocks:            external low power clock input (32.768KHz)
  878. ;wlan_power:        input supply voltage
  879. ;wlan_io_regulator: wlan/sdio I/O voltage
  880. ;wlan_regon:        power up/down internal regulators used by wifi section
  881. ;wlan_hostwake:     wlan to wake-up host
  882. ;--------------------------------------------------------------------------------
  883. [wlan]
  884. wlan_used           = 1
  885. wlan_busnum         = 1
  886. ;clocks              =
  887. wlan_power          = "vcc-wifi"
  888. wlan_io_regulator   = "vcc-wifi-io"
  889. wlan_regon          = port:PL08<1><default><default><0>
  890. wlan_hostwake       = port:PL07<6><default><default><0>
  891.  
  892. ;--------------------------------------------------------------------------------
  893. ;bluetooth configuration
  894. ;bt_used:           0- no used, 1- used
  895. ;clocks:            external low power clock input (32.768KHz)
  896. ;bt_power:          input supply voltage      
  897. ;bt_io_regulator:   bluetooth I/O voltage
  898. ;bt_rst_n:          power up/down internal regulators used by BT section
  899. ;--------------------------------------------------------------------------------
  900. [bt]
  901. bt_used             = 1
  902. ;clocks              =
  903. bt_power            = "vcc-wifi"
  904. bt_io_regulator     = "vcc-wifi-io"
  905. bt_rst_n            = port:PL04<1><default><default><0>
  906.  
  907. ;--------------------------------------------------------------------------------
  908. ;bluetooth lpm configuration
  909. ;btlpm_used:        0- no used, 1- used
  910. ;uart_index:        0- uart0, 1- uart1, 2- uart2
  911. ;bt_wake:           host wake-up bluetooth device
  912. ;bt_hostwake:       bt device wake-up host
  913. ;--------------------------------------------------------------------------------
  914. [btlpm]
  915. btlpm_used          = 1
  916. uart_index          = 1
  917. bt_wake             = port:PL06<1><default><default><1>
  918. bt_hostwake         = port:PL05<6><default><default><0>
  919.  
  920. ;--------------------------------------------------------------------------------
  921. ;3G configuration
  922. ;--------------------------------------------------------------------------------
  923. [3g_para]
  924. 3g_used                        = 0
  925. 3g_usbc_num                    = 2
  926. 3g_uart_num                    = 0
  927. bb_vbat                                = port:PL03<1><default><default><0>
  928. bb_host_wake        = port:PM00<1><default><default><0>
  929. bb_on                          = port:PM01<1><default><default><0>
  930. bb_pwr_on                      = port:PM03<1><default><default><0>
  931. bb_wake                                = port:PM04<1><default><default><0>
  932. bb_rf_dis                      = port:PM05<1><default><default><0>
  933. bb_rst                         = port:PM06<1><default><default><0>
  934. 3g_int              =
  935.  
  936. ;--------------------------------------------------------------------------------
  937. ;gyroscope
  938. ;--------------------------------------------------------------------------------
  939. [gyroscopesensor]
  940. compatible          ="allwinner,sun50i-gyr_sensors-para"
  941. gyroscopesensor_used      = 0
  942. gy_twi_id           = 2
  943. gy_twi_addr         = 0x6a
  944. gy_int1             = port:PA10<6><1><default><default>
  945. gy_int2             =
  946.  
  947. ;--------------------------------------------------------------------------------
  948. ; Gyro automatic detection configuration
  949. ;gy_detect_used  --- Whether startup automatic inspection function. 1:used,0:unused
  950. ;Module name postposition 1 said detection, 0 means no detection.
  951. ;--------------------------------------------------------------------------------
  952. [gy_list]
  953. compatible            ="allwinner,sun50i-gyr_sensors-list-para"
  954. gy_list_used          = 0
  955. lsm9ds0_gyr          = 1
  956. l3gd20_gyr           = 0
  957. bmg160_gyr           = 1
  958.  
  959.  
  960. ;--------------------------------------------------------------------------------
  961. ;light sensor
  962. ;--------------------------------------------------------------------------------
  963. [lightsensor]
  964. compatible          ="allwinner,sun50i-lsensors-para"
  965. lightsensor_used     =0
  966. ls_twi_id           = 2
  967. ls_twi_addr         = 0x23
  968. ls_int              = port:PA12<6><1><default><default>
  969.  
  970. ;--------------------------------------------------------------------------------
  971. ; lsensor automatic detection configuration
  972. ;ls_detect_used  --- Whether startup automatic inspection function. 1:used,0:unused
  973. ;Module name postposition 1 said detection, 0 means no detection.
  974. ;--------------------------------------------------------------------------------
  975. [ls_list]
  976. compatible           ="allwinner,sun50i-lsensors-list-para"
  977. ls_list_used          =0
  978. ltr_501als           = 1
  979. jsa1212              = 0
  980. jsa1127              = 1
  981. stk3x1x              = 0
  982.  
  983. ;--------------------------------------------------------------------------------
  984. ;compass
  985. ;--------------------------------------------------------------------------------
  986. [compasssensor]
  987. compatible          ="allwinner,sun50i-compass-para"
  988. compasssensor_used   = 0
  989. compass_twi_id      = 2
  990. compass_twi_addr    = 0x0d
  991. compass_int         = port:PA11<6><1><default><default>
  992.  
  993.  
  994. ;--------------------------------------------------------------------------------
  995. ; compass sensor automatic detection configuration
  996. ;compass_detect_used  --- Whether startup automatic inspection function. 1:used,0:unused
  997. ;Module name postposition 1 said detection, 0 means no detection.
  998. ;--------------------------------------------------------------------------------
  999. [compass_list]
  1000. compatible              ="allwinner,sun50i-compass-list-para"
  1001. compass_list_used        = 0
  1002. lsm9ds0                 = 1
  1003. lsm303d                 = 0
  1004. ;akm8963                 = 1
  1005.  
  1006. ;--------------------------------------------------------------------------------
  1007. ;       NOTE :Make sure spdif_used = 0x1,spdifmach_used = 0x1,
  1008. ;         if register the sound card spdif.
  1009. ;--------------------------------------------------------------------------------
  1010. [spdif]
  1011. spdif_used          = 0
  1012. [sndspdif]
  1013. sndspdif_used   = 0
  1014. ;----------------------------------------------------------------------------------
  1015. ;       NOTE :Make sure daudio2_used = 0x1,sndhdmi_used = 0x1,
  1016. ;         if register the sound card hdmi.
  1017. ;---------------------------------------------------------------------------------
  1018. [daudio2]
  1019. daudio2_used = 1
  1020. [sndhdmi]
  1021. sndhdmi_used = 1
  1022. ;--------------------------------------------------------------------------------
  1023. ;allwinner,pcm_lrck_period  :16/32/64/128/256
  1024. ;allwinner,pcm_lrckr_period :no use
  1025. ;allwinner,slot_width_select    :16bits/20bits/24bits/32bits
  1026. ;allwinner,pcm_lsb_first    :0: msb first; 1: lsb first
  1027. ;allwinner,tx_data_mode     :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
  1028. ;allwinner,rx_data_mode     :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
  1029. ;allwinner,daudio_master :1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master)        use
  1030. ;                         2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master)  not use
  1031. ;                         3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
  1032. ;                         4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave)         use
  1033. ;allwinner,audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format).            use
  1034. ;              2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
  1035. ;              3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
  1036. ;              4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
  1037. ;              5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
  1038. ;allwinner,signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame)  use
  1039. ;                 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
  1040. ;                 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM)  use
  1041. ;                 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
  1042. ;allwinner,frametype :0: long frame = 2 clock width;  1: short frame
  1043. ;allwinner,tdm_config :0:pcm 1:i2s
  1044. ;allwinner,daudio0_used :0:not use 1:use
  1045.  
  1046. ;--------------------------------------------------------------------------------
  1047. ;       NOTE :Make sure snddaudio0_used = 0x1,daudio1_used = 0x1,
  1048. ;         if register the sound card DAUDIO1.
  1049. ;--------------------------------------------------------------------------------
  1050. [snddaudio0]
  1051. snddaudio0_used = 0
  1052. ;-----------------------------------------------------------------------------
  1053. [daudio0]
  1054. pcm_lrck_period =   0x20
  1055. pcm_lrckr_period =   0x01
  1056. slot_width_select =   0x20
  1057. pcm_lsb_first =   0x0
  1058. tx_data_mode =   0x0
  1059. rx_data_mode =   0x0
  1060. daudio_master =   0x04
  1061. audio_format =   0x01
  1062. signal_inversion =   0x01
  1063. frametype =   0x0
  1064. tdm_config =   0x01
  1065. daudio0_used = 0
  1066.  
  1067. ;-------------------------------------------------------------------------------
  1068. ;       NOTE :Make sure snddaudio1_used = 0x1,daudio0_used = 0x1,
  1069. ;         if register the sound card DAUDIO0.
  1070. ;--------------------------------------------------------------------------------
  1071. [snddaudio1]
  1072. snddaudio1_used = 0
  1073. ;-----------------------------------------------------------------------------
  1074. [daudio1]
  1075. pcm_lrck_period =   0x20
  1076. pcm_lrckr_period =   0x01
  1077. slot_width_select =   0x20
  1078. pcm_lsb_first =   0x0
  1079. tx_data_mode =   0x0
  1080. rx_data_mode =   0x0
  1081. daudio_master =   0x04
  1082. audio_format =   0x01
  1083. signal_inversion =   0x01
  1084. frametype =   0x0
  1085. tdm_config =   0x01
  1086. daudio1_used = 0
  1087. ;----------------------------------------------------------------------------------------------------------
  1088. ;--------------------------------------------------------------------------------------
  1089. ;allwinner,headphonevol :headphone volume:0x0--0x3f 0db--(-62db) 1db/step
  1090. ;allwinner,spkervol : speaker volume:0x0--0x1f 0db-(-43.5db) 1.5db/step
  1091. ;allwinner,earpiecevol : earpiece volume:0x0--0x1f 0db-(-43.5db) 1.5db/step
  1092. ;allwinner,maingain :   mainmic gain:0x0---0x7 0x0-0db 0x1:24db   3db/step
  1093. ;allwinner,headsetmicgain : headphonemic gain:0x0---0x7 0x0-0db 0x1:24db   3db/step
  1094. ;allwinner,adcagc_cfg : 1:use adcagc 0:no use
  1095. ;allwinner,adcdrc_cfg : 1:use adcdrc 0:no use
  1096. ;allwinner,adchpf_cfg : 1:use adchpf 0:no use
  1097. ;allwinner,dacdrc_cfg : 1:use adcdrc 0:no use
  1098. ;allwinner,dachpf_cfg : 1:use adchpf 0:no use
  1099. ;allwinner,aif2config : 1:use aif2 0:no use
  1100. ;allwinner,aif3config : 1:use aif3 0:no use
  1101. ;allwinner,hp_detect_case :0:low 1:high
  1102. ;--------------------------------------------------------------------------------
  1103. ;       NOTE :Make sure sndcodec_used = 0x1,i2s_used = 0x1
  1104. ;         codec_used = 0x1,if register the sound card audiocodec.
  1105. ;---------------------------------------------------------------------------------
  1106. [sndcodec]
  1107. sndcodec_used = 0x1
  1108. aif2fmt = 0x3
  1109. aif3fmt = 0x3
  1110. aif2master = 0x1
  1111. hp_detect_case = 0x0
  1112. ;------------------------------------------------------------------------------
  1113. [i2s]
  1114. i2s_used = 0x1
  1115. ;-------------------------------------------------------------------------------
  1116. [codec]
  1117. codec_used = 0x1
  1118. headphonevol =   0x3b
  1119. spkervol =   0x19
  1120. earpiecevol =   0x1e
  1121. maingain =   0x4
  1122. headsetmicgain =  0x4
  1123. adcagc_cfg =   0x0
  1124. adcdrc_cfg =   0x0
  1125. adchpf_cfg =   0x0
  1126. dacdrc_cfg =   0x0
  1127. dachpf_cfg =   0x0
  1128. aif2config =  0x0
  1129. aif3config =  0x0
  1130. aif1_lrlk_div = 0x40
  1131. aif2_lrlk_div = 0x40
  1132. pa_sleep_time = 0x15e
  1133. dac_digital_vol = 0x9898
  1134. gpio-spk = port:PH07<2><1><default><default>
  1135.  
  1136. ;----------------------------------------------------------------------------------
  1137. ;ir --- infra remote configuration
  1138. ;----------------------------------------------------------------------------------
  1139. [s_cir0]
  1140. s_cir0_used         = 1
  1141. ir_power_key_code   = 0x1a
  1142. ir_addr_code        = 0xfb04
  1143.  
  1144. ;-------------------------------------------------------------------------------------
  1145. ;used                        ---0:not used,1:used
  1146. ;pmu_id                      ---0:axp19x,1:axp209,2:axp22x,3:axp806,4:axp808,5:axp809,6:axp803,7:axp813
  1147. ;pmu_twi_addr                ---slave address
  1148. ;pmu_twi_id                  ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3)
  1149. ;pmu_irq_id           ---irq number (0 irq0,1 irq1)
  1150. ;pmu_chg_ic_temp             ---intelligence charge pmu temperature. when it is 0, this function is closed.
  1151. ;pmu_battery_rdc             ---battery initial resistance
  1152. ;pmu_battery_cap             ---battery capability,mAh
  1153. ;pmu_runtime_chgcur          ---set initial charging current limite,mA, 300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
  1154. ;pmu_suspend_chgcur          ---set suspend charging current limite,mA, 300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
  1155. ;pmu_shutdown_chgcur         ---set shutdown charging current limite,mA, 300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
  1156. ;pmu_init_chgvol             ---set initial charing target voltage,mV,4100/4220/4200/4240
  1157. ;pmu_ac_vol                  ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
  1158. ;pmu_ac_cur                  ---set usb-ac limited current level,mA,500/900, 0 - not limite
  1159. ;pmu_usbpc_vol               ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
  1160. ;pmu_usbpc_cur               ---set usb-pc limited current level,mA,500/900, 0 - not limite
  1161. ;pmu_battery_warning_level1  ---low power warning high level,5%-20%,1%/step
  1162. ;pmu_battery_warning_level2  ---low power warning low level,0%-15%,1%/step
  1163. ;pmu_chgled_func             ---CHGKED pin control, 0:controlled by pmu,1:controlled by Charger
  1164. ;pmu_chgled_type             ---CHGLED Type select when pmu_chgled_func=0,0:Type A, 1:type B
  1165. ;pmu_bat_para1               ---battery indication at 3.13V
  1166. ;pmu_bat_para2               ---battery indication at 3.27V
  1167. ;pmu_bat_para3               ---battery indication at 3.34V
  1168. ;pmu_bat_para4               ---battery indication at 3.41V
  1169. ;pmu_bat_para5               ---battery indication at 3.48V
  1170. ;pmu_bat_para6               ---battery indication at 3.52V
  1171. ;pmu_bat_para7               ---battery indication at 3.55V
  1172. ;pmu_bat_para8               ---battery indication at 3.57V
  1173. ;pmu_bat_para9               ---battery indication at 3.59V
  1174. ;pmu_bat_para10              ---battery indication at 3.61V
  1175. ;pmu_bat_para11              ---battery indication at 3.63V
  1176. ;pmu_bat_para12              ---battery indication at 3.64V
  1177. ;pmu_bat_para13              ---battery indication at 3.66V
  1178. ;pmu_bat_para14              ---battery indication at 3.7V
  1179. ;pmu_bat_para15              ---battery indication at 3.73V
  1180. ;pmu_bat_para16              ---battery indication at 3.77V
  1181. ;pmu_bat_para17              ---battery indication at 3.78V
  1182. ;pmu_bat_para18              ---battery indication at 3.8V
  1183. ;pmu_bat_para19              ---battery indication at 3.82V
  1184. ;pmu_bat_para20              ---battery indication at 3.84V
  1185. ;pmu_bat_para21              ---battery indication at 3.85V
  1186. ;pmu_bat_para22              ---battery indication at 3.87V
  1187. ;pmu_bat_para23              ---battery indication at 3.91V
  1188. ;pmu_bat_para24              ---battery indication at 3.94V
  1189. ;pmu_bat_para25              ---battery indication at 3.98V
  1190. ;pmu_bat_para26              ---battery indication at 4.01V
  1191. ;pmu_bat_para27              ---battery indication at 4.05V
  1192. ;pmu_bat_para28              ---battery indication at 4.08V
  1193. ;pmu_bat_para29              ---battery indication at 4.1V
  1194. ;pmu_bat_para30              ---battery indication at 4.12V
  1195. ;pmu_bat_para31              ---battery indication at 4.14V
  1196. ;pmu_bat_para32              ---battery indication at 4.15V
  1197. ;pmu_bat_temp_enable         ---battery temp detect enable
  1198. ;pmu_bat_charge_ltf          ---charge battery temp low threshold voltage
  1199. ;pmu_bat_charge_htf          ---charge battery temp high threshold voltage
  1200. ;pmu_bat_shutdown_ltf        ---shutdown battery temp low threshold voltage
  1201. ;pmu_bat_shutdown_htf        ---shutdown battery temp high threshold voltage
  1202. ;pmu_bat_temp_para1          ---battery temp -25 voltage
  1203. ;pmu_bat_temp_para2          ---battery temp -15 voltage
  1204. ;pmu_bat_temp_para3          ---battery temp -10 voltage
  1205. ;pmu_bat_temp_para4          ---battery temp -5  voltage
  1206. ;pmu_bat_temp_para5          ---battery temp  0  voltage
  1207. ;pmu_bat_temp_para6          ---battery temp  5  voltage
  1208. ;pmu_bat_temp_para7          ---battery temp  10 voltage
  1209. ;pmu_bat_temp_para8          ---battery temp  20 voltage
  1210. ;pmu_bat_temp_para9          ---battery temp  30 voltage
  1211. ;pmu_bat_temp_para10         ---battery temp  40 voltage
  1212. ;pmu_bat_temp_para11         ---battery temp  45 voltage
  1213. ;pmu_bat_temp_para12         ---battery temp  50 voltage
  1214. ;pmu_bat_temp_para13         ---battery temp  55 voltage
  1215. ;pmu_bat_temp_para14         ---battery temp  60 voltage
  1216. ;pmu_bat_temp_para15         ---battery temp  70 voltage
  1217. ;pmu_bat_temp_para16         ---battery temp  80 voltage
  1218. ;pmu_powkey_off_time         ---set pek off time,ms, 4000/6000/8000/10000
  1219. ;pmu_powkey_off_func         ---set pek off func, 0:shutdown,1:restart
  1220. ;pmu_powkey_off_en           ---set pek offlevel powerdown or not, 0:not powerdown,1:powerdown
  1221. ;pmu_powkey_long_time        ---set pek pek long irq time,ms,1000/1500/2000/2500
  1222. ;pmu_powkey_on_time          ---set pek on time,ms,128/1000/2000/3000
  1223. ;power_start             ---when system is in charging, shutdown is power off or resart;0:restart 1:poweroff
  1224. ;--------------------------------------------------------------------------------------------------------
  1225. ;--------------------------------------------------------------------------------------------------------
  1226. ;pmu0 is axp81x
  1227. ;--------------------------------------------------------------------------------------------------------
  1228. [pmu0]
  1229. used                       = 1
  1230. pmu_id                     = 6
  1231. pmu_twi_addr               = 0x34
  1232. pmu_twi_id                 = 1
  1233. pmu_irq_id                 = 64
  1234. pmu_IRQ_wakeup             = 1
  1235.  
  1236. pmu_chg_ic_temp            = 0
  1237. pmu_battery_rdc            = 88
  1238. pmu_battery_cap            = 4800
  1239. pmu_runtime_chgcur         = 450
  1240. pmu_suspend_chgcur         = 1500
  1241. pmu_shutdown_chgcur        = 1500
  1242. pmu_init_chgvol            = 4200
  1243. pmu_ac_vol                 = 4000
  1244. pmu_ac_cur                 = 3500
  1245. pmu_usbpc_vol              = 4400
  1246. pmu_usbpc_cur              = 500
  1247. pmu_battery_warning_level1 = 15
  1248. pmu_battery_warning_level2 = 0
  1249. pmu_chgled_func            = 0
  1250. pmu_chgled_type            = 0
  1251.  
  1252. pmu_bat_para1              = 0
  1253. pmu_bat_para2              = 0
  1254. pmu_bat_para3              = 0
  1255. pmu_bat_para4              = 0
  1256. pmu_bat_para5              = 0
  1257. pmu_bat_para6              = 0
  1258. pmu_bat_para7              = 1
  1259. pmu_bat_para8              = 1
  1260. pmu_bat_para9              = 2
  1261. pmu_bat_para10             = 3
  1262. pmu_bat_para11             = 4
  1263. pmu_bat_para12             = 10
  1264. pmu_bat_para13             = 17
  1265. pmu_bat_para14             = 26
  1266. pmu_bat_para15             = 41
  1267. pmu_bat_para16             = 46
  1268. pmu_bat_para17             = 51
  1269. pmu_bat_para18             = 56
  1270. pmu_bat_para19             = 59
  1271. pmu_bat_para20             = 65
  1272. pmu_bat_para21             = 69
  1273. pmu_bat_para22             = 75
  1274. pmu_bat_para23             = 79
  1275. pmu_bat_para24             = 83
  1276. pmu_bat_para25             = 89
  1277. pmu_bat_para26             = 95
  1278. pmu_bat_para27             = 98
  1279. pmu_bat_para28             = 100
  1280. pmu_bat_para29             = 100
  1281. pmu_bat_para30             = 100
  1282. pmu_bat_para31             = 100
  1283. pmu_bat_para32             = 100
  1284.  
  1285. pmu_bat_temp_enable        = 0
  1286. pmu_bat_charge_ltf         = 2261
  1287. pmu_bat_charge_htf         = 388
  1288. pmu_bat_shutdown_ltf       = 3200
  1289. pmu_bat_shutdown_htf       = 237
  1290. pmu_bat_temp_para1         = 7466
  1291. pmu_bat_temp_para2         = 4480
  1292. pmu_bat_temp_para3         = 3518
  1293. pmu_bat_temp_para4         = 2786
  1294. pmu_bat_temp_para5         = 2223
  1295. pmu_bat_temp_para6         = 1788
  1296. pmu_bat_temp_para7         = 1448
  1297. pmu_bat_temp_para8         = 969
  1298. pmu_bat_temp_para9         = 664
  1299. pmu_bat_temp_para10        = 466
  1300. pmu_bat_temp_para11        = 393
  1301. pmu_bat_temp_para12        = 333
  1302. pmu_bat_temp_para13        = 283
  1303. pmu_bat_temp_para14        = 242
  1304. pmu_bat_temp_para15        = 179
  1305. pmu_bat_temp_para16        = 134
  1306.  
  1307. pmu_powkey_off_time        = 6000
  1308. pmu_powkey_off_func        = 0
  1309. pmu_powkey_off_en          = 1
  1310. pmu_powkey_long_time       = 1500
  1311. pmu_powkey_on_time         = 1000
  1312. power_start                = 0
  1313.  
  1314. ;--------------------------------------------------------------------------------------------------------
  1315. ;pmu0 is axp81x
  1316. ;regulator tree
  1317. ;--------------------------------------------------------------------------------------------------------
  1318. [pmu0_regu]
  1319. regulator_count = 23
  1320. regulator1      = "axp81x_dcdc1 none vcc-nand vcc-emmc vcc-sdc vcc-usb-30 vcc-io vcc-pd"
  1321. regulator2      = "axp81x_dcdc2 none vdd-cpua"
  1322. regulator3      = "axp81x_dcdc3 none"
  1323. regulator4      = "axp81x_dcdc4 none"
  1324. regulator5      = "axp81x_dcdc5 none vcc-dram"
  1325. regulator6      = "axp81x_dcdc6 none vdd-sys"
  1326. regulator7      = "axp81x_dcdc7 none"
  1327. regulator8      = "axp81x_rtc none"
  1328. regulator9      = "axp81x_aldo1 none vdd-csi-led iovdd-csi vcc-pe"
  1329. regulator10     = "axp81x_aldo2 none vcc-pl"
  1330. regulator11     = "axp81x_aldo3 none vcc-avcc vcc-pll"
  1331. regulator12     = "axp81x_dldo1 none vcc-hdmi-33"
  1332. regulator13     = "axp81x_dldo2 none vcc-wifi"
  1333. regulator14     = "axp81x_dldo3 none avdd-csi"
  1334. regulator15     = "axp81x_dldo4 none vcc-deviceio vcc-wifi-io"
  1335. regulator16     = "axp81x_eldo1 none vcc-cpvdd vcc-pc vcc-pg"
  1336. regulator17     = "axp81x_eldo2 none vcc-lcd-0"
  1337. regulator18     = "axp81x_eldo3 none dvdd-csi-18"
  1338. regulator19     = "axp81x_fldo1 none vcc-hsic-12"
  1339. regulator20     = "axp81x_fldo2 none vdd-cpus"
  1340. regulator21     = "axp81x_gpio0ldo none vcc-ctp"
  1341. regulator22     = "axp81x_gpio1ldo none"
  1342. regulator23     = "axp81x_dc1sw none vcc-lvds vcc-dsi-33"
  1343.  
  1344. ;----------------------------------------------------------------------------------
  1345. ;recovery and fastboot key
  1346. ;----------------------------------------------------------------------------------
  1347. [recovery_key]
  1348. key_max         = 0xc
  1349. key_min         = 0xa
  1350. ;----------------------------------------------------------------------------------
  1351. [fastboot_key]
  1352. key_max         = 0x4
  1353. key_min         = 0x4
  1354.  
  1355. ;----------------------------------------------------------------------------------
  1356. ; dvfs voltage-frequency table configuration
  1357. ;
  1358. ; max_freq: cpu maximum frequency, based on Hz
  1359. ; min_freq: cpu minimum frequency, based on Hz
  1360. ;
  1361. ; lv_count: count of lv_freq/lv_volt, must be < 16
  1362. ;
  1363. ; lv1: core vdd is 1.30v if cpu frequency is (1104Mhz, 1152Mhz]
  1364. ; lv2: core vdd is 1.26v if cpu frequency is (1008Mhz, 1104Mhz]
  1365. ; lv3: core vdd is 1.20v if cpu frequency is (816Mhz,  1008Mhz]
  1366. ; lv4: core vdd is 1.10v if cpu frequency is (648Mhz,   816Mhz]
  1367. ; lv5: core vdd is 1.04v if cpu frequency is (480Mhz,   648Mhz]
  1368. ; lv6: core vdd is 1.04v if cpu frequency is (480Mhz,   648Mhz]
  1369. ; lv7: core vdd is 1.04v if cpu frequency is (480Mhz,   648Mhz]
  1370. ; lv8: core vdd is 1.04v if cpu frequency is (480Mhz,   648Mhz]
  1371. ;
  1372. ;----------------------------------------------------------------------------------
  1373. [dvfs_table]
  1374. ;extremity_freq = 1344000000
  1375. max_freq = 1152000000
  1376. min_freq = 480000000
  1377.  
  1378. lv_count = 8
  1379. lv1_freq = 1152000000
  1380. lv1_volt = 1300
  1381.  
  1382. lv2_freq = 1104000000
  1383. lv2_volt = 1260
  1384.  
  1385. lv3_freq = 1008000000
  1386. lv3_volt = 1200
  1387.  
  1388. lv4_freq = 816000000
  1389. lv4_volt = 1100
  1390.  
  1391. lv5_freq = 648000000
  1392. lv5_volt = 1040
  1393.  
  1394. lv6_freq = 0
  1395. lv6_volt = 1040
  1396.  
  1397. lv7_freq = 0
  1398. lv7_volt = 1040
  1399.  
  1400. lv8_freq = 0
  1401. lv8_volt = 1040
  1402.  
  1403. ;----------------------------------------------------------------------------------
  1404. ;s_uart0 config parameters
  1405. ;s_uart0_used  --s_uart0 whether used for arisc debugging
  1406. ;
  1407. ;----------------------------------------------------------------------------------
  1408. [s_uart0]
  1409. s_uart0_used       = 1
  1410. s_uart0_tx         = port:PL02<2><default><default><default>
  1411. s_uart0_rx         = port:PL03<2><default><default><default>
  1412.  
  1413. ;----------------------------------------------------------------------------------
  1414. ;s_rsb0 config parameters
  1415. ;s_rsb0_used  --s_rsb0 whether used for arisc
  1416. ;
  1417. ;----------------------------------------------------------------------------------
  1418. [s_rsb0]
  1419. s_rsb0_used        = 1
  1420. s_rsb0_sck         = port:PL00<2><1><2><default>
  1421. s_rsb0_sda         = port:PL01<2><1><2><default>
  1422.  
  1423. ;----------------------------------------------------------------------------------
  1424. ;s_jtag0 config parameters
  1425. ;s_jtag0_used  --s_jtag0 whether used for arisc
  1426. ;
  1427. ;----------------------------------------------------------------------------------
  1428. [s_jtag0]
  1429. s_jtag0_used        = 0
  1430. s_jtag0_tms         = port:PL04<2><1><2><default>
  1431. s_jtag0_tck         = port:PL05<2><1><2><default>
  1432. s_jtag0_tdo         = port:PL06<2><1><2><default>
  1433. s_jtag0_tdi         = port:PL07<2><1><2><default>
  1434.  
  1435. ;----------------------------------------------------------------------------------
  1436. ;virtual device
  1437. ;virtual device for pinctrl testing
  1438. ;device have pin PA1 PA2
  1439. ;----------------------------------------------------------------------------------
  1440. [Vdevice]
  1441. Vdevice_used        = 1
  1442. Vdevice_0           = port:PB01<4><1><2><default>
  1443. Vdevice_1           = port:PB02<4><1><2><default>
  1444.  
  1445. ;----------------------------------------------------------------------------------
  1446. ;mali400 parameters
  1447. ;normal_freq      : the normal frequency of gpu
  1448. ;scene_ctrl_status: scene control status, if this is enabled, android layer can ask
  1449. ;                   gpu driver to change frequency in certain scene
  1450. ;temp_ctrl_status : temperature control status, if this is enabled, the gpu frequency
  1451. ;                   will drop down if gpu's temperature is too high
  1452. ;----------------------------------------------------------------------------------
  1453. [gpu_mali400_0]
  1454. normal_freq       = 408
  1455. scene_ctrl_status = 0
  1456. temp_ctrl_status  = 1
  1457. ;----------------------------------------------------------------------------------
  1458.  
  1459. ;----------------------------------------------------------------------------------
  1460. ; Sunxi gpio power key
  1461. ;
  1462. ;
  1463. ;----------------------------------------------------------------------------------
  1464. [gpio_power_key]
  1465. key_io = port:power2<1><0><default><0>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top