From 6473cfff9941e2e7dd573ca3d2fea8cb16de64e4 Mon Sep 17 00:00:00 2001 From: Thomas Kaiser Date: Wed, 23 Nov 2016 13:40:40 +0100 Subject: [PATCH] Try to fix SinoVoip's conflicting pin mappings on BPi M2+ --- config/fex/bananapim2plus.fex | 59 +++++++++++++---------------------- 1 file changed, 21 insertions(+), 38 deletions(-) diff --git a/config/fex/bananapim2plus.fex b/config/fex/bananapim2plus.fex index 09a92849f3..82a19be352 100644 --- a/config/fex/bananapim2plus.fex +++ b/config/fex/bananapim2plus.fex @@ -332,35 +332,18 @@ manual_cs = 0 ;---------------------------------------------------------------------------------- [gpio_para] gpio_used = 1 -gpio_num = 27 -gpio_pin_1 = port:PA12<1><0> -gpio_pin_2 = port:PA11<1><0> -gpio_pin_3 = port:PA06<1><0> -gpio_pin_4 = port:PA13<1><0> -gpio_pin_5 = port:PA14<1><0> -gpio_pin_6 = port:PA01<1><0> -gpio_pin_7 = port:PA16<1><0> -gpio_pin_8 = port:PA00<1><0> -gpio_pin_9 = port:PA03<1><0> -;gpio_pin_10 = port:PA15<1><0> -gpio_pin_10 = port:PC04<1><0> -gpio_pin_11 = port:PC00<1><0> -gpio_pin_12 = port:PC01<1><0> -gpio_pin_13 = port:PA02<1><0> -gpio_pin_14 = port:PC02<1><0> -gpio_pin_15 = port:PC03<1><0> -gpio_pin_16 = port:PC07<1><0> -gpio_pin_17 = port:PA19<1><0> -gpio_pin_18 = port:PA18<1><0> -gpio_pin_19 = port:PA07<1><0> -gpio_pin_20 = port:PA08<1><0> -gpio_pin_21 = port:PL02<1><0> -gpio_pin_22 = port:PA09<1><0> -gpio_pin_23 = port:PA10<1><0> -gpio_pin_24 = port:PL04<1><0> -gpio_pin_25 = port:PA16<1><0> -gpio_pin_26 = port:PA21<1><0> -gpio_pin_27 = port:PA20<1><0> +gpio_num = 11 +gpio_pin_1 = port:PA06<1><0> +gpio_pin_2 = port:PA07<1><0> +gpio_pin_3 = port:PA08<1><0> +gpio_pin_4 = port:PA09<1><0> +gpio_pin_5 = port:PA10<1><0> +gpio_pin_6 = port:PA20<1><0> +gpio_pin_7 = port:PA21<1><0> +gpio_pin_8 = port:PC04<1><0> +gpio_pin_9 = port:PC07<1><0> +gpio_pin_10 = port:PL02<1><0> +gpio_pin_11 = port:PL04<1><0> [leds_para] leds_used = 1 @@ -819,7 +802,7 @@ usb_used = 1 usb_port_type = 1 usb_detect_type = 0 usb_id_gpio = port:PL06<0><1> -usb_det_vbus_gpio = "axp_ctrl" +usb_det_vbus_gpio = port:PL06<0><1> usb_drv_vbus_gpio = port:PD11<1><0><0> usb_host_init_state = 1 usb_restrict_gpio = @@ -877,9 +860,9 @@ vendor_id = 0x18D1 mass_storage_id = 0x0001 adb_id = 0x0002 -manufacturer_name = "USB Developer" -product_name = "Android" -serial_number = "20080411" +manufacturer_name = "Sinovoip" +product_name = "Overheating device" +serial_number = "0001" [msc_feature] vendor_name = "USB 2.0" @@ -933,8 +916,8 @@ lpo_use_apclk = "losc_out" [wifi_para] wifi_used = 1 wifi_sdc_id = 1 -wifi_usbc_id = 1 -wifi_usbc_type = 1 +wifi_usbc_id = +wifi_usbc_type = wl_reg_on = port:PL07<1><0> wl_host_wake = port:PG10<0><0> wl_host_wake_invert = 0 @@ -1037,7 +1020,7 @@ i2s_din = port:PG13<2><1> [audio0] -audio_used = 1 +audio_used = 0 lineout_vol = 0x1f cap_vol = 0x5 audio_hp_ldo = "none" @@ -1300,11 +1283,11 @@ mali_extreme_freq = 600 mali_extreme_vol = 1400 ;---------------------------------------------------------------------------------- -;1wire parameters (default - PA20) +;1wire parameters (default - PA16 on this board, physical pin 37) ;---------------------------------------------------------------------------------- [w1_para] w1_used = 1 -gpio = 20 +gpio = 16 [corekeeper] corekeeper_enabled = 1