1790 lines
70 KiB
Plaintext
Executable File
1790 lines
70 KiB
Plaintext
Executable File
;R311 application
|
||
;---------------------------------------------------------------------------------------------------------
|
||
; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
|
||
; 描述gpio的形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
|
||
;---------------------------------------------------------------------------------------------------------
|
||
|
||
[product]
|
||
version = "100"
|
||
machine = "evb"
|
||
|
||
[platform]
|
||
eraseflag = 0
|
||
debug_mode = 1
|
||
;----------------------------------------------------------------------------------
|
||
; system configuration
|
||
; ?
|
||
;dcdc1_vol ---set dcdc1 voltage,mV,1600-3400,100mV/step
|
||
;dcdc2_vol ---set dcdc2 voltage,mV,600-1540,20mV/step
|
||
;dcdc3_vol ---set dcdc3 voltage,mV,600-1860,20mV/step
|
||
;dcdc4_vol ---set dcdc4 voltage,mV,600-1540,20mV/step
|
||
;dcdc5_vol ---set dcdc5 voltage,mV,1000-2550,50mV/step
|
||
;aldo2_vol ---set aldo2 voltage,mV,700-3300,100mV/step
|
||
;aldo3_vol ---set aldo3 voltage,mV,700-3300,100mV/step
|
||
;----------------------------------------------------------------------------------
|
||
[target]
|
||
boot_clock = 1008
|
||
storage_type = -1
|
||
|
||
;----------------------------------------------------------------------------------
|
||
; power setting
|
||
;note:
|
||
;dcdc1_vol=1003300, mean set dcdc to 3300mV and enable this dc
|
||
;dcdc1_vol=3300, mean set dcdc to 3300mV but disable this dc
|
||
;----------------------------------------------------------------------------------
|
||
[power_sply]
|
||
dcdc1_vol = 1003300
|
||
dcdc2_vol = 1001100
|
||
dcdc4_vol = 1000900
|
||
dcdc5_vol = 1001350
|
||
dcdc6_vol = 3300
|
||
aldo1_vol = 3300
|
||
aldo2_vol = 1001800
|
||
aldo3_vol = 1001800
|
||
aldo4_vol = 3300
|
||
bldo2_vol = 2800
|
||
bldo3_vol = 2800
|
||
bldo4_vol = 1200
|
||
bldo5_vol = 1800
|
||
cldo1_vol = 3300
|
||
dc1sw_vol = 3300
|
||
|
||
[card_boot]
|
||
logical_start = 40960
|
||
sprite_gpio0 =
|
||
|
||
;---------------------------------------------------------------------------------------------------------
|
||
; if 1 == standby_mode, then support super standby;
|
||
; else, support normal standby.
|
||
;---------------------------------------------------------------------------------------------------------
|
||
[pm_para]
|
||
standby_mode = 1
|
||
|
||
[card0_boot_para]
|
||
card_ctrl = 1
|
||
card_high_speed = 1
|
||
card_line = 4
|
||
sdc_d1 = port:PF0<2><1><2><default>
|
||
sdc_d0 = port:PF1<2><1><2><default>
|
||
sdc_clk = port:PF2<2><1><2><default>
|
||
sdc_cmd = port:PF3<2><1><2><default>
|
||
sdc_d3 = port:PF4<2><1><2><default>
|
||
sdc_d2 = port:PF5<2><1><2><default>
|
||
|
||
[card2_boot_para]
|
||
card_ctrl = 2
|
||
card_high_speed = 1
|
||
card_line = 8
|
||
sdc_cmd = port:PC06<3><1><3><default>
|
||
sdc_clk = port:PC05<3><1><3><default>
|
||
sdc_d0 = port:PC10<3><1><3><default>
|
||
sdc_d1 = port:PC13<3><1><3><default>
|
||
sdc_d2 = port:PC15<3><1><3><default>
|
||
sdc_d3 = port:PC08<3><1><3><default>
|
||
sdc_d4 = port:PC09<3><1><3><default>
|
||
sdc_d5 = port:PC11<3><1><3><default>
|
||
sdc_d6 = port:PC14<3><1><3><default>
|
||
sdc_d7 = port:PC16<3><1><3><default>
|
||
sdc_emmc_rst = port:PC01<3><1><3><default>
|
||
sdc_ds = port:PC00<3><1><3><default>
|
||
sdc_ex_dly_used = 2
|
||
|
||
[twi_para]
|
||
twi_port = 0
|
||
twi_scl = port:PH14<2><default><default><default>
|
||
twi_sda = port:PH15<2><default><default><default>
|
||
|
||
[uart_para]
|
||
uart_debug_port = 0
|
||
uart_debug_tx = port:PB09<4><1><default><default>
|
||
uart_debug_rx = port:PB10<4><1><default><default>
|
||
|
||
[jtag_para]
|
||
jtag_enable = 0
|
||
jtag_ms = port:PH9<3><default><default><default>
|
||
jtag_ck = port:PH10<3><default><default><default>
|
||
jtag_do = port:PH11<3><default><default><default>
|
||
jtag_di = port:PH12<3><default><default><default>
|
||
|
||
[clock]
|
||
pll4 = 300
|
||
pll6 = 600
|
||
pll8 = 360
|
||
pll9 = 297
|
||
pll10 = 264
|
||
|
||
;*****************************************************************************
|
||
;sdram configuration
|
||
;
|
||
;*****************************************************************************
|
||
[dram_para]
|
||
|
||
dram_clk = 624
|
||
dram_type = 3
|
||
dram_dx_odt = 0x02020202
|
||
dram_dx_dri = 0x1e1e1e1e
|
||
dram_ca_dri = 0x0703
|
||
dram_odt_en = 1
|
||
dram_para1 = 0x30DA
|
||
dram_para2 = 0x0000
|
||
dram_mr0 = 0x840
|
||
dram_mr1 = 0x40
|
||
dram_mr2 = 0x8
|
||
dram_mr3 = 0x0
|
||
dram_mr4 = 0x0
|
||
dram_mr5 = 0x0
|
||
dram_mr6 = 0x0
|
||
dram_mr11 = 0x0
|
||
dram_mr12 = 0x0
|
||
dram_mr13 = 0x0
|
||
dram_mr14 = 0x0
|
||
dram_mr16 = 0x0
|
||
dram_mr17 = 0x0
|
||
dram_mr22 = 0x0
|
||
dram_tpr0 = 0x0
|
||
dram_tpr1 = 0x0
|
||
dram_tpr2 = 0x0
|
||
dram_tpr3 = 0x0
|
||
dram_tpr6 = 0x14010101
|
||
dram_tpr10 = 0x0
|
||
dram_tpr11 = 0x06060606
|
||
dram_tpr12 = 0x04040404
|
||
dram_tpr13 = 0x40
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;os life cycle para configuration
|
||
;----------------------------------------------------------------------------------
|
||
|
||
;------------------------------------------------------------------------------;
|
||
; 10/100/100Mbps Ethernet MAC Controller Configure ;
|
||
;------------------------------------------------------------------------------;
|
||
; 配置选项: ;
|
||
; gmac_used --- 1: gmac used, 0: not used ;
|
||
;------------------------------------------------------------------------------;
|
||
; MII GMII RGMII MII GMII RGMII MII GMII RGMII ;
|
||
;PA00~03 * * * PA10 * * PA20 * * * ;
|
||
; PA04 * PA11~14 * * * PA21 * * ;
|
||
; PA05 * PA15 * PA22 * * ;
|
||
; PA06 * PA16 * PA23 * * ;
|
||
; PA07 * PA17 * PA24 * * ;
|
||
; PA08 * * PA18 * PA25 * * ;
|
||
; PA09 * * * PA19 * * * PA26~27 * * * ;
|
||
;------------------------------------------------------------------------------;
|
||
[gmac_para]
|
||
gmac_used = 0
|
||
gmac_txd0 = port:PA00<2><default><default><default>
|
||
gmac_txd1 = port:PA01<2><default><default><default>
|
||
gmac_txd2 = port:PA02<2><default><default><default>
|
||
gmac_txd3 = port:PA03<2><default><default><default>
|
||
gmac_txd4 = port:PA04<2><default><default><default>
|
||
gmac_txd5 = port:PA05<2><default><default><default>
|
||
gmac_txd6 = port:PA06<2><default><default><default>
|
||
gmac_txd7 = port:PA07<2><default><default><default>
|
||
gmac_txclk = port:PA08<2><default><default><default>
|
||
gmac_txen = port:PA09<2><default><default><default>
|
||
gmac_gtxclk = port:PA10<2><default><default><default>
|
||
gmac_rxd0 = port:PA11<2><default><default><default>
|
||
gmac_rxd1 = port:PA12<2><default><default><default>
|
||
gmac_rxd2 = port:PA13<2><default><default><default>
|
||
gmac_rxd3 = port:PA14<2><default><default><default>
|
||
gmac_rxd4 = port:PA15<2><default><default><default>
|
||
gmac_rxd5 = port:PA16<2><default><default><default>
|
||
gmac_rxd6 = port:PA17<2><default><default><default>
|
||
gmac_rxd7 = port:PA18<2><default><default><default>
|
||
gmac_rxdv = port:PA19<2><default><default><default>
|
||
gmac_rxclk = port:PA20<2><default><default><default>
|
||
gmac_txerr = port:PA21<2><default><default><default>
|
||
gmac_rxerr = port:PA22<2><default><default><default>
|
||
gmac_col = port:PA23<2><default><default><default>
|
||
gmac_crs = port:PA24<2><default><default><default>
|
||
gmac_clkin = port:PA25<2><default><default><default>
|
||
gmac_mdc = port:PA26<2><default><default><default>
|
||
gmac_mdio = port:PA27<2><default><default><default>
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;i2c configuration
|
||
;----------------------------------------------------------------------------------
|
||
[twi0]
|
||
twi0_used = 1
|
||
twi0_scl = port:PH0<2><default><default><default>
|
||
twi0_sda = port:PH1<2><default><default><default>
|
||
clock-frequency = 100000
|
||
twi_regulator = "vcc-io"
|
||
|
||
[twi1]
|
||
twi1_used = 1
|
||
twi1_scl = port:PH2<2><default><default><default>
|
||
twi1_sda = port:PH3<2><default><default><default>
|
||
twi_regulator = "vcc-io"
|
||
|
||
[twi2]
|
||
twi2_used = 0
|
||
twi2_scl = port:PE1<3><default><default><default>
|
||
twi2_sda = port:PE2<3><default><default><default>
|
||
twi_regulator = "vcc-io"
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;uart configuration
|
||
;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function)
|
||
;----------------------------------------------------------------------------------
|
||
[uart0]
|
||
uart0_used = 1
|
||
uart0_port = 0
|
||
uart0_type = 2
|
||
uart0_tx = port:PB09<4><1><default><default>
|
||
uart0_rx = port:PB10<4><1><default><default>
|
||
uart0_regulator = "vcc-io"
|
||
|
||
[uart0_suspend]
|
||
uart0_tx = port:PB09<7><1><default><default>
|
||
uart0_rx = port:PB10<7><1><default><default>
|
||
|
||
[uart1]
|
||
uart1_used = 1
|
||
uart1_port = 1
|
||
uart1_type = 4
|
||
uart1_tx = port:PG6<2><1><default><default>
|
||
uart1_rx = port:PG7<2><1><default><default>
|
||
uart1_rts = port:PG8<2><1><default><default>
|
||
uart1_cts = port:PG9<2><1><default><default>
|
||
uart1_regulator = "vcc-io"
|
||
|
||
[uart1_suspend]
|
||
uart1_tx = port:PG6<7><1><default><default>
|
||
uart1_rx = port:PG7<7><1><default><default>
|
||
uart1_rts = port:PG8<7><1><default><default>
|
||
uart1_cts = port:PG9<7><1><default><default>
|
||
|
||
[uart2]
|
||
uart2_used = 1
|
||
uart2_port = 2
|
||
uart2_type = 4
|
||
uart2_tx = port:PB0<2><1><default><default>
|
||
uart2_rx = port:PB1<2><1><default><default>
|
||
uart2_rts = port:PB2<2><1><default><default>
|
||
uart2_cts = port:PB3<2><1><default><default>
|
||
uart2_regulator = "vcc-io"
|
||
|
||
[uart2_suspend]
|
||
uart2_tx = port:PB0<7><1><default><default>
|
||
uart2_rx = port:PB1<7><1><default><default>
|
||
uart2_rts = port:PB2<7><1><default><default>
|
||
uart2_cts = port:PB3<7><1><default><default>
|
||
|
||
[uart3]
|
||
uart3_used = 0
|
||
uart3_port = 3
|
||
uart3_type = 4
|
||
uart3_tx = port:PH4<2><1><default><default>
|
||
uart3_rx = port:PH5<2><1><default><default>
|
||
uart3_rts = port:PH6<2><1><default><default>
|
||
uart3_cts = port:PH7<2><1><default><default>
|
||
uart3_regulator = "vcc-io"
|
||
|
||
[uart3_suspend]
|
||
uart3_tx = port:PH4<7><1><default><default>
|
||
uart3_rx = port:PH5<7><1><default><default>
|
||
uart3_rts = port:PH6<7><1><default><default>
|
||
uart3_cts = port:PH7<7><1><default><default>
|
||
|
||
[uart4]
|
||
uart4_used = 0
|
||
uart4_port = 4
|
||
uart4_type = 4
|
||
uart4_tx = port:PD18<4><1><default><default>
|
||
uart4_rx = port:PD19<4><1><default><default>
|
||
uart4_rts = port:PD20<4><1><default><default>
|
||
uart4_cts = port:PD21<4><1><default><default>
|
||
uart4_regulator = "vcc-io"
|
||
|
||
[uart4_suspend]
|
||
uart4_tx = port:PD18<7><1><default><default>
|
||
uart4_rx = port:PD19<7><1><default><default>
|
||
uart4_rts = port:PD20<7><1><default><default>
|
||
uart4_cts = port:PD21<7><1><default><default>
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;SPI controller configuration
|
||
;----------------------------------------------------------------------------------
|
||
[spi0]
|
||
spi0_used = 0
|
||
spi0_cs_number = 2
|
||
spi0_cs_bitmap = 3
|
||
spi0_cs0 = port:PC03<4><1><default><default>
|
||
spi0_sclk = port:PC00<4><default><default><default>
|
||
spi0_mosi = port:PC02<4><default><default><default>
|
||
spi0_miso = port:PC04<4><default><default><default>
|
||
|
||
[spi1]
|
||
spi1_used = 0
|
||
spi1_cs_number = 1
|
||
spi1_cs_bitmap = 1
|
||
spi1_cs0 = port:PH4<3><1><default><default>
|
||
spi1_sclk = port:PH5<3><default><default><default>
|
||
spi1_mosi = port:PH6<3><default><default><default>
|
||
spi1_miso = port:PH7<3><default><default><default>
|
||
|
||
[spi1_suspend]
|
||
spi1_cs0 = port:PH4<7><default><default><default>
|
||
spi1_sclk = port:PH5<7><default><default><default>
|
||
spi1_mosi = port:PH6<7><default><default><default>
|
||
spi1_miso = port:PH7<7><default><default><default>
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;SPI device configuration
|
||
;----------------------------------------------------------------------------------
|
||
[spi0/spi_board0]
|
||
compatible = "m25p80"
|
||
spi-max-frequency = 1000000
|
||
reg = 0
|
||
spi-rx-bus-width = 1
|
||
spi-tx-bus-width = 1
|
||
;spi-cpha
|
||
;spi-cpol
|
||
;spi-cs-high
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;resistance gpadc configuration
|
||
;channel_num: Maxinum number of channels supported on the platform.
|
||
;channel_select: channel enable setection. channel0:0x01 channel1:0x02 channel2:0x04 channel3:0x08
|
||
;channel_data_select: channel data enable. channel0:0x01 channel1:0x02 channel2:0x04 channel3:0x08.
|
||
;channel_compare_select: compare function enable channel0:0x01 channel1:0x02 channel2:0x04 channel3:0x08.
|
||
;channel_cld_select: compare function low data enable setection: channel0:0x01 channel1:0x02 channel2:0x04 channel3:0x08.
|
||
;channel_chd_select: compare function hig data enable setection: channel0:0x01 channel1:0x02 channel2:0x04 channel3:0x08.
|
||
;----------------------------------------------------------------------------------
|
||
[gpadc]
|
||
gpadc_used = 1
|
||
channel_num = 1
|
||
channel_select = 0x01
|
||
channel_data_select = 0
|
||
channel_compare_select = 0x01
|
||
channel_cld_select = 0x01
|
||
channel_chd_select = 0
|
||
channel0_compare_lowdata = 1700000
|
||
channel0_compare_higdata = 1200000
|
||
key_cnt = 5
|
||
key0_vol = 115
|
||
key0_val = 115
|
||
key1_vol = 240
|
||
key1_val = 114
|
||
key2_vol = 360
|
||
key2_val = 139
|
||
key3_vol = 480
|
||
key3_val = 28
|
||
key4_vol = 600
|
||
key4_val = 102
|
||
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;resistance tp configuration
|
||
;----------------------------------------------------------------------------------
|
||
[rtp_para]
|
||
rtp_used = 0
|
||
rtp_screen_size = 5
|
||
rtp_regidity_level = 5
|
||
rtp_press_threshold_enable = 0
|
||
rtp_press_threshold = 0x1f40
|
||
rtp_sensitive_level = 0xf
|
||
rtp_exchange_x_y_flag = 0
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;capacitor tp configuration
|
||
;external int function
|
||
;wakeup output function
|
||
;notice --- tp_int_port & tp_io_port use the same port
|
||
;----------------------------------------------------------------------------------
|
||
[ctp]
|
||
compatible = "allwinner,sun50i-ctp-para"
|
||
ctp_used = 1
|
||
ctp_name = "gt9xxnew_ts"
|
||
ctp_twi_id = 1
|
||
ctp_twi_addr = 0x5d
|
||
ctp_screen_max_x = 854
|
||
ctp_screen_max_y = 480
|
||
ctp_revert_x_flag = 1
|
||
ctp_revert_y_flag = 1
|
||
ctp_exchange_x_y_flag = 1
|
||
|
||
ctp_int_port = port:PL10<6><default><default><default>
|
||
ctp_wakeup = port:PL09<1><1><1><0>
|
||
ctp_power_ldo = "pmu1736_cldo1"
|
||
ctp_power_ldo_vol = 3300
|
||
ctp_power_io =
|
||
|
||
;--------------------------------------------------------------------------------
|
||
; CTP automatic detection configuration
|
||
;ctp_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
|
||
;Module name postposition 1 said detection, 0 means no detection.
|
||
;--------------------------------------------------------------------------------
|
||
[ctp_list]
|
||
compatible = "allwinner,sun50i-ctp-list"
|
||
ctp_list_used = 0
|
||
ft5x16_ts = 1
|
||
gslX680new = 1
|
||
gt9xx_ts = 0
|
||
gt9xxnew_ts = 1
|
||
gt82x = 1
|
||
zet622x = 1
|
||
aw5306_ts = 1
|
||
;----------------------------------------------------------------------------------
|
||
;touch key configuration
|
||
;----------------------------------------------------------------------------------
|
||
[tkey_para]
|
||
tkey_used = 0
|
||
tkey_twi_id =
|
||
tkey_twi_addr =
|
||
tkey_int =
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;motor configuration
|
||
;----------------------------------------------------------------------------------
|
||
[motor_para]
|
||
motor_used = 1
|
||
motor_shake = port:power3<1><default><default><1>
|
||
|
||
[nand0_para]
|
||
nand_support_2ch = 0
|
||
|
||
nand0_used = 1
|
||
nand0_we = port:PC00<2><0><1><default>
|
||
nand0_ale = port:PC01<2><0><1><default>
|
||
nand0_cle = port:PC02<2><0><1><default>
|
||
nand0_ce1 = port:PC03<2><1><1><default>
|
||
nand0_ce0 = port:PC04<2><1><1><default>
|
||
nand0_nre = port:PC05<2><0><1><default>
|
||
nand0_rb0 = port:PC06<2><1><1><default>
|
||
nand0_rb1 = port:PC07<2><1><1><default>
|
||
nand0_d7 = port:PC08<2><0><1><default>
|
||
nand0_d6 = port:PC09<2><0><1><default>
|
||
nand0_d5 = port:PC10<2><0><1><default>
|
||
nand0_d4 = port:PC11<2><0><1><default>
|
||
nand0_ndqs = port:PC12<2><0><1><default>
|
||
nand0_d3 = port:PC13<2><0><1><default>
|
||
nand0_d2 = port:PC14<2><0><1><default>
|
||
nand0_d1 = port:PC15<2><0><1><default>
|
||
nand0_d0 = port:PC16<2><0><1><default>
|
||
|
||
nand0_regulator1 = "vcc-nand"
|
||
nand0_regulator2 = "none"
|
||
nand0_cache_level = 0x55aaaa55
|
||
nand0_flush_cache_num = 0x55aaaa55
|
||
nand0_capacity_level = 0x55aaaa55
|
||
nand0_id_number_ctl = 0x55aaaa55
|
||
nand0_print_level = 0x55aaaa55
|
||
nand0_p0 = 0x55aaaa55
|
||
nand0_p1 = 0x55aaaa55
|
||
nand0_p2 = 0x55aaaa55
|
||
nand0_p3 = 0x55aaaa55
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;disp init configuration
|
||
;
|
||
;disp_mode (0:screen0<screen0,fb0>)
|
||
;screenx_output_type (0:none; 1:lcd; 3:hdmi;)
|
||
;screenx_output_mode (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50)
|
||
; (5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60)
|
||
;fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
|
||
;fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA)
|
||
;fbx_width,fbx_height (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0)
|
||
;lcdx_backlight (lcd init backlight,the range:[0,256],default:197
|
||
;lcdx_yy (lcd init screen bright/contrast/saturation/hue, value:0~100, default:50/50/57/50)
|
||
;----------------------------------------------------------------------------------
|
||
[disp]
|
||
disp_init_enable = 1
|
||
disp_mode = 0
|
||
|
||
screen0_output_type = 1
|
||
screen0_output_mode = 2
|
||
screen0_output_format = 0
|
||
|
||
screen1_output_type = 1
|
||
screen1_output_mode = 4
|
||
|
||
fb0_format = 8
|
||
fb0_width = 480
|
||
fb0_height = 854
|
||
|
||
fb1_format = 0
|
||
fb1_width = 0
|
||
fb1_height = 0
|
||
|
||
lcd0_backlight = 50
|
||
lcd1_backlight = 50
|
||
|
||
lcd0_bright = 50
|
||
lcd0_contrast = 50
|
||
lcd0_saturation = 57
|
||
lcd0_hue = 50
|
||
|
||
lcd1_bright = 50
|
||
lcd1_contrast = 50
|
||
lcd1_saturation = 57
|
||
lcd1_hue = 50
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;lcd0 configuration
|
||
|
||
;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:dsi; 5:edp; 6:extend dsi
|
||
;lcd_x: lcd horizontal resolution
|
||
;lcd_y: lcd vertical resolution
|
||
;lcd_width: width of lcd in mm
|
||
;lcd_height: height of lcd in mm
|
||
;lcd_dclk_freq: in MHZ unit
|
||
;lcd_pwm_freq: in HZ unit
|
||
;lcd_pwm_pol: lcd backlight PWM polarity
|
||
;lcd_pwm_max_limit lcd backlight PWM max limit(<=255)
|
||
;lcd_hbp: hsync back porch
|
||
;lcd_ht: hsync total cycle
|
||
;lcd_vbp: vsync back porch
|
||
;lcd_vt: vysnc total cycle
|
||
;lcd_hspw: hsync plus width
|
||
;lcd_vspw: vysnc plus width
|
||
;lcd_lvds_if: 0:single link; 1:dual link
|
||
;lcd_lvds_colordepth: 0:8bit; 1:6bit
|
||
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
|
||
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither
|
||
;lcd_io_phase: 0:noraml; 1:intert phase(0~3bit: vsync phase; 4~7bit:hsync phase;
|
||
; 8~11bit:dclk phase; 12~15bit:de phase)
|
||
;lcd_gamma_en lcd gamma correction enable
|
||
;lcd_bright_curve_en lcd bright curve correction enable
|
||
;lcd_cmap_en lcd color map function enable
|
||
;deu_mode 0:smoll lcd screen; 1:large lcd screen(larger than 10inch)
|
||
;lcdgamma4iep: Smart Backlight parameter, lcd gamma vale * 10;
|
||
; decrease it while lcd is not bright enough; increase while lcd is too bright
|
||
;smart_color 90:normal lcd screen 65:retina lcd screen(9.7inch)
|
||
;----------------------------------------------------------------------------------
|
||
[lcd0]
|
||
lcd_used = 1
|
||
|
||
lcd_driver_name = "NETEASE_T50P37"
|
||
lcd_backlight = 40
|
||
lcd_if = 0
|
||
lcd_hv_if = 0
|
||
lcd_x = 480
|
||
lcd_y = 854
|
||
lcd_width = 61
|
||
lcd_height = 109
|
||
|
||
lcd_dclk_freq = 33
|
||
lcd_pwm_used = 1
|
||
lcd_pwm_ch = 0
|
||
lcd_pwm_freq = 50000
|
||
lcd_pwm_pol = 1
|
||
lcd_pwm_max_limit = 255
|
||
lcd_hbp = 60
|
||
lcd_ht = 610
|
||
lcd_hspw = 10
|
||
lcd_vbp = 20
|
||
lcd_vt = 898
|
||
lcd_vspw = 4
|
||
;lcd_lvds_if = 0
|
||
;lcd_lvds_colordepth = 1
|
||
;lcd_lvds_mode = 0
|
||
lcd_frm = 1
|
||
lcd_hv_clk_phase = 0
|
||
lcd_hv_sync_polarity= 0
|
||
lcd_gamma_en = 0
|
||
lcd_bright_curve_en = 0
|
||
lcd_cmap_en = 0
|
||
|
||
deu_mode = 0
|
||
lcdgamma4iep = 22
|
||
smart_color = 90
|
||
|
||
;lcd_bl_en = port:PD21<1><0><default><1>
|
||
lcd_power = "vcc-lcd"
|
||
|
||
lcdd0 = port:PD00<2><0><default><default>
|
||
lcdd1 = port:PD01<2><0><default><default>
|
||
lcdd2 = port:PD02<2><0><default><default>
|
||
lcdd3 = port:PD03<2><0><default><default>
|
||
lcdd4 = port:PD04<2><0><default><default>
|
||
lcdd5 = port:PD05<2><0><default><default>
|
||
lcdd6 = port:PD06<2><0><default><default>
|
||
lcdd7 = port:PD07<2><0><default><default>
|
||
lcdd8 = port:PD08<2><0><default><default>
|
||
lcdd9 = port:PD09<2><0><default><default>
|
||
lcdd10 = port:PD10<2><0><default><default>
|
||
lcdd11 = port:PD11<2><0><default><default>
|
||
lcdd12 = port:PD12<2><0><default><default>
|
||
lcdd13 = port:PD13<2><0><default><default>
|
||
lcdd14 = port:PD14<2><0><default><default>
|
||
lcdd15 = port:PD15<2><0><default><default>
|
||
lcdd16 = port:PD16<2><0><default><default>
|
||
lcdd17 = port:PD17<2><0><default><default>
|
||
lcdclk = port:PD18<2><0><default><default>
|
||
lcdde = port:PD19<2><0><default><default>
|
||
lcdhsync = port:PD20<2><0><default><default>
|
||
lcdvsync = port:PD21<2><0><default><default>
|
||
|
||
;GPIOS to control spi lcd
|
||
;spi cs
|
||
lcd_gpio_0 = port:PH4<1><0><default><default>
|
||
;spi clk
|
||
lcd_gpio_1 = port:PH5<1><0><default><default>
|
||
;spi mosi
|
||
lcd_gpio_2 = port:PH6<1><0><default><default>
|
||
;lcd rst
|
||
lcd_gpio_3 = port:PD22<1><0><default><default>
|
||
|
||
[lcd0_suspend]
|
||
lcdd0 = port:PD00<7><0><default><default>
|
||
lcdd1 = port:PD01<7><0><default><default>
|
||
lcdd2 = port:PD02<7><0><default><default>
|
||
lcdd3 = port:PD03<7><0><default><default>
|
||
lcdd4 = port:PD04<7><0><default><default>
|
||
lcdd5 = port:PD05<7><0><default><default>
|
||
lcdd6 = port:PD06<7><0><default><default>
|
||
lcdd7 = port:PD07<7><0><default><default>
|
||
lcdd8 = port:PD08<7><0><default><default>
|
||
lcdd9 = port:PD09<7><0><default><default>
|
||
|
||
lcdd10 = port:PD10<7><0><default><default>
|
||
lcdd11 = port:PD11<7><0><default><default>
|
||
lcdd12 = port:PD12<7><0><default><default>
|
||
lcdd13 = port:PD13<7><0><default><default>
|
||
lcdd14 = port:PD14<7><0><default><default>
|
||
lcdd15 = port:PD15<7><0><default><default>
|
||
lcdd16 = port:PD16<7><0><default><default>
|
||
lcdd17 = port:PD17<7><0><default><default>
|
||
|
||
lcdclk = port:PD18<7><0><default><default>
|
||
lcdde = port:PD19<7><0><default><default>
|
||
lcdhsync = port:PD20<7><0><default><default>
|
||
lcdvsync = port:PD21<7><0><default><default>
|
||
|
||
[lcd1]
|
||
lcd_used = 0
|
||
|
||
lcd_driver_name = "default_lcd"
|
||
lcd_if = 0
|
||
lcd_x = 800
|
||
lcd_y = 480
|
||
lcd_width = 150
|
||
lcd_height = 94
|
||
lcd_dclk_freq = 33
|
||
lcd_pwm_used = 1
|
||
lcd_pwm_ch = 0
|
||
lcd_pwm_freq = 10000
|
||
lcd_pwm_pol = 0
|
||
lcd_pwm_max_limit = 255
|
||
lcd_hbp = 46
|
||
lcd_ht = 1055
|
||
lcd_hspw = 0
|
||
lcd_vbp = 23
|
||
lcd_vt = 525
|
||
lcd_vspw = 0
|
||
lcd_lvds_if = 0
|
||
lcd_lvds_colordepth = 1
|
||
lcd_lvds_mode = 0
|
||
lcd_frm = 0
|
||
lcd_hv_clk_phase = 0
|
||
lcd_hv_sync_polarity = 0
|
||
lcd_gamma_en = 0
|
||
lcd_bright_curve_en = 0
|
||
lcd_cmap_en = 0
|
||
|
||
deu_mode = 0
|
||
lcdgamma4iep = 22
|
||
smart_color = 90
|
||
|
||
;lcd_bl_en = port:PD29<1><0><default><1>
|
||
;lcd_pin_power = "vcc-pd"
|
||
lcd_power = "vcc-lcd"
|
||
|
||
lcdd2 = port:PD00<2><0><default><default>
|
||
lcdd3 = port:PD01<2><0><default><default>
|
||
lcdd4 = port:PD02<2><0><default><default>
|
||
lcdd5 = port:PD03<2><0><default><default>
|
||
lcdd6 = port:PD04<2><0><default><default>
|
||
lcdd7 = port:PD05<2><0><default><default>
|
||
lcdd10 = port:PD06<2><0><default><default>
|
||
lcdd11 = port:PD07<2><0><default><default>
|
||
lcdd12 = port:PD08<2><0><default><default>
|
||
lcdd13 = port:PD09<2><0><default><default>
|
||
lcdd14 = port:PD10<2><0><default><default>
|
||
lcdd15 = port:PD11<2><0><default><default>
|
||
lcdd18 = port:PD12<2><0><default><default>
|
||
lcdd19 = port:PD13<2><0><default><default>
|
||
lcdd20 = port:PD14<2><0><default><default>
|
||
lcdd21 = port:PD15<2><0><default><default>
|
||
lcdd22 = port:PD16<2><0><default><default>
|
||
lcdd23 = port:PD17<2><0><default><default>
|
||
lcdclk = port:PD18<2><0><default><default>
|
||
lcdde = port:PD19<2><0><default><default>
|
||
lcdhsync = port:PD20<2><0><default><default>
|
||
lcdvsync = port:PD21<2><0><default><default>
|
||
|
||
[lcd1_suspend]
|
||
lcdd2 = port:PD00<7><0><default><default>
|
||
lcdd3 = port:PD01<7><0><default><default>
|
||
lcdd4 = port:PD02<7><0><default><default>
|
||
lcdd5 = port:PD03<7><0><default><default>
|
||
lcdd6 = port:PD04<7><0><default><default>
|
||
lcdd7 = port:PD05<7><0><default><default>
|
||
lcdd10 = port:PD06<7><0><default><default>
|
||
lcdd11 = port:PD07<7><0><default><default>
|
||
lcdd12 = port:PD08<7><0><default><default>
|
||
lcdd13 = port:PD09<7><0><default><default>
|
||
lcdd14 = port:PD10<7><0><default><default>
|
||
lcdd15 = port:PD11<7><0><default><default>
|
||
lcdd18 = port:PD12<7><0><default><default>
|
||
lcdd19 = port:PD13<7><0><default><default>
|
||
lcdd20 = port:PD14<7><0><default><default>
|
||
lcdd21 = port:PD15<7><0><default><default>
|
||
lcdd22 = port:PD16<7><0><default><default>
|
||
lcdd23 = port:PD17<7><0><default><default>
|
||
lcdclk = port:PD18<7><0><default><default>
|
||
lcdde = port:PD19<7><0><default><default>
|
||
lcdhsync = port:PD20<7><0><default><default>
|
||
lcdvsync = port:PD21<7><0><default><default>
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;hdmi configuration
|
||
;----------------------------------------------------------------------------------
|
||
[hdmi_para]
|
||
hdmi_used = 0
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;pwm config
|
||
;----------------------------------------------------------------------------------
|
||
[pwm0]
|
||
pwm_used = 1
|
||
pwm_positive = port:PD23<2><0><default><default>
|
||
|
||
[pwm0_suspend]
|
||
pwm_positive = port:PD23<7><0><default><default>
|
||
|
||
[pwm1]
|
||
pwm_used = 0
|
||
pwm_positive = port:PB10<2><0><default><default>
|
||
|
||
[pwm1_suspend]
|
||
pwm_positive = port:PB10<7><0><default><default>
|
||
|
||
[spwm0]
|
||
s_pwm0_used = 0
|
||
pwm_positive = port:PL10<2><0><default><default>
|
||
|
||
[spwm0_suspend]
|
||
pwm_positive = port:PL10<7><0><default><default>
|
||
;--------------------------------------------------------------------------------
|
||
;csi (COMS Sensor Interface) configuration
|
||
;csi(x)_dev(x)_used: 0:disable 1:enable
|
||
;csi(x)_dev(x)_isp_used 0:not use isp 1:use isp
|
||
;csi(x)_dev(x)_fmt: 0:yuv 1:bayer raw rgb
|
||
;csi(x)_dev(x)_stby_mode: 0:not shut down power at standby 1:shut down power at standby
|
||
;csi(x)_dev(x)_vflip: flip in vertical direction 0:disable 1:enable
|
||
;csi(x)_dev(x)_hflip: flip in horizontal direction 0:disable 1:enable
|
||
;csi(x)_dev(x)_iovdd: camera module io power handle string, pmu power supply
|
||
;csi(x)_dev(x)_iovdd_vol: camera module io power voltage, pmu power supply
|
||
;csi(x)_dev(x)_avdd: camera module analog power handle string, pmu power supply
|
||
;csi(x)_dev(x)_avdd_vol: camera module analog power voltage, pmu power supply
|
||
;csi(x)_dev(x)_dvdd: camera module core power handle string, pmu power supply
|
||
;csi(x)_dev(x)_dvdd_vol: camera module core power voltage, pmu power supply
|
||
;csi(x)_dev(x)_afvdd: camera module vcm power handle string, pmu power supply
|
||
;csi(x)_dev(x)_afvdd_vol: camera module vcm power voltage, pmu power supply
|
||
;fill voltage in uV, e.g. iovdd = 2.8V, csix_iovdd_vol = 2800000
|
||
;fill handle string as below:
|
||
;axp22_eldo3
|
||
;axp22_dldo4
|
||
;axp22_eldo2
|
||
;fill handle string "" when not using any pmu power supply
|
||
;--------------------------------------------------------------------------------
|
||
[vind0]
|
||
vind0_used = 1
|
||
|
||
[vind0/csi_cci0]
|
||
csi_cci0_used = 1
|
||
csi_cci0_sck = port:PE01<2><default><default><default>
|
||
csi_cci0_sda = port:PE02<2><default><default><default>
|
||
|
||
[vind0/flash0]
|
||
flash0_used = 0
|
||
flash0_type = 2
|
||
flash0_en =
|
||
flash0_mode =
|
||
flash0_flvdd = ""
|
||
flash0_flvdd_vol =
|
||
|
||
[vind0/actuator0]
|
||
actuator0_used = 0
|
||
actuator0_name = "ad5820_act"
|
||
actuator0_slave = 0x18
|
||
actuator0_af_pwdn =
|
||
actuator0_afvdd = "afvcc-csi"
|
||
actuator0_afvdd_vol = 2800000
|
||
|
||
[vind0/sensor0]
|
||
sensor0_used = 1
|
||
sensor0_mname = "gc5024_mipi"
|
||
sensor0_twi_cci_id = 0
|
||
sensor0_twi_addr = 0x6f
|
||
sensor0_pos = "rear"
|
||
sensor0_isp_used = 1
|
||
sensor0_fmt = 1
|
||
sensor0_stby_mode = 0
|
||
sensor0_vflip = 0
|
||
sensor0_hflip = 0
|
||
sensor0_cameravdd = ""
|
||
sensor0_cameravdd_vol = 3300000
|
||
sensor0_iovdd = "iovdd-csi"
|
||
sensor0_iovdd_vol = 2800000
|
||
sensor0_avdd = "avdd-csi-f"
|
||
sensor0_avdd_vol = 1800000
|
||
sensor0_dvdd = "dvdd-csi"
|
||
sensor0_dvdd_vol = 1500000
|
||
sensor0_power_en =
|
||
sensor0_reset = port:PE04<0><0><1><0>
|
||
sensor0_pwdn = port:PE03<0><0><1><0>
|
||
|
||
[vind0/sensor1]
|
||
sensor1_used = 0
|
||
sensor1_mname = "imx317_mipi_2"
|
||
sensor1_twi_cci_id = 0
|
||
sensor1_twi_addr = 0x34
|
||
sensor1_pos = "front"
|
||
sensor1_isp_used = 1
|
||
sensor1_fmt = 0
|
||
sensor1_stby_mode = 1
|
||
sensor1_vflip = 0
|
||
sensor1_hflip = 0
|
||
sensor1_cameravdd = ""
|
||
sensor1_cameravdd_vol = 3300000
|
||
sensor1_iovdd = "iovdd-csi"
|
||
sensor1_iovdd_vol = 1800000
|
||
sensor1_avdd = ""
|
||
sensor1_avdd_vol = 2800000
|
||
sensor1_dvdd = "dvdd-csi"
|
||
sensor1_dvdd_vol = 1200000
|
||
sensor1_power_en =
|
||
sensor1_reset = port:PE04<0><0><1><0>
|
||
sensor1_pwdn = port:PE03<0><0><1><0>
|
||
|
||
[vind0/vinc0]
|
||
vinc0_used = 1
|
||
vinc0_csi_sel = 0
|
||
vinc0_mipi_sel = 0
|
||
vinc0_isp_sel = 0
|
||
vinc0_rear_sensor_sel = 0
|
||
vinc0_front_sensor_sel = 1
|
||
vinc0_sensor_list = 0
|
||
|
||
[vind0/vinc1]
|
||
vinc1_used = 0
|
||
vinc1_csi_sel = 0
|
||
vinc1_mipi_sel = 0
|
||
vinc1_isp_sel = 0
|
||
vinc1_rear_sensor_sel = 1
|
||
vinc1_front_sensor_sel = 1
|
||
vinc1_sensor_list = 0
|
||
|
||
;--------------------------------------------------------------------------------
|
||
;tv configuration
|
||
;
|
||
;--------------------------------------------------------------------------------
|
||
[tvout_para]
|
||
tvout_used =
|
||
tvout_channel_num =
|
||
tv_en =
|
||
|
||
[tvin_para]
|
||
tvin_used =
|
||
tvin_channel_num =
|
||
|
||
;--------------------------------------------------------------------------------
|
||
; SDMMC PINS MAPPING |
|
||
; ------------------------------------------------------------------------------|
|
||
; Config Guide |
|
||
; sdc_used: 1-enable card, 0-disable card |
|
||
; sdc_detmode: card detect mode |
|
||
; 1-detect card by gpio polling |
|
||
; 2-detect card by gpio irq(must use IO with irq function) |
|
||
; 3-no detect, always in for boot card |
|
||
; 4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert|
|
||
; sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit |
|
||
; sdc_use_wp: 1-with write protect IO, 0-no write protect IO |
|
||
; sdc_isio: for sdio card |
|
||
; sdc_regulator: power control.if card supports UHS-I/DDR and HS200 timing for|
|
||
; SD3.0 or eMMC4.5, regulator must be configured. the value is |
|
||
; the ldo name of AXP221, eg: sdc_regulator = "axp22_eldo2" |
|
||
; other: GPIO Mapping configuration |
|
||
; ------------------------------------------------------------------------------|
|
||
; Note: |
|
||
; 1 if detmode=2, sdc_det's config=6 |
|
||
; else if detmode=1, sdc_det's config=0 |
|
||
; else sdc_det IO is not necessary |
|
||
; 2 if the customer wants to support UHS-I and HS200 features, he must provide|
|
||
; an independent power supply for the card. This is only used in platforms |
|
||
; that supports SD3.0 cards and eMMC4.4+ flashes |
|
||
;--------------------------------------------------------------------------------
|
||
[sdc0]
|
||
sdc0_used = 1
|
||
bus-width = 4
|
||
sdc0_d1 = port:PF00<2><1><2><default>
|
||
sdc0_d0 = port:PF01<2><1><2><default>
|
||
sdc0_clk = port:PF02<2><1><2><default>
|
||
sdc0_cmd = port:PF03<2><1><2><default>
|
||
sdc0_d3 = port:PF04<2><1><2><default>
|
||
sdc0_d2 = port:PF05<2><1><2><default>
|
||
cd-gpios = port:PF06<6><1><2><default>
|
||
card-pwr-gpios = port:PH11<1><1><2><default>
|
||
;broken-cd =
|
||
sunxi-power-save-mode =
|
||
;sunxi-dis-signal-vol-sw =
|
||
sd-uhs-sdr12 =
|
||
sd-uhs-sdr25 =
|
||
sd-uhs-sdr50 =
|
||
sd-uhs-sdr104 =
|
||
max-frequency = 150000000
|
||
vmmc="vcc-sdc"
|
||
vqmmc="vcc-pf"
|
||
vdmmc="vcc-pf"
|
||
|
||
[sdc1]
|
||
sdc1_used = 1
|
||
bus-width = 4
|
||
sdc1_clk = port:PG00<2><1><3><default>
|
||
sdc1_cmd = port:PG01<2><1><3><default>
|
||
sdc1_d0 = port:PG02<2><1><3><default>
|
||
sdc1_d1 = port:PG03<2><1><3><default>
|
||
sdc1_d2 = port:PG04<2><1><3><default>
|
||
sdc1_d3 = port:PG05<2><1><3><default>
|
||
;sunxi-power-save-mode =
|
||
;sd-uhs-sdr12 =
|
||
;sd-uhs-sdr25 =
|
||
;sd-uhs-sdr50 =
|
||
;sd-uhs-sdr104 =
|
||
cap-sdio-irq =
|
||
keep-power-in-suspend =
|
||
ignore-pm-notify =
|
||
max-frequency = 150000000
|
||
|
||
[sdc2]
|
||
sdc2_used = 1
|
||
non-removable =
|
||
bus-width = 8
|
||
sdc2_cmd = port:PC06<3><1><3><default>
|
||
sdc2_clk = port:PC05<3><1><3><default>
|
||
sdc2_d0 = port:PC10<3><1><3><default>
|
||
sdc2_d1 = port:PC13<3><1><3><default>
|
||
sdc2_d2 = port:PC15<3><1><3><default>
|
||
sdc2_d3 = port:PC08<3><1><3><default>
|
||
sdc2_d4 = port:PC09<3><1><3><default>
|
||
sdc2_d5 = port:PC11<3><1><3><default>
|
||
sdc2_d6 = port:PC14<3><1><3><default>
|
||
sdc2_d7 = port:PC16<3><1><3><default>
|
||
sdc2_emmc_rst = port:PC01<3><1><3><default>
|
||
sdc2_ds = port:PC00<3><1><3><default>
|
||
cd-gpios =
|
||
sunxi-power-save-mode =
|
||
sunxi-dis-signal-vol-sw =
|
||
mmc-ddr-1_8v =
|
||
mmc-hs200-1_8v =
|
||
mmc-hs400-1_8v =
|
||
max-frequency = 150000000
|
||
sdc_tm4_sm0_freq0 = 0
|
||
sdc_tm4_sm0_freq1 = 0
|
||
sdc_tm4_sm1_freq0 = 0x00000000
|
||
sdc_tm4_sm1_freq1 = 0
|
||
sdc_tm4_sm2_freq0 = 0x00000000
|
||
sdc_tm4_sm2_freq1 = 0
|
||
sdc_tm4_sm3_freq0 = 0x05000000
|
||
sdc_tm4_sm3_freq1 = 0x00000405
|
||
sdc_tm4_sm4_freq0 = 0x00050000
|
||
sdc_tm4_sm4_freq1 = 0x00000408
|
||
vmmc="vcc-emmc"
|
||
vqmmc="vcc-pc"
|
||
vdmmc="none"
|
||
|
||
;[mmc3_para]
|
||
;sdc_used = 0
|
||
;sdc_detmode = 2
|
||
;sdc_buswidth = 4
|
||
;sdc_clk = port:PA10<2><1><2><default>
|
||
;sdc_cmd = port:PA09<2><1><2><default>
|
||
;sdc_d0 = port:PA11<2><1><2><default>
|
||
;sdc_d1 = port:PA12<2><1><2><default>
|
||
;sdc_d2 = port:PA13<2><1><2><default>
|
||
;sdc_d3 = port:PA14<2><1><2><default>
|
||
;sdc_det =
|
||
;sdc_use_wp = 0
|
||
;sdc_wp =
|
||
;sdc_isio = 0
|
||
;sdc_regulator = "none"
|
||
|
||
; ------------------------------------------------------------------------------|
|
||
; sim card configuration
|
||
;--------------------------------------------------------------------------------
|
||
[smc_para]
|
||
smc_used =
|
||
smc_rst =
|
||
smc_vppen =
|
||
smc_vppp =
|
||
smc_det =
|
||
smc_vccen =
|
||
smc_sck =
|
||
smc_sda =
|
||
|
||
|
||
;--------------------------------
|
||
;[usbc0]:控制器0的配置。
|
||
;usb_used:USB使能标志。置1,表示系统中USB模块可用,置0,则表示系统USB禁用。
|
||
;usb_port_type:USB端口的使用情况。 0:device only;1:host only;2:OTG
|
||
;usb_detect_type:USB端口的检查方式。0:不做检测;1:vbus/id检查;2:id/dpdm检查
|
||
;usb_detect_mode: usb otg switch has two config. 0-thread scan, 1-id gpio interrupt.
|
||
;usb_id_gpio:USB ID pin脚配置。具体请参考gpio配置说明。
|
||
;usb_det_vbus_gpio:USB DET_VBUS pin脚配置。具体请参考gpio配置说明。
|
||
;usb_drv_vbus_gpio:USB DRY_VBUS pin脚配置。具体请参考gpio配置说明。
|
||
;usb_det_vbus_gpio: "axp_ctrl",表示axp 提供
|
||
;usb_restrict_gpio usb限流控制pin
|
||
;usb_restric_flag: usb限流标置
|
||
;--------------------------------
|
||
;--------------------------------
|
||
;--- USB0控制标志
|
||
;--------------------------------
|
||
[usbc0]
|
||
usbc0_used = 1
|
||
usb_port_type = 0
|
||
usb_detect_type = 0
|
||
usb_detect_mode = 0
|
||
;usb_id_gpio = port:PH7<0><1><default><default>
|
||
;usb_det_vbus_gpio = port:PH04<0><1><default><default>
|
||
;usb_drv_vbus_gpio = port:PL12<1><1><default><default>
|
||
usb_host_init_state = 0
|
||
usb_wakeup_suspend = 0
|
||
;--- USB Device
|
||
usb_luns = 3
|
||
usb_serial_unique = 0
|
||
usb_serial_number = "20080411"
|
||
|
||
;--------------------------------
|
||
;--- USB1控制标志
|
||
;--------------------------------
|
||
[usbc1]
|
||
usbc1_used = 1
|
||
;usb_drv_vbus_gpio = port:PH6<0><1><default><default>
|
||
usb_host_init_state = 1
|
||
usb_wakeup_suspend = 0
|
||
|
||
;--------------------------------------------------------------------------------
|
||
; G sensor configuration
|
||
; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
|
||
;--------------------------------------------------------------------------------
|
||
[gsensor_para]
|
||
gsensor_used = 1
|
||
gsensor_twi_id = 2
|
||
gsensor_twi_addr = 0x18
|
||
gsensor_int1 = port:PA09<6><1><default><default>
|
||
gsensor_int2 =
|
||
|
||
;--------------------------------------------------------------------------------
|
||
; gps gpio configuration
|
||
; gps_spi_id --- the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
|
||
; gps_spi_cs_num --- the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
|
||
; gps_lradc --- the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
|
||
;--------------------------------------------------------------------------------
|
||
[gps_para]
|
||
;--------------------------------------------------------------------------------
|
||
;wlan configuration
|
||
;clocks: 32k clk
|
||
;wlan_power_num: the number of inputs for wifi power
|
||
;wlan_power(n): wifi power(n)
|
||
;wlan_io_regulator: the power of wifi io
|
||
;wlan_busnum: no. of bus(usb or bus)
|
||
;wlan_regon: wifi function enable io
|
||
;wlan_hostwake: wifi device wake-up host
|
||
;status: okay
|
||
;--------------------------------------------------------------------------------
|
||
[wlan]
|
||
wlan_used = 1
|
||
compatible = "allwinner,sunxi-wlan"
|
||
clocks = "losc_out"
|
||
;pinctrl-names = "default"
|
||
;bt_clk_gpio = port:PI12<4><0><0><0>
|
||
wlan_power = "vcc-wifi"
|
||
wlan_io_regulator = "vcc-wifi-io"
|
||
wlan_busnum = 1
|
||
wlan_regon = port:PL07<1><1><1><0>
|
||
wlan_hostwake = port:PL06<6><default><default><default>
|
||
|
||
;--------------------------------------------------------------------------------
|
||
;bt configuration
|
||
;clocks: 32k clk
|
||
;bt_power_num the number of inputs for wifi power
|
||
;bt_power(n): bt power (n)
|
||
;wlan_io_regulator: the power of bt io
|
||
;bt_rst_n: bt function enable io
|
||
;status: okay
|
||
;--------------------------------------------------------------------------------
|
||
[bt]
|
||
bt_used = 1
|
||
compatible = "allwinner,sunxi-bt"
|
||
clocks = "losc_out"
|
||
pinctrl-names = "default"
|
||
;clock_io = port:PI12<4><0><0><0>
|
||
bt_power = "vcc-wifi"
|
||
bt_io_regulator = "vcc-wifi-io"
|
||
bt_rst_n = port:PL08<1><1><1><0>
|
||
|
||
;--------------------------------------------------------------------------------
|
||
;btlpm configuration
|
||
;uart_index: uart0, uart1 or uart3
|
||
;bt_wake: host wake-up bluetooth device
|
||
;bt_wak_host: bt device wake-up host
|
||
;status: okay
|
||
;--------------------------------------------------------------------------------
|
||
[btlpm]
|
||
btlpm_used = 1
|
||
compatible = "allwinner,sunxi-btlpm"
|
||
uart_index = 1
|
||
bt_wake = port:PL05<1><1><1><0>
|
||
bt_host_wake = port:PL04<6><default><default><default>
|
||
|
||
|
||
;--------------------------------------------------------------------------------
|
||
;wifi configuration
|
||
;wifi_sdc_id --- 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
|
||
;wifi_usbc_id --- 0- USB0, 1- USB1, 2- USB2
|
||
;wifi_mod_sel --- 0- none, 1- bcm40181, 2- bcm40183(wifi+bt),
|
||
; 3 - rtl8723as(wifi+bt), 4- rtl8189es(SM89E00),
|
||
; 5 - rtl8192cu, 6 - rtl8188eu
|
||
;--------------------------------------------------------------------------------
|
||
[wifi_para]
|
||
wifi_used = 1
|
||
wifi_sdc_id = 1
|
||
wifi_usbc_id = 1
|
||
wifi_usbc_type = 1
|
||
wifi_mod_sel = 3
|
||
wifi_power = "axp22_aldo1"
|
||
|
||
; 1 - bcm40181 sdio wifi gpio config
|
||
;bcm40181_vdd_en = port:PG18<1><default><default><0>
|
||
;bcm40181_vcc_en = port:PG18<1><default><default><0>
|
||
;bcm40181_shdn = port:PG10<1><default><default><0>
|
||
;bcm40181_host_wake = port:PG12<0><default><default><0>
|
||
|
||
; 2 - bcm40183 sdio wifi gpio config
|
||
;bcm40183_vdd_en = port:PG18<1><default><default><0>
|
||
;bcm40183_vcc_en = port:PG18<1><default><default><0>
|
||
;bcm40183_wl_regon = port:PG10<1><default><default><0>
|
||
;bcm40183_wl_host_wake = port:PG12<0><default><default><0>
|
||
;bcm40183_bt_rst = port:PG11<1><default><default><0>
|
||
;bcm40183_bt_regon = port:PG11<1><default><default><0>
|
||
;bcm40183_bt_wake = port:XXX<1><default><default><0>
|
||
;bcm40183_bt_host_wake = port:XXX<0><default><default><0>
|
||
|
||
; 3 - rtl8723as sdio wifi + bt gpio config
|
||
;rtk_rtl8723as_wl_dis = port:PG10<1><default><default><0>
|
||
;rtk_rtl8723as_bt_dis = port:PG11<1><default><default><0>
|
||
;rtk_rtl8723as_wl_host_wake = port:PG12<0><default><default><0>
|
||
;rtk_rtl8723as_bt_host_wake = port:PG17<0><default><default><0>
|
||
|
||
; 4 - rtl8189es sdio wifi gpio config
|
||
;rtl8189es_vdd_en = port:PG18<1><default><default><0>
|
||
;rtl8189es_vcc_en = port:PG18<1><default><default><0>
|
||
;rtl8189es_shdn = port:PG10<1><default><default><0>
|
||
;rtl8189es_wakeup = port:PG12<1><default><default><1>
|
||
|
||
; 5 - rtl8192cu usb wifi gpio config
|
||
;rtl8192cu_power = port:PH27<1><0><default><0>
|
||
|
||
; 6 - rtl8188eu usb wifi gpio conifg
|
||
;rtl8188eu_power = port:PH27<1><0><default><0>
|
||
|
||
;--------------------------------------------------------------------------------
|
||
;3G configuration
|
||
;--------------------------------------------------------------------------------
|
||
[3g_para]
|
||
3g_used = 0
|
||
3g_usbc_num = 2
|
||
3g_uart_num = 0
|
||
bb_vbat = port:PL03<1><default><default><0>
|
||
bb_host_wake = port:PM00<1><default><default><0>
|
||
bb_on = port:PM01<1><default><default><0>
|
||
bb_pwr_on = port:PM03<1><default><default><0>
|
||
bb_wake = port:PM04<1><default><default><0>
|
||
bb_rf_dis = port:PM05<1><default><default><0>
|
||
bb_rst = port:PM06<1><default><default><0>
|
||
3g_int =
|
||
|
||
;--------------------------------------------------------------------------------
|
||
;gyroscope
|
||
;--------------------------------------------------------------------------------
|
||
[gy_para]
|
||
gy_used = 1
|
||
gy_twi_id = 2
|
||
gy_twi_addr = 0x6a
|
||
gy_int1 = port:PA10<6><1><default><default>
|
||
gy_int2 =
|
||
|
||
;--------------------------------------------------------------------------------
|
||
;light sensor
|
||
;--------------------------------------------------------------------------------
|
||
[ls_para]
|
||
ls_used = 0
|
||
ls_twi_id = 1
|
||
ls_twi_addr = 0x23
|
||
ls_int = port:PH04<6><1><default><default>
|
||
ls_vcc ="vcc-sensor"
|
||
|
||
;--------------------------------------------------------------------------------
|
||
;compass
|
||
;--------------------------------------------------------------------------------
|
||
[compass_para]
|
||
compass_used = 1
|
||
compass_twi_id = 2
|
||
compass_twi_addr = 0x0d
|
||
compass_int = port:PA11<6><1><default><default>
|
||
|
||
;--------------------------------------------------------------------------------
|
||
;blue tooth
|
||
;bt_used ---- blue tooth used (0- no used, 1- used)
|
||
;bt_uard_id ---- uart index
|
||
;--------------------------------------------------------------------------------
|
||
[bt_para]
|
||
bt_used =
|
||
bt_uart_id =
|
||
bt_wakeup =
|
||
bt_gpio =
|
||
bt_rst =
|
||
|
||
;----------------------------------------------------------------------------------
|
||
; NOTE :Make sure dmic_used = 0x1,snddmic_used = 0x1,
|
||
; if register the sound card dmic.
|
||
;---------------------------------------------------------------------------------
|
||
[dmic]
|
||
dmic_used = 0
|
||
|
||
[snddmic]
|
||
snddmic_used = 0
|
||
|
||
;--------------------------------------------------------------------------------
|
||
;allwinner,pcm_lrck_period :16/32/64/128/256
|
||
;allwinner,pcm_lrckr_period :no use
|
||
;allwinner,slot_width_select :16bits/20bits/24bits/32bits
|
||
;allwinner,pcm_lsb_first :0: msb first; 1: lsb first
|
||
;allwinner,tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
|
||
;allwinner,rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
|
||
;allwinner,daudio_master :1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
|
||
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
|
||
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
|
||
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
|
||
;allwinner,audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
|
||
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
|
||
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
|
||
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
|
||
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
|
||
;allwinner,signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
|
||
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
|
||
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
|
||
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
|
||
;allwinner,frametype :0:short frame = 1 clock width; 1: long frame = 2 clock width
|
||
;allwinner,tdm_config :0:pcm 1:i2s
|
||
;allwinner,mclk_div :0: not output(normal setting this) 1/2/4/6/8/12/16/24/32/48/64/96/128/176/192:
|
||
; setting mclk as input clock to external codec, freq is pll_audio/mclk_div
|
||
;allwinner,clk_active :0:auto 1:always_on(LRCLK and BCLK)
|
||
;allwinner,daudio0_used :0:not use 1:use
|
||
;--------------------------------------------------------------------------------
|
||
[snddaudio0]
|
||
snddaudio0_used = 1
|
||
sunxi,snddaudio-codec = "es7210.0-0040"
|
||
sunxi,snddaudio-codec-dai = "es7210"
|
||
|
||
;-----------------------------------------------------------------------------
|
||
[daudio0]
|
||
daudio0_used = 1
|
||
daudio_master = 4
|
||
tdm_config = 1
|
||
mclk_div = 2
|
||
clk_active = 0
|
||
audio_format = 1
|
||
signal_inversion = 1
|
||
pcm_lrck_period = 32
|
||
msb_lsb_first = 0
|
||
slot_width_select = 32
|
||
frametype = 0
|
||
;tx_data_mode = 1
|
||
;rx_data_mode = 1
|
||
daudio_regulator =
|
||
|
||
;--------------------------------------------------------------------------------
|
||
; NOTE :Make sure daudio1_used = 0x1,daudio1_used = 0x1,
|
||
; if register the sound card DAUDIO1.
|
||
;--------------------------------------------------------------------------------
|
||
[snddaudio1]
|
||
snddaudio1_used = 1
|
||
sunxi,snddaudio-codec = "es7243"
|
||
sunxi,snddaudio-codec-dai = "es7243-codec-dai"
|
||
|
||
;-----------------------------------------------------------------------------
|
||
[daudio1]
|
||
daudio1_used = 1
|
||
daudio_master = 4
|
||
tdm_config = 1
|
||
mclk_div = 2
|
||
clk_active = 0
|
||
audio_format = 1
|
||
signal_inversion = 1
|
||
pcm_lrck_period = 32
|
||
msb_lsb_first = 0
|
||
slot_width_select = 32
|
||
frametype = 0
|
||
;tx_data_mode = 1
|
||
;rx_data_mode = 1
|
||
daudio_regulator =
|
||
|
||
;--------------------------------------------------------------------------------
|
||
;allwinner,headphonevol :headphone volume:0x0--0x3f 0db--(-62db) 1db/step
|
||
;allwinner,maingain : mainmic gain:0x0---0x7 0x0-0db 0x1:24db 3db/step
|
||
;allwinner,headsetmicgain : headphonemic gain:0x0---0x7 0x0-0db 0x1:24db 3db/step
|
||
;allwinner,adcagc_cfg : 1:use adcagc 0:no use
|
||
;allwinner,adcdrc_cfg : 1:use adcdrc 0:no use
|
||
;allwinner,adchpf_cfg : 1:use adchpf 0:no use
|
||
;allwinner,dacdrc_cfg : 1:use adcdrc 0:no use
|
||
;allwinner,dachpf_cfg : 1:use adchpf 0:no use
|
||
;allwinner,aif2config : 1:use aif2 0:no use
|
||
;allwinner,aif3config : 1:use aif3 0:no use
|
||
;allwinner,hp_detect_case : jack irq level
|
||
;headphone_vol: must least than 0x3f. 0x1 is a step.
|
||
;headset_mic_vol: headset mic(mic2) vol,use for phone headset mic call
|
||
;main_mic_vol: main mic(mic1) vol,use for phone main mic call
|
||
;--------------------------------------------------------------------------------
|
||
; NOTE :Make sure sndcodec_used = 0x1,i2s_used = 0x1
|
||
; codec_used = 0x1,if register the sound card audiocodec.
|
||
;---------------------------------------------------------------------------------
|
||
[sndcodec]
|
||
sndcodec_used = 0x1
|
||
aif2fmt = 0x3
|
||
aif3fmt = 0x3
|
||
aif2master = 0x1
|
||
hp_detect_case = 0x0
|
||
;------------------------------------------------------------------------------
|
||
[i2s]
|
||
i2s_used = 0x1
|
||
;-------------------------------------------------------------------------------
|
||
[codec]
|
||
codec_used = 0x1
|
||
headphonevol = 0x2f
|
||
maingain = 0x4
|
||
headsetmicgain = 0x4
|
||
adcagc_cfg = 0x0
|
||
adcdrc_cfg = 0x0
|
||
adchpf_cfg = 0x0
|
||
dacdrc_cfg = 0x0
|
||
dachpf_cfg = 0x0
|
||
aif2config = 0x0
|
||
aif3config = 0x0
|
||
gpio-spk =
|
||
|
||
;--------------------------------------------------------------------------------------------------------
|
||
;compatible ---pmu0 name, support:axp803
|
||
;used ---0:not used,1:used
|
||
;pmu_id ---0:axp19x,1:axp209,2:axp22x,3:axp806,4:axp808,5:axp809,6:axp803,7:axp813, 8:pmu1736
|
||
;reg ---pmu0 twi slave address
|
||
;pmu_vbusen_func ---N_VBUSEN function select,0:as an output,1:as an input
|
||
;pmu_reset ---when power key press longer than 16's,PMU reset or not.0:not reset 1:reset
|
||
;pmu_irq_wakeup ---press irq wakeup or not when sleep or power down.0:not wakeup 1:wakeup
|
||
;pmu_hot_shutdown ---when PMU over temperature protect or not;0:disable 1:enable
|
||
;pmu_inshort ---ACIN and VBUS inshort or not by software;0:auto detect 1:inshort
|
||
;--------------------------------------------------------------------------------------------------------
|
||
[pmu0]
|
||
compatible = "pmu1736"
|
||
used = 1
|
||
pmu_id = 8
|
||
pmu_vbusen_func = 0
|
||
pmu_reset = 0
|
||
pmu_irq_wakeup = 1
|
||
pmu_hot_shutdown = 1
|
||
pmu_inshort = 0
|
||
|
||
;--------------------------------------------------------------------------------------------------------
|
||
;compatible ---powerkey0 name, support:axp803-powerkey
|
||
;pmu_powkey_off_time ---set pek off time,ms, 4000/6000/8000/10000
|
||
;pmu_powkey_off_func ---set pek off func, 0:shutdown,1:restart
|
||
;pmu_powkey_off_en ---set pek offlevel powerdown or not, 0:not powerdown,1:powerdown
|
||
;pmu_powkey_long_time ---set pek pek long irq time,ms,1000/1500/2000/2500
|
||
;pmu_powkey_on_time ---set pek on time,ms,128/1000/2000/3000
|
||
;--------------------------------------------------------------------------------------------------------
|
||
[powerkey0]
|
||
compatible = "pmu1736-powerkey""
|
||
pmu_powkey_off_time = 6000
|
||
pmu_powkey_off_func = 0
|
||
pmu_powkey_off_en = 1
|
||
pmu_powkey_long_time = 1500
|
||
pmu_powkey_on_time = 1000
|
||
|
||
;--------------------------------------------------------------------------------------------------------
|
||
;compatible ---regulator0 name, support:axp803-regulator
|
||
;regulator_count ---pmu ldo count, changed with different pmu
|
||
;regulator(1~regulator_count) ---ldo details
|
||
;--------------------------------------------------------------------------------------------------------
|
||
[regulator0]
|
||
compatible = "pmu1736-regulator"
|
||
regulator_count = 23
|
||
regulator1 = "pmu1736_dcdc1 none vcc-pd vcc-pc vcc-pf vcc-3v3 vcc-sdc vcc-io vcc-usb vcc-sec vcc-nand"
|
||
regulator2 = "pmu1736_dcdc2 none vdd-cpua"
|
||
regulator3 = "pmu1736_dcdc3 none "
|
||
regulator4 = "pmu1736_dcdc4 none vdd-sys vdd-usb vdd-dram"
|
||
regulator5 = "pmu1736_dcdc5 none vcc-dram"
|
||
regulator6 = "pmu1736_dcdc6 none vcc-wifi"
|
||
regulator7 = "pmu1736_rtc none vcc-rtc"
|
||
regulator8 = "pmu1736_aldo1 none vcc-pl vcc-wifi-io"
|
||
regulator9 = "pmu1736_aldo2 none vdd18-dram"
|
||
regulator10 = "pmu1736_aldo3 none avcc vcc-pll"
|
||
regulator11 = "pmu1736_aldo4 none vcc-mcub netease-io"
|
||
regulator12 = "pmu1736_aldo5 none "
|
||
regulator13 = "pmu1736_bldo1 none "
|
||
regulator14 = "pmu1736_bldo2 none vcc-pe"
|
||
regulator15 = "pmu1736_bldo3 none "
|
||
regulator16 = "pmu1736_bldo4 none "
|
||
regulator17 = "pmu1736_bldo5 none vdd-dsi vcc-efuse vcc-cpvin vcc-lvds vcc-mcsi"
|
||
regulator18 = "pmu1736_cldo1 none "
|
||
regulator19 = "pmu1736_cldo2 none "
|
||
regulator20 = "pmu1736_cldo3 none "
|
||
regulator21 = "pmu1736_cldo4 none "
|
||
regulator22 = "pmu1736_cpusldo none vdd-cpus"
|
||
regulator23 = "pmu1736_dc1sw none vcc-lcd"
|
||
|
||
;--------------------------------------------------------------------------------------------------------
|
||
;compatible ---axp_gpio0 name, support:axp803-gpio
|
||
;--------------------------------------------------------------------------------------------------------
|
||
[axp_gpio0]
|
||
compatible = "pmu1736-gpio"
|
||
|
||
;--------------------------------------------------------------------------------------------------------
|
||
;compatible ---pmu0 name, support:axp803
|
||
;used ---0:not used,1:used
|
||
;pmu_id ---0:axp19x,1:axp209,2:axp22x,3:axp806,4:axp808,5:axp809,6:axp803,7:axp813, 8:pmu1736 9:bmu1760
|
||
;reg ---pmu0 twi slave address
|
||
;pmu_vbusen_func ---N_VBUSEN function select,0:as an output,1:as an input
|
||
;pmu_reset ---when power key press longer than 16s, PMU reset or not.0:not reset 1:reset
|
||
;pmu_irq_wakeup ---press irq wakeup or not when sleep or power down.0:not wakeup 1:wakeup
|
||
;pmu_hot_shutdown ---when PMU over temperature protect or not;0:disable 1:enable
|
||
;pmu_inshort ---ACIN and VBUS inshort or not by software;0:auto detect 1:inshort
|
||
;--------------------------------------------------------------------------------------------------------
|
||
[pmu1]
|
||
compatible = "bmu1760"
|
||
used = 1
|
||
pmu_id = 9
|
||
pmu_vbusen_func = 0
|
||
pmu_reset = 0
|
||
pmu_irq_wakeup = 1
|
||
pmu_hot_shutdown = 1
|
||
pmu_inshort = 1
|
||
;--------------------------------------------------------------------------------------------------------
|
||
;pmu_chg_ic_temp ---intelligence charge pmu temperature. when it is 0, this function is closed.
|
||
;compatible ---charger0 name, support:axp803-charger
|
||
;pmu_battery_rdc ---battery initial resistance
|
||
;pmu_battery_cap ---battery capability,mAh
|
||
;pmu_runtime_chgcur ---set initial charging current limite,mA, 300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
|
||
;pmu_suspend_chgcur ---set suspend charging current limite,mA, 300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
|
||
;pmu_shutdown_chgcur ---set shutdown charging current limite,mA, 300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
|
||
;pmu_init_chgvol ---set initial charing target voltage,mV,4100/4150/4200/4350
|
||
;pmu_safe_vol ---if lower than this value,system will not boot,mV, 3500 by default
|
||
;pmu_on_ctl ---bit[3]:vbus bit[2]:battery insert bit[1]:battery charge to normal bit[0] int pin
|
||
;pmu_boost_en ---boost contorl bit 1:for enable by default 0:disable by default
|
||
;pmu_boost_cur_limit ---boost cur limit,mA, 500/900/1500 -not limit
|
||
;pmu_boost_vol_limit ---boost vol limit,mV, 4500~5510mV, default 5126
|
||
;pmu_boost_vol_hold ---boost mode disable threshold,mV 2400/2600/2800/3000
|
||
;pmu_init_chg_pretime ---pre chg timer setting,min, 40/50/60/70
|
||
;pmu_init_chg_csttime ---constant chg timer setting,min, 300/480/720/1200
|
||
;pmu_ac_vol ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
|
||
;pmu_ac_cur ---set usb-ac limited current level,mA,1500/2000/2500/3000/3500/4000, 0 - not limite
|
||
;pmu_usbpc_vol ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
|
||
;pmu_usbpc_cur ---set usb-pc limited current level,mA,500/900, 0 - not limite
|
||
;pmu_battery_warning_level1 ---low power warning high level,5%-20%,1%/step
|
||
;pmu_battery_warning_level2 ---low power warning low level,0%-15%,1%/step
|
||
;pmu_chgled_func ---CHGKED pin control, 0:controlled by pmu,1:controlled by Charger
|
||
;pmu_chgled_type ---CHGLED Type select when pmu_chgled_func=0,0:Type A, 1:type B
|
||
;power_start ---when system is in charging, shutdown is power off or resart;0:restart 1:poweroff
|
||
;pmu_ocv_en ---charge by ocv, 1:enable, must be enabled
|
||
;pmu_cou_en ---charge by cou, 0:disable, 1:enable
|
||
;pmu_update_min_time ---min time for battery capatity percentage update,second, 0/5/10/20/30/60/120/164
|
||
;pmu_bat_para1 ---battery indication at 3.13V
|
||
;pmu_bat_para2 ---battery indication at 3.27V
|
||
;pmu_bat_para3 ---battery indication at 3.34V
|
||
;pmu_bat_para4 ---battery indication at 3.41V
|
||
;pmu_bat_para5 ---battery indication at 3.48V
|
||
;pmu_bat_para6 ---battery indication at 3.52V
|
||
;pmu_bat_para7 ---battery indication at 3.55V
|
||
;pmu_bat_para8 ---battery indication at 3.57V
|
||
;pmu_bat_para9 ---battery indication at 3.59V
|
||
;pmu_bat_para10 ---battery indication at 3.61V
|
||
;pmu_bat_para11 ---battery indication at 3.63V
|
||
;pmu_bat_para12 ---battery indication at 3.64V
|
||
;pmu_bat_para13 ---battery indication at 3.66V
|
||
;pmu_bat_para14 ---battery indication at 3.7V
|
||
;pmu_bat_para15 ---battery indication at 3.73V
|
||
;pmu_bat_para16 ---battery indication at 3.77V
|
||
;pmu_bat_para17 ---battery indication at 3.78V
|
||
;pmu_bat_para18 ---battery indication at 3.8V
|
||
;pmu_bat_para19 ---battery indication at 3.82V
|
||
;pmu_bat_para20 ---battery indication at 3.84V
|
||
;pmu_bat_para21 ---battery indication at 3.85V
|
||
;pmu_bat_para22 ---battery indication at 3.87V
|
||
;pmu_bat_para23 ---battery indication at 3.91V
|
||
;pmu_bat_para24 ---battery indication at 3.94V
|
||
;pmu_bat_para25 ---battery indication at 3.98V
|
||
;pmu_bat_para26 ---battery indication at 4.01V
|
||
;pmu_bat_para27 ---battery indication at 4.05V
|
||
;pmu_bat_para28 ---battery indication at 4.08V
|
||
;pmu_bat_para29 ---battery indication at 4.1V
|
||
;pmu_bat_para30 ---battery indication at 4.12V
|
||
;pmu_bat_para31 ---battery indication at 4.14V
|
||
;pmu_bat_para32 ---battery indication at 4.15V
|
||
;pmu_bat_temp_enable ---battery temp detect enable
|
||
;pmu_bat_charge_ltf ---charge battery temp low threshold voltage
|
||
;pmu_bat_charge_htf ---charge battery temp high threshold voltage
|
||
;pmu_bat_shutdown_ltf ---shutdown battery temp low threshold voltage
|
||
;pmu_bat_shutdown_htf ---shutdown battery temp high threshold voltage
|
||
;pmu_bat_temp_para1 ---battery temp -25 voltage
|
||
;pmu_bat_temp_para2 ---battery temp -15 voltage
|
||
;pmu_bat_temp_para3 ---battery temp -10 voltage
|
||
;pmu_bat_temp_para4 ---battery temp -5 voltage
|
||
;pmu_bat_temp_para5 ---battery temp 0 voltage
|
||
;pmu_bat_temp_para6 ---battery temp 5 voltage
|
||
;pmu_bat_temp_para7 ---battery temp 10 voltage
|
||
;pmu_bat_temp_para8 ---battery temp 20 voltage
|
||
;pmu_bat_temp_para9 ---battery temp 30 voltage
|
||
;pmu_bat_temp_para10 ---battery temp 40 voltage
|
||
;pmu_bat_temp_para11 ---battery temp 45 voltage
|
||
;pmu_bat_temp_para12 ---battery temp 50 voltage
|
||
;pmu_bat_temp_para13 ---battery temp 55 voltage
|
||
;pmu_bat_temp_para14 ---battery temp 60 voltage
|
||
;pmu_bat_temp_para15 ---battery temp 70 voltage
|
||
;pmu_bat_temp_para16 ---battery temp 80 voltage
|
||
;--------------------------------------------------------------------------------------------------------
|
||
[charger0]
|
||
compatible = "bmu1760-charger"
|
||
pmu_bat_unused = 1
|
||
pmu_chg_ic_temp = 0
|
||
pmu_battery_rdc = 100
|
||
pmu_battery_cap = 4200
|
||
pmu_runtime_chgcur = 450
|
||
pmu_suspend_chgcur = 1500
|
||
pmu_shutdown_chgcur = 1500
|
||
pmu_init_chgvol = 4200
|
||
pmu_on_ctl = 0x9
|
||
pmu_boost_en = 1
|
||
pmu_boost_cur_limit = 1500
|
||
pmu_boost_vol_limit = 5126
|
||
pmu_boost_vol_hold = 2600
|
||
pmu_ac_vol = 4000
|
||
pmu_ac_cur = 3000
|
||
pmu_usbpc_vol = 4400
|
||
pmu_usbpc_cur = 500
|
||
pmu_battery_warning_level1 = 15
|
||
pmu_battery_warning_level2 = 0
|
||
pmu_chgled_func = 0
|
||
pmu_chgled_type = 0
|
||
power_start = 3
|
||
pmu_ocv_en = 1
|
||
pmu_cou_en = 1
|
||
pmu_update_min_time = 30
|
||
|
||
pmu_bat_para1 = 0
|
||
pmu_bat_para2 = 0
|
||
pmu_bat_para3 = 0
|
||
pmu_bat_para4 = 0
|
||
pmu_bat_para5 = 0
|
||
pmu_bat_para6 = 0
|
||
pmu_bat_para7 = 0
|
||
pmu_bat_para8 = 0
|
||
pmu_bat_para9 = 5
|
||
pmu_bat_para10 = 8
|
||
pmu_bat_para11 = 9
|
||
pmu_bat_para12 = 10
|
||
pmu_bat_para13 = 13
|
||
pmu_bat_para14 = 16
|
||
pmu_bat_para15 = 20
|
||
pmu_bat_para16 = 33
|
||
pmu_bat_para17 = 41
|
||
pmu_bat_para18 = 46
|
||
pmu_bat_para19 = 50
|
||
pmu_bat_para20 = 53
|
||
pmu_bat_para21 = 57
|
||
pmu_bat_para22 = 61
|
||
pmu_bat_para23 = 67
|
||
pmu_bat_para24 = 73
|
||
pmu_bat_para25 = 78
|
||
pmu_bat_para26 = 84
|
||
pmu_bat_para27 = 88
|
||
pmu_bat_para28 = 92
|
||
pmu_bat_para29 = 93
|
||
pmu_bat_para30 = 94
|
||
pmu_bat_para31 = 95
|
||
pmu_bat_para32 = 100
|
||
|
||
pmu_bat_temp_enable = 0
|
||
pmu_bat_charge_ltf = 2261
|
||
pmu_bat_charge_htf = 388
|
||
pmu_bat_shutdown_ltf = 3200
|
||
pmu_bat_shutdown_htf = 237
|
||
pmu_bat_temp_para1 = 7466
|
||
pmu_bat_temp_para2 = 4480
|
||
pmu_bat_temp_para3 = 3518
|
||
pmu_bat_temp_para4 = 2786
|
||
pmu_bat_temp_para5 = 2223
|
||
pmu_bat_temp_para6 = 1788
|
||
pmu_bat_temp_para7 = 1448
|
||
pmu_bat_temp_para8 = 969
|
||
pmu_bat_temp_para9 = 664
|
||
pmu_bat_temp_para10 = 466
|
||
pmu_bat_temp_para11 = 393
|
||
pmu_bat_temp_para12 = 333
|
||
pmu_bat_temp_para13 = 283
|
||
pmu_bat_temp_para14 = 242
|
||
pmu_bat_temp_para15 = 179
|
||
pmu_bat_temp_para16 = 134
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;s_uart0 config parameters
|
||
;s_uart_used --s_uart0 whether used for arisc debugging
|
||
;
|
||
;----------------------------------------------------------------------------------
|
||
[s_uart0]
|
||
s_uart_used = 1
|
||
s_uart_tx = port:PL02<2><default><default><default>
|
||
s_uart_rx = port:PL03<2><default><default><default>
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;s_rsb0 config parameters
|
||
;s_rsb_used --s_rsb0 whether used for arisc
|
||
;
|
||
;----------------------------------------------------------------------------------
|
||
[s_rsb0]
|
||
s_rsb_used = 1
|
||
s_rsb_sck = port:PL00<2><1><2><default>
|
||
s_rsb_sda = port:PL01<2><1><2><default>
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;s_jtag0 config parameters
|
||
;s_jtag0_used --s_jtag0 whether used for arisc
|
||
;
|
||
;----------------------------------------------------------------------------------
|
||
[s_jtag0]
|
||
s_jtag_used = 0
|
||
s_jtag_tms = port:PL04<2><1><2><default>
|
||
s_jtag_tck = port:PL05<2><1><2><default>
|
||
s_jtag_tdo = port:PL06<2><1><2><default>
|
||
s_jtag_tdi = port:PL07<2><1><2><default>
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;virtual device
|
||
;virtual device for pinctrl testing
|
||
;device have pin PA1 PA2
|
||
;----------------------------------------------------------------------------------
|
||
[Vdevice]
|
||
Vdevice_used = 1
|
||
Vdevice_0 = port:PB02<5><1><2><default>
|
||
Vdevice_1 = port:PB03<5><1><2><default>
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;GPU parameters
|
||
;regulator_id : the regulator id GPU used.
|
||
;dvfs_status : dvfs status, if this is enabled, DVFS will work.
|
||
;temp_ctrl_status : temperature control status, if this is enabled, the gpu frequency
|
||
; will drop down if the temperature of gpu is too high.
|
||
;scene_ctrl_status: scene control status, if this is enabled, android layer can ask
|
||
; gpu driver to change frequency in certain scene.
|
||
;max_level : maximum level, which is used when thermal system does not restrict
|
||
; GPU power consumption.
|
||
;begin_level : the corresponding frequency and voltage will be used during GPU
|
||
; initialization.
|
||
;lv<x>_freq : frequency in MHz of certain level.
|
||
;lv<x>_volt : voltage in mV of certain level.
|
||
;----------------------------------------------------------------------------------
|
||
[gpu]
|
||
dvfs_status = 0
|
||
temp_ctrl_status = 1
|
||
scene_ctrl_status = 0
|
||
|
||
max_level = 4
|
||
begin_level = 4
|
||
|
||
lv0_freq = 144
|
||
lv0_volt = 900
|
||
|
||
lv1_freq = 240
|
||
lv1_volt = 900
|
||
|
||
lv2_freq = 312
|
||
lv2_volt = 900
|
||
|
||
lv3_freq = 384
|
||
lv3_volt = 900
|
||
|
||
lv4_freq = 600
|
||
lv4_volt = 900
|
||
|
||
;----------------------------------------------------------------------------------
|
||
;RGBLED parameters
|
||
;
|
||
;----------------------------------------------------------------------------------
|
||
[leds]
|
||
leds_used = 0
|
||
leds_name = "aw2016_led"
|
||
leds_twi_id = 1
|
||
|
||
[led_b]
|
||
led_name = "blue"
|
||
id = 0
|
||
imax = 2
|
||
led-current = 3
|
||
max-brightness = 255
|
||
rise-time-ms = 6
|
||
hold-time-ms = 0
|
||
fall-time-ms = 6
|
||
off-time-ms = 4
|
||
|
||
[led_para]
|
||
compatible = "allwinner,sunxi-leds"
|
||
led_used = 0
|
||
led_count = 3
|
||
led1 = port:PL3<1><default><default><default>
|
||
led1_trigger = "none"
|
||
led2 = port:PL2<1><default><default><default>
|
||
led2_trigger = "none"
|
||
led3 = port:PH5<1><default><default><default>
|
||
led3_trigger = "none"
|
||
|
||
;--------------------------------------------------------------------------------
|
||
;digital amplifier control
|
||
;--------------------------------------------------------------------------------
|
||
[dig_amp]
|
||
compatible = "allwinner,adau1761-r311-pv1"
|
||
audio_pa_mute = port:PH07<1><default><default><0>
|
||
audio_pa_sdz = port:PH06<1><default><default><0>
|
||
|
||
[led_g]
|
||
led_name = "green"
|
||
id = 1
|
||
imax = 2
|
||
led-current = 3
|
||
max-brightness = 255
|
||
rise-time-ms = 6
|
||
hold-time-ms = 0
|
||
fall-time-ms = 6
|
||
off-time-ms = 4
|
||
|
||
[led_r]
|
||
led_name = "red"
|
||
id = 2
|
||
imax = 2
|
||
led-current = 3
|
||
max-brightness = 255
|
||
rise-time-ms = 6
|
||
hold-time-ms = 0
|
||
fall-time-ms = 6
|
||
off-time-ms = 4
|
||
|
||
[netease_ihw]
|
||
compatible = "allwinner,netease_ihw_module"
|
||
aldo4 = "pmu1736_aldo4"
|
||
bldo2 = "pmu1736_bldo2"
|
||
bldo3 = "pmu1736_bldo3"
|
||
bldo4 = "pmu1736_bldo4"
|
||
cldo1 = "pmu1736_cldo1"
|
||
swout = "pmu1736_dc1sw"
|
||
mute = port:PL11<1><default><default><0> |