diff --git a/lichee/linux-4.9/arch/arm64/boot/dts/sunxi/Makefile b/lichee/linux-4.9/arch/arm64/boot/dts/sunxi/Makefile index 42c0e2b5e6..ea42efe865 100644 --- a/lichee/linux-4.9/arch/arm64/boot/dts/sunxi/Makefile +++ b/lichee/linux-4.9/arch/arm64/boot/dts/sunxi/Makefile @@ -4,7 +4,8 @@ dtb-$(CONFIG_ARCH_SUN50IW3P1) += sun50iw3p1-fpga.dtb sun50iw3p1-soc.dtb \ dtb-$(CONFIG_ARCH_SUN50IW1P1) += sun50iw1p1-fpga.dtb sun50iw1p1-perf1_v1_0.dtb \ sun50iw1p1-perf2_v1_0.dtb sun50iw1p1-t1.dtb \ - sun50iw1p1-sata.dtb sun50iw1p1-soc.dtb + sun50iw1p1-sata.dtb sun50iw1p1-soc.dtb \ + sun50iw1p1-m64_hdmi.dtb sun50iw1p1-m64.dtb dtb-$(CONFIG_ARCH_SUN50IW6P1) += sun50iw6p1-soc.dtb diff --git a/lichee/linux-4.9/arch/arm64/boot/dts/sunxi/sun50iw1p1-m64.dts b/lichee/linux-4.9/arch/arm64/boot/dts/sunxi/sun50iw1p1-m64.dts new file mode 100644 index 0000000000..5c4b2c8394 --- /dev/null +++ b/lichee/linux-4.9/arch/arm64/boot/dts/sunxi/sun50iw1p1-m64.dts @@ -0,0 +1,16 @@ +/* + * Allwinner Technology CO., Ltd. sun50iw1p1 fpga board. + * + * fpga board support. + */ + +/dts-v1/; + +#include "sun50iw1p1.dtsi" + +/{ + + soc@01c00000 { + + }; +}; diff --git a/lichee/linux-4.9/arch/arm64/boot/dts/sunxi/sun50iw1p1-m64_hdmi.dts b/lichee/linux-4.9/arch/arm64/boot/dts/sunxi/sun50iw1p1-m64_hdmi.dts new file mode 100644 index 0000000000..5c4b2c8394 --- /dev/null +++ b/lichee/linux-4.9/arch/arm64/boot/dts/sunxi/sun50iw1p1-m64_hdmi.dts @@ -0,0 +1,16 @@ +/* + * Allwinner Technology CO., Ltd. sun50iw1p1 fpga board. + * + * fpga board support. + */ + +/dts-v1/; + +#include "sun50iw1p1.dtsi" + +/{ + + soc@01c00000 { + + }; +}; diff --git a/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/bootlogo.bmp b/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/bootlogo.bmp new file mode 100755 index 0000000000..6a86d09bb6 Binary files /dev/null and b/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/bootlogo.bmp differ diff --git a/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/sys_config.fex b/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/sys_config.fex new file mode 100644 index 0000000000..08d5865dab --- /dev/null +++ b/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/sys_config.fex @@ -0,0 +1,1648 @@ +;A64 PAD application +;--------------------------------------------------------------------------------------------------------- +; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串 +; 描述gpio的形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态> +;--------------------------------------------------------------------------------------------------------- + +[product] +version = "100" +machine = "bpi-m64" + +;--------------------------------------------------------------------------------------------------------- +; eraseflag - 1 erase data partition, 0 - do not erase data partition +; next_work - action after burn, 0x0 by config, 0x1 normal, 0x2 reboot, 0x3 shutdown,0x4 reupdate ,0x5 boot +; debug_mode = 0 : do not print any message,debug_mode = 1 ,print debug message +;--------------------------------------------------------------------------------------------------------- +[platform] +eraseflag = 1 +next_work = 3 +debug_mode = 1 + +;--------------------------------------------------------------------------------------------------------- +; dragonboard_test default is 0,only in dragonboard card boot mode must be set 1 +; If you modified dragonboard_test flag,before you pack imgage, you must be build kernel again. +;--------------------------------------------------------------------------------------------------------- +[target] +boot_clock = 1008 +storage_type = -1 +burn_key = 1 +dragonboard_test = 0 + +;---------------------------------------------------------------------------------- +; 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 +;---------------------------------------------------------------------------------- + +[power_sply] +dcdc1_vol = 1003300 +dcdc2_vol = 1001200 +dcdc6_vol = 1001100 +dcdc5_vol = 1001360 +aldo1_vol = 2800 +aldo2_vol = 1001800 +aldo3_vol = 1003000 +dldo1_vol = 1003300 +dldo2_vol = 1001800 +dldo3_vol = 2800 +dldo4_vol = 1003300 +eldo1_vol = 1001800 +eldo2_vol = 1001800 +eldo3_vol = 1800 +fldo2_vol = 1001100 +gpio0_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 = 0 +card_high_speed = 1 +card_line = 4 +sdc_d1 = port:PF0<2><1><2> +sdc_d0 = port:PF1<2><1><2> +sdc_clk = port:PF2<2><1><2> +sdc_cmd = port:PF3<2><1><2> +sdc_d3 = port:PF4<2><1><2> +sdc_d2 = port:PF5<2><1><2> + +[card2_boot_para] +;sdc_io_1v8 = 1 +card_ctrl = 2 +card_high_speed = 1 +card_line = 8 +sdc_ds = port:PC1<3><1><3> +sdc_clk = port:PC5<3><1><3> +sdc_cmd = port:PC6<3><1><3> +sdc_d0 = port:PC8<3><1><3> +sdc_d1 = port:PC9<3><1><3> +sdc_d2 = port:PC10<3><1><3> +sdc_d3 = port:PC11<3><1><3> +sdc_d4 = port:PC12<3><1><3> +sdc_d5 = port:PC13<3><1><3> +sdc_d6 = port:PC14<3><1><3> +sdc_d7 = port:PC15<3><1><3> +sdc_emmc_rst = port:PC16<3><1><3> +sdc_ex_dly_used = 2 + +[twi_para] +twi_port = 0 +twi_scl = port:PH0<2> +twi_sda = port:PH1<2> + +[uart_para] +uart_debug_port = 0 +uart_debug_tx = port:PB8<4><1> +uart_debug_rx = port:PB9<4><1> + +[jtag_para] +jtag_enable = 1 +jtag_ms = port:PB0<4> +jtag_ck = port:PB1<4> +jtag_do = port:PB2<4> +jtag_di = port:PB3<4> + +[clock] +pll4 = 300 +pll6 = 600 +pll8 = 360 +pll9 = 297 +pll10 = 264 + +;***************************************************************************** +;sdram configuration +; +;***************************************************************************** +[dram_para] + +dram_clk = 672 +dram_type = 3 +dram_zq = 0x3b3bbb +dram_odt_en = 0x1 +dram_para1 = 0x10E410E4 +dram_para2 = 0x1000 +dram_mr0 = 0x1840 +dram_mr1 = 0x40 +dram_mr2 = 0x18 +dram_mr3 = 0x2 +dram_tpr0 = 0x004A2195 +dram_tpr1 = 0x02424190 +dram_tpr2 = 0x0008B060 +dram_tpr3 = 0x04b005dc +dram_tpr4 = 0x0 +dram_tpr5 = 0x0 +dram_tpr6 = 0x0 +dram_tpr7 = 0x0 +dram_tpr8 = 0x0 +dram_tpr9 = 0x0 +dram_tpr10 = 0x8808 +dram_tpr11 = 0x20250000 +dram_tpr12 = 0x0 +dram_tpr13 = 0x04000800 + +;---------------------------------------------------------------------------------- +;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> +gmac_txd1 = port:PA01<2> +gmac_txd2 = port:PA02<2> +gmac_txd3 = port:PA03<2> +gmac_txd4 = port:PA04<2> +gmac_txd5 = port:PA05<2> +gmac_txd6 = port:PA06<2> +gmac_txd7 = port:PA07<2> +gmac_txclk = port:PA08<2> +gmac_txen = port:PA09<2> +gmac_gtxclk = port:PA10<2> +gmac_rxd0 = port:PA11<2> +gmac_rxd1 = port:PA12<2> +gmac_rxd2 = port:PA13<2> +gmac_rxd3 = port:PA14<2> +gmac_rxd4 = port:PA15<2> +gmac_rxd5 = port:PA16<2> +gmac_rxd6 = port:PA17<2> +gmac_rxd7 = port:PA18<2> +gmac_rxdv = port:PA19<2> +gmac_rxclk = port:PA20<2> +gmac_txerr = port:PA21<2> +gmac_rxerr = port:PA22<2> +gmac_col = port:PA23<2> +gmac_crs = port:PA24<2> +gmac_clkin = port:PA25<2> +gmac_mdc = port:PA26<2> +gmac_mdio = port:PA27<2> + +;---------------------------------------------------------------------------------- +;i2c configuration +;---------------------------------------------------------------------------------- +[twi0] +twi0_used = 1 +twi0_scl = port:PH0<2> +twi0_sda = port:PH1<2> +twi_regulator = "vcc-io2" + +[twi0_suspend] +twi0_scl = port:PH0<7> +twi0_sda = port:PH1<7> + +[twi1] +twi1_used = 1 +twi1_scl = port:PH2<2> +twi1_sda = port:PH3<2> +twi_regulator = "vcc-io2" + +[twi1_suspend] +twi1_scl = port:PH2<7> +twi1_sda = port:PH3<7> + +[twi2] +twi2_used = 0 +twi2_scl = port:PE14<3> +twi2_sda = port:PE15<3> + +[twi2_suspend] +twi2_scl = port:PE14<7> +twi2_sda = port:PE15<7> + +;---------------------------------------------------------------------------------- +;TWI device configuration +;compatible --- device name +;reg --- device address +;---------------------------------------------------------------------------------- +;[twi0/twi_board0] +;compatible = +;reg = + +;---------------------------------------------------------------------------------- +;uart configuration +;uart_port --- x (/dev/ttySx, x=0,1,2,...) +;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:PB8<4><1> +uart0_rx = port:PB9<4><1> + +[uart0_suspend] +uart0_tx = port:PB8<7><1> +uart0_rx = port:PB9<7><1> + +[uart1] +uart1_used = 1 +uart1_port = 1 +uart1_type = 4 +uart1_tx = port:PG6<2><1> +uart1_rx = port:PG7<2><1> +uart1_rts = port:PG8<2><1> +uart1_cts = port:PG9<2><1> + +[uart1_suspend] +uart1_tx = port:PG6<7><1> +uart1_rx = port:PG7<7><1> +uart1_rts = port:PG8<7><1> +uart1_cts = port:PG9<7><1> + +[uart2] +uart2_used = 0 +uart2_port = 2 +uart2_type = 4 +uart2_tx = port:PB0<2><1> +uart2_rx = port:PB1<2><1> +uart2_rts = port:PB2<2><1> +uart2_cts = port:PB3<2><1> + +[uart2_suspend] +uart2_tx = port:PB0<7><1> +uart2_rx = port:PB1<7><1> +uart2_rts = port:PB2<7><1> +uart2_cts = port:PB3<7><1> + +[uart3] +uart3_used = 0 +uart3_port = 3 +uart3_type = 4 +uart3_tx = port:PH4<2><1> +uart3_rx = port:PH5<2><1> +uart3_rts = port:PH6<2><1> +uart3_cts = port:PH7<2><1> + +[uart3_suspend] +uart3_tx = port:PH4<7><1> +uart3_rx = port:PH5<7><1> +uart3_rts = port:PH6<7><1> +uart3_cts = port:PH7<7><1> + +[uart4] +uart4_used = 0 +uart4_port = 4 +uart4_type = 4 +uart4_tx = port:PD2<3><1> +uart4_rx = port:PD3<3><1> +uart4_rts = port:PD4<3><1> +uart4_cts = port:PD5<3><1> + +[uart4_suspend] +uart4_tx = port:PD2<7><1> +uart4_rx = port:PD3<7><1> +uart4_rts = port:PD4<7><1> +uart4_cts = port:PD5<7><1> + +;---------------------------------------------------------------------------------- +;SPI controller configuration +;---------------------------------------------------------------------------------- +[spi0] +spi0_used = 0 +spi0_cs_number = 1 +spi0_cs_bitmap = 1 +spi0_cs0 = port:PC3<4><1> +spi0_sclk = port:PC2<4> +spi0_mosi = port:PC0<4> +spi0_miso = port:PC1<4> + +[spi0_suspend] +spi0_cs0 = port:PC3<7><1> +spi0_sclk = port:PC2<7> +spi0_mosi = port:PC0<7> +spi0_miso = port:PC1<7> + +[spi1] +spi1_used = 0 +spi1_cs_number = 1 +spi1_cs_bitmap = 1 +spi1_cs0 = port:PD0<4><1> +spi1_sclk = port:PD1<4> +spi1_mosi = port:PD2<4> +spi1_miso = port:PD3<4> + +[spi1_suspend] +spi1_cs0 = port:PD0<7><1> +spi1_sclk = port:PD1<7> +spi1_mosi = port:PD2<7> +spi1_miso = port:PD3<7> + +;---------------------------------------------------------------------------------- +;SPI device configuration +;compatible --- device name +;spi-max-frequency --- work frequency +;reg --- chip select +;optional properties: spi-cpha, spi-cpol, spi-cs-high +;---------------------------------------------------------------------------------- +;[spi0/spi_board0] +;compatible = +;spi-max-frequency = +;reg = +;spi-cpha +;spi-cpol +;spi-cs-high + +;---------------------------------------------------------------------------------- +;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 = "ft5x_ts" +;ctp_name = "gsl1680e_801YDT" +ctp_twi_id = 0 +ctp_twi_addr = 0x38 +ctp_screen_max_x = 800 +ctp_screen_max_y = 1280 +ctp_revert_x_flag = 0 +ctp_revert_y_flag = 0 +ctp_exchange_x_y_flag = 0 + +ctp_int_port = port:PH04<6> +ctp_wakeup = port:PH08<1><1> +ctp_power_ldo = "vcc-ctp" +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 = 1 +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 = 0 +motor_shake = port:power3<1><1> + +;---------------------------------------------------------------------------------- +; nand0_dragonboard default is 0,only in dragonboard card boot mode must be set 1 +;---------------------------------------------------------------------------------- +[nand0_para] +nand0_dragonboard = 0 +nand0_support_2ch = 0 + +nand0_used = 1 +nand0_we = port:PC00<2><0><1> +nand0_ale = port:PC01<2><0><1> +nand0_cle = port:PC02<2><0><1> +nand0_ce1 = port:PC03<2><1><1> +nand0_ce0 = port:PC04<2><1><1> +nand0_nre = port:PC05<2><0><1> +nand0_rb0 = port:PC06<2><1><1> +nand0_rb1 = port:PC07<2><1><1> +nand0_d0 = port:PC08<2><0><1> +nand0_d1 = port:PC09<2><0><1> +nand0_d2 = port:PC10<2><0><1> +nand0_d3 = port:PC11<2><0><1> +nand0_d4 = port:PC12<2><0><1> +nand0_d5 = port:PC13<2><0><1> +nand0_d6 = port:PC14<2><0><1> +nand0_d7 = port:PC15<2><0><1> +nand0_ndqs = port:PC16<2><0><1> +nand0_ce2 = port:PC17<2><1><1> +nand0_ce3 = port:PC18<2><1><1> + +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) +;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 (0:ARGB 1:ABGR 2:RGBA 3:BGRA 5:RGB565 8:RGB888 12:ARGB4444 16:ARGB1555 18:RGBA5551) +;fbx_width,fbx_height (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0) +;---------------------------------------------------------------------------------- +[disp] +disp_init_enable = 1 +disp_mode = 0 + +screen0_output_type = 1 +screen0_output_mode = 4 + +screen1_output_type = 3 +screen1_output_mode = 4 + +fb0_format = 0 +fb0_width = 0 +fb0_height = 0 + +fb1_format = 0 +fb1_width = 0 +fb1_height = 0 + +;---------------------------------------------------------------------------------- +;lcd0 configuration + +;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:dsi; 5:edp +;lcd_backlight lcd init backlight +;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_hv_clk_phase lcd hv panel lock phase, 0:0 degree; 1:90 degree; 2: 180 degree; 3: 270 degree +;lcd_hv_sync_polarity lcd hv panel sync signals polarity +; 0:vsync active low, hsync active low; 1:vsync active high, hsync active low +; 2:vsync active low, hsync active high; 3:vsync active high, hsync active high +;lcd_gamma_en lcd gamma correction enable +;lcd_bright_curve_en lcd bright curve correction enable +;lcd_cmap_en lcd color map function enable +;---------------------------------------------------------------------------------- +[lcd0] +lcd_used = 1 + +lcd_driver_name = "WilliamLcd" +;lcd_model_name= "LT080B21BA94" +lcd_backlight = 50 +lcd_if = 4 +lcd_x = 800 +lcd_y = 1280 +lcd_width = 108 +lcd_height = 172 +lcd_dclk_freq = 95 +lcd_pwm_used = 1 +lcd_pwm_ch = 0 +lcd_pwm_freq = 10000 +lcd_pwm_pol = 1 +lcd_pwm_max_limit = 255 +lcd_hbp = 78 +lcd_ht = 1198 +lcd_hspw = 20 +lcd_vbp = 15 +lcd_vt = 1330 +lcd_vspw = 5 +lcd_lvds_if = 0 +lcd_lvds_colordepth = 0 +lcd_lvds_mode = 0 +lcd_frm = 0 +lcd_hv_clk_phase = 0 +lcd_hv_sync_polarity= 0 +lcd_dsi_if = 0 +lcd_dsi_lane = 4 +lcd_dsi_format = 0 +lcd_dsi_te = 0 +lcd_gamma_en = 0 +lcd_bright_curve_en = 0 +lcd_cmap_en = 0 + +lcd_gpio_0 = port:PD24<1><0><1> + +;power enable +lcd_gpio_1 = port:PD21<1><0><1> +lcd_bl_en = port:PD23<1><0><1> + +lcd_power = "vcc-mipi" +lcd_power1 = "vcc-lcd" +lcd_pin_power = "vcc-pd" +lcd_fix_power = "vcc-dsi-33" + + +[hdmi] +hdmi_used = 1 +hdmi_power = "vcc-hdmi-33" +hdmi_hdcp_enable = 0 +hdmi_cts_compatibility = 0 + +;---------------------------------------------------------------------------------- +;pwm config +;---------------------------------------------------------------------------------- +[pwm0] +pwm_used = 1 +pwm_positive = port:PD22<2><0> + +[pwm0_suspend] +pwm_positive = port:PD22<7><0> + +[pwm16] +s_pwm0_used = 0 +pwm_positive = port:PL10<2><0> + +[pwm16_suspend] +pwm_positive = port:PL10<7><0> + +[boot_disp] +output_disp = 0 +output_type = 1 +output_mode = 4 + +;-------------------------------------------------------------------------------- +;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 +;-------------------------------------------------------------------------------- + +[csi0] +csi0_used = 1 +csi0_sensor_list = 0 +csi0_pck = port:PE00<2> +csi0_mck = port:PE01<2> +csi0_hsync = port:PE02<2> +csi0_vsync = port:PE03<2> +csi0_d0 = port:PE04<2> +csi0_d1 = port:PE05<2> +csi0_d2 = port:PE06<2> +csi0_d3 = port:PE07<2> +csi0_d4 = port:PE08<2> +csi0_d5 = port:PE09<2> +csi0_d6 = port:PE10<2> +csi0_d7 = port:PE11<2> +csi0_sck = port:PE12<2> +csi0_sda = port:PE13<2> + +[csi0/csi0_dev0] +csi0_dev0_used = 1 +csi0_dev0_mname = "gc2145" +csi0_dev0_twi_addr = 0x78 +csi0_dev0_pos = "rear" +csi0_dev0_isp_used = 1 +csi0_dev0_fmt = 0 +csi0_dev0_stby_mode = 0 +csi0_dev0_vflip = 0 +csi0_dev0_hflip = 0 +csi0_dev0_iovdd = "iovdd-csi" +csi0_dev0_iovdd_vol = 2800000 +csi0_dev0_avdd = "avdd-csi" +csi0_dev0_avdd_vol = 2800000 +csi0_dev0_dvdd = "dvdd-csi-18" +csi0_dev0_dvdd_vol = 1500000 +csi0_dev0_afvdd = "afvcc-csi" +csi0_dev0_afvdd_vol = 2800000 +;csi0_dev0_power_en = port:PB04<1><0><1><0> +csi0_dev0_power_en = +csi0_dev0_reset = port:PE14<1><0><1><0> +csi0_dev0_pwdn = port:PE15<1><0><1><0> +csi0_dev0_flash_used = 0 +csi0_dev0_flash_type = 2 +csi0_dev0_flash_en = +csi0_dev0_flash_mode = +csi0_dev0_flvdd = "" +csi0_dev0_flvdd_vol = +csi0_dev0_af_pwdn = +csi0_dev0_act_used = 0 +csi0_dev0_act_name = "ad5820_act" +csi0_dev0_act_slave = 0x18 + +[csi0/csi0_dev1] +csi0_dev1_used = 1 +csi0_dev1_mname = "gc0312" +csi0_dev1_twi_addr = 0x42 +csi0_dev1_pos = "front" +csi0_dev1_isp_used = 1 +csi0_dev1_fmt = 0 +csi0_dev1_stby_mode = 0 +csi0_dev1_vflip = 0 +csi0_dev1_hflip = 0 +csi0_dev1_iovdd = "iovdd-csi" +csi0_dev1_iovdd_vol = 2800000 +csi0_dev1_avdd = "avdd-csi" +csi0_dev1_avdd_vol = 2800000 +csi0_dev1_dvdd = "dvdd-csi-18" +csi0_dev1_dvdd_vol = 1500000 +csi0_dev1_afvdd = "afvcc-csi" +csi0_dev1_afvdd_vol = 2800000 +csi0_dev1_power_en = +csi0_dev1_reset = port:PE16<1><0><1><0> +csi0_dev1_pwdn = port:PE17<1><0><1><0> +csi0_dev1_flash_used = 0 +csi0_dev1_flash_type = 2 +csi0_dev1_flash_en = +csi0_dev1_flash_mode = +csi0_dev1_flvdd = "" +csi0_dev1_flvdd_vol = +csi0_dev1_af_pwdn = +csi0_dev1_act_used = 0 +csi0_dev1_act_name = "ad5820_act" +csi0_dev1_act_slave = 0x18 + +;-------------------------------------------------------------------------------- +;tv configuration +; +;-------------------------------------------------------------------------------- +[tvout_para] +tvout_used = +tvout_channel_num = +tv_en = + +[tvin_para] +tvin_used = +tvin_channel_num = + +; ------------------------------------------------------------------------------| +; de-interlace configuration +;-------------------------------------------------------------------------------- +[di] +di_used = 1 + +;-------------------------------------------------------------------------------- +; SDMMC PINS MAPPING | +; ------------------------------------------------------------------------------| +; Config Guide | +; sdc_used: 1-enable card, 0-disable card | +; non-removable:if you use as main memory,you should set it,for example eMMC | +; bus-width: card bus width, 1-1bit, 4-4bit, 8-8bit | +; sunxi-power-save-mode: if use sdio card,should not set it | +; vmmc:regulator for card/emmc power | +; vqmmc:regulator for card/emmc io power | +; vdmmc:regulator for card detect pin pull up power | +; other: GPIO Mapping configuration | +; ------------------------------------------------------------------------------| +; Note: | +; | +; | +; | +; | +; | +; | +;-------------------------------------------------------------------------------- + +[sdc0] +sdc0_used = 1 +bus-width = 4 +sdc0_d1 = port:PF00<2><1><2> +sdc0_d0 = port:PF01<2><1><2> +sdc0_clk = port:PF02<2><1><2> +sdc0_cmd = port:PF03<2><1><2> +sdc0_d3 = port:PF04<2><1><2> +sdc0_d2 = port:PF05<2><1><2> +cd-gpios = port:PF06<0><1><2> +sunxi-power-save-mode = +sunxi-dis-signal-vol-sw = +vmmc="vcc-sdcv" +vqmmc="vcc-sdcvq33" +vdmmc="vcc-sdcvd" + + +[sdc1] +sdc1_used = 1 +bus-width = 4 +sdc1_clk = port:PG00<2><1><3> +sdc1_cmd = port:PG01<2><1><3> +sdc1_d0 = port:PG02<2><1><3> +sdc1_d1 = port:PG03<2><1><3> +sdc1_d2 = port:PG04<2><1><3> +sdc1_d3 = port:PG05<2><1><3> +;sunxi-power-save-mode = +sd-uhs-sdr50 = +sd-uhs-ddr50 = +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_ds = port:PC01<3><1><3> +sdc2_clk = port:PC05<3><1><3> +sdc2_cmd = port:PC06<3><1><3> +sdc2_d0 = port:PC08<3><1><3> +sdc2_d1 = port:PC09<3><1><3> +sdc2_d2 = port:PC10<3><1><3> +sdc2_d3 = port:PC11<3><1><3> +sdc2_d4 = port:PC12<3><1><3> +sdc2_d5 = port:PC13<3><1><3> +sdc2_d6 = port:PC14<3><1><3> +sdc2_d7 = port:PC15<3><1><3> +sdc2_emmc_rst = port:PC16<3><1><3> +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 = 100000000 +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-emmcv" +;vqmmc="vcc-emmcvq33" +vqmmc="vcc-emmcvq18" +vdmmc="none" + + +;[mmc3] +;mmc3_used = 0 +;mmc3_detmode = 2 +;mmc3_buswidth = 4 +;mmc3_clk = port:PA10<2><1><2> +;mmc3_cmd = port:PA09<2><1><2> +;mmc3_d0 = port:PA11<2><1><2> +;mmc3_d1 = port:PA12<2><1><2> +;mmc3_d2 = port:PA13<2><1><2> +;mmc3_d3 = port:PA14<2><1><2> +;mmc3_det = +;mmc3_use_wp = 0 +;mmc3_wp = +;mmc3_isio = 0 +;mmc3_regulator = "none" + +; ------------------------------------------------------------------------------| +; sim card configuration +;-------------------------------------------------------------------------------- +[smc] +smc_used = +smc_rst = +smc_vppen = +smc_vppp = +smc_det = +smc_vccen = +smc_sck = +smc_sda = + +;-------------------------------- +;[usbc0]: usbc0 configuration. +;usb_used: usb controller enable. 0-disable, 1-enable. +;usb_port_type: usb mode. 0-device, 1-host, 2-otg. +;usb_detect_type: usb hotplug detect mode. 0-none, 1-vbus/id detect, 2-id/dpdm detect. +;usb_detect_mode: usb otg switch has two config. 0-thread scan, 1-id gpio interrupt. +;usb_id_gpio: usb id detect IO. +;usb_det_vbus_gpio: USB DET_VBUS has two config. (1)gpio pin; (2)"axp_ctrl", use axp intf. +;usb_drv_vbus_gpio: USB DRY_VBUS has two config. (1)gpio pin; (2)"axp_ctrl", use axp intf. +;-------------------------------- +;-------------------------------- +;--- USB0 CONFIG +;-------------------------------- +[usbc0] +usbc0_used = 1 +usb_port_type = 2 +usb_detect_type = 1 +usb_detect_mode = 0 +usb_id_gpio = port:PH09<0><1> +usb_det_vbus_gpio = "axp_ctrl" +usb_drv_vbus_gpio = port:power3<1><0><0> +usb_host_init_state = 0 +usb_regulator_io = "nocare" +usb_wakeup_suspend = 0 +;--- USB Device +usb_luns = 3 +usb_serial_unique = 1 +usb_serial_number = "20080411" +rndis_wceis = 1 + +;-------------------------------- +;--- USB1 CONFIG +;-------------------------------- +[usbc1] +usbc1_used = 0 +usb_drv_vbus_gpio = port:PB06<1><0><0> +usb_host_init_state = 1 +usb_regulator_io = "nocare" +usb_wakeup_suspend = 0 +;--- HSIC config +usb_hsic_used = 0 +usb_hsic_regulator_io = "vcc-hsic-12" +;--- Marvell 4G HSIC +usb_hsic_ctrl = 0 +usb_hsic_rdy_gpio = +;--- SMSC usb3503 HSIC HUB +usb_hsic_usb3503_flag = 0 +usb_hsic_hub_connect_gpio = +usb_hsic_int_n_gpio = +usb_hsic_reset_n_gpio = + +;-------------------------------- +;--- 序列号标志 +;-------------------------------- +[serial_feature] +sn_filename = "ULI/factory/snum.txt" + +;-------------------------------------------------------------------------------- +; G sensor configuration +; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2) +;-------------------------------------------------------------------------------- +[gsensor] +compatible = "allwinner,sun50i-gsensor-para" +gsensor_used = 1 +gsensor_twi_id = 1 +gsensor_twi_addr = 0x18 +gsensor_vcc_io = "vcc-io2" +gsensor_vcc_io_val = 3300 +gsensor_int1 = port:PH05<6><1> +gsensor_int2 = port:PH06<6><1> + +;-------------------------------------------------------------------------------- +; G sensor automatic detection configuration +;gsensor_detect_used --- Whether startup automatic inspection function. 1:used,0:unused +;Module name postposition 1 said detection, 0 means no detection. +;-------------------------------------------------------------------------------- +[gsensor_list] +compatible = "allwinner,sun50i-gsensor-list-para" +gsensor_list_used = 1 +lsm9ds0_acc_mag = 0 +bma250 = 1 +mma8452 = 0 +mma7660 = 0 +mma865x = 0 +afa750 = 0 +lis3de_acc = 0 +lis3dh_acc = 0 +kxtik = 0 +dmard10 = 0 +dmard06 = 0 +mxc622x = 0 +fxos8700 = 0 +lsm303d = 0 +sc7a30 = 0 +mir3da = 1 + +;-------------------------------------------------------------------------------- +;wlan configuration +;wlan_used: 0-not use, 1- use +;wlan_busnum: sdio/usb index +;clocks: external low power clock input (32.768KHz) +;wlan_power: input supply voltage +;wlan_io_regulator: wlan/sdio I/O voltage +;wlan_regon: power up/down internal regulators used by wifi section +;wlan_hostwake: wlan to wake-up host +;-------------------------------------------------------------------------------- +[wlan] +compatible = "allwinner,sunxi-wlan" +wlan_used = 1 +wlan_busnum = 1 +clocks = +wlan_power = +wlan_io_regulator = "vcc-wifi-io" +wlan_regon = port:PL02<1><0> +wlan_hostwake = port:PL03<6><0> + +;-------------------------------------------------------------------------------- +;bluetooth configuration +;bt_used: 0- no used, 1- used +;clocks: external low power clock input (32.768KHz) +;bt_power: input supply voltage +;bt_io_regulator: bluetooth I/O voltage +;bt_rst_n: power up/down internal regulators used by BT section +;-------------------------------------------------------------------------------- +[bt] +compatible = "allwinner,sunxi-bt" +bt_used = 1 +clocks = +bt_power = +bt_io_regulator = "vcc-wifi-io" +bt_rst_n = port:PL04<1><0> + +;-------------------------------------------------------------------------------- +;bluetooth lpm configuration +;btlpm_used: 0- no used, 1- used +;uart_index: 0- uart0, 1- uart1, 2- uart2 +;bt_wake: host wake-up bluetooth device +;bt_hostwake: bt device wake-up host +;-------------------------------------------------------------------------------- +[btlpm] +compatible = "allwinner,sunxi-btlpm" +btlpm_used = 1 +uart_index = 1 +bt_wake = port:PL06<1><1> +bt_hostwake = port:PL05<6><0> + +;-------------------------------------------------------------------------------- +;3G configuration +;-------------------------------------------------------------------------------- +[3g_para] +3g_used = 0 +3g_usbc_num = 2 +3g_uart_num = 0 +bb_vbat = port:PL03<1><0> +bb_host_wake = port:PM00<1><0> +bb_on = port:PM01<1><0> +bb_pwr_on = port:PM03<1><0> +bb_wake = port:PM04<1><0> +bb_rf_dis = port:PM05<1><0> +bb_rst = port:PM06<1><0> +3g_int = + +;-------------------------------------------------------------------------------- +;gyroscope +;-------------------------------------------------------------------------------- +[gyroscopesensor] +compatible ="allwinner,sun50i-gyr_sensors-para" +gyroscopesensor_used = 0 +gy_twi_id = 2 +gy_twi_addr = 0x6a +gy_int1 = port:PA10<6><1> +gy_int2 = + +;-------------------------------------------------------------------------------- +; Gyro automatic detection configuration +;gy_detect_used --- Whether startup automatic inspection function. 1:used,0:unused +;Module name postposition 1 said detection, 0 means no detection. +;-------------------------------------------------------------------------------- +[gy_list] +compatible ="allwinner,sun50i-gyr_sensors-list-para" +gy_list_used = 0 +lsm9ds0_gyr = 1 +l3gd20_gyr = 0 +bmg160_gyr = 1 + + +;-------------------------------------------------------------------------------- +;light sensor +;-------------------------------------------------------------------------------- +[lightsensor] +compatible ="allwinner,sun50i-lsensors-para" +lightsensor_used =0 +ls_twi_id = 2 +ls_twi_addr = 0x23 +ls_int = port:PA12<6><1> + +;-------------------------------------------------------------------------------- +; lsensor automatic detection configuration +;ls_detect_used --- Whether startup automatic inspection function. 1:used,0:unused +;Module name postposition 1 said detection, 0 means no detection. +;-------------------------------------------------------------------------------- +[ls_list] +compatible ="allwinner,sun50i-lsensors-list-para" +ls_list_used =0 +ltr_501als = 1 +jsa1212 = 0 +jsa1127 = 1 +stk3x1x = 0 + +;-------------------------------------------------------------------------------- +;compass +;-------------------------------------------------------------------------------- +[compasssensor] +compatible ="allwinner,sun50i-compass-para" +compasssensor_used = 0 +compass_twi_id = 2 +compass_twi_addr = 0x0d +compass_int = port:PA11<6><1> + + +;-------------------------------------------------------------------------------- +; compass sensor automatic detection configuration +;compass_detect_used --- Whether startup automatic inspection function. 1:used,0:unused +;Module name postposition 1 said detection, 0 means no detection. +;-------------------------------------------------------------------------------- +[compass_list] +compatible ="allwinner,sun50i-compass-list-para" +compass_list_used = 0 +lsm9ds0 = 1 +lsm303d = 0 +;akm8963 = 1 + +;-------------------------------------------------------------------------------- +; NOTE :Make sure spdif_used = 0x1,spdifmach_used = 0x1, +; if register the sound card spdif. +;-------------------------------------------------------------------------------- +[spdif] +spdif_used = 0 +[sndspdif] +sndspdif_used = 0 +;---------------------------------------------------------------------------------- +; NOTE :Make sure daudio2_used = 0x1,sndhdmi_used = 0x1, +; if register the sound card hdmi. +;--------------------------------------------------------------------------------- +[daudio2] +daudio2_used = 1 +[sndhdmi] +sndhdmi_used = 1 +;-------------------------------------------------------------------------------- +;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: long frame = 2 clock width; 1: short frame +;allwinner,tdm_config :0:pcm 1:i2s +;allwinner,daudio_regulator : regulator name +;allwinner,daudio0_used :0:not use 1:use +;-------------------------------------------------------------------------------- +; NOTE :Make sure snddaudio0_used = 0x1,daudio1_used = 0x1, +; if register the sound card DAUDIO1. +;-------------------------------------------------------------------------------- +[snddaudio0] +snddaudio0_used = 0 +;----------------------------------------------------------------------------- +[daudio0] +pcm_lrck_period = 0x20 +;pcm_lrckr_period = 0x01 +slot_width_select = 0x20 +;pcm_lsb_first = 0x0 +;tx_data_mode = 0x0 +;rx_data_mode = 0x0 +daudio_master = 0x04 +audio_format = 0x01 +signal_inversion = 0x01 +frametype = 0x0 +tdm_config = 0x01 +daudio_regulator = +daudio0_used = 0 + +;------------------------------------------------------------------------------- +; NOTE :Make sure snddaudio1_used = 0x1,daudio0_used = 0x1, +; if register the sound card DAUDIO0. +;-------------------------------------------------------------------------------- +[snddaudio1] +snddaudio1_used = 0 +;----------------------------------------------------------------------------- +[daudio1] +pcm_lrck_period = 0x20 +;pcm_lrckr_period = 0x01 +slot_width_select = 0x20 +;pcm_lsb_first = 0x0 +;tx_data_mode = 0x0 +;rx_data_mode = 0x0 +daudio_master = 0x04 +audio_format = 0x01 +signal_inversion = 0x01 +frametype = 0x0 +tdm_config = 0x01 +daudio_regulator = +daudio1_used = 0 + +;-------------------------------------------------------------------------------------- +;allwinner,headphonevol :headphone volume:0x0--0x3f 0db--(-62db) 1db/step +;allwinner,spkervol : speaker volume:0x0--0x1f 0db-(-43.5db) 1.5db/step +;allwinner,earpiecevol : earpiece volume:0x0--0x1f 0db-(-43.5db) 1.5db/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 :0:low 1:high +;-------------------------------------------------------------------------------- +; 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 = 0x38 +spkervol = 0x18 +earpiecevol = 0x1e +maingain = 0x7 +headsetmicgain = 0x4 +adcinputgain = 0x7 +adcagc_cfg = 0x0 +adcdrc_cfg = 0x0 +adchpf_cfg = 0x1 +dacdrc_cfg = 0x0 +dachpf_cfg = 0x0 +aif2config = 0x0 +aif3config = 0x0 +aif1_lrlk_div = 0x40 +aif2_lrlk_div = 0x40 +pa_sleep_time = 0x0a +dac_digital_vol = 0x9898 +gpio-spk = port:PH07<2><1> + +;---------------------------------------------------------------------------------- +;ir --- infra remote configuration +;---------------------------------------------------------------------------------- +[s_cir0] +s_cir0_used = 0 +ir_power_key_code = 0x0 +ir_addr_code = 0x0 + +;-------------------------------------------------------------------------------------------------------- +;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 +;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 +;-------------------------------------------------------------------------------------------------------- +[pmu0] +compatible = "axp803" +used = 1 +pmu_id = 6 +pmu_vbusen_func = 0 +pmu_reset = 0 +pmu_irq_wakeup = 1 +pmu_hot_shutdown = 1 +pmu_inshort = 0 + +;-------------------------------------------------------------------------------------------------------- +;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/4220/4200/4240 +;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_init_bc_en ---set cur by bc1.2 0:disable 1:enable +;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 = "axp803-charger" +pmu_chg_ic_temp = 0 +pmu_battery_rdc = 125 +pmu_battery_cap = 3700 +pmu_runtime_chgcur = 1300 +pmu_suspend_chgcur = 1300 +pmu_shutdown_chgcur = 1300 +pmu_init_chgvol = 4350 +pmu_ac_vol = 4000 +pmu_ac_cur = 3500 +pmu_usbpc_vol = 4400 +pmu_usbpc_cur = 500 +pmu_battery_warning_level1 = 15 +pmu_battery_warning_level2 = 0 +pmu_chgled_func = 1 +pmu_chgled_type = 0 +power_start = 0 +pmu_ocv_en = 1 +pmu_cou_en = 1 +pmu_update_min_time = 30 +pmu_init_bc_en = 0 +;pmu_init_chgend_rate = 10 + +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 = 1 +pmu_bat_para8 = 1 +pmu_bat_para9 = 2 +pmu_bat_para10 = 3 +pmu_bat_para11 = 6 +pmu_bat_para12 = 9 +pmu_bat_para13 = 19 +pmu_bat_para14 = 31 +pmu_bat_para15 = 41 +pmu_bat_para16 = 44 +pmu_bat_para17 = 48 +pmu_bat_para18 = 52 +pmu_bat_para19 = 55 +pmu_bat_para20 = 59 +pmu_bat_para21 = 64 +pmu_bat_para22 = 69 +pmu_bat_para23 = 72 +pmu_bat_para24 = 75 +pmu_bat_para25 = 78 +pmu_bat_para26 = 81 +pmu_bat_para27 = 83 +pmu_bat_para28 = 85 +pmu_bat_para29 = 89 +pmu_bat_para30 = 92 +pmu_bat_para31 = 97 +pmu_bat_para32 = 100 + +pmu_bat_temp_enable = 1 +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 + +;-------------------------------------------------------------------------------------------------------- +;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 = "axp803-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 = "axp803-regulator" +regulator_count = 23 +regulator1 = "axp803_dcdc1 none vcc-nand vcc-emmc vcc-sdc vcc-usb-30 vcc-io vcc-pd vcc-emmcv vcc-emmcvq33 vcc-sdcvq33 vcc-sdcv vcc-sdcvd" +regulator2 = "axp803_dcdc2 none vdd-cpua" +regulator3 = "axp803_dcdc3 none" +regulator4 = "axp803_dcdc4 none" +regulator5 = "axp803_dcdc5 none vcc-dram" +regulator6 = "axp803_dcdc6 none vdd-sys vdd-gpu" +regulator7 = "axp803_dcdc7 none" +regulator8 = "axp803_rtc none" +regulator9 = "axp803_aldo1 none vdd-csi-led afvcc-csi iovdd-csi " +regulator10 = "axp803_aldo2 none vcc-pl" +regulator11 = "axp803_aldo3 none vcc-avcc vcc-pll" +regulator12 = "axp803_dldo1 none vcc-hdmi-33 vcc-dsi-33 vcc-io2" +regulator13 = "axp803_dldo2 none vcc-lcd" +regulator14 = "axp803_dldo3 none avdd-csi" +regulator15 = "axp803_dldo4 none vcc-wifi-io vcc-pg" +regulator16 = "axp803_eldo1 none vcc-cpvdd vcc-pc vcc-emmcvq18" +regulator17 = "axp803_eldo2 none vcc-mipi vcc-lcd-0" +regulator18 = "axp803_eldo3 none dvdd-csi-18" +regulator19 = "axp803_fldo1 none vcc-hsic-12" +regulator20 = "axp803_fldo2 none vdd-cpus"; +regulator21 = "axp803_gpio0ldo none vcc-ctp" +regulator22 = "axp803_gpio1ldo none " +regulator23 = "axp803_dc1sw none vcc-wifi-8089" + +;-------------------------------------------------------------------------------------------------------- +;compatible ---axp_gpio0 name, support:axp803-gpio +;-------------------------------------------------------------------------------------------------------- +[axp_gpio0] +compatible = "axp803-gpio" +;---------------------------------------------------------------------------------- +;recovery and fastboot key +;---------------------------------------------------------------------------------- +[recovery_key] +key_min = 0x3 +key_max = 0x5 +;---------------------------------------------------------------------------------- +[fastboot_key] +key_max = 0x6 +key_min = 0x4 + +;---------------------------------------------------------------------------------- +; dvfs voltage-frequency table configuration +; +; max_freq: cpu maximum frequency, based on Hz +; min_freq: cpu minimum frequency, based on Hz +; +; lv_count: count of lv_freq/lv_volt, must be < 16 +; +; lv1: core vdd is 1.30v if cpu frequency is (1104Mhz, 1152Mhz] +; lv2: core vdd is 1.26v if cpu frequency is (1008Mhz, 1104Mhz] +; lv3: core vdd is 1.20v if cpu frequency is (816Mhz, 1008Mhz] +; lv4: core vdd is 1.10v if cpu frequency is (648Mhz, 816Mhz] +; lv5: core vdd is 1.04v if cpu frequency is (480Mhz, 648Mhz] +; lv6: core vdd is 1.04v if cpu frequency is (480Mhz, 648Mhz] +; lv7: core vdd is 1.04v if cpu frequency is (480Mhz, 648Mhz] +; lv8: core vdd is 1.04v if cpu frequency is (480Mhz, 648Mhz] +; +;---------------------------------------------------------------------------------- +[dvfs_table] +;extremity_freq = 1344000000 +vf_table_count = 2 + +[vf_table1] +max_freq = 1152000000 +min_freq = 480000000 + +lv_count = 8 +lv1_freq = 1152000000 +lv1_volt = 1300 + +lv2_freq = 1104000000 +lv2_volt = 1260 + +lv3_freq = 1008000000 +lv3_volt = 1200 + +lv4_freq = 816000000 +lv4_volt = 1100 + +lv5_freq = 648000000 +lv5_volt = 1040 + +lv6_freq = 0 +lv6_volt = 1040 + +lv7_freq = 0 +lv7_volt = 1040 + +lv8_freq = 0 +lv8_volt = 1040 + +[vf_table2] +max_freq = 1152000000 +min_freq = 480000000 + +lv_count = 8 +lv1_freq = 1152000000 +lv1_volt = 1260 + +lv2_freq = 1104000000 +lv2_volt = 1200 + +lv3_freq = 1008000000 +lv3_volt = 1140 + +lv4_freq = 816000000 +lv4_volt = 1060 + +lv5_freq = 648000000 +lv5_volt = 1000 + +lv6_freq = 0 +lv6_volt = 1000 + +lv7_freq = 0 +lv7_volt = 1000 + +lv8_freq = 0 +lv8_volt = 1000 + +;---------------------------------------------------------------------------------- +;s_uart0 config parameters +;s_uart0_used --s_uart0 whether used for arisc debugging +; +;---------------------------------------------------------------------------------- +[s_uart0] +s_uart0_used = 1 +s_uart0_tx = port:PL02<2> +s_uart0_rx = port:PL03<2> + +;---------------------------------------------------------------------------------- +;s_rsb0 config parameters +;s_rsb0_used --s_rsb0 whether used for arisc +; +;---------------------------------------------------------------------------------- +[s_rsb0] +s_rsb0_used = 1 +s_rsb0_sck = port:PL00<2><1><2> +s_rsb0_sda = port:PL01<2><1><2> + +;---------------------------------------------------------------------------------- +;s_jtag0 config parameters +;s_jtag0_used --s_jtag0 whether used for arisc +; +;---------------------------------------------------------------------------------- +[s_jtag0] +s_jtag0_used = 0 +s_jtag0_tms = port:PL04<2><1><2> +s_jtag0_tck = port:PL05<2><1><2> +s_jtag0_tdo = port:PL06<2><1><2> +s_jtag0_tdi = port:PL07<2><1><2> + +;---------------------------------------------------------------------------------- +;virtual device +;virtual device for pinctrl testing +;device have pin PA1 PA2 +;---------------------------------------------------------------------------------- +[Vdevice] +Vdevice_used = 1 +Vdevice_0 = port:PB01<4><1><2> +Vdevice_1 = port:PB02<4><1><2> + +;---------------------------------------------------------------------------------- +;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_freq : frequency in MHz of certain level. +;lv_volt : voltage in mV of certain level. +;---------------------------------------------------------------------------------- +[gpu] +regulator_id = "vdd-gpu" +dvfs_status = 0 +temp_ctrl_status = 0 +scene_ctrl_status = 0 + +max_level = 3 +begin_level = 3 + +lv0_freq = 144 +lv0_volt = 1100 + +lv1_freq = 264 +lv1_volt = 1100 + +lv2_freq = 384 +lv2_volt = 1100 + +lv3_freq = 456 +lv3_volt = 1100 + +;---------------------------------------------------------------------------------- +;dram_region_mbytes : Widevine L1 set 64Mbyte,Widevine L3 set 0Mbyte to save ram +;drm_region_mbytes : Widevine L1 set 64Mbyte,Widevine L3 set 0Mbyte to save ram +;---------------------------------------------------------------------------------- +[secure] +dram_region_mbytes = 0 +drm_region_mbytes = 0 +drm_region_start_mbytes = 0 +;---------------------------------------------------------------------------------- diff --git a/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/sys_config_linux-4.9.fex b/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/sys_config_linux-4.9.fex new file mode 100755 index 0000000000..5d6dc834fe --- /dev/null +++ b/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/sys_config_linux-4.9.fex @@ -0,0 +1,1655 @@ +;A64 PAD application +;--------------------------------------------------------------------------------------------------------- +; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串 +; 描述gpio的形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态> +;--------------------------------------------------------------------------------------------------------- + +[product] +version = "100" +machine = "bpi-m64" + +;--------------------------------------------------------------------------------------------------------- +; eraseflag - 1 erase data partition, 0 - do not erase data partition +; next_work - action after burn, 0x0 by config, 0x1 normal, 0x2 reboot, 0x3 shutdown,0x4 reupdate ,0x5 boot +; debug_mode = 0 : do not print any message,debug_mode = 1 ,print debug message +;--------------------------------------------------------------------------------------------------------- +[platform] +eraseflag = 1 +next_work = 3 +debug_mode = 1 + +;--------------------------------------------------------------------------------------------------------- +; dragonboard_test default is 0,only in dragonboard card boot mode must be set 1 +; If you modified dragonboard_test flag,before you pack imgage, you must be build kernel again. +;--------------------------------------------------------------------------------------------------------- +[target] +boot_clock = 1008 +storage_type = -1 +burn_key = 1 +dragonboard_test = 0 + +;---------------------------------------------------------------------------------- +; 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 +;---------------------------------------------------------------------------------- + +[power_sply] +dcdc1_vol = 1003300 +dcdc2_vol = 1001200 +dcdc6_vol = 1001100 + +aldo1_vol = 2800 +aldo2_vol = 1003300 +aldo3_vol = 1003000 +dldo1_vol = 3300 +dldo2_vol = 3300 +dldo3_vol = 2800 +dldo4_vol = 3300 +eldo1_vol = 1001800 +eldo2_vol = 1800 +eldo3_vol = 1500 +fldo2_vol = 1001100 +gpio0_vol = 3300 +dc1sw_vol = 1002500 + +[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 = 0 +card_high_speed = 1 +card_line = 4 +sdc_d1 = port:PF0<2><1><2> +sdc_d0 = port:PF1<2><1><2> +sdc_clk = port:PF2<2><1><2> +sdc_cmd = port:PF3<2><1><2> +sdc_d3 = port:PF4<2><1><2> +sdc_d2 = port:PF5<2><1><2> + +[card2_boot_para] +;sdc_io_1v8 = 1 +card_ctrl = 2 +card_high_speed = 1 +card_line = 8 +sdc_ds = port:PC1<3><1><3> +sdc_clk = port:PC5<3><1><3> +sdc_cmd = port:PC6<3><1><3> +sdc_d0 = port:PC8<3><1><3> +sdc_d1 = port:PC9<3><1><3> +sdc_d2 = port:PC10<3><1><3> +sdc_d3 = port:PC11<3><1><3> +sdc_d4 = port:PC12<3><1><3> +sdc_d5 = port:PC13<3><1><3> +sdc_d6 = port:PC14<3><1><3> +sdc_d7 = port:PC15<3><1><3> +sdc_emmc_rst = port:PC16<3><1><3> +sdc_ex_dly_used = 2 + +[twi_para] +twi_port = 0 +twi_scl = port:PH0<2> +twi_sda = port:PH1<2> + +[uart_para] +uart_debug_port = 0 +uart_debug_tx = port:PB8<4><1> +uart_debug_rx = port:PB9<4><1> + +[jtag_para] +jtag_enable = 1 +jtag_ms = port:PB0<4> +jtag_ck = port:PB1<4> +jtag_do = port:PB2<4> +jtag_di = port:PB3<4> + +[clock] +pll4 = 300 +pll6 = 600 +pll8 = 360 +pll9 = 297 +pll10 = 264 + +;***************************************************************************** +;sdram configuration +; +;***************************************************************************** +[dram_para] + +dram_clk = 672 +dram_type = 3 +dram_zq = 0x3b3bbb +dram_odt_en = 0x1 +dram_para1 = 0x10E410E4 +dram_para2 = 0x1000 +dram_mr0 = 0x1840 +dram_mr1 = 0x40 +dram_mr2 = 0x18 +dram_mr3 = 0x2 +dram_tpr0 = 0x004A2195 +dram_tpr1 = 0x02424190 +dram_tpr2 = 0x0008B060 +dram_tpr3 = 0x050005dc +dram_tpr4 = 0x0 +dram_tpr5 = 0x0 +dram_tpr6 = 0x0 +dram_tpr7 = 0x2a066198 +dram_tpr8 = 0x0 +dram_tpr9 = 0x0 +dram_tpr10 = 0x8808 +dram_tpr11 = 0x0 +dram_tpr12 = 0x55550000 +dram_tpr13 = 0x04002900 + +;---------------------------------------------------------------------------------- +;os life cycle para configuration +;---------------------------------------------------------------------------------- + +;------------------------------------------------------------------------------; +; 10/100/100Mbps Ethernet MAC Controller Configure ; +;------------------------------------------------------------------------------; +; 配置选项: ; +; gmac_used --- 1: gmac used, 0: not used ; +; gmac_powerx -- A[:B] A: axp channel, B: voltage value ; +; phy-mode -- rgmii, rmii, mii ; +; tx-delay -- transmit clock delay: 0~7 ; +; rx-delay -- receive clock delay: 0~31 ; +;------------------------------------------------------------------------------; +; MII RGMII MII RGMII MII RGMII ; +;PD02~05 * * PD15 * PD22 * * ; +; PD06 * * PD16 PD23 * * ; +; PD07 * * PD17 PD24 ; +; PD08 PD18 * * PD25 ; +; PD09 PD19 * * PD26 ; +; PD10 * PD20 * PD26 ; +;PD11~14 * * PD21 * * PD28 ; +;------------------------------------------------------------------------------; +[gmac0] +gmac0_used = 1 +phy-mode = "rgmii" +gmac_rxd3 = port:PD08<4> +gmac_rxd2 = port:PD09<4> +gmac_rxd1 = port:PD10<4> +gmac_rxd0 = port:PD11<4> +gmac_txd3 = port:PD15<4> +gmac_txd2 = port:PD16<4> +gmac_txd1 = port:PD17<4> +gmac_txd0 = port:PD18<4> +gmac_rxclk = port:PD12<4> +;gmac_rxerr = port:PD14<4> +gmac_rxctl = port:PD13<4> +gmac_mdc = port:PD22<4> +gmac_mdio = port:PD23<4> +gmac_txen = port:PD20<4> +gmac_txclk = port:PD19<4> +gmac_crs = port:PD19<4> +gmac_ecol = port:PD21<4> +;gmac_txerr = port:PD21<4> +;phy-rst = port:PD14<1> +gmac-power0 = "vcc-gmac-33" +gmac-power1 = "" +gmac-power2 = "" +tx-delay = 4 +rx-delay = 0 + +;---------------------------------------------------------------------------------- +;i2c configuration +;---------------------------------------------------------------------------------- +[twi0] +twi0_used = 1 +twi0_scl = port:PH0<2> +twi0_sda = port:PH1<2> +twi_regulator = "vcc-io2" + +[twi0_suspend] +twi0_scl = port:PH0<7> +twi0_sda = port:PH1<7> + +[twi1] +twi1_used = 0 +twi1_scl = port:PH2<2> +twi1_sda = port:PH3<2> +twi_regulator = "vcc-io2" + +[twi1_suspend] +twi1_scl = port:PH2<7> +twi1_sda = port:PH3<7> + +[twi2] +twi2_used = 0 +twi2_scl = port:PE14<3> +twi2_sda = port:PE15<3> + +[twi2_suspend] +twi2_scl = port:PE14<7> +twi2_sda = port:PE15<7> + +;---------------------------------------------------------------------------------- +;TWI device configuration +;compatible --- device name +;reg --- device address +;---------------------------------------------------------------------------------- +;[twi0/twi_board0] +;compatible = +;reg = + +;---------------------------------------------------------------------------------- +;uart configuration +;uart_port --- x (/dev/ttySx, x=0,1,2,...) +;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:PB8<4><1> +uart0_rx = port:PB9<4><1> + +[uart0_suspend] +uart0_tx = port:PB8<7><1> +uart0_rx = port:PB9<7><1> + +[uart1] +uart1_used = 1 +uart1_port = 1 +uart1_type = 4 +uart1_tx = port:PG6<2><1> +uart1_rx = port:PG7<2><1> +uart1_rts = port:PG8<2><1> +uart1_cts = port:PG9<2><1> + +[uart1_suspend] +uart1_tx = port:PG6<7><1> +uart1_rx = port:PG7<7><1> +uart1_rts = port:PG8<7><1> +uart1_cts = port:PG9<7><1> + +[uart2] +uart2_used = 0 +uart2_port = 2 +uart2_type = 4 +uart2_tx = port:PB0<2><1> +uart2_rx = port:PB1<2><1> +uart2_rts = port:PB2<2><1> +uart2_cts = port:PB3<2><1> + +[uart2_suspend] +uart2_tx = port:PB0<7><1> +uart2_rx = port:PB1<7><1> +uart2_rts = port:PB2<7><1> +uart2_cts = port:PB3<7><1> + +[uart3] +uart3_used = 0 +uart3_port = 3 +uart3_type = 4 +uart3_tx = port:PH4<2><1> +uart3_rx = port:PH5<2><1> +uart3_rts = port:PH6<2><1> +uart3_cts = port:PH7<2><1> + +[uart3_suspend] +uart3_tx = port:PH4<7><1> +uart3_rx = port:PH5<7><1> +uart3_rts = port:PH6<7><1> +uart3_cts = port:PH7<7><1> + +[uart4] +uart4_used = 0 +uart4_port = 4 +uart4_type = 4 +uart4_tx = port:PD2<3><1> +uart4_rx = port:PD3<3><1> +uart4_rts = port:PD4<3><1> +uart4_cts = port:PD5<3><1> + +[uart4_suspend] +uart4_tx = port:PD2<7><1> +uart4_rx = port:PD3<7><1> +uart4_rts = port:PD4<7><1> +uart4_cts = port:PD5<7><1> + +;---------------------------------------------------------------------------------- +;SPI controller configuration +;---------------------------------------------------------------------------------- +[spi0] +spi0_used = 0 +spi0_cs_number = 1 +spi0_cs_bitmap = 1 +spi0_cs0 = port:PC3<4><1> +spi0_sclk = port:PC2<4> +spi0_mosi = port:PC0<4> +spi0_miso = port:PC1<4> + +[spi0_suspend] +spi0_cs0 = port:PC3<7><1> +spi0_sclk = port:PC2<7> +spi0_mosi = port:PC0<7> +spi0_miso = port:PC1<7> + +[spi1] +spi1_used = 0 +spi1_cs_number = 1 +spi1_cs_bitmap = 1 +spi1_cs0 = port:PD0<4><1> +spi1_sclk = port:PD1<4> +spi1_mosi = port:PD2<4> +spi1_miso = port:PD3<4> + +[spi1_suspend] +spi1_cs0 = port:PD0<7><1> +spi1_sclk = port:PD1<7> +spi1_mosi = port:PD2<7> +spi1_miso = port:PD3<7> + +;---------------------------------------------------------------------------------- +;SPI device configuration +;compatible --- device name +;spi-max-frequency --- work frequency +;reg --- chip select +;optional properties: spi-cpha, spi-cpol, spi-cs-high +;---------------------------------------------------------------------------------- +;[spi0/spi_board0] +;compatible = +;spi-max-frequency = +;reg = +;spi-cpha +;spi-cpol +;spi-cs-high + +;---------------------------------------------------------------------------------- +;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 = "bpi_lcd7" +ctp_twi_id = 0 +ctp_twi_addr = 0x5d +ctp_screen_max_x = 800 +ctp_screen_max_y = 480 +ctp_revert_x_flag = 0 +ctp_revert_y_flag = 0 +ctp_exchange_x_y_flag = 0 + +ctp_int_port = port:PH04<6> +ctp_wakeup = port:PH08<1> +ctp_power_ldo = "" +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 = 1 +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 = 0 +motor_shake = port:power3<1><1> + +;---------------------------------------------------------------------------------- +; nand0_dragonboard default is 0,only in dragonboard card boot mode must be set 1 +;---------------------------------------------------------------------------------- +[nand0_para] +nand0_dragonboard = 0 +nand0_support_2ch = 0 + +nand0_used = 1 +nand0_we = port:PC00<2><0><1> +nand0_ale = port:PC01<2><0><1> +nand0_cle = port:PC02<2><0><1> +nand0_ce1 = port:PC03<2><1><1> +nand0_ce0 = port:PC04<2><1><1> +nand0_nre = port:PC05<2><0><1> +nand0_rb0 = port:PC06<2><1><1> +nand0_rb1 = port:PC07<2><1><1> +nand0_d0 = port:PC08<2><0><1> +nand0_d1 = port:PC09<2><0><1> +nand0_d2 = port:PC10<2><0><1> +nand0_d3 = port:PC11<2><0><1> +nand0_d4 = port:PC12<2><0><1> +nand0_d5 = port:PC13<2><0><1> +nand0_d6 = port:PC14<2><0><1> +nand0_d7 = port:PC15<2><0><1> +nand0_ndqs = port:PC16<2><0><1> +nand0_ce2 = port:PC17<2><1><1> +nand0_ce3 = port:PC18<2><1><1> + +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) +;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 (0:ARGB 1:ABGR 2:RGBA 3:BGRA 5:RGB565 8:RGB888 12:ARGB4444 16:ARGB1555 18:RGBA5551) +;fbx_width,fbx_height (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0) +;---------------------------------------------------------------------------------- +[disp] +disp_init_enable = 1 +disp_mode = 0 + +screen0_output_type = 3 +screen0_output_mode = 5 + +screen1_output_type = 3 +screen1_output_mode = 5 + +fb0_format = 0 +fb0_width = 0 +fb0_height = 0 + +fb1_format = 0 +fb1_width = 0 +fb1_height = 0 + +;---------------------------------------------------------------------------------- +;lcd0 configuration + +;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:dsi; 5:edp +;lcd_backlight lcd init backlight +;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_hv_clk_phase lcd hv panel lock phase, 0:0 degree; 1:90 degree; 2: 180 degree; 3: 270 degree +;lcd_hv_sync_polarity lcd hv panel sync signals polarity +; 0:vsync active low, hsync active low; 1:vsync active high, hsync active low +; 2:vsync active low, hsync active high; 3:vsync active high, hsync active high +;lcd_gamma_en lcd gamma correction enable +;lcd_bright_curve_en lcd bright curve correction enable +;lcd_cmap_en lcd color map function enable +;---------------------------------------------------------------------------------- +[lcd0] +lcd_used = 1 + +lcd_driver_name = "S070WV20_MIPI_RGB" +;lcd_model_name= "LT080B21BA94" +lcd_backlight = 100 +lcd_if = 4 +lcd_x = 800 +lcd_y = 480 +lcd_width = 86 +lcd_height = 154 +lcd_dclk_freq = 30 +lcd_pwm_used = 1 +lcd_pwm_ch = 16 +lcd_pwm_freq = 50000 +lcd_bl_0_percent = 50 +lcd_pwm_pol = 1 +lcd_pwm_max_limit = 255 +lcd_hbp = 88 +lcd_ht = 928 +lcd_hspw = 48 +lcd_vbp = 32 +lcd_vt = 525 +lcd_vspw = 3 +lcd_lvds_if = 0 +lcd_lvds_colordepth = 0 +lcd_lvds_mode = 0 +lcd_frm = 0 +lcd_hv_clk_phase = 0 +lcd_hv_sync_polarity= 0 +lcd_dsi_if = 0 +lcd_dsi_lane = 4 +lcd_dsi_format = 0 +lcd_dsi_te = 0 +lcd_gamma_en = 0 +lcd_bright_curve_en = 0 +lcd_cmap_en = 0 + +;rst +lcd_gpio_0 = port:PD6<1><0><1> + +;power enable +lcd_gpio_1 = port:PD7<1><0><1> +lcd_bl_en = port:PD5<1><0><1> + +lcd_power = "vcc-dsi-33" +;lcd_power1 = "vcc-lcd" +;lcd_fix_power = "vcc-dsi-33" +lcd_pin_power = "vcc-pd" + + +[hdmi] +hdmi_used = 1 +hdmi_power = "vcc-hdmi-33" +hdmi_hdcp_enable = 0 +hdmi_cts_compatibility = 0 + +;---------------------------------------------------------------------------------- +;pwm config +;---------------------------------------------------------------------------------- +[pwm0] +pwm_used = 0 +pwm_positive = port:PD22<2><0> + +[pwm0_suspend] +pwm_positive = port:PD22<7><0> + +[spwm0] +s_pwm_used = 1 +pwm_positive = port:PL10<2><0> + +[spwm0_suspend] +pwm_positive = port:PL10<7><0> + +[boot_disp] +output_disp = 0 +output_type = 3 +output_mode = 5 + +;-------------------------------------------------------------------------------- +;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 +;-------------------------------------------------------------------------------- + +[csi0] +csi0_used = 1 +csi0_sensor_list = 1 +csi0_pck = port:PE00<2> +csi0_mck = port:PE01<2> +csi0_hsync = port:PE02<2> +csi0_vsync = port:PE03<2> +csi0_d0 = port:PE04<2> +csi0_d1 = port:PE05<2> +csi0_d2 = port:PE06<2> +csi0_d3 = port:PE07<2> +csi0_d4 = port:PE08<2> +csi0_d5 = port:PE09<2> +csi0_d6 = port:PE10<2> +csi0_d7 = port:PE11<2> +csi0_sck = port:PE12<2> +csi0_sda = port:PE13<2> + +[csi0/csi0_dev0] +csi0_dev0_used = 1 +csi0_dev0_mname = "ov5640" +csi0_dev0_twi_addr = 0x78 +csi0_dev0_pos = "rear" +csi0_dev0_isp_used = 1 +csi0_dev0_fmt = 0 +csi0_dev0_stby_mode = 0 +csi0_dev0_vflip = 1 +csi0_dev0_hflip = 1 +csi0_dev0_iovdd = "iovdd-csi" +csi0_dev0_iovdd_vol = 2800000 +csi0_dev0_avdd = "avdd-csi" +csi0_dev0_avdd_vol = 2800000 +csi0_dev0_dvdd = "dvdd-csi-18" +csi0_dev0_dvdd_vol = 1500000 +csi0_dev0_afvdd = "afvcc-csi" +csi0_dev0_afvdd_vol = 2800000 +;csi0_dev0_power_en = port:PB04<1><0><1><0> +csi0_dev0_power_en = +csi0_dev0_reset = port:PE16<1><0><1><0> +csi0_dev0_pwdn = port:PE17<1><0><1><0> +csi0_dev0_flash_used = 0 +csi0_dev0_flash_type = 2 +csi0_dev0_flash_en = +csi0_dev0_flash_mode = +csi0_dev0_flvdd = "" +csi0_dev0_flvdd_vol = +csi0_dev0_af_pwdn = +csi0_dev0_act_used = 1 +csi0_dev0_act_name = "ad5820_act" +csi0_dev0_act_slave = 0x18 + +[csi0/csi0_dev1] +csi0_dev1_used = 0 +csi0_dev1_mname = "gc0312" +csi0_dev1_twi_addr = 0x42 +csi0_dev1_pos = "front" +csi0_dev1_isp_used = 1 +csi0_dev1_fmt = 0 +csi0_dev1_stby_mode = 0 +csi0_dev1_vflip = 0 +csi0_dev1_hflip = 0 +csi0_dev1_iovdd = "iovdd-csi" +csi0_dev1_iovdd_vol = 2800000 +csi0_dev1_avdd = "avdd-csi" +csi0_dev1_avdd_vol = 2800000 +csi0_dev1_dvdd = "dvdd-csi-18" +csi0_dev1_dvdd_vol = 1500000 +csi0_dev1_afvdd = "afvcc-csi" +csi0_dev1_afvdd_vol = 2800000 +csi0_dev1_power_en = +csi0_dev1_reset = port:PE16<1><0><1><0> +csi0_dev1_pwdn = port:PE17<1><0><1><0> +csi0_dev1_flash_used = 0 +csi0_dev1_flash_type = 2 +csi0_dev1_flash_en = +csi0_dev1_flash_mode = +csi0_dev1_flvdd = "" +csi0_dev1_flvdd_vol = +csi0_dev1_af_pwdn = +csi0_dev1_act_used = 0 +csi0_dev1_act_name = "ad5820_act" +csi0_dev1_act_slave = 0x18 + +;-------------------------------------------------------------------------------- +;tv configuration +; +;-------------------------------------------------------------------------------- +[tvout_para] +tvout_used = +tvout_channel_num = +tv_en = + +[tvin_para] +tvin_used = +tvin_channel_num = + +; ------------------------------------------------------------------------------| +; de-interlace configuration +;-------------------------------------------------------------------------------- +[di] +di_used = 0 + +;-------------------------------------------------------------------------------- +; SDMMC PINS MAPPING | +; ------------------------------------------------------------------------------| +; Config Guide | +; sdc_used: 1-enable card, 0-disable card | +; non-removable:if you use as main memory,you should set it,for example eMMC | +; bus-width: card bus width, 1-1bit, 4-4bit, 8-8bit | +; sunxi-power-save-mode: if use sdio card,should not set it | +; vmmc:regulator for card/emmc power | +; vqmmc:regulator for card/emmc io power | +; vdmmc:regulator for card detect pin pull up power | +; other: GPIO Mapping configuration | +; ------------------------------------------------------------------------------| +; Note: | +; | +; | +; | +; | +; | +; | +;-------------------------------------------------------------------------------- + +[sdc0] +sdc0_used = 1 +bus-width = 4 +sdc0_d1 = port:PF00<2><1><2> +sdc0_d0 = port:PF01<2><1><2> +sdc0_clk = port:PF02<2><1><2> +sdc0_cmd = port:PF03<2><1><2> +sdc0_d3 = port:PF04<2><1><2> +sdc0_d2 = port:PF05<2><1><2> +cd-gpios = port:PF06<0><1><2> +sunxi-power-save-mode = +sunxi-dis-signal-vol-sw = +vmmc="vcc-sdcv" +vqmmc="vcc-sdcvq33" +vdmmc="vcc-sdcvd" + + +[sdc1] +sdc1_used = 1 +bus-width = 4 +sdc1_clk = port:PG00<2><1><3> +sdc1_cmd = port:PG01<2><1><3> +sdc1_d0 = port:PG02<2><1><3> +sdc1_d1 = port:PG03<2><1><3> +sdc1_d2 = port:PG04<2><1><3> +sdc1_d3 = port:PG05<2><1><3> +;sunxi-power-save-mode = +sd-uhs-sdr50 = +sd-uhs-ddr50 = +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_ds = port:PC01<3><1><3> +sdc2_clk = port:PC05<3><1><3> +sdc2_cmd = port:PC06<3><1><3> +sdc2_d0 = port:PC08<3><1><3> +sdc2_d1 = port:PC09<3><1><3> +sdc2_d2 = port:PC10<3><1><3> +sdc2_d3 = port:PC11<3><1><3> +sdc2_d4 = port:PC12<3><1><3> +sdc2_d5 = port:PC13<3><1><3> +sdc2_d6 = port:PC14<3><1><3> +sdc2_d7 = port:PC15<3><1><3> +sdc2_emmc_rst = port:PC16<3><1><3> +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 = 100000000 +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-emmcv" +;vqmmc="vcc-emmcvq33" +vqmmc="vcc-emmcvq18" +vdmmc="none" + + +;[mmc3] +;mmc3_used = 0 +;mmc3_detmode = 2 +;mmc3_buswidth = 4 +;mmc3_clk = port:PA10<2><1><2> +;mmc3_cmd = port:PA09<2><1><2> +;mmc3_d0 = port:PA11<2><1><2> +;mmc3_d1 = port:PA12<2><1><2> +;mmc3_d2 = port:PA13<2><1><2> +;mmc3_d3 = port:PA14<2><1><2> +;mmc3_det = +;mmc3_use_wp = 0 +;mmc3_wp = +;mmc3_isio = 0 +;mmc3_regulator = "none" + +; ------------------------------------------------------------------------------| +; sim card configuration +;-------------------------------------------------------------------------------- +[smc] +smc_used = +smc_rst = +smc_vppen = +smc_vppp = +smc_det = +smc_vccen = +smc_sck = +smc_sda = + +;-------------------------------- +;[usbc0]: usbc0 configuration. +;usb_used: usb controller enable. 0-disable, 1-enable. +;usb_port_type: usb mode. 0-device, 1-host, 2-otg. +;usb_detect_type: usb hotplug detect mode. 0-none, 1-vbus/id detect, 2-id/dpdm detect. +;usb_detect_mode: usb otg switch has two config. 0-thread scan, 1-id gpio interrupt. +;usb_id_gpio: usb id detect IO. +;usb_det_vbus_gpio: USB DET_VBUS has two config. (1)gpio pin; (2)"axp_ctrl", use axp intf. +;usb_drv_vbus_gpio: USB DRY_VBUS has two config. (1)gpio pin; (2)"axp_ctrl", use axp intf. +;-------------------------------- +;-------------------------------- +;--- USB0 CONFIG +;-------------------------------- +[usbc0] +usbc0_used = 1 +usb_port_type = 2 +usb_detect_type = 1 +usb_detect_mode = 0 +usb_id_gpio = port:PH09<0><1> +usb_det_vbus_gpio = "axp_ctrl" +usb_drv_vbus_gpio = "axp_ctrl" +usb_host_init_state = 0 +usb_regulator_io = "nocare" +usb_wakeup_suspend = 0 +;--- USB Device +usb_luns = 3 +usb_serial_unique = 1 +usb_serial_number = "20080411" +rndis_wceis = 1 + +;-------------------------------- +;--- USB1 CONFIG +;-------------------------------- +[usbc1] +usbc1_used = 1 +usb_drv_vbus_gpio = +usb_host_init_state = 1 +usb_regulator_io = "nocare" +usb_wakeup_suspend = 0 +;--- HSIC config +usb_hsic_used = 0 +usb_hsic_regulator_io = "vcc-hsic-12" +;--- Marvell 4G HSIC +usb_hsic_ctrl = 0 +usb_hsic_rdy_gpio = +;--- SMSC usb3503 HSIC HUB +usb_hsic_usb3503_flag = 0 +usb_hsic_hub_connect_gpio = +usb_hsic_int_n_gpio = +usb_hsic_reset_n_gpio = + +;-------------------------------- +;--- 序列号标志 +;-------------------------------- +[serial_feature] +sn_filename = "ULI/factory/snum.txt" + +;-------------------------------------------------------------------------------- +; G sensor configuration +; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2) +;-------------------------------------------------------------------------------- +[gsensor] +compatible = "allwinner,sun50i-gsensor-para" +gsensor_used = 0 +gsensor_twi_id = 1 +gsensor_twi_addr = 0x18 +gsensor_vcc_io = "vcc-io2" +gsensor_vcc_io_val = 3300 +gsensor_int1 = port:PH05<6><1> +gsensor_int2 = port:PH06<6><1> + +;-------------------------------------------------------------------------------- +; G sensor automatic detection configuration +;gsensor_detect_used --- Whether startup automatic inspection function. 1:used,0:unused +;Module name postposition 1 said detection, 0 means no detection. +;-------------------------------------------------------------------------------- +[gsensor_list] +compatible = "allwinner,sun50i-gsensor-list-para" +gsensor_list_used = 0 +lsm9ds0_acc_mag = 0 +bma250 = 1 +mma8452 = 0 +mma7660 = 0 +mma865x = 0 +afa750 = 0 +lis3de_acc = 0 +lis3dh_acc = 0 +kxtik = 0 +dmard10 = 0 +dmard06 = 0 +mxc622x = 0 +fxos8700 = 0 +lsm303d = 0 +sc7a30 = 0 +mir3da = 1 + +;-------------------------------------------------------------------------------- +;wlan configuration +;wlan_used: 0-not use, 1- use +;wlan_busnum: sdio/usb index +;clocks: external low power clock input (32.768KHz) +;wlan_power: input supply voltage +;wlan_io_regulator: wlan/sdio I/O voltage +;wlan_regon: power up/down internal regulators used by wifi section +;wlan_hostwake: wlan to wake-up host +;-------------------------------------------------------------------------------- +[wlan] +compatible = "allwinner,sunxi-wlan" +wlan_used = 1 +wlan_busnum = 1 +;clocks = +wlan_power = "vcc-wifi" +wlan_io_regulator = "vcc-wifi-io" +wlan_regon = port:PL02<1><0> +wlan_hostwake = port:PL03<6><0> + +;-------------------------------------------------------------------------------- +;bluetooth configuration +;bt_used: 0- no used, 1- used +;clocks: external low power clock input (32.768KHz) +;bt_power: input supply voltage +;bt_io_regulator: bluetooth I/O voltage +;bt_rst_n: power up/down internal regulators used by BT section +;-------------------------------------------------------------------------------- +[bt] +compatible = "allwinner,sunxi-bt" +bt_used = 1 +;clocks = +bt_power = "vcc-wifi" +bt_io_regulator = "vcc-wifi-io" +bt_rst_n = port:PL04<1><0> + +;-------------------------------------------------------------------------------- +;bluetooth lpm configuration +;btlpm_used: 0- no used, 1- used +;uart_index: 0- uart0, 1- uart1, 2- uart2 +;bt_wake: host wake-up bluetooth device +;bt_hostwake: bt device wake-up host +;-------------------------------------------------------------------------------- +[btlpm] +compatible = "allwinner,sunxi-btlpm" +btlpm_used = 1 +uart_index = 1 +bt_wake = port:PL06<1><1> +bt_hostwake = port:PL05<6><0> + +;-------------------------------------------------------------------------------- +;3G configuration +;-------------------------------------------------------------------------------- +[3g_para] +3g_used = 0 +3g_usbc_num = 2 +3g_uart_num = 0 +bb_vbat = port:PL03<1><0> +bb_host_wake = port:PM00<1><0> +bb_on = port:PM01<1><0> +bb_pwr_on = port:PM03<1><0> +bb_wake = port:PM04<1><0> +bb_rf_dis = port:PM05<1><0> +bb_rst = port:PM06<1><0> +3g_int = + +;-------------------------------------------------------------------------------- +;gyroscope +;-------------------------------------------------------------------------------- +[gyroscopesensor] +compatible ="allwinner,sun50i-gyr_sensors-para" +gyroscopesensor_used = 0 +gy_twi_id = 2 +gy_twi_addr = 0x6a +gy_int1 = port:PA10<6><1> +gy_int2 = + +;-------------------------------------------------------------------------------- +; Gyro automatic detection configuration +;gy_detect_used --- Whether startup automatic inspection function. 1:used,0:unused +;Module name postposition 1 said detection, 0 means no detection. +;-------------------------------------------------------------------------------- +[gy_list] +compatible ="allwinner,sun50i-gyr_sensors-list-para" +gy_list_used = 0 +lsm9ds0_gyr = 1 +l3gd20_gyr = 0 +bmg160_gyr = 1 + + +;-------------------------------------------------------------------------------- +;light sensor +;-------------------------------------------------------------------------------- +[lightsensor] +compatible ="allwinner,sun50i-lsensors-para" +lightsensor_used =0 +ls_twi_id = 2 +ls_twi_addr = 0x23 +ls_int = port:PA12<6><1> + +;-------------------------------------------------------------------------------- +; lsensor automatic detection configuration +;ls_detect_used --- Whether startup automatic inspection function. 1:used,0:unused +;Module name postposition 1 said detection, 0 means no detection. +;-------------------------------------------------------------------------------- +[ls_list] +compatible ="allwinner,sun50i-lsensors-list-para" +ls_list_used =0 +ltr_501als = 1 +jsa1212 = 0 +jsa1127 = 1 +stk3x1x = 0 + +;-------------------------------------------------------------------------------- +;compass +;-------------------------------------------------------------------------------- +[compasssensor] +compatible ="allwinner,sun50i-compass-para" +compasssensor_used = 0 +compass_twi_id = 2 +compass_twi_addr = 0x0d +compass_int = port:PA11<6><1> + + +;-------------------------------------------------------------------------------- +; compass sensor automatic detection configuration +;compass_detect_used --- Whether startup automatic inspection function. 1:used,0:unused +;Module name postposition 1 said detection, 0 means no detection. +;-------------------------------------------------------------------------------- +[compass_list] +compatible ="allwinner,sun50i-compass-list-para" +compass_list_used = 0 +lsm9ds0 = 1 +lsm303d = 0 +;akm8963 = 1 + +;-------------------------------------------------------------------------------- +; NOTE :Make sure spdif_used = 0x1,spdifmach_used = 0x1, +; if register the sound card spdif. +;-------------------------------------------------------------------------------- +[spdif] +spdif_used = 0 +[sndspdif] +sndspdif_used = 0 +;---------------------------------------------------------------------------------- +; NOTE :Make sure daudio2_used = 0x1,sndhdmi_used = 0x1, +; if register the sound card hdmi. +;--------------------------------------------------------------------------------- +[daudio2] +daudio2_used = 1 +[sndhdmi] +sndhdmi_used = 1 +;-------------------------------------------------------------------------------- +;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: long frame = 2 clock width; 1: short frame +;allwinner,tdm_config :0:pcm 1:i2s +;allwinner,daudio_regulator : regulator name +;allwinner,daudio0_used :0:not use 1:use +;-------------------------------------------------------------------------------- +; NOTE :Make sure snddaudio0_used = 0x1,daudio1_used = 0x1, +; if register the sound card DAUDIO1. +;-------------------------------------------------------------------------------- +[snddaudio0] +snddaudio0_used = 0 +;----------------------------------------------------------------------------- +[daudio0] +pcm_lrck_period = 0x20 +;pcm_lrckr_period = 0x01 +slot_width_select = 0x20 +;pcm_lsb_first = 0x0 +;tx_data_mode = 0x0 +;rx_data_mode = 0x0 +daudio_master = 0x04 +audio_format = 0x01 +signal_inversion = 0x01 +frametype = 0x0 +tdm_config = 0x01 +daudio_regulator = +daudio0_used = 0 + +;------------------------------------------------------------------------------- +; NOTE :Make sure snddaudio1_used = 0x1,daudio0_used = 0x1, +; if register the sound card DAUDIO0. +;-------------------------------------------------------------------------------- +[snddaudio1] +snddaudio1_used = 0 +;----------------------------------------------------------------------------- +[daudio1] +pcm_lrck_period = 0x20 +;pcm_lrckr_period = 0x01 +slot_width_select = 0x20 +;pcm_lsb_first = 0x0 +;tx_data_mode = 0x0 +;rx_data_mode = 0x0 +daudio_master = 0x04 +audio_format = 0x01 +signal_inversion = 0x01 +frametype = 0x0 +tdm_config = 0x01 +daudio_regulator = +daudio1_used = 0 + +;-------------------------------------------------------------------------------------- +;allwinner,headphonevol :headphone volume:0x0--0x3f 0db--(-62db) 1db/step +;allwinner,spkervol : speaker volume:0x0--0x1f 0db-(-43.5db) 1.5db/step +;allwinner,earpiecevol : earpiece volume:0x0--0x1f 0db-(-43.5db) 1.5db/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 :0:low 1:high +;-------------------------------------------------------------------------------- +; 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 = 0x1 +;------------------------------------------------------------------------------ +[i2s] +i2s_used = 0x1 +;------------------------------------------------------------------------------- +[codec] +codec_used = 0x1 +headphonevol = 0x38 +spkervol = 0x18 +earpiecevol = 0x1e +maingain = 0x7 +headsetmicgain = 0x4 +adcinputgain = 0x7 +adcagc_cfg = 0x0 +adcdrc_cfg = 0x0 +adchpf_cfg = 0x1 +dacdrc_cfg = 0x0 +dachpf_cfg = 0x0 +aif2config = 0x0 +aif3config = 0x0 +aif1_lrlk_div = 0x40 +aif2_lrlk_div = 0x40 +pa_sleep_time = 0x0a +dac_digital_vol = 0xa0a0 +gpio-spk = port:PD14<1><0><0> + +;---------------------------------------------------------------------------------- +;ir --- infra remote configuration +;---------------------------------------------------------------------------------- +[s_cir0] +s_cir0_used = 1 +supply = "vcc-cir" +supply_vol = 3300000 +ir_protocol_used = 0 +ir_power_key_code = 116 +ir_addr_code = 0x17c612 + +;-------------------------------------------------------------------------------------------------------- +;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 +;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 +;-------------------------------------------------------------------------------------------------------- +[pmu0] +compatible = "axp803" +used = 1 +pmu_id = 6 +pmu_vbusen_func = 0 +pmu_reset = 0 +pmu_irq_wakeup = 1 +pmu_hot_shutdown = 1 +pmu_inshort = 0 + +;-------------------------------------------------------------------------------------------------------- +;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/4220/4200/4240 +;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_init_bc_en ---set cur by bc1.2 0:disable 1:enable +;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 = "axp803-charger" +pmu_bat_unused = 1 +pmu_chg_ic_temp = 0 +pmu_battery_rdc = 125 +pmu_battery_cap = 3700 +pmu_runtime_chgcur = 800 +pmu_suspend_chgcur = 1300 +pmu_shutdown_chgcur = 1300 +pmu_init_chgvol = 4350 +pmu_ac_vol = 4000 +pmu_ac_cur = 3500 +pmu_usbpc_vol = 4400 +pmu_usbpc_cur = 500 +pmu_battery_warning_level1 = 15 +pmu_battery_warning_level2 = 0 +pmu_chgled_func = 1 +pmu_chgled_type = 0 +power_start = 0 +pmu_ocv_en = 1 +pmu_cou_en = 1 +pmu_update_min_time = 30 +pmu_init_bc_en = 0 +;pmu_init_chgend_rate = 10 + +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 = 1 +pmu_bat_para8 = 1 +pmu_bat_para9 = 2 +pmu_bat_para10 = 3 +pmu_bat_para11 = 6 +pmu_bat_para12 = 9 +pmu_bat_para13 = 19 +pmu_bat_para14 = 31 +pmu_bat_para15 = 41 +pmu_bat_para16 = 44 +pmu_bat_para17 = 48 +pmu_bat_para18 = 52 +pmu_bat_para19 = 55 +pmu_bat_para20 = 59 +pmu_bat_para21 = 64 +pmu_bat_para22 = 69 +pmu_bat_para23 = 72 +pmu_bat_para24 = 75 +pmu_bat_para25 = 78 +pmu_bat_para26 = 81 +pmu_bat_para27 = 83 +pmu_bat_para28 = 85 +pmu_bat_para29 = 89 +pmu_bat_para30 = 92 +pmu_bat_para31 = 97 +pmu_bat_para32 = 100 + +pmu_bat_temp_enable = 1 +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 + +;-------------------------------------------------------------------------------------------------------- +;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 = "axp803-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 = "axp803-regulator" +regulator_count = 23 +regulator1 = "axp803_dcdc1 none vcc-nand vcc-emmc vcc-sdc vcc-usb-30 vcc-io vcc-emmcv vcc-emmcvq33 vcc-sdcvq33 vcc-sdcv vcc-sdcvd" +regulator2 = "axp803_dcdc2 none vdd-cpua" +regulator3 = "axp803_dcdc3 none" +regulator4 = "axp803_dcdc4 none" +regulator5 = "axp803_dcdc5 none vcc-dram" +regulator6 = "axp803_dcdc6 none vdd-sys vdd-gpu" +regulator7 = "axp803_dcdc7 none" +regulator8 = "axp803_rtc none" +regulator9 = "axp803_aldo1 none vdd-csi-led afvcc-csi iovdd-csi " +regulator10 = "axp803_aldo2 none vcc-pl" +regulator11 = "axp803_aldo3 none vcc-avcc vcc-pll" +regulator12 = "axp803_dldo1 none vcc-hdmi-33 vcc-dsi-33 vcc-io2" +regulator13 = "axp803_dldo2 none vcc-wifi" +regulator14 = "axp803_dldo3 none avdd-csi" +regulator15 = "axp803_dldo4 none vcc-wifi-io vcc-pg" +regulator16 = "axp803_eldo1 none vcc-cpvdd vcc-pc vcc-emmcvq18" +regulator17 = "axp803_eldo2 none vcc-lcd-0" +regulator18 = "axp803_eldo3 none dvdd-csi-18" +regulator19 = "axp803_fldo1 none vcc-hsic-12" +regulator20 = "axp803_fldo2 none vdd-cpus"; +regulator21 = "axp803_gpio0ldo none vcc-cir" +regulator22 = "axp803_gpio1ldo none " +regulator23 = "axp803_dc1sw none vcc-pd vcc-gmac-33" + +;-------------------------------------------------------------------------------------------------------- +;compatible ---axp_gpio0 name, support:axp803-gpio +;-------------------------------------------------------------------------------------------------------- +[axp_gpio0] +compatible = "axp803-gpio" +;---------------------------------------------------------------------------------- +;recovery and fastboot key +;---------------------------------------------------------------------------------- +[recovery_key] +key_min = 0x3 +key_max = 0x5 +;---------------------------------------------------------------------------------- +[fastboot_key] +key_max = 0x6 +key_min = 0x4 + +;---------------------------------------------------------------------------------- +; dvfs voltage-frequency table configuration +; +; max_freq: cpu maximum frequency, based on Hz +; min_freq: cpu minimum frequency, based on Hz +; +; lv_count: count of lv_freq/lv_volt, must be < 16 +; +; lv1: core vdd is 1.30v if cpu frequency is (1104Mhz, 1152Mhz] +; lv2: core vdd is 1.26v if cpu frequency is (1008Mhz, 1104Mhz] +; lv3: core vdd is 1.20v if cpu frequency is (816Mhz, 1008Mhz] +; lv4: core vdd is 1.10v if cpu frequency is (648Mhz, 816Mhz] +; lv5: core vdd is 1.04v if cpu frequency is (480Mhz, 648Mhz] +; lv6: core vdd is 1.04v if cpu frequency is (480Mhz, 648Mhz] +; lv7: core vdd is 1.04v if cpu frequency is (480Mhz, 648Mhz] +; lv8: core vdd is 1.04v if cpu frequency is (480Mhz, 648Mhz] +; +;---------------------------------------------------------------------------------- +[dvfs_table] +;extremity_freq = 1344000000 +vf_table_count = 2 + +[vf_table1] +max_freq = 1152000000 +min_freq = 480000000 + +lv_count = 8 +lv1_freq = 1152000000 +lv1_volt = 1300 + +lv2_freq = 1104000000 +lv2_volt = 1260 + +lv3_freq = 1008000000 +lv3_volt = 1200 + +lv4_freq = 816000000 +lv4_volt = 1100 + +lv5_freq = 648000000 +lv5_volt = 1040 + +lv6_freq = 0 +lv6_volt = 1040 + +lv7_freq = 0 +lv7_volt = 1040 + +lv8_freq = 0 +lv8_volt = 1040 + +[vf_table2] +max_freq = 1152000000 +min_freq = 480000000 + +lv_count = 8 +lv1_freq = 1152000000 +lv1_volt = 1260 + +lv2_freq = 1104000000 +lv2_volt = 1200 + +lv3_freq = 1008000000 +lv3_volt = 1140 + +lv4_freq = 816000000 +lv4_volt = 1060 + +lv5_freq = 648000000 +lv5_volt = 1000 + +lv6_freq = 0 +lv6_volt = 1000 + +lv7_freq = 0 +lv7_volt = 1000 + +lv8_freq = 0 +lv8_volt = 1000 + +;---------------------------------------------------------------------------------- +;s_uart0 config parameters +;s_uart0_used --s_uart0 whether used for arisc debugging +; +;---------------------------------------------------------------------------------- +[s_uart0] +s_uart0_used = 1 +s_uart0_tx = port:PL02<2> +s_uart0_rx = port:PL03<2> + +;---------------------------------------------------------------------------------- +;s_rsb0 config parameters +;s_rsb0_used --s_rsb0 whether used for arisc +; +;---------------------------------------------------------------------------------- +[s_rsb0] +s_rsb0_used = 1 +s_rsb0_sck = port:PL00<2><1><2> +s_rsb0_sda = port:PL01<2><1><2> + +;---------------------------------------------------------------------------------- +;s_jtag0 config parameters +;s_jtag0_used --s_jtag0 whether used for arisc +; +;---------------------------------------------------------------------------------- +[s_jtag0] +s_jtag0_used = 0 +s_jtag0_tms = port:PL04<2><1><2> +s_jtag0_tck = port:PL05<2><1><2> +s_jtag0_tdo = port:PL06<2><1><2> +s_jtag0_tdi = port:PL07<2><1><2> + +;---------------------------------------------------------------------------------- +;virtual device +;virtual device for pinctrl testing +;device have pin PA1 PA2 +;---------------------------------------------------------------------------------- +[Vdevice] +Vdevice_used = 1 +Vdevice_0 = port:PB01<4><1><2> +Vdevice_1 = port:PB02<4><1><2> + +;---------------------------------------------------------------------------------- +;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_freq : frequency in MHz of certain level. +;lv_volt : voltage in mV of certain level. +;---------------------------------------------------------------------------------- +[gpu] +regulator_id = "vdd-gpu" +dvfs_status = 0 +temp_ctrl_status = 0 +scene_ctrl_status = 0 + +max_level = 3 +begin_level = 3 + +lv0_freq = 144 +lv0_volt = 1100 + +lv1_freq = 264 +lv1_volt = 1100 + +lv2_freq = 384 +lv2_volt = 1100 + +lv3_freq = 456 +lv3_volt = 1100 + +;---------------------------------------------------------------------------------- +;dram_region_mbytes : Widevine L1 set 64Mbyte,Widevine L3 set 0Mbyte to save ram +;drm_region_mbytes : Widevine L1 set 64Mbyte,Widevine L3 set 0Mbyte to save ram +;---------------------------------------------------------------------------------- +[secure] +dram_region_mbytes = 0 +drm_region_mbytes = 0 +drm_region_start_mbytes = 0 +;---------------------------------------------------------------------------------- diff --git a/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/sys_partition.fex b/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/sys_partition.fex new file mode 100644 index 0000000000..2e1d7a6efe --- /dev/null +++ b/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/sys_partition.fex @@ -0,0 +1,134 @@ +;--------------------------------------------------------------------------------------------------- +; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串 +;--------------------------------------------------------------------------------------------------- + + +;--------------------------------------------------------------------------------------------------- +; 固件下载参数配置 +;--------------------------------------------------------------------------------------------------- +;*************************************************************************************************** +; mbr的大小, 以Kbyte为单位 +;*************************************************************************************************** +[mbr] +size = 16384 + +;*************************************************************************************************** +; 分区配置 +; +; +; partition 定义范例: +; [partition] ; //表示是一个分区 +; name = USERFS2 ; //分区名称 +; size = 16384 ; //分区大小 单位: 扇区.分区表示个数最多2^31 * 512 = 2T +; downloadfile = "123.fex" ; //下载文件的路径和名称,可以使用相对路径,相对是指相对于image.cfg文件所在分区。也可以使用绝对路径 +; keydata = 1 ; //私有数据分区,重新量产数据将不丢失 +; encrypt = 1 ; //采用加密方式烧录,将提供数据加密,但损失烧录速度 +; user_type = ? ; //私有用法 +; verify = 1 ; //要求量产完成后校验是否正确 +; +; 注:1、name唯一, 不允许同名 +; 2、name最大12个字符 +; 3、size = 0, 将创建一个无大小的空分区 +; 4、为了安全和效率考虑,分区大小最好保证为16M字节的整数倍 +;*************************************************************************************************** +[partition_start] + +;------------------------------>mmcblk0p2/nanda +[partition] + name = bootloader + size = 65536 + downloadfile = "boot-resource.fex" + user_type = 0x8000 + +;------------------------------>mmcblk0p5/nandb +[partition] + name = env + size = 32768 + downloadfile = "env.fex" + user_type = 0x8000 + +;------------------------------>mmcblk0p6/nandc +[partition] + name = boot + size = 65536 + downloadfile = "boot.fex" + user_type = 0x8000 + +;------------------------------>mmcblk0p7/nandd +[partition] + name = system + size = 3145728 + downloadfile = "system.fex" + user_type = 0x8000 + +;------------------------------> +[partition] + name = vendor + size = 614400 + downloadfile = "vendor.fex" + user_type = 0x8000 + +;------------------------------> +[partition] + name = misc + size = 32768 + user_type = 0x8000 + +;------------------------------> +[partition] + name = recovery + size = 65536 + downloadfile = "recovery.fex" + user_type = 0x8000 + +;------------------------------> +[partition] + name = cache + size = 1048576 + user_type = 0x8000 + +;------------------------------>store encryptable +[partition] + name = metadata + size = 32768 + user_type = 0x8000 + +;------------------------------>data image private +[partition] + name = private + size = 32768 + ro = 0 + user_type = 0x8000 + +;------------------------------>frp +[partition] + name = frp + size = 1024 + ro = 0 + user_type = 0x8000 + keydata = 0x8000 + +;------------------------------>empty +[partition] + name = empty + size = 31744 + ro = 0 + user_type = 0x8000 + +;------------------------------>device tree overlay +[partition] + name = dto + size = 32768 + user_type = 0x8000 + +;------------------------------>media_data +[partition] + name = media_data + size = 32768 + user_type = 0x8000 + +;------------------------------>UDISK +[partition] + name = UDISK + user_type = 0x8100 + diff --git a/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/test_config.fex b/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/test_config.fex new file mode 100755 index 0000000000..f39020c2c5 --- /dev/null +++ b/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/test_config.fex @@ -0,0 +1,395 @@ +;------------------------------------------------------------------------------- +; 测试模块配置示例 +; +; [example] +; display_name= "Example" +; activated = 1 +; program = "example.sh" +; category = 0 +; run_type = 1 +; +; display_name +; 显示到界面的名称,字符串类型,如果需要显示双引号,可以使用以下语法: +; display_name= string:"Example" +; 区别在于后者会显示"string:"后面所有的字符,包括空格和制表符。该项能够容纳 +; 64个英文字符,32个中文字符。如果display_name为空,测试程序不会运行。 +; +; activated +; 0: 不测试该模块 +; 1: 测试该模块 +; +; program +; 模块的测试程序,该项能够容纳16个英文字符。 +; +; category +; 0: 自动化测试模块 +; 1: 手动测试模块 +; +; run_type +; 0: 等待当前模块的测试程序执行完毕再运行下一个模块的测试程序 +; 1: 不等待当前模块的测试程序执行完毕 +; 一般为了提高整体的测试速度,对于耗时较长的测试程序建议填0,反之填1;注意,当 +; category = 1,即手动测试模块时,该项无效。 +;------------------------------------------------------------------------------- + +;------------------------------------------------------------------------------- +; test_size +; unit: MB +;------------------------------------------------------------------------------- +[dram] +display_name= "内存" +activated = 1 +program = "memtester.sh" +category = 0 +run_type = 1 +dram_size = 1024 +test_size = 8 +platform = "sun50iw1p1" + +[rtc] +display_name= "时钟" +activated = 1 +program = "rtctester.sh" +category = 0 +run_type = 1 + +;------------------------------------------------------------------------------- +; module_path: The full path of wifi module file +; module_args: The arguments of wifi module (brcm module need this arg) +;------------------------------------------------------------------------------- +[wifi] +display_name= "网络" +activated = 1 +program = "wifitester.sh" +category = 0 +run_type = 1 +module_count= 1 +module_path = "/system/vendor/modules/bcmdhd.ko" +module_args = "nvram_path=/system/vendor/modules/nvram_ap6212.txt" + +[ethernet] +display_name= "乙太網" +activated = 1 +program = "nettester.sh" +category = 0 +run_type = 1 +module_path = +module_args = + +;------------------------------------------------------------------------------- +; module_path +; The full path of g-sensor module file. +; device_name +; The name of g-sensor device. +;------------------------------------------------------------------------------- +[gsensor] +display_name= "重力感应器" +activated = 0 +program = "gsensortester.sh" +category = 0 +run_type = 1 +module_count= 1 +module1_path= "/system/vendor/modules/bma250.ko" +device_name = "bma250" + +;------------------------------------------------------------------------------- +; module_path +; The full path of gyro module file. +; device_name +; The name of gyro device. +;------------------------------------------------------------------------------- +[gyro] +display_name= "陀螺仪" +activated = 0 +program = "gyrotester.sh" +category = 0 +run_type = 1 +module_count= 1 +module1_path= "/system/vendor/modules/lsm9ds0_gyr.ko" +device_name = "lsm9ds0_gyr" + +;------------------------------------------------------------------------------- +; module_path +; The full path of e-compass module file. +; device_name +; The name of e-compass device. +;------------------------------------------------------------------------------- +[compass] +display_name= "指南针" +activated = 0 +program = "compasstester.sh" +category = 0 +run_type = 1 +module_count= 1 +module1_path= +device_name = "lsm9ds0_mag" + +;------------------------------------------------------------------------------- +; test_size +; Test size for nand read and write test. +;------------------------------------------------------------------------------- +[nand] +display_name= "闪存" +activated = 0 +program = "nandtester.sh" +category = 0 +run_type = 1 +module_path= "/system/vendor/modules/nand.ko" +test_size = 16 + +[emmc] +display_name= "emmc闪存" +activated = 1 +program = "emmctester.sh" +category = 0 +run_type = 1 +test_size = 128 + +;------------------------------------------------------------------------------- +; dst_bt: The destination bt device to search when run test (not essential) +; module_path: The full path of bt module file (brcm module need this arg) +; device_node: The AP's hardware communication port to bt module +; baud_rate: The baud_rate of bt module when run test (not essential) +; bt_vnd: The bt module vendor, support broadcom/realtek +; rtk_bt_chip: The bt chip name (rtk module need this arg) +;------------------------------------------------------------------------------- +[bluetooth] +display_name= "蓝牙" +activated = 1 +program = "bttester.sh" +test_time = 3 +category = 0 +dst_bt = ":" +run_type = 1 +module_path = "/system/vendor/modules/bcm43438a1.hcd" +device_node = "/dev/ttyS1" +baud_rate = 1500000 +bt_vnd = "broadcom" +;rtk_bt_chip = "rtl8723cs_xx" + +[mmc] +display_name= "SDCard" +activated = 1 +program = "mmctester.sh" +category = 1 +run_type = 1 + +[udisk] +display_name= "U盘" +activated = 1 +program = "udisktester.sh" +category = 1 +run_type = 1 + +[Usb_HOST1] +display_name= "USB主机1" +activated = 0 +program = "host1tester.sh" +category = 1 +run_type = 1 + +[Usb_HOST2] +display_name= "USB主机2" +activated = 0 +program = "host2tester.sh" +category = 1 +run_type = 1 + +[Usb_OTG] +display_name= "USB_OTG" +activated = 0 +program = "otgtester.sh" +category = 1 +run_type = 1 +;------------------------------------------------------------------------------- +; sound_file +; The full path of sound file. +; samplerate +; The samplerate of sound file. +; support_mode +; 0 : 480I +; 1 : 576I +; 2 : 480P +; 3 : 576P +; 4 : 720P 50HZ +; 5 : 720P 60HZ +; 6 : 1080I 50HZ +; 7 : 1080I 60HZ +; 8 : 1080P 24HZ +; 9 : 1080P 50HZ +; 10: 1080P 60HZ +;------------------------------------------------------------------------------- +[hdmi] +display_name= "HDMI" +activated = 0 +program = "hdmitester.sh" +category = 1 +run_type = 1 +sound_file = "/dragonboard/data/test48000.pcm" +samplerate = 48000 +support_mode= 2 +module_count= 1 +module1_path= "/system/vendor/modules/hdmi.ko" +;------------------------------------------------------------------------------- +; module_path +; The full path of key module file. +;------------------------------------------------------------------------------- +[key] +display_name= "按键" +activated = 0 +program = "keytester" +category = 1 +run_type = 1 +module_path = + +;------------------------------------------------------------------------------- +; module_path +; The full path of ir module file. +;------------------------------------------------------------------------------- +[ir] +display_name= "红外" +activated = 1 +program = "irtester" +category = 1 +run_type = 1 +module_path = "/system/vendor/modules/sunxi-ir-rx.ko" + +;------------------------------------------------------------------------------- +; delay +; delay ? second before recording +; volume: +; the output volume,range from 0 to 63 +; music_playtime: +; music playback time in secend before recording +; sound_file: +; the sound_file you want to play +; samplerate: +; the sound file samplerate +; micx_gain: +; input gain for mic1 or mic2 +; 0:0db,1:35db;2:38db;3:41db +; micx_used: +; the mic you want to test +; micx_threshold: +; the mic data threshold.the test will be pass when the capture data above this value +;------------------------------------------------------------------------------------ +[mic] +display_name= "录音耳机" +activated = 1 +program = "mictester" +category = 1 +run_type = 1 +delay = 3 +volume = 40 +music_playtime =10 +music_file = "/dragonboard/data/test48000.pcm" +samplerate = 48000 +mic1_used = 1 +mic2_used = 0 +mic1_gain = 1 +mic2_gain = 1 +mic1_threshold =8191 +mic2_threshold =8191 +;------------------------------------------------------------------------------- +; type +; 0: rtp +; 1: ctp +; module_path +; The full path of tp module. +;------------------------------------------------------------------------------- +[tp] +display_name= "触摸" +type = 0 +module_path = "/system/vendor/modules/gt9xxnew_ts.ko" +device_name = "gt9xxnew_ts" + +;------------------------------------------------------------------------------- +; module_count +; The number of module need to be insmod. +; modulex_path +; 'x' is the index of module, starts from 0. +;------------------------------------------------------------------------------- +[camera] +activated = 1 +module_count= 7 +module1_path= "/system/vendor/modules/videobuf2-core.ko" +module2_path= "/system/vendor/modules/videobuf2-memops.ko" +module3_path= "/system/vendor/modules/videobuf2-v4l2.ko" +module4_path= "/system/vendor/modules/videobuf2-dma-contig.ko" +module5_path= "/system/vendor/modules/vfe_io.ko" +module6_path= "/system/vendor/modules/ov5640.ko" +module7_path= "/system/vendor/modules/vfe_v4l2.ko" +dev_cnt = 1 +csi_cnt = 1 +fps = 10 + +;------------------------------------------------------------------------------- +; manual_menu_name +; manual test case menu name, 32bytes. +; auto_menu_name +; auto test case menu name, 32bytes. +; clear_button_name +; clear screen button name, 8bytes. +; font_size +; test case font display size, valid value: 20pixel(default), 24pixel. +; +; Color Index +; 0: White +; 1: Yellow +; 2: Green +; 3: Cyan +; 4: Magenta +; 5: Red +; 6: Blue +; 7: Black +; 8: Beauty +; menu_bgcolor +; The background color index of test case category menu. +; menu_fgcolor +; The foreground color index of test case category menu. +; item_init_bgcolor +; The background color index of test case item init status. +; item_init_fgcolor +; The foreground color index of test case item init status. +; item_ok_bgcolor +; The background color index of test case item OK status. +; item_ok_fgcolor +; The foreground color index of test case item OK status. +; item_fail_bgcolor +; The background color index of test case item fail status. +; item_fail_fgcolor +; The foreground color index of test case item fail status. +; +; pass_str +; The string display after test case display_name when test OK. +; fail_str +; The string display after test case display_name when test Fail. +;------------------------------------------------------------------------------- +[df_view] +tv_scale_factor = 95 +manual_menu_name = "手动测试项" +auto_menu_name = "自动测试项" +clear_button_name = "清屏" +wifi_menu_name = "wifi热点列表" +font_size = 20 +menu_bgcolor = 1 +menu_fgcolor = 7 + +item_init_bgcolor = 7 +item_init_fgcolor = 0 +item_ok_bgcolor = 7 +item_ok_fgcolor = 6 +item_fail_bgcolor = 7 +item_fail_fgcolor = 5 +tp_draw_color = 0 + +;item_init_bgcolor = 0 +;item_init_fgcolor = 7 +;item_ok_bgcolor = 0 +;item_ok_fgcolor = 6 +;item_fail_bgcolor = 0 +;item_fail_fgcolor = 5 +;tp_draw_color = 7 + +pass_str = "通过" +fail_str = "失败" diff --git a/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/warnings.bmp b/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/warnings.bmp new file mode 100755 index 0000000000..816cd3a1cf Binary files /dev/null and b/lichee/tools/pack/chips/sun50iw1p1/configs/m64_hdmi/warnings.bmp differ