Skip to content
Snippets Groups Projects
Commit 1735b8ef authored by Markus Gothe's avatar Markus Gothe :ok_hand: Committed by Andreas Gnau
Browse files

Add FT-P3414B support

Add support for panther board with voice port.
Also make sure that voice is used on panda target.
parent 52cf0484
No related branches found
No related tags found
1 merge request!233Add FT-P3414B support
config board 'board'
# Spec
option hasAdsl '0'
option hasVdsl '0'
option hasEthWan '1'
option hasVoice '1'
option hasDect '0'
option hasUsb '0'
option hasWifi '0'
option hasSfp '1'
option hasCatv '0'
# Voice
option VoicePorts '1'
# SFP
option sfpBus '/dev/i2c-0'
# Ethernet
option ethernetPorts '5'
option ethernetWanPort 'eth4'
option ethernetPortNames 'LAN4 LAN3 LAN2 LAN1 WAN'
option ethernetPortOrder 'eth0 eth1 eth2 eth3 eth4'
option ethernetLanPorts 'eth0 eth1 eth2 eth3'
option gpio_one '67'
option gpio_optical_blackout_zero '40 22'
###############################################################################
# Button config, start
############### gpio buttons, driver config
config gpio_button gpio_buttons
list buttons gpio_reset
list buttons gpio_dimming
config gpio_button gpio_reset
option addr 41
option active low
config gpio_button gpio_dimming
option addr 48
option active low
############### mapping function button to driver button
config button RESET
list button gpio_reset
option minpress 0
option minpress_indicator 0
option longpress 3000
option hotplug softresetbutton
option hotplug_long resetbutton
config button DIMMING
list button gpio_dimming
option hotplug dimmingbutton
option minpress 0
option minpress_indicator 0
###############################################################################
# Led config, start
#
config gpio_led gpio_leds
list leds voip
list leds pon_green
list leds power_on_green
list leds alarm_red
list leds lan1_green
list leds lan1_yellow
list leds lan2_green
list leds lan2_yellow
list leds lan3_green
list leds lan3_yellow
list leds lan4_green
list leds lan4_yellow
config gpio_led voip
option active high
option sysfs_attr 29s
option mode led_linux
config gpio_led pon_green
option active high
option sysfs_attr 28s
option mode led_linux
config gpio_led power_on_green
option active high
option sysfs_attr 27s
option mode led_linux
config gpio_led alarm_red
option active high
option sysfs_attr 26s
option mode led_linux
config gpio_led lan1_yellow
option active high
option sysfs_attr 24s
option mode led_linux
config gpio_led lan1_green
option active high
option sysfs_attr 25s
option mode led_linux
config gpio_led lan2_yellow
option active high
option sysfs_attr 22s
option mode led_linux
config gpio_led lan2_green
option active high
option sysfs_attr 23s
option mode led_linux
config gpio_led lan3_yellow
option active high
option sysfs_attr 20s
option mode led_linux
config gpio_led lan3_green
option active high
option sysfs_attr 21s
option mode led_linux
config gpio_led lan4_yellow
option active high
option sysfs_attr 18s
option mode led_linux
config gpio_led lan4_green
option active high
option sysfs_attr 19s
option mode led_linux
############### mapping led function to driver led
config led_map led_map
list press_indicator led_status
list press_indicator led_internet
list press_indicator led_wan_speed
list press_indicator led_lan
list press_indicator led_voice
list functions fiber
list functions status
list functions status_composite
list functions internet
list functions wan_speed
list functions wan_speed_composite
list functions lan
list functions upgrade
list functions voice
config led_map led_status_composite
list led_action_ok 'power_on_green = ON'
list led_action_ok 'alarm_red = OFF'
list super_ok 'status_ok, fiber_ok, upgrade_ok'
list super_ok 'status_ok, fiber_ok, upgrade_off'
list super_ok 'status_ok, fiber_off, upgrade_ok'
list super_ok 'status_ok, fiber_off, upgrade_off'
list super_ok 'status_ok, fiber_error, upgrade_ok'
list super_ok 'status_ok, fiber_error, upgrade_off'
list led_action_off 'power_on_green = OFF'
list led_action_off 'alarm_red = OFF'
list super_off 'status_off, fiber_ok, upgrade_ok'
list super_off 'status_off, fiber_ok, upgrade_off'
list super_off 'status_off, fiber_off, upgrade_ok'
list super_off 'status_off, fiber_off, upgrade_off'
list super_off 'status_off, fiber_error, upgrade_ok'
list super_off 'status_off, fiber_error, upgrade_off'
list led_action_notice 'power_on_green = FLASH_SLOW'
list led_action_notice 'alarm_red = OFF'
list super_notice 'status_notice, fiber_ok'
list super_notice 'status_notice, fiber_off'
list super_notice 'status_notice, fiber_error'
list super_notice 'upgrade_notice'
list led_action_alert 'power_on_green = OFF'
list led_action_alert 'alarm_red = FLASH_SLOW'
list super_alert 'status_ok, fiber_alert, upgrade_ok'
list super_alert 'status_ok, fiber_alert, upgrade_off'
list super_alert 'status_alert'
list led_action_error 'power_on_green = OFF'
list led_action_error 'alarm_red = ON'
list super_error 'upgrade_error, status_ok'
list super_error 'status_error'
config led_map led_wan_speed_composite
list led_action_ok pon_green=ON
list super_ok 'internet_ok, wan_speed_ok, upgrade_ok'
list super_ok 'internet_ok, wan_speed_ok, upgrade_off'
list super_ok 'internet_ok, wan_speed_ok, upgrade_error'
list led_action_off pon_green=OFF
list super_off 'internet_off, wan_speed_ok, upgrade_off'
list super_off 'internet_off, wan_speed_ok, upgrade_ok'
list super_off 'internet_off, wan_speed_ok, upgrade_error'
list super_off 'wan_speed_off, upgrade_off'
list super_off 'wan_speed_off, upgrade_ok'
list super_off 'wan_speed_off, upgrade_error'
list led_action_notice pon_green=FLASH_SLOW
list super_notice 'internet_notice, wan_speed_ok, upgrade_ok'
list super_notice 'internet_notice, wan_speed_ok, upgrade_off'
list super_notice 'internet_notice, wan_speed_ok, upgrade_error'
list led_action_alert pon_green=FLASH_SLOW
list super_alert 'internet_alert, wan_speed_ok, upgrade_ok'
list super_alert 'internet_alert, wan_speed_ok, upgrade_off'
list super_alert 'internet_alert, wan_speed_ok, upgrade_error'
list led_action_error pon_green=FLASH_SLOW
list super_error 'internet_error, wan_speed_ok'
list super_error 'upgrade_notice'
config led_map led_voice
list led_action_ok 'voip = ON'
list led_action_notice 'voip = ON'
list led_action_alert 'voip = FLASH_SLOW'
list led_action_error 'voip = FLASH_SLOW'
list led_action_off 'voip = OFF'
config led_map led_lan
list led_action_ok lan1_green=ON
list led_action_ok lan1_yellow=ON
list led_action_ok lan2_green=ON
list led_action_ok lan2_yellow=ON
list led_action_ok lan3_green=ON
list led_action_ok lan3_yellow=ON
list led_action_ok lan4_green=ON
list led_action_ok lan4_yellow=ON
list led_action_off lan1_green=OFF
list led_action_off lan1_yellow=OFF
list led_action_off lan2_green=OFF
list led_action_off lan2_yellow=OFF
list led_action_off lan3_green=OFF
list led_action_off lan3_yellow=OFF
list led_action_off lan4_green=OFF
list led_action_off lan4_yellow=OFF
CONFIG_TARGET_FAMILY="PANTHER" CONFIG_TARGET_FAMILY="PANTHER"
CONFIG_BCM_KERNEL_PROFILE="96846GO" CONFIG_BCM_KERNEL_PROFILE="96846GOV"
CONFIG_BCM_CHIP_ID="6846" CONFIG_BCM_CHIP_ID="6846"
CONFIG_BCM_FIRMWARE_TYPE_NAND_SQUASHFS=y CONFIG_BCM_FIRMWARE_TYPE_NAND_SQUASHFS=y
# CONFIG_BCM_VOICE is not set CONFIG_BCM_VOICE=y
# CONFIG_BCM_DSL is not set # CONFIG_BCM_DSL is not set
# CONFIG_PACKAGE_libdsl is not set # CONFIG_PACKAGE_libdsl is not set
# CONFIG_PACKAGE_dslmngr is not set # CONFIG_PACKAGE_dslmngr is not set
......
...@@ -65,7 +65,7 @@ $(eval $(call Profile,tiger)) ...@@ -65,7 +65,7 @@ $(eval $(call Profile,tiger))
#################### PANTHER #################### PANTHER
define Profile/panther define Profile/panther
NAME:=panther NAME:=panther
PACKAGES:=i2c-tools PACKAGES:=i2c-tools $(VOICE_SUPPORT)
endef endef
define Profile/panther/Description define Profile/panther/Description
...@@ -77,7 +77,7 @@ $(eval $(call Profile,panther)) ...@@ -77,7 +77,7 @@ $(eval $(call Profile,panther))
#################### PANDA #################### PANDA
define Profile/panda define Profile/panda
NAME:=panda NAME:=panda
PACKAGES:=i2c-tools PACKAGES:=i2c-tools $(VOICE_SUPPORT)
endef endef
define Profile/panda/Description define Profile/panda/Description
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment